class.asp
上传用户:xhjd888
上传日期:2022-07-20
资源大小:203k
文件大小:3k
源码类别:

.net编程

开发平台:

Visual Basic

  1. <!--#include file="ocdb/ocdb.asp"-->
  2. <%
  3. response.buffer=true
  4. %>
  5. <html>
  6. <head>
  7. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  8. <title>无标题文档</title>
  9. <link href="style/main.css" rel="stylesheet" type="text/css">
  10. <link href="style/scrollbar.css" rel="stylesheet" type="text/css">
  11. <style type="text/css">
  12. <!--
  13. .1 {
  14. font-weight: 200;
  15. color: #FF0000;
  16. font-family: "宋体";
  17. font-size: 12px;
  18. background-color: #000000;
  19. }
  20. .STYLE1 {color: #FF0000}
  21. -->
  22. </style>
  23. </head>
  24. <body>
  25. <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tab01">
  26.   <tr>
  27.     <td class="tab02"> 
  28.       <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
  29.         <tr> 
  30.           <td width="1%" height="27" background="images/index_38.gif">&nbsp;</td>
  31.           <td width="99%" valign="bottom" background="images/index_38.gif" class="font01"><font color="#FFFF00">·</font>增加栏目</td>
  32.         </tr>
  33.         <tr> 
  34.           <td colspan="2"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="tab03">
  35.               <tr>
  36.                 <td>
  37. <table width="100%" border="0" cellpadding="3" cellspacing="1">
  38.                     <tr> 
  39.                       <td colspan="2" align="center" bgcolor="#DFE7EE"><table width="96%" border="0" align="center" cellpadding="0" cellspacing="0">
  40.                         <tr>
  41.                           <td height="30" style="line-height:150%"><span class="STYLE1">提示:不选择栏目分类的时候添加的是一级栏目! <a href="http://www.bbkan8.cn">比比看制作</a> </span></td>
  42.                         </tr>
  43.                       </table></td>
  44.                     </tr> 
  45.  <form method="post" action="class_add.asp?action=add&csubname=0">
  46.                     <tr> 
  47.                       <td width="40%" height="10" align="center" bgcolor="#DFE7EE">添加栏目名称:</td>
  48.                       <td width="40%" align="center" bgcolor="#DFE7EE"><input type="text" name="cname"></td>
  49.                     </tr>
  50.                     <tr>
  51.                       <td height="11" align="center" bgcolor="#DFE7EE">选择栏目分类:</td>
  52.                       <td width="40%" align="center" bgcolor="#DFE7EE">
  53.  <select name="lanmu" id="lanmu">
  54.                         <option<%if request("submenu")="" then%> selected<%end if%> value="">请选择栏目</option>
  55.   <%
  56. xiayou="├"
  57. you="└"
  58. xia="│"
  59. 'set rs1=conn.execute("select top 1 * from class order by cwar")
  60. 'maxjibie=rs1("cwar")
  61. sql2="select * from class order by csub,lmcd"
  62. set rs2=server.CreateObject("adodb.recordset")
  63. rs2.open sql2,conn,1,3
  64. while not rs2.eof
  65. if rs2("cwar")=0 then
  66. jibie=""
  67. else
  68. jibie=you
  69. for i=1 to rs2("cwar")-1
  70. jibie=xia&jibie
  71. next
  72. end if
  73. %>
  74. <option<%if rs2("cwar")=0 then%> style="color:#FF0000"<%end if%> value="<%=rs2("id")%>"<%if int(request("submenu"))=int(rs2("id")) then%> selected<%end if%>><%=jibie%><%=rs2("cname")%></option>
  75. <%
  76. rs2.movenext
  77. wend
  78. rs2.close
  79. set rs2=nothing
  80. %>
  81. </select></td>
  82.                     </tr>
  83.                     <tr> 
  84.                       <td height="22" colspan="2" align="center" bgcolor="#DFE7EE"><input type="submit" name="Submit" value="提交"></td>
  85.                     </tr></form>
  86.                   </table></td>
  87.               </tr>
  88.             </table></td>
  89.         </tr>
  90.     </table></td>
  91.   </tr>
  92. </table>
  93. </body>
  94. </html>