home *** CD-ROM | disk | FTP | other *** search
/ 221.214.14.186 / 221.214.14.186.tar / 221.214.14.186 / zb / Notepad-1 / admin_const.asp < prev    next >
Text File  |  2004-12-09  |  5KB  |  185 lines

  1. <!--#include file=conn.asp-->
  2. <!--#include file=const.asp -->
  3. <%
  4. if not theUser.admin then
  5.     connclose()
  6.     response.redirect ("index.asp")
  7. end if
  8. %>
  9. <html>
  10. <head>
  11. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  12. <title><%=sitetitle%></title>
  13. <META name="Author" content="─╛─±">
  14. <link rel="stylesheet" href="style/<%=skin%>.css" type="text/css">
  15. </head>
  16.  
  17. <body>
  18. <!--#include file="head.asp"-->
  19. <!--#include file="admin_bar.inc"-->
  20. <%
  21. dim sql,rs,objPost
  22.  
  23. if request.form<>"" then
  24.     set objPost=request.form
  25.     sql="select  pageLinkNum,mustReg,masterRe,imgUbb,rcPerPage1,rcPerPage2,defaultSkin,defaultStyle,homepage,title,masterEmail,timeDiff,killWord,maxLength,showface,postLimit from GBconst"
  26.     set rs=server.createobject("adodb.recordset")
  27.     rs.open sql,conn,1,3
  28.     for i=1 to objPost.count
  29.         if objPost(i)="" then
  30.             rs(i-1)=null
  31.         else
  32.             rs(i-1)=objPost(i)
  33.         end if
  34.     next
  35.     rs.update
  36.     rs.close
  37.     set rs=nothing
  38.     set objPost=nothing
  39.     getConst()
  40. end if
  41. connclose()
  42. %>
  43. <form method="POST" name="form1">
  44. <table border="0" width="400" cellspacing="0" cellpadding="0" align="center" class="table004">
  45.  <tr>
  46.   <td width="100%" class="table001" align="center">
  47.     <table border="0" width="100%" cellspacing="0" cellpadding="7">
  48.     <tr>
  49.     <td colspan=2 class=table003 align=center><b>┴⌠╤╘▒╛╧╡═│╔Φ╓├</b></td>
  50.     </tr>
  51.      <tr>
  52.       <td width="60%" >├┐╥│╧╘╩╛╥│┴¼╜╙╩²ú║</td>
  53.       <td width="40%">
  54.        <input type="text" name="pageLinkNum" size="17" class="input1" value="<%=pageLinkNum%>" >
  55.       </td>
  56.      </tr>
  57.      <tr>
  58.       <td >╩╟╖±▒╪╨δ╫ó▓ßú║</td>
  59.       <td >
  60.       <select name="mustReg">
  61.           <option value="1" >╩╟</option>
  62.           <option value="0" <% if not mustReg then response.write "selected" %> >╖±</option>
  63.       </select>
  64.       </td>
  65.      </tr>
  66.      <tr>
  67.       <td >╩╟╖±╓╗╙╨░µ╓≈┐╔╥╘╗╪╕┤ú║</td>
  68.       <td >
  69.       <select name="masterRe">
  70.           <option value="1" >╩╟</option>
  71.           <option value="0" <% if not masterRe then response.write "selected" %> >╖±</option>
  72.       </select>
  73.       </td>
  74.      </tr>
  75.      <tr>
  76.       <td >╩╟╖±┐╔╥╘╩╣╙├ubb╠√═╝ú║</td>
  77.       <td >
  78.       <select name="imgUbb">
  79.           <option value="1" >╩╟</option>
  80.           <option value="0" <% if not imgUbb then response.write "selected" %> >╖±</option>
  81.       </select>
  82.       </td>
  83.      </tr>
  84.      <tr>
  85.       <td >┴⌠╤╘▒╛╖╜╩╜▓Θ┐┤╩▒├┐╥│╧╘╩╛┴⌠╤╘╩²ú║</td>
  86.       <td >
  87.        <input type="text" name="rcPerPage1" size="17" class="input1" value="<%=rcPerPage1%>" >
  88.       </td>
  89.      </tr>
  90.      <tr>
  91.       <td >╠╓┬█╟°╖╜╩╜▓Θ┐┤╩▒├┐╥│╧╘╩╛┴⌠╤╘╩²ú║</td>
  92.       <td >
  93.        <input type="text" name="rcPerPage2" size="17" class="input1" value="<%=rcPerPage2%>" >
  94.       </td>
  95.      </tr>
  96.      <tr>
  97.       <td >─¼╚╧╜τ├µ╖τ╕±ú¿╩²╫╓ú⌐ú║</td>
  98.       <td >
  99.        <input type="text" name="defaultSkin" size="17" class="input1" value="<%=defaultSkin%>" >
  100.       </td>
  101.      </tr>
  102.      <tr>
  103.       <td >─¼╚╧╧╘╩╛╖╜╩╜<br>ú¿1┴⌠╤╘▒╛╩╜ú¼2╠╓┬█╟°╩╜ú⌐ú║</td>
  104.       <td >
  105.        <input type="text" name="defaultStyle" size="17" class="input1" value="<%=defaultStyle%>" >
  106.       </td>
  107.      </tr>
  108.      <tr>
  109.       <td >═°╒╛╩╫╥│urlú║</td>
  110.       <td >
  111.        <input type="text" name="homepage" size="17" class="input1" value="<%=homepage%>" >
  112.       </td>
  113.      </tr>
  114.      <tr>
  115.       <td >═°╒╛▒Ω╠Γú║</td>
  116.       <td >
  117.        <input type="text" name="sitetitle" size="17" class="input1" value="<%=sitetitle%>" >
  118.       </td>
  119.      </tr>
  120.      <tr>
  121.       <td >═°╒╛┴¬┬τemailú║</td>
  122.       <td >
  123.        <input type="text" name="masterEmail" size="17" class="input1" value="<%=masterEmail%>" >
  124.       </td>
  125.      </tr>
  126.      <tr>
  127.       <td >╖■╬±╞≈╩▒▓εú¿╨í╩▒╩²,╫ó╥Γ╒²╕║ú⌐ú║</td>
  128.       <td >
  129.        <input type="text" name="timeDiff" size="17" class="input1" value="<%=timeDiff%>" >
  130.       </td>
  131.      </tr>
  132.      <tr>
  133.       <td >╣²┬╦┤╩╙∩ú¿╙ó╬─╢║║┼╖╓╕⌠ú⌐ú║</td>
  134.       <td >
  135.        <input type="text" name="killWord" size="17" class="input1" value="<%
  136.        if ubound(killword)>=0 then
  137.            response.write killword(0)
  138.            for i=1 to ubound(killword)
  139.                response.write ","&killword(i)
  140.            next
  141.        end if
  142.        %>" >
  143.       </td>
  144.      </tr>
  145.      <tr>
  146.       <td >┴⌠╤╘─┌╚▌╫ε╢α╫╓╩²ú║</td>
  147.       <td >
  148.        <input type="text" name="maxLength" size="17" class="input1" value="<%=maxLength%>" >
  149.       </td>
  150.      </tr>
  151.      <tr>
  152.       <td >╩╟╖±╧╘╩╛╙├╗º═╖╧±ú║</td>
  153.       <td >
  154.           <select name="showFace">
  155.               <option value=0>╖±</option>
  156.               <option value=1 <%if showFace then response.write "selected"%> >╩╟</option>
  157.           </select>
  158.       </td>
  159.      </tr>
  160.      <tr>
  161.       <td >┴⌠╤╘╝Σ╕⌠╩▒╝Σ(╖└╣α╦«)ú║</td>
  162.       <td >
  163.        <input type="text" name="postLimit" size="5" class="input1" value="<%=postLimit%>" > ├δ
  164.       </td>
  165.      </tr>
  166.      <tr>
  167.       <td width="100%" colspan="2" height="40">
  168.        <p align="center">
  169.         <input type="submit" value="╠ß╜╗" class="input2" >
  170.            
  171.         <input type="reset" value="╟σ│²" class="input2" >
  172.       </td>
  173.      </tr>
  174.     </table>
  175.    ú║ú║ú║ <a href="index.asp">╖╡ ╗╪ ┴⌠ ╤╘ ╩╫ ╥│ ├µ</a> ú║ú║ú║<br>
  176.   </td>
  177.  </tr>
  178. </table>
  179. </form>
  180. <!--#include file="foot.asp"-->
  181.  
  182. </body>
  183.  
  184. </html>
  185.