class.asp
资源名称:ASP.RAR [点击查看]
上传用户:xhjd888
上传日期:2022-07-20
资源大小:203k
文件大小:3k
源码类别:
.net编程
开发平台:
Visual Basic
- <!--#include file="ocdb/ocdb.asp"-->
- <%
- response.buffer=true
- %>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- <title>无标题文档</title>
- <link href="style/main.css" rel="stylesheet" type="text/css">
- <link href="style/scrollbar.css" rel="stylesheet" type="text/css">
- <style type="text/css">
- <!--
- .1 {
- font-weight: 200;
- color: #FF0000;
- font-family: "宋体";
- font-size: 12px;
- background-color: #000000;
- }
- .STYLE1 {color: #FF0000}
- -->
- </style>
- </head>
- <body>
- <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tab01">
- <tr>
- <td class="tab02">
- <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <td width="1%" height="27" background="images/index_38.gif"> </td>
- <td width="99%" valign="bottom" background="images/index_38.gif" class="font01"><font color="#FFFF00">·</font>增加栏目</td>
- </tr>
- <tr>
- <td colspan="2"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="tab03">
- <tr>
- <td>
- <table width="100%" border="0" cellpadding="3" cellspacing="1">
- <tr>
- <td colspan="2" align="center" bgcolor="#DFE7EE"><table width="96%" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <td height="30" style="line-height:150%"><span class="STYLE1">提示:不选择栏目分类的时候添加的是一级栏目! <a href="http://www.bbkan8.cn">比比看制作</a> </span></td>
- </tr>
- </table></td>
- </tr>
- <form method="post" action="class_add.asp?action=add&csubname=0">
- <tr>
- <td width="40%" height="10" align="center" bgcolor="#DFE7EE">添加栏目名称:</td>
- <td width="40%" align="center" bgcolor="#DFE7EE"><input type="text" name="cname"></td>
- </tr>
- <tr>
- <td height="11" align="center" bgcolor="#DFE7EE">选择栏目分类:</td>
- <td width="40%" align="center" bgcolor="#DFE7EE">
- <select name="lanmu" id="lanmu">
- <option<%if request("submenu")="" then%> selected<%end if%> value="">请选择栏目</option>
- <%
- xiayou="├"
- you="└"
- xia="│"
- 'set rs1=conn.execute("select top 1 * from class order by cwar")
- 'maxjibie=rs1("cwar")
- sql2="select * from class order by csub,lmcd"
- set rs2=server.CreateObject("adodb.recordset")
- rs2.open sql2,conn,1,3
- while not rs2.eof
- if rs2("cwar")=0 then
- jibie=""
- else
- jibie=you
- for i=1 to rs2("cwar")-1
- jibie=xia&jibie
- next
- end if
- %>
- <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>
- <%
- rs2.movenext
- wend
- rs2.close
- set rs2=nothing
- %>
- </select></td>
- </tr>
- <tr>
- <td height="22" colspan="2" align="center" bgcolor="#DFE7EE"><input type="submit" name="Submit" value="提交"></td>
- </tr></form>
- </table></td>
- </tr>
- </table></td>
- </tr>
- </table></td>
- </tr>
- </table>
- </body>
- </html>