📄 class_admin_index.asp
字号:
<!--#include file="check_admin.asp"-->
<!--#include file="conn_admin.asp" -->
<html>
<head>
<title>产品分类管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="sys_admin.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="100%" border="0" align="center" cellpadding="5" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td height="44" valign="top"> <table width="100%" height="61" border="0" align="center" cellpadding="0" cellspacing="0">
<form name="form1" method="post" action="saveadmintype_index.asp?cz=addclass">
<tr>
<td height="61"> <div align="center"><strong>主栏目分类添加</strong></div>
<div align="center">
<p>栏目名称:
<input name="classname" type="text" id="classname" size="15" maxlength="50">
排列位置:
<select name="indexid" id="indexid">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10" selected>10</option>
</select>
数字越小排在越前面!<br>
<br>
<input type="submit" name="Submit" value="确定添加栏目" >
</p>
</div></td>
</tr>
</form>
</table></td>
<td width="1%"></td>
</tr>
<tr>
<td height="2" bgcolor="#D20000"></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td>
<div align="center">管理分类:
<table width="100%" border="0" cellspacing="4" cellpadding="0">
<tr bgcolor="#CCCCCC">
<td> <div align="center">栏目名称</div></td>
<td> <div align="center">操作类型</div></td>
<td><div align="center">位置</div></td>
<td> <div align="center">新栏目名称</div></td>
<td><div align="center">操作</div></td>
</tr>
<% sql = "SELECT * FROM index_type order by indexid Asc"
Set rs = Server.CreateObject("ADODB.Recordset")
rs.OPEN sql,Conn,1,1
if rs.eof and rs.bof then
Response.Write"<option>还没有任何分类</option>"
else
do while not rs.eof
%>
<form action="saveadmintype_index.asp?classid=<%=rs("id")%>" method="post" name="form2" id="form2">
<tr>
<td><b><%=rs("name")%></B> <input name="classid" type="hidden" id="classid" value="<%=rs("id")%>"></td>
<td> <div align="center">
<select name="cz">
<option value="delclass">删除</option>
<option value="editclass" selected>修改</option>
</select>
</div></td>
<td><div align="center">
<select name="indexid" id="indexid">
<option value="1" <%if rs("indexid")=1 then%> selected <%end if%>>1</option>
<option value="2" <%if rs("indexid")=2 then%> selected <%end if%>>2</option>
<option value="3" <%if rs("indexid")=3 then%> selected <%end if%>>3</option>
<option value="4" <%if rs("indexid")=4 then%> selected <%end if%>>4</option>
<option value="5" <%if rs("indexid")=5 then%> selected <%end if%>>5</option>
<option value="6" <%if rs("indexid")=6 then%> selected <%end if%>>6</option>
<option value="7" <%if rs("indexid")=7 then%> selected <%end if%>>7</option>
<option value="8" <%if rs("indexid")=8 then%> selected <%end if%>>8</option>
<option value="9" <%if rs("indexid")=9 then%> selected <%end if%>>9</option>
<option value="10" <%if rs("indexid")=10 then%>selected <%end if%>>10</option>
</select>
</div></td>
<td> <div align="center">
<input name="classname" type="text" id="classname" size="15" maxlength="50">
</div></td>
<td><div align="center">
<input name="Submit1" type="submit" id="Submit1" value="确定操作">
</div></td>
</tr>
</form>
<%
rs.movenext
loop
end if
rs.close
set rs=nothing
%>
<tr>
<td colspan="7"><div align="center">*选择删除新分类名称不用填写</div></td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -