home *** CD-ROM | disk | FTP | other *** search
/ 221.214.14.186 / 221.214.14.186.tar / 221.214.14.186 / zb / Notepad-zb / show.asp < prev    next >
Text File  |  2005-12-26  |  15KB  |  476 lines

  1. <!--#include file="conn.asp"-->
  2. <!--#include file=const.asp -->
  3. <!--#include file="ubb.asp"-->
  4. <!--#include file="userInfo.inc"-->
  5. <!--#include file="chkPage.inc"-->
  6. <%
  7. dim xxid, exec, rs,  title, isPrivate, isLock
  8. dim page,recordcount,pagecount
  9. dim maxid, minid
  10. xxid=replace(trim(request("id")),"'","")
  11. if xxid="" or not isnumeric(xxid) then
  12.     session("error")="╖╟╖¿╖├╬╩úí"
  13.     connclose()
  14.     response.redirect "error.asp"
  15. end if
  16.  
  17. set rs=server.createobject("adodb.recordset")
  18.  
  19. '┴⌠╤╘▒╛╖╜╩╜▓Θ┐┤
  20. rcperpage=rcperpage1
  21.  
  22. exec="select * from ly where id="&xxid
  23. rs.open exec,conn,1,1
  24. isPrivate=rs("isPrivate")
  25. isLock=rs("isLock")
  26. recordcount=rs("hf")
  27.  
  28. '╟─╟─╗░╡─╧╘╩╛╧▐╓╞
  29. if isPrivate then
  30.     if (not theUser.reged) or (not theUser.master and theUser.name<>rs("name") ) then
  31.         session("error")="─·╬▐╚¿▓Θ┐┤┤╦┴⌠╤╘úí"
  32.         rsclose()
  33.         connclose()
  34.         response.redirect "error.asp"
  35.     end if
  36. end if
  37.  
  38. exec="update ly set yd=yd+1 where id="&xxid
  39. conn.execute(exec)
  40.  
  41. title=rs("title")
  42.  
  43. page=encodestr(Request.querystring("page"))
  44.  
  45. pageCount=getPageCount(pageCount,recordcount,rcPerPage)
  46.  
  47. page=getPage(page,pageCount)
  48. %>
  49. <html>
  50.  
  51. <head>
  52. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  53. <META name="Author" content="─╛─±">
  54. <title><%=sitetitle%></title>
  55. <link rel="stylesheet" href="style/<%=skin%>.css" type="text/css">
  56. <meta name="keywords" content="┴⌠╤╘▒╛,asp">
  57. <script>var subN=0 ; function submitOnce(){if(subN==0){subN=1;return true;}else{return false} }</script>
  58. </head>
  59.  
  60. <body onkeydown="if(event.keyCode==13 && event.ctrlKey) if(submitOnce())document.form1.submit()">
  61. <!--#include file="head.asp"-->
  62. <form name="admin" method="post" action="admin_post_do.asp" style="margin:0px">
  63.  
  64.  
  65. <%
  66. '╧╘╩╛╕·╠√
  67. if page=1 then
  68. %>
  69. <br>
  70. <table style="table-layout:fixed" border="0" width="650" cellspacing="0" cellpadding="3" align="center" class="table004">
  71.  <tr class=table003>
  72.  <td>
  73.      <table width=100% cellspacing=0 cellpadding=2 border=0 style="table-layout:fixed;word-break:break-all">
  74.      <tr>
  75.       <td width="25">
  76.         <%
  77.         if isLock then
  78.             response.write "<img border=0 src=images/islock.gif alt=╦°╢¿>"
  79.         elseif rs("jh")=1 then
  80.             response.write "<img border=0 src=images/jh.gif alt=╛½╗¬>"
  81.         else
  82.             response.write "<img src=images/nofollow.gif align=absmiddle >"
  83.         end if
  84.         %>
  85.       </td>
  86.       <td width="*" class="jnfont5">
  87.           <img align=absmiddle border="0" src="images/<%=rs("pic")%>">
  88.           <%
  89.           response.write funKillword(rs("title"))
  90.           if not showFace then
  91.               userNameNoFace rs("name"),rs("bl"),isMaster(rs("name"))
  92.           end if
  93.           %>
  94.       </td>
  95.       <td width="200" align=right>
  96.         <img align=absmiddle src=images/reply.gif><a href="#re">╗╪╕┤</a>
  97.         <%
  98.         userEmail(rs("email"))
  99.         userIcq(rs("icq"))
  100.         userMsn(rs("msn"))
  101.         userQQ(rs("qq"))
  102.         userUrl(rs("url"))
  103.         %> 
  104.     </td></tr>
  105.     </table>
  106.   </td>
  107.  </tr>
  108.  <tr align="center">
  109.   <td class="table001">
  110.        <table border="0" width="100%" cellspacing="0" cellpadding="2" style="table-layout:fixed;word-break:break-all">
  111.         <tr valign=top>
  112.         <%
  113.         if showFace then
  114.             userNameFace rs("name"),rs("face"),rs("male"),rs("bl"),isMaster(rs("name"))
  115.         end if
  116.         %>
  117.         <td width="*" class="jnfont3" style="letter-spacing:1px; line-height:140%">
  118.         <%=ubbcode(rs("nei"))%>
  119.          </td>
  120.         </tr>
  121.     </table>
  122.  
  123.     <table width=100% >
  124.         <tr>
  125.          <td width="45%" class="jnfont6"><img src="images/back.gif" width="17" height="17" align="absmiddle">
  126.           <a href="index.asp">╖╡╗╪┴╨▒φ</a></td>
  127.          <td width="37%" align="right" class="jnfont6">[ ╖ó▒φ╩▒╝Σú║<%=rs("t")%> ]
  128.          </td>
  129.          <td width="18%" align="right">
  130.         <% if theUser.reged then %>
  131.         <a href="edit.asp?id=<%=rs("id")%>"><img src="images/edit.gif" width="13" height="15" border="0" alt="▒α╝¡"></a>
  132.         <% else %>
  133.         <img src="images/edit-gray.gif" width="13" height="15" border="0" alt="▒α╝¡">
  134.         <% end if
  135.         if theUser.master then %>
  136.         <a href="admin_post.asp?id=<%=rs("id")%>"><img border="0" src="images/gl.gif" width="16" height="16" alt="╣▄└φ"></a>
  137.             <% userIp rs("ip"),rs("comefrom") %>
  138.         <% else %>
  139.         <img border="0" src="images/gl-gray.gif" width="16" height="16" alt="╣▄└φ">
  140.         <img src=images/ip.gif align=absmiddle alt="ú╔ú╨:íε▒ú├▄íε └┤╘┤:íε▒ú├▄íε">
  141.         <% end if %>
  142.         <a href="#"><img src="images/gotop.gif" width="15" height="15" border="0" alt="╖╡╔╧"></a>
  143.          </td>
  144.         </tr>
  145.        </table>
  146.   </td>
  147.  </tr>
  148. </table>
  149.  
  150. <%
  151. end if
  152. rs.close
  153.  
  154. '╧╘╩╛╕·╠√
  155. exec="select id from ly where rt="& xxid &" order by id"
  156. rs.open exec,conn,1,1
  157. if rs.eof then
  158.     rs.close
  159.     exec="select * from ly where id=0"
  160. elseif page=1 then
  161.     rs.move rcPerpage-1
  162.     if rs.eof then rs.moveprevious
  163.     maxid=rs(0)
  164.     rs.close
  165.     exec="select * from ly where rt="& xxid &" and id<="& maxid &" order by id"
  166. else
  167.     rs.pagesize=rcPerpage
  168.     rs.absolutepage=page
  169.     minid=rs(0)
  170.     rs.move rcPerpage-1
  171.     if rs.eof then rs.moveprevious
  172.     maxid=rs(0)
  173.     rs.close
  174.     exec="select * from ly where rt="& xxid &" and id<="& maxid &" and id>="& minid &" order by id"
  175. end if
  176. %>
  177.  
  178. <!--#include file="list6.asp"-->
  179.  
  180. <%
  181. response.write pagelist()
  182.  
  183. if theUser.master then %>
  184. <table width=650 align=center border=0 cellpadding=2 cellspacing=0><tr align=right><td>
  185.     <a href=### onclick=checkAll()>╚½╤í</a> <a href=### onclick=checkNone() >╚½▓╗╤í</a> <a href=### onclick=checkRev() >╖┤╤í</a>
  186.     <select name=act class=input2><option value=del>╔╛│²</option><option value=best>╛½╗¬</option> <input type=submit value="╚╖╢¿" class=input2> 
  187. </td></tr></table>
  188. <% end if %>
  189. </form>
  190.  
  191. <% '╗╪╕┤ú¼╓╗╙╨░µ╓≈─▄╗╪╕┤╗≥╢╝┐╔╥╘╗╪╕┤
  192. if theUser.master or (not masterRe and not IsLock) then %>
  193. <br>
  194.  
  195. <table border="0" width="650" cellspacing="0" cellpadding="3"  align="center" class="table004">
  196.  <tr>
  197.   <td class="table003" align="center"> ú║ú║ú║ ─· ┐╔ ╥╘ ╘┌ ┤╦ ╓▒ ╜╙ ╗╪ ╕┤ ╡▒ ╟░ ╓≈ ╠Γ ú║ú║ú║ </td>
  198.  </tr>
  199. </table>
  200.  
  201. <a name="re"></a>
  202. <table border="0" width="650" cellspacing="0" cellpadding="2" align="center" class="table004">
  203.  <form method="POST" action="rpost_do.asp" name="form1" onsubmit="return submitOnce()">
  204.   <tr>
  205.    <td width="19%" align="center" class="table001">╖ó ╤╘ ▒Ω ╠Γú║</td>
  206.    <td width="81%" class="table001">
  207.     <input type="text" name="title" size="40" value="Re:<%=title%>" class="input1" maxlength=40>
  208.     <font color="#FF0000">*</font>ú¿▒Ω╠Γ╧▐╓╞ <b>40</b> ╕÷╫╓╖√╥╘─┌ú⌐</td>
  209.   </tr>
  210.  
  211. <% if not theUser.reged then %>
  212.     <tr>
  213.     <td width="19%" align="center" class="table001">╖ó  ▒φ  ╚╦ú║</td>
  214.     <td width="81%" class="table001">
  215.     <input type="text" name="name" size="20" class="input1" maxlength=20 value="<%=theUser.name%>" >
  216.     <font color="#FF0000">*</font>ú¿├√╫╓╧▐╓╞ <b>10</b> ╕÷╫╓╖√╥╘─┌ú⌐</td>
  217.     </tr>
  218.     <tr>
  219.     <td width="19%" align="center" class="table001">
  220.     <% if mustReg then
  221.         response.write "├▄íííííí┬δú║"
  222.     else
  223.         response.write " ├▄ ┬δ(┐╔╤í)ú║"
  224.     end if %>
  225.     </td>
  226.     <td width="81%" class="table001">
  227.     <input type="password" name="pass" size="15" class="input1" maxlength=10 value="" >
  228.        <% if mustReg then
  229.            response.write "<font color=#FF0000>*</font>ú¿╡┌╥╗┤╬┴⌠╤╘╫╘╢»╫ó▓ßú⌐"
  230.        else
  231.            response.write "ú¿╠ε╨┤├▄┬δ│╔╬¬▒ú┴⌠╙├╗ºú¼├√╫╓╜½▒╗▒ú╗ñú⌐"
  232.        end if %>
  233.     </td>
  234.     </tr>
  235.      <tr class="table001">
  236.       <td width="19%" align="center">╨╘íííííí▒≡ú║</td>
  237.       <td width="81%">
  238.        <input type="radio" name="male" value="1" checked>─╨
  239.        <input type="radio" name="male" value="0" >┼«
  240.      ú¿╥╤╫ó▓ß╙├╗º▓╗╙├╠εú⌐
  241.       </td>
  242.      </tr>
  243.      <tr class="table001">
  244.       <td width="19%" align="center">═╖íííííí╧±ú║</td>
  245.       <td width="81%">
  246.        <input type="hidden" name="face" value="face/m01.gif">
  247.        <a href=### onclick=window.open("face.asp","face","width=400,height=400,resizable=1,scrollbars=1") title=╡π╗≈╤í╘±═╖╧±>
  248.        <img src="face/m01.gif" border=0 id="faceImg"></a>
  249.         ú¿╥╤╫ó▓ß╙├╗º▓╗╙├╤íú⌐
  250.       </td>
  251.      </tr>
  252.     <tr>
  253.     <td width="19%" align="center" class="table001">╡τ ╫╙ ╙╩ ╝■ú║</td>
  254.     <td width="81%" class="table001">
  255.     <input type="text" name="email" size="20" class="input1" value="" maxlength=30 >
  256.     </td>
  257.     </tr>
  258.     <tr class="table001">
  259.     <td width="19%" align="center">ííííQ Qííííú║</td>
  260.     <td width="81%">
  261.     <input type="text" name="qq" size="10" class="input1" maxlength=10 value="">
  262.     ICQ <input type="text" name="icq" size="10" class="input1" maxlength=10 value="">
  263.     MSN <input type="text" name="msn" size="10" class="input1" maxlength=100 value="">
  264.     </td>
  265.     </tr>
  266.     <tr>
  267.     <td width="19%" align="center" class="table001">╓≈ ╥│ ╡╪ ╓╖ú║</td>
  268.     <td width="81%" class="table001">
  269.     <input type="text" name="url" size="30" value="http://" class="input1" maxlength=50>
  270.     </td>
  271.     </tr>
  272. <% end if %>
  273.   <tr>
  274.    <td width="19%" align="center" class="table001">╤í ╘± ▒φ ╟Θú║</td>
  275.    <td width="81%" class="table001">
  276.     <table border="0" width="85%" cellspacing="1" cellpadding="0">
  277.      <tr>
  278.       <td align="center">
  279.        <input type="radio" value="p1.gif" name="pic" checked>
  280.       </td>
  281.       <td><img border="0" src="images/p1.gif"></td>
  282.       <td align="center">
  283.        <input type="radio" value="p2.gif" name="pic">
  284.       </td>
  285.       <td><img border="0" src="images/p2.gif"></td>
  286.       <td align="center">
  287.        <input type="radio" value="p3.gif" name="pic">
  288.       </td>
  289.       <td><img border="0" src="images/p3.gif"></td>
  290.       <td align="center">
  291.        <input type="radio" value="p4.gif" name="pic">
  292.       </td>
  293.       <td><img border="0" src="images/p4.gif"></td>
  294.       <td>
  295.        <input type="radio" value="p5.gif" name="pic">
  296.       </td>
  297.       <td><img border="0" src="images/p5.gif"></td>
  298.       <td>
  299.        <input type="radio" value="p6.gif" name="pic">
  300.       </td>
  301.       <td><img border="0" src="images/p6.gif"></td>
  302.       <td>
  303.        <input type="radio" value="p7.gif" name="pic">
  304.       </td>
  305.       <td><img border="0" src="images/p7.gif"></td>
  306.       <td>
  307.        <input type="radio" value="p8.gif" name="pic">
  308.       </td>
  309.       <td><img border="0" src="images/p8.gif"></td>
  310.       <td>
  311.        <input type="radio" value="p9.gif" name="pic">
  312.       </td>
  313.       <td><img border="0" src="images/p9.gif" width="15" height="15"></td>
  314.      </tr>
  315.      <tr>
  316.       <td align="center">
  317.        <input type="radio" value="p10.gif" name="pic">
  318.       </td>
  319.       <td><img border="0" src="images/p10.gif" width="15" height="22"></td>
  320.       <td align="center">
  321.        <input type="radio" value="p11.gif" name="pic">
  322.       </td>
  323.       <td><img border="0" src="images/p11.gif" width="15" height="15"></td>
  324.       <td align="center">
  325.        <input type="radio" value="p12.gif" name="pic">
  326.       </td>
  327.       <td><img border="0" src="images/p12.gif" width="15" height="15"></td>
  328.       <td align="center">
  329.        <input type="radio" value="p13.gif" name="pic">
  330.       </td>
  331.       <td><img border="0" src="images/p13.gif" width="15" height="15"></td>
  332.       <td>
  333.        <input type="radio" value="p14.gif" name="pic">
  334.       </td>
  335.       <td><img border="0" src="images/p14.gif" width="15" height="15"></td>
  336.       <td>
  337.        <input type="radio" value="p15.gif" name="pic">
  338.       </td>
  339.       <td><img border="0" src="images/p15.gif" width="15" height="15"></td>
  340.       <td>
  341.        <input type="radio" value="p16.gif" name="pic">
  342.       </td>
  343.       <td><img border="0" src="images/p16.gif" width="15" height="15"></td>
  344.       <td>
  345.        <input type="radio" value="p17.gif" name="pic">
  346.       </td>
  347.       <td><img border="0" src="images/p17.gif" width="15" height="15"></td>
  348.       <td>
  349.        <input type="radio" value="p18.gif" name="pic">
  350.       </td>
  351.       <td><img border="0" src="images/p18.gif" width="15" height="15"></td>
  352.      </tr>
  353.     </table>
  354.    </td>
  355.   </tr>
  356.      <tr class="table001">
  357.       <td width="19%" align="center">
  358.     Ubb▒Ω╟⌐ú║
  359.       </td>
  360.       <td width="81%" valign="top">
  361. <script src=code.js></script>
  362. <div id="ubbDiv"></div>
  363. <IFRAME NAME="ubbFrame" width=0 height=0 marginwidth=0 marginheight=0 frameborder=0 scrolling=no SRC="ubb.htm" ></IFRAME>
  364.       </td>
  365.      </tr>
  366. <% if imgUbb then %>
  367.     <tr class="table001">
  368.       <td width="19%" align="center">
  369.     Q ╠√═╝ú║
  370.       </td>
  371.       <td width="81%" valign="top">
  372. <a href=### onclick=window.open("Qpic.asp?num=20&path=qpic/1","q","width=400,height=400,resizable=1")>Q╠√═╝╥╗</a>
  373. íí<a href=### onclick=window.open("Qpic.asp?num=30&path=qpic/2","q","width=400,height=400,resizable=1")>Q╠√═╝╢■</a>
  374. íí<a href=### onclick=window.open("Qpic.asp?num=19&path=qpic/3","q","width=400,height=400,resizable=1")>Q╠√═╝╚²</a>
  375.       </td>
  376.      </tr>
  377. <% end if %>
  378.   <tr>
  379.    <td width="19%" align="center" class="table001">
  380.     <p style="line-height: 140%">┴⌠<br>
  381.      ╤╘<br>
  382.      ─┌<br>
  383.      ╚▌
  384.    </td>
  385.    <td width="81%" valign="top" class="table001">
  386.     <textarea rows="6" name="nei" cols="70" class="input1" value="" ></textarea>
  387.    </td>
  388.   </tr>
  389.   <tr>
  390.    <td colspan="2" class="table001" align=center>
  391.            
  392.     <input type="hidden" name="rtid" value="<%=xxid%>">
  393.     <input type="hidden" name="isprivate" value="<%if isPrivate then response.write "1" %>">
  394.      <input type="submit" value="╠ß╜╗" name="B1" class="input1" >
  395.         
  396.      <input type="reset" value="╟σ│²" name="B2" class="input1" >
  397.      (Ctrl+Enter╠ß╜╗)
  398.    </td>
  399.   </tr>
  400.  </form>
  401. </table>
  402.  
  403. <% end if
  404.  
  405.  
  406. function pageList()
  407.     dim p
  408.     if page<1 then
  409.         page=1
  410.     end if
  411.     if pagecount<1 then
  412.         pagecount=1
  413.     end if
  414.  
  415.     pageList=pageList & "<table border=0 width=650 cellspacing=0 cellpadding=3 align=center><tr>"
  416.     pageList=pageList & "<td width=200 style='letter-spacing: 1'>╣▓╙╨╗╪╕┤ <font color=#FF0000>"& RecordCount &"</font> ╕÷ú¼╣▓ <font color=#FF0000>"& pageCount &"</font> ╥│ </td>"
  417.     pageList=pageList & "<td width=100 style='letter-spacing: 1' align=center>"
  418.     if page=1 then
  419.         pageList=pageList & " <img border=0 src=images/pt.gif alt=┴⌠╤╘╩╫╥│ align=absmiddle>"
  420.     else
  421.         pageList=pageList & " <a href=?id="& xxid &"><img border=0 src=images/pt.gif alt=┴⌠╤╘╩╫╥│ align=absmiddle></a>"
  422.     end if
  423.  
  424.     if page=1 then
  425.         pageList=pageList & " <img border=0 src=images/pb.gif alt=╟░╥╗╥│ align=absmiddle>"
  426.     else
  427.         pageList=pageList & " <a href=?id="& xxid &"&page="& (page-1) &"><img border=0 src=images/pb.gif alt=╟░╥╗╥│ align=absmiddle></a>"
  428.     end if
  429.  
  430.     if pagecount-page=0 then
  431.         pageList=pageList & " <img border=0 src=images/pn.gif alt=╧┬╥╗╥│ align=absmiddle>"
  432.     else
  433.         pageList=pageList & " <a href=?id="& xxid &"&page="& (page+1) &"><img border=0 src=images/pn.gif alt=╧┬╥╗╥│ align=absmiddle></a>"
  434.     end if
  435.  
  436.     pageList=pageList & "</td><td width=350 style='letter-spacing: 1'>"
  437.  
  438.     p=int(page/pageLinkNum)
  439.     if page mod pageLinkNum>0 then
  440.         p=p+1
  441.     end if
  442.     p=(p-1)*pageLinkNum+1
  443.  
  444.     i=p+(pageLinkNum-1)
  445.     if i> pagecount then
  446.         i=pagecount
  447.     end if
  448.  
  449.     if p>pageLinkNum then
  450.         pageList=pageList & "<a href='?id="& xxid &"&page="&p-1&"'>[<<]</a>"
  451.     end if
  452.  
  453.     do while p<=i
  454.         if p=page then
  455.             pageList=pageList & "["&p&"]"
  456.         else
  457.             pageList=pageList & "<a href='?id="& xxid &"&page="&p&"'>["&p&"]</a>"
  458.         end if
  459.         p=p+1
  460.     loop
  461.  
  462.     p=p-1
  463.     if p< pagecount then
  464.         pageList=pageList & "<a href='?id="& xxid &"&page="&(p+1)&"'>[>>]</a>"
  465.     end if
  466.  
  467.     pageList=pageList & "</td></tr></table>"
  468. end function
  469. %>
  470.  
  471. <!--#include file="foot.asp"-->
  472.  
  473. </body>
  474.  
  475. </html>
  476.