|
|
|
俵ÀÌ / 2001-05-15 / ¿ÀÈÄ 9:28:42 / 203.255.3.190
Á¶È¸¼ö : 136
|
[Áú¹®] ÀÌ·¸°Ô Ç߰ŵ翩...< |
> > > ´ÙÀ½°ú °°Àº ¹æ½ÄÀ¸·Î ¸ÞÀΠȸéÀ» ²Ù¸ì½À´Ï´Ù.¹°·Ð ´ÙÁß °Ô½ÃÆÇÀ̱¸¿ä...
> > > ±×·±µ¥ Á¦¸ñ ºÎºÐÀº Ãâ·ÂÀÌ µÇ°í Àִµ¥,³¯Â¥¿Í ÀÛ¼ºÀÚ°¡ Ãâ·ÂµÇÁö ¾Ê´Â±º¿ä.
> > > subject=DbRec1("subject")
> > > response.write "<br>"
> > > response.write " <a href=content.asp?tb=board2&code=010305&num="&num&"&ref="&ref&"&page="&page&"&startpage="&startpage&" onMouseOver=""window.status=('°Ô½Ã¹° Àбâ "&subject&"'); return true;"">"
> > >
> > > if len(subject) > 25 then
> > > subject=left(subject,26)&"..."
> > > response.write "<br>"
> > > response.write "</a>"
> > > 'Response.Write " "&wdate&" "&writer&" "
> > > end if
> > > '/***************** °Ô½Ã¹° °ü·Ã±Û(´äº¯±Û) *****************************************/
> > > ref=DbRec1("ref")
> > > Response.Write " "&wdate&" "&writer&" "
> > > response.write " <a href=content.asp?tb=board2&code=010305&num="&num&"&ref="&ref&"&page="&page&"&startpage="&startpage&" onMouseOver=""window.status=('°Ô½Ã¹° Àбâ "&subject&"'); return true;"">"
> > >
> > > Response.Write " "&subject&" "
> > > response.write "</a>"
> > > '/************* ³¯Â¥, ÀÛ¼ºÀÚ Ãâ·Â ***********************************/
> > > 'Response.Write " "&wdate&" "&writer&" "
> > > '/************* ÇöÀç ³¯Â¥ Ãâ·Â·çƾ ½ÃÀÛ Ú± **************************/
> > > '1¹ø° ¹æ¹ý
> > > 'if datediff("d",DbRec1("wdate"),now)=<5 then '
> > > ' response.write "--"
> > > 'end if
> > > 'µÎ¹ø° ¹æ¹ý
> > > 'if left(now,10) = left(wdate,10) then ' 1ÀÏ ´ÜÀ§·Î ¿Ã¶ó¿Â¿¡ New Ç¥½ÃÇÒ ¶§
> > > ' response.write timeserial(hour(wdate),minute(wdate),second(wdate))
> > > 'else
> > > ' response.write left(wdate,10)
> > > 'end if
> > > '¼¼¹ø° ¹æ¹ý
> > > 'if datediff("d",wdate,now)=<1 then ' <!--1ÀÏ ´ÜÀ§°¡ ¾Æ´Ï¶ó 24½Ã°£ ´ÜÀ§·Î ½Ã°£ º¯°æ-->
> > > ' response.write "<span style='font-size:9pt;color:red'><img src=images/cross.gif border=0 alt=ÃÖ±Ù 24½Ã°£ À̳» ¿Ã¶ó¿Â ±Û></span>"
> > > 'else
> > > ' response.write " "
> > > 'end if
> > >
> > > 'response.write " "
> > > '/****************** ³¯Â¥ Ãâ·Â ·çƾ ³¡ ************************/
> > > DbRec1.MoveNext
> > > next
> > > DbRec1.Close
> > > set DbRec1 = nothing
> > > %>
> > > ÇöÀç ¾Æ¹« ¿¡·¯µµ ¹ß»ýµÇÁö ¾Ê½À´Ï´Ù.
> > > ¿©·¯°¡Áö ¹æ¹ýÀ» »ç¿ëÇغ¸¾ÒÁö¸¸ ¸ðµÎ´Ù Ãâ·ÂÀÌ ¾ÈµÇ´Â±º¿ä.¾î¶² À߸øÀÌ ÀÖ´ÂÁö¿©
> > -----------------------------------------------------------
> >
> > wdate¿Í writer¿¡ ¾Æ¹«·± °ªÀÌ ¾ø´Â°Å ¾Æ´Ñ°¡¿ä?
> >
> > °ªÀ» ÁÖ´Â ¹®ÀåÀÌ ¾È º¸À̴µ¥¿ä...
> >
> -----------------------------------------------------------
> <!--#include file=dbopen.asp-->
> <html>
> <head>
> <title>°øÁö»çÇ× Ãâ·Â</title>
> <link rel=stylesheet href=style.css>
> </head>
> <body>
>
> <table width=300 cellpadding=0 cellspacing=0 border=1 bordercolor=white>
> <tr height=14>
>
> <td class=fontb bgcolor=white>
> <%
> '/*********¾Æ·¡¿Í °°ÀÌ Ã³¸®ÇÏ¿© Å×ÀÌºí °ªÀ» ã¾Æ¿Â´Ù.******************************/
> tb = ("board2")
> code = ("010305")
> 'tb=Request("tb") 'ÀÌ ¹öÀüÀº tb°¡ Å×ÀÌºí ¸íÀÌ´Ù
> 'code=Request("code") 'ÀÌ ¹öÀüÀº ÄÚµå´Â ´ÙÁß°Ô½ÃÆÇ ÄÚµå
> 'Å×ÀÌºí °ü·Ã±Û Ãâ·ÂÇϱâ À§ÇÑ ·ÎÁ÷ ½ÃÀÛ....^^
>
> if listok="1" and Session("boardcheck") <> ch_pass then '°Ô½Ã¹°º¸±â ±ÇÇѼ³Á¤Àû¿ë½Ã¿¡ ·Î±ä ÈÄ ¼¼¼Ç°ª°ú Æнº¿öµå °ª ºñ±³
> Response.Redirect "login.asp?tb="&tb&"&code="&code&"<ype=list"
> end if
>
>
> if Request.QueryString("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
>
> key=trim(request("key"))
> naya_s=request("naya_s")
> if naya_s="" or IsNull("naya_s") Then
> naya_s=0
> end if
> naya_heeya=request("naya_heeya")
> if naya_heeya="" or IsNull("naya_heeya") Then
> naya_heeya=0
> end if
> naya_korean=request("naya_korean")
> if naya_korean="" or IsNull("naya_korean") Then
> naya_korean=0
> end if
>
>
> if key="" or (naya_s=0 and naya_heeya=0 and naya_korean=0) then 'Å°¿öµå°¡ ¾ø°Å³ª ¾Æ¹«·± üũ°¡ µÇ¾î ÀÖÁö ¾ÊÀ»°æ¿ì¿¡
> sqlList="Select Count(num) as tn From "&tb&" Where codename='"&code&"' "
> Set rsList=DbCon.Execute(sqlList)
> tn=rsList(0)
> rsList.close
> set rsList=nothing
>
>
>
> listsql="SELECT top "&pgsize*page&" num,subject,writer,email,visited,wdate,ref,step,rec FROM "&tb&" Where codename='"&code&"' ORDER BY ref DESC, ansnum ASC"
> DbRec.Open listsql, DbCon
>
> if not DbRec.eof then '¸¸¾à ·¹Äڵ尡 1°³ ÀÌ»óÀ̸é
> nextpage = Cint(page)+1
> prevpage = Cint(page)-1
> n = tn - (page-1) * pgsize
> else
> tn=0
> pgcount=0
> end if
> else
> %>
>
> <%
> end if
> '/******************************* table °ªÀ» ºÒ·¯¿Â´Ù.(board2)****************************************
> Set DbRec1=Server.CreateObject("ADODB.RecordSet")
> 'DbRec1.Open "SELECT num,subject,ref,wdate FROM board1 WHERE step=0 ORDER BY wdate DESC", DbCon
> DbRec1.Open "SELECT num,subject,ref,wdate,writer FROM board2 WHERE step=0 ORDER BY wdate DESC", DbCon, 1
>
> if Request.QueryString("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
> '/**********Ãß°¡
>
>
> postcount=DbRec1.Recordcount
> if postcount > 10 then
> postcount=10 'ÆäÀÌÁö ¶óÀμö
> end if
>
> for j=1 to postcount
> 'number=DbRec1("num")
> num=DbRec1("num")
>
>
>
> '/**************************Subject (Á¦¸ñ Ãâ·Â) ½ÃÀÛ*****************************************/
>
> subject=DbRec1("subject")
> response.write "<br>"
> response.write " <a href=content.asp?tb=board2&code=010305&num="&num&"&ref="&ref&"&page="&page&"&startpage="&startpage&" onMouseOver=""window.status=('°Ô½Ã¹° Àбâ "&subject&"'); return true;"">"
>
> if len(subject) > 25 then
> subject=left(subject,26)&"..."
> response.write "<br>"
> response.write "</a>"
> 'Response.Write " "&wdate&" "&writer&" "
> end if
> '/***************** °Ô½Ã¹° °ü·Ã±Û(´äº¯±Û) *****************************************/
> ref=DbRec1("ref")
> Response.Write " "&wdate&" "&writer&" "
> response.write " <a href=content.asp?tb=board2&code=010305&num="&num&"&ref="&ref&"&page="&page&"&startpage="&startpage&" onMouseOver=""window.status=('°Ô½Ã¹° Àбâ "&subject&"'); return true;"">"
>
> Response.Write " "&subject&" "
> response.write "</a>"
> '/************* ³¯Â¥, ÀÛ¼ºÀÚ Ãâ·Â ***********************************/
> 'Response.Write " "&wdate&" "&writer&" "
> '/************* ÇöÀç ³¯Â¥ Ãâ·Â·çƾ ½ÃÀÛ Ú± **************************/
> '1¹ø° ¹æ¹ý
> 'if datediff("d",DbRec1("wdate"),now)=<5 then '
> ' response.write "--"
> 'end if
> 'µÎ¹ø° ¹æ¹ý
> 'if left(now,10) = left(wdate,10) then ' 1ÀÏ ´ÜÀ§·Î ¿Ã¶ó¿Â¿¡ New Ç¥½ÃÇÒ ¶§
> ' response.write timeserial(hour(wdate),minute(wdate),second(wdate))
> 'else
> ' response.write left(wdate,10)
> 'end if
> '¼¼¹ø° ¹æ¹ý
> 'if datediff("d",wdate,now)=<1 then ' <!--1ÀÏ ´ÜÀ§°¡ ¾Æ´Ï¶ó 24½Ã°£ ´ÜÀ§·Î ½Ã°£ º¯°æ-->
> ' response.write "<span style='font-size:9pt;color:red'><img src=images/cross.gif border=0 alt=ÃÖ±Ù 24½Ã°£ À̳» ¿Ã¶ó¿Â ±Û></span>"
> 'else
> ' response.write " "
> 'end if
>
> 'response.write " "
> '/****************** ³¯Â¥ Ãâ·Â ·çƾ ³¡ ************************/
> DbRec1.MoveNext
> next
> DbRec1.Close
> set DbRec1 = nothing
> %>
> <!--List Á¦¸ñ Ãâ·Â-->
> </td></tr>
> </table>
> </body>
> </html>
> ÀÌ·¸°Ô ¸ÞÀÎȸéÀ¸·Î °ªÀ» °¡Á®¿À´Âµ¥...Àß ¾ÈµÇ³×¿©
> Ãâ·ÂÀÌ µÇÁö ¾Ê¾Æ¼ ¿ì¼±Àº ÁÖ¼®À¸·Î 󸮸¦ Çسõ¾Ò½À´Ï´Ù.
-----------------------------------------------------------
´Ù½Ã ¸»¾¸µå¸®Áö¸¸
DbRec1("wdate")³ª DbRec1("writer")ÀÌ·± ¹®ÀåÀÌ Çϳª´Â ÀÖ¾î¾ß µÇÁö ¾ÊÀ»±î¿ä?
|
|
|
|