<% Option Explicit %> <% Response.Expires=-1 %> <% Dim Gotopage Dim Dbcon, Rs, SQL Gotopage = Request("Gotopage") If Gotopage = "" then Gotopage = 1 Set Dbcon = Server.CreateObject("ADODB.Connection") Dbcon.Open strConnect Dim recordCount, pagecount SQL = "select count(board_idx) as recCount from board" Set Rs = Dbcon.Execute(SQL) recordCount = Rs(0) pagecount = int((recordCount-1)/pagesize) +1 SQL = "select * from board order by ref desc, re_step asc" set Rs=server.CreateObject("ADODB.Recordset") Rs.Open SQL,Dbcon,1 %> Copyright(c)2001BAEKKWANGSTAINLESSCO.,LTD.
<% if Rs.BOF or Rs.EOF then%>

<<°Ô½ÃÆÇ>>

ÇöÀç µî·ÏµÈ °Ô½Ã¹°ÀÌ ¾ø½À´Ï´Ù

±Û ¾²±â

<% else Rs.absolutepage = Gotopage %>
<% function ReplaceTag(str) Dim text text = replace(str, "&", "&") text = replace(text, "<", "<") text = replace(text, ">", ">") ReplaceTag = text End Function Dim i, board_idx, name, title, mail, readnum, wid i=1 Do until Rs.EOF or i > pagesize board_idx = Rs("board_idx") name = Rs("name") title = Rs("title") mail = Rs("mail") readnum = Rs("readnum") If Len(name) > 8 Then name = Mid(name,1,8) & ".." if Trim(name)="" then name="???" name = ReplaceTag(name) If Len(title) > 30 Then title = Mid(title,1,30) & "..." If Trim(title) = "" then title = "[Á¦¸ñ¾øÀ½]" title = ReplaceTag(title) %> bgcolor="#f6f6f6" <% else %> bgcolor="#ffffff" <% end if %>> <% Rs.Movenext %> <% if i < pagesize then %> <% if Rs.EOF then%> <% else %> <% end if %> <% else %> <% end if %> <% i=i+1 Loop Rs.close Dbcon.close Set Rs = Nothing Set Dbcon = Nothing %>
( <%=Gotopage%> / <%=pagecount%> ) page
No Title Name Hit
<%=(recordcount-i-(GotoPage-1)*PageSize)+1%>   <% if DateDiff("h",rs("writeday"),Now()) < 24 then %>   <%else%>   <%end if%> <% if rs("re_level") > 0 then wid=5 * rs("re_level") %> <%end if%> <%=title%> <%=name%> <%=readnum%>
<% if int(gotopage)>1 then %> <% else %> <% end if %> <% call gotoPageHTML(Gotopage,pagecount) %> <% if int(gotopage) < int(pagecount) then %> <% else %> <% end if %>

Copyright (c) 2001 BAEK KWANG STAINLESS CO., LTD. TEL 051-525-3131  FAX 051-525-3004
Designed by ITMir.co.kr
<% end if%>