<% page = request("page") if page = "" then page = 1 end if code = "zone_notice" notice_sql = "select * from "&code&" order by number desc" set notice_rs = server.createobject("adodb.recordset") notice_rs.pagesize = 5 notice_rs.open notice_sql, dbcon, 1 %>
Áö±¸¼Ò½Ä ¸®½ºÆ® [±Ûµî·ÏÇϱâ]
<% if notice_rs.eof then %> <% else %> <% i = 1 notice_rs.absolutepage = page do until notice_rs.eof or i > notice_rs.pagesize number = notice_rs("number") title = notice_rs("title") readnum = notice_rs("readnum") if isnull(readnum) then readnum = 0 end if indate = year(notice_rs("indate"))&"-"&month(notice_rs("indate"))&"-"&day(notice_rs("indate")) %> <% i = i + 1 notice_rs.movenext loop %> <% end if %>
Á¦ ¸ñ ÀÛ¼ºÀÏ Á¶È¸¼ö
µî·ÏµÈ Áö±¸¼Ò½ÄÀÌ ¾ø½À´Ï´Ù.
    <%=title%> <%=indate%> <%=readnum%>
<% '½ÃÀÛÆäÀÌÁö q=1 start_page=int(page/6)* 5 + 1 '³¡³ª´Â ÆäÀÌÁö end_page=start_page + 4 if end_page > notice_rs.pagecount then end_page=notice_rs.pagecount 'ÀÌÀü 5°³ if start_page-5 > 0 then %> [>ÀÌÀü 5] <% end if 'ÆäÀÌÁö »Ñ¸®±â for p=start_page to end_page if p=cint(page) then %> [<%=p%>] <% else %> [><%=p%>] <% end if next 'ÀÌÈÄ 5°³ if start_page+5 <= notice_rs.pagecount then %> [>´ÙÀ½ 5] <% end if %>