% If Request("GoTopage")="" Then curpage = 1 Else curpage = cint(Request("GoTopage")) End If CurPage2 = CurPage ipp = 50 titles = Trim(request("title")) set fso = Server.CreateObject("Scripting.FileSystemObject") set f = fso.OpenTextFile("C:\cons2.dat") strconnect = f.Readline set Dbcon=Server.CreateObject("ADODB.Connection") Dbcon.Open strconnect sql = "SELECT COUNT(num) AS cnt FROM " & titles set rs=Dbcon.Execute(sql) postcount = rs("cnt") 'ÃÑ ±ÛÀÇ °³¼ö¸¦ ±¸ÇÑ´Ù Set DbRec=Server.CreateObject("ADODB.RecordSet") DbRec.CursorType = 1 DbRec.Open "SELECT num,filename FROM " & titles & " ORDER BY num DESC",DbCon totpage = fix(postcount / ipp) 'Àüü ÆäÀÌÁöÀÇ ¼ö¸¦ ±¸ÇÑ´Ù If (totpage * ipp) <> postcount Then totpage = totpage + 1 End If For a = 1 To (curpage - 1) * ipp DbRec.MoveNext Next If titles = "juyu" Then k = "ñÐÀ¯ÃµÇÏ" ElseIf titles = "zombi" Then k = "Á»ºñÄÞºñ" ElseIf titles = "daigal" Then k = "´ë°¥À屺" ElseIf titles = "ftrader" Then k = "¿Ç÷Àå»ç²Û" ElseIf titles = "killer" Then k = "¿¬¼â»ìÀθ¶" ElseIf titles = "killer" Then k = "¿¬¼â»ìÀθ¶" ElseIf titles = "difference" Then k = "µµ½ÃÁ¤¹ú" ElseIf titles = "boss" Then k = "º¸½ºÀÇ ¼øÁ¤" ElseIf titles = "daemul" Then k = "´ë¹°" Else k = "»ýÈ°¿ë¾î¹é°ú»çÀü" End If %>
|