<% if Request("GoTopage")="" then curpage=1 else curpage = cint(Request("GoTopage")) end if ipp = 10 Set DbCon=Server.CreateObject("ADODB.Connection") DbCon.Open "seoulart","seoulart","seoulart0217" sql= "SELECT count(TESTID) as cnt FROM board" set rs=Dbcon.Execute(sql) postcount = rs("cnt") Set DbRec=Server.CreateObject("ADODB.RecordSet") DbRec.CursorType = 1 DbRec.Open "SELECT * FROM board order by ref desc,step",DbCon totpage = postcount \ ipp if (totpage * ipp) <> postcount Then totpage = totpage + 1 For a = 1 To (curpage - 1) * ipp DbRec.MoveNext Next %> Seoul Art Fair
   

















<% mychoice = 10 total_block = int(totpage / mychoice) if int(totpage) mod mychoice = 0 then total_block=total_block-1 end if if request("block") <> "" then nowblock = request("block") else nowblock=0 end if %>
   
  <% i = 1 Do until DbRec.EOF Or i>DbRec.PageSize name = (DbRec("name")) wdate = left(DbRec("wdate"),10) title = replace(DbRec("title"),""","'") If Len(name) > 5 Then name = Mid(name,1,6) & "....." End If If Len(title) > 22 Then title = Mid(title,1,23) & "......" End If %> <% DbRec.Movenext i = i + 1 Loop %>
  
<%=DbRec("testid")%> <% if DbRec("re_level") > 0 then %> <% wid = 4 * DbRec("re_level") %> <% end if %> &read=<%=DbRec("readnum")%>pagec=<%=session("currentpage")%>" onFocus="this.blur()"><%=title%> <%=left(DbRec("wdate"),10)%> "><%=name%> <%=DbRec("readnum")%>

 
PAGE: <% if totpage > 0 then %> <% if Cint(nowblock) >0 then %> <% curpage=(int(nowblock*mychoice) - (mychoice-1)) %> [ÀÌÀüPage] <% end if %> <% if Cint(total_block) <> Cint(nowblock) Then %> <% for Gopage = 1 to mychoice %> <% if CurPage <> Gopage then %> <% end if %> [<%=(int(nowblock*mychoice) + Gopage)%>] <% next %> <% else %> <% for Gopage = 1 to (totpage mod mychoice) %> <% if CurPage <> Gopage then %> <% end if %> [<%=(int(nowblock*mychoice) + Gopage)%>]  <% next %> <% end if %> <% curpage=(int(nowblock*mychoice) + Gopage) %> <% if (Cint(total_block) > 0) and (Cint(nowblock) < Cint(total_block)) then %> [´ÙÀ½Page]  <% end if %> <% end if %>