|
|
|
|
¹°¸¸º¸ / 2001-02-20 / ¿ÀÀü 11:48:20 / 210.90.89.3
Á¶È¸¼ö : 123
|
[Áú¹®] ¾îÄÉ¿©, ±ÞÇÑ Áú¹®ÀÓ´Ù. ¿äÁò ¹Ù´Ú¿¡ ÇصùÇÏ´Â ±âºÐÀÓ´Ù. |
> > ¾È³çÇϼ¼¿©? ¿äÁò ¸ÅÀÏ µé¸£°Ô µÇ³×¿©.
> > Á¦°¡¿© ¸ÞÀÎȸ鿡¼ °Ë»öâÀ» ´Þ¾Ò°Åµ¢¿©.
> > ±×´Ï±î ´Ü¾î¸¦ Ä¡¸é ±× ´Ü¾î°¡ µé¾î°¡´Â
> > µµ¼¸íÀ» ÀüºÎ Ãâ·ÂÇØ ³»´Â °ÍÀÔ´Ï´Ù.
> > °Ô½ÃÆÇÀ» ÀÀ¿ëÇؼ¸® Çغôµ¥ ¾ÈµÅ³×¿©.
> > ¿ì¼ Æû¹®¼¿¡¼ ¹öÆ°À¸·Î ÀÚ¹Ù½ºÅ©¸³Æ®
> > ó¸® Çؼ¸® ½ºÅ©¸³Æ®¿¡¼ ¾×¼Çó¸®Ç߰ŵ¢¿©.
> >
> > <input type=button name="sub_gum" value=°Ë»ö
> > On-Click="ser();" style="color:rgb(16,52,72); background-color:rgb(255,255,204);">
> > ½ºÅ°¸³Æ®ºÎºÐ
> > function ser()
> > {
> > document.form1.action = "ser.asp"
> > document.form1.submit()
> > }
> > actionºÎºÐÀº
> > <form name=form1 method=post target=main>
> > ÀÌ·¸ÄÉ ÇßÀ¾´ç.
> > ±Û±¸ ó¸®ÇÏ´Â ser.asp¼Ò½º´Â ´ÙÀ½°ú °°À½´Ù.
> >
> > <%
> > mok=request("mok")
> > gum=request("gum")
> > set db=server.CreateObject("adodb.connection")
> > db.Open("dsn=interbook;uid=inter;pwd=0011;")
> >
> >
> > if request("page")="" then
> > page=1
> > else
> > page = request("page")
> > end if
> >
> > if mok="name" then
> > sql="select * from book where book.book_name like '%"&gum&"%'"
> > sql=sql&"order by num desc"
> >
> > elseif mok="author" then
> > sql="select * from book where book.book_author like '%"&gum&"%'"
> > sql=sql&"order by num desc"
> >
> > elseif mok="company" then
> > sql="select * from book where book.book_company like '%"&gum&"%'"
> > sql=sql&"order by num desc"
> > end if
> > sql="select book_isbn from book where book_isbn='"&book_isbn&"'"
> > sql="select book_price from book where book_price='"&book_price&"'"
> >
> > set rs=Server.CreateObject("adodb.Recordset")
> > rs.PageSize=20
> > rs.Open sql,db,1
> > %>
> >
> > <html>
> > <head>
> > <title>µµ¼°Ë»ö</title>
> > <base target=main>
> > </head>
> > <body>
> > <% if rs.BOF or rs.EOF then %>
> > <table border=0 style="position:absolute; left:200px; z-index:1;">
> > <tr><td><br><br><br><br> <center>
> > <%=gum%><b>·Î °Ë»öÀ» ¼öÇàÇÏ¿´Áö¸¸<br>
> > <br>
> > °Ë»ö°á°ú°¡ ¾øÀ¾´Ï´Ù.<br>
> > <br>
> > ´Ù½Ã °Ë»öÇÏ¿© ÁֽʽÿÀ.</b><br>
> > <br>
> > <a href="main.asp">óÀ½À¸·Î µ¹¾Æ°¡±â</a></center></td></tr></table>
> >
> > <%
> > else
> > rs.MoveLast
> > recordcnt=rs.RecordCount
> > rs.MoveFirst
> > %>
> >
> > <table border=0>
> > <tr><td align=center>
> > <%=gum%>À¸·Î °Ë»öÇÑ °á°ú <%=recordcnt%>°³ÀÇ µ¥ÀÌÅ͸¦ ã¾ÒÀ¾´Ï´Ù.
> > <hr width=630 align="left" color="#103448"></td></tr></table><br>
> >
> > <table border=0 cellspacing=2 width="635">
> > <tr>
> >
> > <td bgcolor="#103448" width="195">
> > <p align="center"><b>Á¦ ¸ñ</b></td>
> > <td bgcolor="#103448" width="82">
> > <p align="center"><b>ÃâÆÇ»ç</b></td>
> > <td bgcolor="#103448" width="98">
> > <p align="center"><b>Àú ÀÚ</b></td>
> > <td bgcolor="#103448" width="98">
> > <p align="center"><b>Á¤ °¡</b></td>
> > <td bgcolor="#103448" width="93">
> > <p align="center"><b>ISBN</b></td></tr>
> >
> > <%
> > if rs.EOF or rs.BOF then
> >
> > else
> > totalpage = rs.PageCount
> >
> >
> > rs.AbsolutePage = page
> > i=1
> > Do until rs.EOF or i>rs.PageSize
> > %>
> >
> > <tr>
> >
> > <td width="195">
> > <a href="../book/show_book.asp?isbn=<%=rs("book_isbn")%>"><%=rs("book_name")%></a></td>
> > <td width="82">
> > <%=rs("book_company")%></td>
> > <td width="98">
> > <%=rs("book_author")%></td>
> > <td width="98">
> > <%=rs("book_price")%></td>
> > <td width="93">
> > <%=rs("book_isbn")%></td></tr>
> >
> >
> > <%
> > rs.MoveNext
> > i=i+1
> > loop
> > %> <% end if %>
> >
> >
> > </table>
> > <% end if %>
> > <%if page <> 1 then %>
> >
> >
> >
> > <a href="ser.asp?page=1&mok=<%=mok%>"></a>
> > <a href="ser.asp?page=<%=page-1%>&mok=<%=mok%>">
> >
> > </a> <%end if%>
> > <%
> > if totalpage <= 20 then
> > temp_page = totalpage
> > imsi_page = 0
> > else
> > if page <= 20 then
> > temp_page = 20
> > imsi_page = 0
> > else
> > if cint(page / 20) <> cint(totalpage/20) then
> > temp_page = 10
> > else
> > temp_page = cint(totalpage mod 20)
> > end if
> > imsi_page = cint(page / 20 )
> >
> > end if
> > end if
> > %> <% for i=1+imsi_page*20 to 20*imsi_page + temp_page %>
> > [<a href="ser.asp?page=<%=i%>&mok=<%=mok%>"><b><%=i%></b></a>]
> > <%next%>
> > <%if cint(page) <> cint(totalpage) then %>
> > <a href="ser.asp?page=<%=page+1%>&mok=<%=mok%>">
> >
> > </a>
> > <a href="ser.asp?page=<%=totalpage%>&mok=<%=mok%>">
> >
> > </a> <% end if %>
> > </body>
> > </html>
> > ÀÌÄÉ Çߴµ¥ ÀÚ²Ù ¾ø´Â ¹®¼¸¦ ã´Â´Ù³×¿©,
> > ºÐ¸í ÀÖ´Â ¹®¼Àε¥....
> > ´äº¯Á» ºÎŹµå·Áµµ µÉ±î¿©?
> > ¹Ù»Ú½ÇÅÙµ¥ Á¦¼Ò½º±îÁö ¿Ã·Á¼ ¡¸»
> > Á˼ÛÇØ¿©. ±Ùµ¥¿©, ¾Æ¹«¸® ºÁµµ ¸ô°Ú¾î¿°.
> > Áö´ë·Î ¹Þ¾Æ¼ ¿¬°áÀ» ÇØÁØ°Í °°Àºµ¥....
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> -----------------------------------------------------------
>
> On-Click="ser();" ÀÌ ¾Æ´Ï°í OnClick="ser();" ¾Æ´Ò±î¿ä?
>
>
-----------------------------------------------------------
걈»þÇÕ´Ï´Ù.
±× ºÎºÐÀº ¼öÁ¤µÇ¾ú±¸¿©, ±×·¡µÎ Àß ¾ÈµÇ¼
Á¦°¡ º¸±â¿¡µµ ÀÌÇØ°¡ ¾È°¥ Á¤µµ·Î
º¹ÀâÇÏ°Ô ÄÚµùÇß´õ´Ï Á¦´ë·Î µÇ¿©. ±â»Þ´Ï´Ù.
³ªÁß¿¡ ¾ÈµÇ¸é ¾îÄÉ¿©(=^^= ±×·¡µÎ ÇÒ¼ö ¾öÁö¸Ó)
±×·³ ºüÀ̺üÀÌ
|
|
|
|