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

  1. <!--#include file="conn.asp"-->
  2. <!--#include file=const.asp -->
  3. <%
  4. dim xxid
  5. dim exec, rs
  6. xxid=encodestr(request.querystring("id"))
  7.  
  8. if xxid="" or not theUser.reged then
  9.     connclose()
  10.     session("errmsg")="╖╟╖¿▓┘╫≈úíúíúí"
  11.     response.redirect "admin_error.asp"
  12. end if
  13. %>
  14.  
  15.  
  16. <html>
  17. <head>
  18. <META name="Author" content="─╛─±">
  19. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  20. <title><%=sitetitle%></title>
  21. <link rel="stylesheet" href="style/<%=skin%>.css" type="text/css">
  22. </head>
  23.  
  24. <body onkeydown="if(event.keyCode==13 && event.ctrlKey)check()">
  25. <!--#include file="head.asp"-->
  26.     
  27. <form method="POST" action="editsave.asp" name="form1">
  28. <script>                  
  29. function check()
  30. {                 
  31.     if (document.form1.title.value=="")                  
  32.     {
  33.         alert("╟δ╠ε╨┤╓≈╠Γúí");     
  34.         document.form1.title.focus();
  35.         return;
  36.     }
  37.     if (document.form1.nei.value=="") 
  38.     {
  39.         alert("╟δ╠ε╨┤┴⌠╤╘─┌╚▌úí");     
  40.         document.form1.nei.focus();
  41.         return;
  42.     }
  43.     document.forms[0].submit();
  44. }                             
  45. </script>
  46.  
  47. <%
  48. exec="select * from ly where id="&xxid
  49. set rs=conn.execute(exec)
  50. if rs.eof and rs.bof then
  51.         rsclose()
  52.         connclose()
  53.         session("errmsg")="╕├┴⌠╤╘▓╗┤µ╘┌úíúíúí"
  54.         response.redirect "admin_error.asp"
  55. end if
  56. if rs("bl")<>1 and not theUser.master then
  57.     rsclose()
  58.     connclose()
  59.     session("errmsg")="╒Γ╕÷┴⌠╤╘▓╗╩╟╫ó▓ß╙├╗º╖ó╡─úíúíúí"
  60.     response.redirect "admin_error.asp"
  61. end if
  62. if rs("name")<>theUser.name and not theUser.master then
  63.     rsclose()
  64.     connclose()
  65.     session("errmsg")="╒Γ╕÷┴⌠╤╘▓╗╩╟─π╖ó╡─úíúíúí"
  66.     response.redirect "admin_error.asp"
  67. end if
  68. %>
  69.  
  70.  <table class=table004 width="650" border="0" cellpadding="0" cellspacing="0" align="center">
  71.   <tr>
  72.    <td>
  73.     <table class=table001 border="0" width="650" cellspacing="0" cellpadding="3" align="center">
  74.      <tr> 
  75.       <td width="19%" align="center">╖ó ╤╘ ▒Ω ╠Γú║</td>
  76.       <td width="81%"> 
  77.        <input type="text" name="title" size="40" class="input1" value="<%=rs("title")%>" maxlength=40>
  78.        <font color="#FF0000">*</font>ú¿▒Ω╠Γ╧▐╓╞ <b>20</b> ╕÷║║╫╓╥╘─┌ú⌐</td>
  79.      </tr>
  80.      <tr> 
  81.       <td width="19%" align="center">╖ó  ▒φ  ╚╦ú║</td>
  82.       <td width="81%"><%=rs("name")%></td>
  83.      </tr>
  84.      <tr> 
  85.       <td width="19%" align="center">╡τ ╫╙ ╙╩ ╝■ú║</td>
  86.       <td width="81%"> 
  87.        <input type="text" name="email" size="20" class="input1" value="<%=rs("email")%>">
  88.       </td>
  89.      </tr>
  90.      <tr> 
  91.       <td width="19%" align="center">ííííQ Qííííú║</td>
  92.       <td width="81%"> 
  93.        <input type="text" name="qq" size="20" class="input1" value="<%=rs("qq")%>">
  94.       </td>
  95.      </tr>
  96.      <tr> 
  97.       <td width="19%" align="center">╓≈ ╥│ ╡╪ ╓╖ú║</td>
  98.       <td width="81%"> 
  99.        <input type="text" name="url" size="30" value="<%=rs("url")%>" class="input1">
  100.       </td>
  101.      </tr>
  102.      <tr> 
  103.       <td width="19%" align="center"> 
  104.     <a href=### onclick=showUbb() title="╡π╗≈┐¬╣╪">Ubb▒Ω╟⌐ (┐¬)</a>ú║
  105.       </td>
  106.       <td width="81%" valign="top"> 
  107. <script src=code.js></script>
  108. <script>
  109. function showUbb()
  110. {
  111. if(document.all.ubbDiv.innerText!="")
  112.     {window.ubbFrame.location="about:blank";document.all.ubbDiv.innerText="";window.event.srcElement.innerText="Ubb▒Ω╟⌐ (┐¬)";}
  113. else
  114.     {window.ubbFrame.location="ubb.htm";window.event.srcElement.innerText="Ubb▒Ω╟⌐ (╣╪)";}
  115. }
  116. </script>
  117. <IFRAME NAME="ubbFrame" width=0 height=0 marginwidth=0 marginheight=0 frameborder=0 scrolling=no SRC="about:blank" ></IFRAME>
  118. <div id="ubbDiv"></div>
  119.       </td>
  120.      </tr>
  121.      <tr> 
  122.       <td width="19%" align="center"> 
  123.     Q ╠√═╝ú║
  124.       </td>
  125.       <td width="81%" valign="top"> 
  126. <a href=### onclick=window.open("Qpic.asp?num=20&path=qpic/1","q","width=400,height=400,resizable=1")>Q╠√═╝╥╗</a>
  127. íí<a href=### onclick=window.open("Qpic.asp?num=30&path=qpic/2","q","width=400,height=400,resizable=1")>Q╠√═╝╢■</a>
  128. íí<a href=### onclick=window.open("Qpic.asp?num=19&path=qpic/3","q","width=400,height=400,resizable=1")>Q╠√═╝╚²</a>
  129.       </td>
  130.      </tr>
  131.      <tr> 
  132.       <td width="19%" align="center"> 
  133.        <p style="line-height: 200%">┴⌠<br>
  134.         ╤╘<br>
  135.         ─┌<br>
  136.         ╚▌ 
  137.       </td>
  138.       <td width="81%" valign="top"> 
  139.        <textarea rows="10" name="nei" cols="70" class="input1" ><%=replace(rs("nei"),"</textarea>","</textarea>")%></textarea>
  140.         <input type="hidden" name="id" value="<%=rs("id")%>">
  141. <%
  142. rsclose()
  143. connclose()
  144. %>
  145.       </td>
  146.      </tr>
  147.      <tr> 
  148.       <td width="100%" colspan="2"> 
  149.        <p align="center"> 
  150.            íííííííííííí
  151.         <input type="button" value="╠ß╜╗" name="B1" onclick=check() class="input2" >
  152.             
  153.         <input type="reset" value="╟σ│²" name="B2" class="input2" >
  154.         (Ctrl+Enter╠ß╜╗)
  155.       </td>
  156.      </tr>
  157.     </table>
  158.             
  159.         
  160.    </td>
  161.   </tr>
  162.  </table>
  163.  </form>
  164.     
  165. <!--#include file="foot.asp"-->
  166.  
  167. </body>
  168.  
  169. </html>
  170.