|
|
|
|
俵ÀÌ / 2001-03-26 / ¿ÀÈÄ 10:58:11 / 203.255.3.190
Á¶È¸¼ö : 154
|
[Áú¹®] Á¤¼ö´Ô&俵´Ô ÆäÀÌÁö ¼øÂ÷¹øÈ£¸Þ±â±â ¼Ò½ºÀε¥ |
> ÆäÀÌÁö ¼øÂ÷ÀûÀ¸·Î ¸Þ±â±âÀä
> ùÆäÀÌÁö ¼øÂ÷ÇÏ°í µÎ¹ø° ÆäÀÌÁö ¼øÂ÷ÇÏ°í
> ¶È°°¾Æ¿ä ¤Ñ¤Ñ;
> ùÆäÀÌÁö 4,3,2,1
> µÎ¹ø° ÆäÀÌÁö 4,3,2,1
> ÀÌ·¸°Ô¿ä ¸®½ºÆ® ¼Ò½º´Â ¾Æ·¡¿Í °°½À´Ï´Ù.
> <======================>
> <%
> if request("page")="" then
> page=1
> count = coot
> else
> page = Request("page")
>
> end if
>
> Dim PageSize
> <===========DB¿¬°áºÎºÐ==========>
> rs.PageSize = 2
> rs.Open SQL,db,1
>
> count = rs.recordcount
>
>
>
> %>
> <html>
> <head>
> <title>°Ô½ÃÆÇ</title>
> <link rel="stylesheet" href="style1.css">
> </head>
> <body bgcolor="#FFFFFF">
> <% if rs.BOF or rs.EOF then %>
> <!--µ¥ÀÌÅÍ°¡ ¾øÀ»¶§ 󸮺κÐ-->
> <!-- µ¥ÀÌÅÍ°¡ ÀÖÀ»¶§ 󸮺κР-->
> <%
> else
> 'ÆäÀÌÁö
> totalpage = rs.pagecount
> rs.absolutepage = page
> %>
> <div align="center"><center>
> <p align="center"><font color="#004080"><strong><big>ä³ÎÅõÀ¯°Ô½ÃÆÇ</big></strong></font><br>
> </p>
> </center>
> </div>
> <div align="center">
> <center>
> <table border="0" cellspacing="0" width="660">
> <tr border=1>
> <td colspan="6" align="left" height="10"><font face="µ¸¿ò" size="2" color="#000000"><a href="Write.htm">WEITE</a></font> </td>
> <td align="left" height="10" width="11%"><a href="admin.asp"><font size="1">ADMIN</font></a></td>
> </tr>
> <tr border=1>
> <td width="10%" align="center" height="20" bgcolor="#CCCCCC">¹øÈ£</td>
> <td width="5%" align="center" height="20" bgcolor="#999999">¼±ÅÃ</td>
> <td width="5%" align="center" height="20" bgcolor="#B6B6B6"><img src="images/disk.gif" width="11" height="11"></td>
> <td width="36%" align="center" height="20" bgcolor="#CCCCCC">Á¦ ¸ñ</td>
> <td width="18%" align="center" height="20" bgcolor="#CCCCCC">±Û¾´ÀÌ</td>
> <td width="18%" align="center" height="20" bgcolor="#CCCCCC">³¯Â¥</td>
> <td width="8%" align="center" height="20" bgcolor="#CCCCCC">Á¶È¸¼ö</td>
> </tr>
> <tr height="1">
> <td colspan="7" bgcolor="#666666"></td>
> </tr>
> <%
> i = 1
>
> Do until rs.EOF or i > rs.PageSize
> %>
> <tr onMouseOver="this.style.background = 'F1F1EE';" onMouseOut="this.style.background='ffffff';">
> <td width="10%" align="center" height="20"><%=count%></td>
> <td width="5%" align="center" height="20" bgcolor="#F8E6C2">
> <input type="checkbox" name="del" value = "5">
> </td>
> <td align="center" height="20" width="5%" bgcolor="#F8E6C2"><img src="images/disk.gif" width="11" height="11"></td>
> <td align="center" height="20" width="29%"><a href="content.asp?idx=<%=rs("board_idx")%>"><%=rs("title")%></a></td>
> <td width="20%" align="center" height="20"><a href="mailto:<%=rs("email")%>"><%=rs("name")%></a></td>
> <td width="20%" align="center" height="20"><%=left(rs("writeday"),10)%></td>
> <td width="11%" align="center" height="20"><%=rs("readnum")%></td>
> </tr>
> <%
> count = count - 1
> ct = ct - 1
> rs.MoveNext
> i=i+1
>
> loop
>
> %>
> </table>
> </center></div>
> <center>
> <table border="0" cellspacing="0" width="660">
> <tr height="1">
> <td colspan="5" bgcolor="#CCCCCC"></td>
> </tr></table>
> <br>
> </center>
> <center>
>
> <% if page <> 1 then%>
> <<a href="list.asp?page=<%=page-1%>">ÀÌÀüÆäÀÌÁö</a> >
> <% else %>
> <font color="#999999"><ÀÌÀüÆäÀÌÁö></font>
> <% end if %>
> <%=page%> / <%=totalpage%>
> <% if Cint(page) <> Cint(totalpage) then%>
> < <a href="list.asp?page=<%=page+1%>">´ÙÀ½ÆäÀÌÁö</a> >
> <% else %>
> <font color="#999999"><´ÙÀ½ÆäÀÌÁö></font>
> <% end if %>
>
> </center>
>
> <div align="center"><center>
> <form method="POST" action="search_result.asp">
> <table border="0" cellspacing="0" width="500">
> <tr>
>
> <td>
> <div align="center">
> <p><font color="#666666" face="Century Gothic">Search</font><font color="#004080" face="Century Gothic">
> </font>
> <select name="search" size="1" style="font-family: µ¸¿òü">
> <option value="title">±ÛÁ¦¸ñ</option>
> <option value="name">±Û¾´ÀÌ</option>
> <option value="content">±Û³»¿ë</option>
> </select>
> <input type="text" name="SearchString" size="20" style="border: 1px dashed"><input type="submit" value=" °Ë »ö " name="btn" style="background-color: rgb(238,238,238); color: rgb(0,47,94); font-weight: bolder"> <center></td>
> </tr>
>
> </table></form>
> </center></div>
>
> <% end if%>
> </body>
> </html>
> <%
> rs.Close
> db.Close
> Set rs = Nothing
> Set db = Nothing
> %>
-----------------------------------------------------------
count = rs.recordcount
ÀÌ ºÎºÐÀÌ ÃÑ°³¼ö¸¦ ±¸ÇÏ´Â°Í °°Àºµ¥¿ä...
ÀÌ °ªÀº 1ÆäÀÌÁö´ø 2ÆäÀÌÁö´ø °ªÀÌ º¯ÇÏÁú ¾ÊÀ»Å×´Ï
´ç¿¬È÷ ÆäÀÌÁö¸¦ ³Ñ±â´õ¶óµµ.... °ªÀÌ º¯ÇÏÁö ¾Ê°ÚÁö¿ä...
¾Õ¿¡ Á¤¼ö´ÔÀÌ ¿ÏÀüÇÑ ÇØ°áÃ¥°ú ¾Ë°í¸®ÁòÀÌ ´ã±ä ¼Ò½º¸¦
¼Ò°³Çß´ø°É·Î ±â¾ïÇϴµ¥¿ä....
Âü°íÇϼ¼¿ä...
|
|
|
|