<%@ LANGUAGE="VBSCRIPT" %> <% '/////////////////// °ü¸®°Ô½ÃÆÇ ºÎºÐÀÇ ÆäÀÌÁö ¼³Á¤////////////////// bunho=Request("bunho") boardname=Request("boardname") sqlls="Select * from bo_pds_master where pm_boardname='"&boardname&"' " Set ls=DbCon.Execute(sqlls) boardname=ls("pm_boardname") getdate=ls("pm_getdate") pdsv=ls("pm_pdsv") subject=ls("pm_subject") subject=Replace(subject,chr(34),""") subjectv=ls("pm_subjectv") titletop=ls("pm_titletop") titletopv=ls("pm_titletopv") titlebot=ls("pm_titlebot") titlebotv=ls("pm_titlebotv") banner=ls("pm_banner") bannerv=ls("pm_bannerv") mailaddr=ls("pm_mailaddr") mailmanav=ls("pm_mailmanav") mailmenv=ls("pm_mailmenv") htmlv=ls("pm_htmlv") writemanav=ls("pm_writemanav") totbgc=ls("pm_totbgc") subcharc=ls("pm_subcharc") titlebgc=ls("pm_titlebgc") titlecharc=ls("pm_titlecharc") textbgc=ls("pm_textbgc") textcharc=ls("pm_textcharc") rc=ls("pm_recordc") pc=ls("pm_pagec") ls.close '/////////////////////// ·¹ÄÚµå ¼ÂÀ» ÀÌ¿ëÇÑ ÆäÀÌÁö À̵¿ ¸ðµâ º¯¼ö¼³Á¤ ///////////////// setsize = pc 'ÆäÀÌÁö¼Â ´ÜÀ§ °áÁ¤ pgsize = rc 'ÇÑ ÆäÀÌÁö´ç ·¹ÄÚµå ¼ö if Request("page")="" then '³Ñ°Ü¹Þ´Â º¯¼ö´Â ÆäÀÌÁö °ª¸¸ page=1 startpage=1 else page=cint(Request("page")) startpage=int(page/setsize) if startpage=(page/setsize) then startpage=page-setsize + 1 else startpage=int(page/setsize)*setsize + 1 end if end if Set DbRec=Server.CreateObject("ADODB.Recordset") DbRec.CursorType=1 '/////// Query ¹® »ç¿ëÀÚ º¯°æ ////////// listsql="SELECT * FROM "&boardname&" ORDER BY pd_ref DESC, pd_ansnum ASC" DbRec.Open listsql, DbCon, 1 if not DbRec.eof then DbRec.PageSize= pgsize 'ÆäÀÌÁö »çÀÌÁî ¼³Á¤ pgcount = DbRec.PageCount 'Àüü ÆäÀÌÁö¼ö °è»ê trcount = DbRec.RecordCount 'Àüü ·¹ÄÚµå ¼ö °è»ê nextpg = Cint(page)+1 '´ÙÀ½ÆäÀÌÁö °è»ê prevpg = Cint(page)-1 'ÀÌÀüÆäÀÌÁö °è»ê n = trcount - (page-1) * rc '///////////////////////////////// º¯¼ö ¼³Á¤ ³¡ ///////////////////////////////////////// else trcount=0 pgcount=0 end if %> board


<% if bannerv="yestop" then '¹è³Ê¸í »ðÀÔ¿©ºÎ%>
<% end if %>

<% if subjectv="yes" then '°Ô½ÃÆÇ¸í »ðÀÔ¿©ºÎ response.write "
"&subject&"" end if %> <% if titletopv="yes" then '»ç¿ëÀÚ¹®±¸(»ó) »ðÀÔ¿©ºÎ response.write "

"&titletop&"" end if %>



°Ë»öµÈ °Ô½Ã¹° : <%=trcount%> ÂʹøÈ£ : <%=page&"/"&pgcount%> <%'½ÃÀÛ response.write "Ȩ" if page=1 then response.write "ÀÌÀüÀ¸·Î" '¸µÅ© ¾ø´Â óÀ½ else response.write "" response.write "ÀÌÀüÀ¸·Î " end if if nextpg > pgcount then '¸¸¾à ´ÙÀ½ ÆäÀÌÁö°¡ ÀüüÆäÀÌÁö ¼öº¸´Ù Å©¸é ¸µÅ© ¾øÀÌ response.write "´ÙÀ½À¸·Î" else response.write "" response.write "´ÙÀ½À¸·Î " response.write "" ' response.write "¸¶Áö¸· " end if '///////////////////// °ü¸®ÀÚ ±Û¾²±â »ç¿ë ¿©ºÎ½ÃÀÛ ///////////////// if writemanav="yes" then if Session("GRADE") = "Z" or Session("GRADE") = "x" then response.write "" response.write "±Û¾²±â" end if else response.write "" response.write "±Û¾²±â" end if '///////////////////// °ü¸®ÀÚ ±Û¾²±â »ç¿ë ¿©ºÎ³¡ ///////////////// %>

<%if prevpg<1 then%> óÀ½ÆäÀÌÁö <%else%> óÀ½ÆäÀÌÁö <%end if%> <% response.write "¹Ù·Î°¡±â : " if startpage=1 then Response.Write "[ÀÌÀü "&setsize&"°³] " elseif startpage > setsize then Response.Write "[ÀÌÀü "&setsize&"°³] " end if for i=startpage To setsize+startpage -1 if i > pgcount then exit for end if Response.Write " " &i&" " Next if pgcount < setsize then 'ÇöÀç ÆäÀÌÁö°¡ ÆäÀÌÁö ¼ÂÅ©±âº¸´Ù Àû°Å³ª ÆäÀÌÁö¸®½ºÆ®°¡ ÀüüÆäÀÌÁöº¸´Ù ÀûÀ¸¸é response.write " [´ÙÀ½ "&setsize&"°³]" elseif i>pgcount then response.write " [´ÙÀ½ "&setsize&"°³]" else Response.Write "" Response.Write " [´ÙÀ½ "&setsize&"°³]" end if %> <% if trcount= 0 then %> ³¡ÆäÀÌÁö <% else %> ³¡ÆäÀÌÁö <% end if %>

<%if pdsv = "yes" then%> <%end if%> <% If DbRec.eof then %> <%if pdsv="yes" then%> <%else%> <%end if%> <% End If %> <% if trcount > 0 then DbRec.AbsolutePage = page For i = 1 to pgsize if DbRec.EOF then exit for end if %> <%if pdsv = "yes" then%> <% End If %> <% n=n-1 DbRec.MoveNext Next %>
¹øÈ£ Á¦¸ñ ÀÛ¼ºÀÚ ÀÛ¼ºÀÏ Á¶È¸ÆÄÀÏ ´Ù¿î
ÀÚ·á°¡ ¾ø½À´Ï´Ù.
ÀÚ·á°¡ ¾ø½À´Ï´Ù.
<%=n%> <% 'if left(now,8) = left(DbRec("getdate"),8) then ' 1ÀÏ ´ÜÀ§·Î ¿Ã¶ó¿Â¿¡ New Ç¥½ÃÇÒ ¶§ if datediff("d",DbRec("pd_getdate"),now)<1 then ' response.write "" else response.write " " end if %> <% bunho=cint(DbRec("pd_bunho")) subject=DbRec("pd_subject") ref=DbRec("pd_ref") tstep=cint(DbRec("pd_step")) visit=DbRec("pd_visited") downcount=DbRec("pd_downcount") if tstep > 0 then response.write "" response.write "Re: " end if if len(subject) > 18 then response.write "" response.write left(subject,18)&"..." else response.write "" response.write ""&subject&"" end if %> "> <%=DbRec("pd_writer")%> <%=year(DbRec("pd_getdate"))&"-"&month(DbRec("pd_getdate"))&"-"&day(DbRec("pd_getdate"))%> <%=visit%> <%if DbRec("pd_filesize")=0 then%> - <%else%> "> <% ext=Lcase(right(DbRec("pd_filename"),3)) select case ext case "jpg" down="type/jpg.gif" case "gif" down="type/gif.gif" case "txt" down="type/txt.gif" case "zip" down="type/zip.gif" case "hwp" down="type/hwp.gif" case "exe" down="type/exe.gif" case "mp3" down="type/mp3.gif" case "doc" down="type/doc.gif" case "ppt" down="type/ppt.gif" case "xls" down="type/xls.gif" case else down="type/default.gif" end select %> <%=DbRec(" WIDTH="16" HEIGHT="16"> <%end if%> <% if DbRec("pd_filesize")=0 then response.write " -" else response.write ""&downcount&"" end if %>
Á¦¸ñ ³»¿ë ÀÛ¼ºÀÚ
<%end if%>
<% if DbRec.BOF then %>
<%end if%> <% if titlebotv="yes" then '»ç¿ëÀÚ¹®±¸(ÇÏ) »ðÀÔ¿©ºÎ response.write "
"&titlebot&"

" end if %> <% if bannerv="yesbot" then '¹è³Ê¸í »ðÀÔ¿©ºÎ%>








<% end if %>