📄 class_admin.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=1 cellPadding=0 cellSpacing=0 bordercolor="#666666" borderColorLight="#666666" borderColorDark=#ffffff bgcolor="#F6F6EC">
<tr>
<td bgcolor="#006600"><font color="#FFFFFF"><strong>>>> 管理选项:分类<font color="#ffffff">管理>>></font></strong></font></td>
</tr>
</table>
<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.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="classview" id="classview">
<option value="3" selected>每行3个图片</option>
<option value="2">每行2个图片</option>
<option value="1">每行1个图片</option>
<option value="0">只显示文字</option>
</select>
图片大小:
<input name="classbig" type="text" id="classbig" value="100" size="12">
位置:
<select name="typeid" id="typeid">
<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">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20" selected>20</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>
<td>
<div align="center">新栏目名称</div></td>
<td><div align="center">操作</div></td>
</tr>
<% sql = "SELECT * FROM type order by typeid 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.asp?classid=<%=rs("id")%>" method="post" name="form2" id="form2">
<tr>
<td><font color="#006600"><%=rs("id")%></font><b>-<%=rs("name")%></B> <input name="classid" type="hidden" id="classid" value="<%=rs("id")%>"></td>
<td><div align="center">
<select name="classview" id="classview">
<option value="3" <%if rs("classview")=3 then%>selected<%end if%>>每行3个图片</option>
<option value="2" <%if rs("classview")=2 then%>selected<%end if%>>每行2个图片</option>
<option value="1" <%if rs("classview")=1 then%>selected<%end if%>>每行1个图片</option>
<option value="0" <%if rs("classview")=0 then%>selected<%end if%>>只显示文字</option>
</select>
</div></td>
<td><div align="center">
<input name="classbig" type="text" id="classbig" value="<%=rs("classbig")%>" size="5">
</div></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="typeid" id="typeid">
<option value="1" <%if rs("typeid")=1 then%> selected <%end if%>>1</option>
<option value="2" <%if rs("typeid")=2 then%> selected <%end if%>>2</option>
<option value="3" <%if rs("typeid")=3 then%> selected <%end if%>>3</option>
<option value="4" <%if rs("typeid")=4 then%> selected <%end if%>>4</option>
<option value="5" <%if rs("typeid")=5 then%> selected <%end if%>>5</option>
<option value="6" <%if rs("typeid")=6 then%> selected <%end if%>>6</option>
<option value="7" <%if rs("typeid")=7 then%> selected <%end if%>>7</option>
<option value="8" <%if rs("typeid")=8 then%> selected <%end if%>>8</option>
<option value="9" <%if rs("typeid")=9 then%> selected <%end if%>>9</option>
<option value="10" <%if rs("typeid")=10 then%> selected <%end if%>>10</option>
<option value="11" <%if rs("typeid")=11 then%> selected <%end if%>>11</option>
<option value="12" <%if rs("typeid")=12 then%> selected <%end if%>>12</option>
<option value="13" <%if rs("typeid")=13 then%> selected <%end if%>>13</option>
<option value="14" <%if rs("typeid")=14 then%> selected <%end if%>>14</option>
<option value="15" <%if rs("typeid")=15 then%> selected <%end if%>>15</option>
<option value="16" <%if rs("typeid")=16 then%> selected <%end if%>>16</option>
<option value="17" <%if rs("typeid")=17 then%> selected <%end if%>>17</option>
<option value="18" <%if rs("typeid")=18 then%> selected <%end if%>>18</option>
<option value="19" <%if rs("typeid")=19 then%> selected <%end if%>>19</option>
<option value="20" <%if rs("typeid")=20 then%> selected <%end if%>>20</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="确定操作<%=rs("id")%>">
</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 + -