|
|
|
|
俵ÀÌ / 2000-06-26 / ¿ÀÈÄ 4:13:02 / 203.255.3.190
Á¶È¸¼ö : 128
|
[Áú¹®] ÀÌ°Å ¾Æ½Ã´Â ºÐ ´äº¯Á»...taeyo°Á¸¦ ºÁµµ ¸ð¸£°Ú¾î¼...ÈæÈæ |
> ¾Æ·¡ ¼Ò½º¿¡¼ ¸®½ºÆ® ¹Ø¿¡ <1><2><3>..ÀÌ·¸°Ô ÆäÀÌÁö À̵¿ÇÏ´Â°É »ðÀÔ
> ÇÏ°í ½ÍÀºµ¥ ¾î¶»°Ô ÇØ¾ß µÇÁÒ?¾Æ½Ã´ÂºÐ ¼Ò½ºº¸½Ã±¸ ´äº¯Á» ºÎŹµå¸³´Ï
> ´Ù. Á¤¸» ±ÞÇؼ¿ä...¤Ð¤Ð
>
> ---- ¿¡·¯¶óÀÎÀÇ ÄÚµå ----
>
>
>
>
>
>
>
> <%
> select case request.querystring("page")
> case ""
> session("current page")=1
> case "next"
> session("currentpage")=session("currentpage")+1
> case "previ"
> session("currentpage")=session("currentpage")-1
> end select
> %>
>
>
>
> bordercolorlight="#CCCCCC" bordercolordark="#FFFFFF"
> bgcolor="#FFFFFF">
>
> ¹øÈ£ |
> ±¸ºÐ |
> Á¦ ¸ñ |
> ÀÛ¼ºÀÚ |
> ÀÛ¼ºÀÏ |
> Á¶È¸¼ö |
>
> <%
>
> page = Request("page")
> if ((page = "-1")) then
> page = 1
> end if
> if ((page = "")) then
> page = 1
> end if
>
> set db = server.createobject("adodb.connection")
> db.open ("")
> sql = "select count(bbs_num) from guest_bbs "
>
> set rs = db.Execute (sql)
> pagesize = 15
> rs.open SQL,db,1
> rs.absolutepage=session("currentpage")
> rs.close
>
> strYear = Year(now)
> strMonth = Month(now)
> strDay = Day(now)
>
> if cint(strMonth) < 10 then
> strMonth = "0" & strMonth
> end if
> if cint(strDay) < 10 then
> strDay = "0" & strDay
> end if
>
> cur_date = strYear & "/" & strMonth & "/" & strDay
>
> sql = "select TOP " & pagesize * page & " bbs_num, bbs_index, bbs_ref,
> bbs_step, bbs_level, bbs_subj, bbs_name, bbs_email, bbs_cnt, bbs_date,
> bbs_time from Guest_bbs ORDER BY bbs_ref DESC, bbs_step, bbs_level"
>
> rs.open sql, db, 1, 1
>
> if rs.eof or rs.bof then
> nodata = True
> else
> nodata = False
> end if
>
>
> if nodata = False then
>
> rs.Move pagesize * (page-1)
>
> i = 1
> Do until rs.EOF or i > pagesize
>
> refRef = rs("bbs_ref")
> refStep = rs("bbs_step")
> refLevel = rs("bbs_level")
> bbs_num = rs("bbs_num")
> bbs_iname = rs("bbs_index")
> bbs_email = rs("bbs_email")
> bbs_name = rs("bbs_name")
> bbs_date = rs("bbs_date")
> bbs_time = rs("bbs_time")
> bbs_cnt = rs("bbs_cnt")
> bbs_subj = Replace(rs("bbs_subj"), "''", "'")
>
> if bbs_iname = "guest" then
> iname = ".."
> elseif bbs_iname = "mfree" then
> iname = ""
> elseif bbs_iname = "happy" then
> iname = "..1"
> elseif bbs_iname = "glgrim" then
> iname = "..2"
> elseif bbs_iname = "takw" then
> iname = "..3"
> elseif bbs_iname = "news" then
> iname = "..4"
> elseif bbs_iname = "yoon" then
> iname = "..5"
> elseif bbs_iname = "" then
> iname = " "
> end if
>
> if bbs_name = ".." and bbs_email = "..@..com" then
> bgcolor1 = "red"
> elseif bbs_name = "" and bbs_email = "" then
> bgcolor1 = "red"
> elseif bbs_name ="" and bbs_email = "" then
> bgcolor1 = "red"
> else
> bgcolor1 = "#0064D0"
> end if
>
> refMark = ""
> if refLevel > 0 then
> For i=1 To refLevel
> refMark = refMark + " "
> Next
> refMark = refMark
> else
> refMark = ""
> end if
>
> bbs_title = bbs_subj
>
> if Len(bbs_title) >= 22 then
> bbs_title = left(bbs_title, 15) & "..."
> end if
> %>
>
> <%
> i=1
> DO until rs.EOF Or i>rs.pagesize
> %>
>
>
>
> <% if refLevel <> 0 then %>
>
> <% else %>
> <%=bbs_num%>
> <% end if %>
> |
>
> <%=iname%>
> |
>
> <% if refLevel <> 0 then %>
> <%=refMark%>
> width="11" height="12">
> >&curRef=<%=refRef%>&curStep=<%=refStep%>&curLevel=<%=refLevel%
> >" onmouseover="window.status='<%=bbs_title%>'; return true"><%=
> bbs_title %>
> <% else %>
>
> &curRef=<%=refRef%>&curStep=<%
> =refStep%>&curLevel=<%=refLevel%>" onmouseover="window.status='<%
> =bbs_title%>'; return true"><%= bbs_title %>
> <% end if %>
> |
>
> <% if bbs_email = "" then %>
> <%=bbs_name%>
> <% else %>
> <%
> =bbs_name%>
> <% end if %>
> |
> <%=bbs_date%> |
> <%=bbs_cnt%> |
>
> <%
> rs.Movenext
> i = i + 1
> Loop
> else
> %>
>
> ÀúÀåµÈ ±ÛÀÌ
> ¾ø½À´Ï´Ù. |
>
> <% end if %>
> <%
> rs.Close
> db.Close
> Set rs = Nothing
> Set db = Nothing
> %>
>
>
>
>
>
>
>
> | | |