📄 anclass.asp
字号:
<!--#include file="conn.asp"-->
<%if session("admin")="" then
response.Write "<script language='javascript'>alert('网络超时或您还没有登陆!');window.location.href='login.asp';</script>"
response.End
else
if session("flag")>1 then
response.Write "<p align=center><font color=red>您没有此项目管理权限!</font></p>"
response.End
end if
end if
%>
<html><head><title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="css/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<table class="tableBorder" width="90%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
<tr>
<th colspan="3" align="center" >
<span lang="zh-cn">品</span><b><font color="#ffffff"><span lang="zh-cn">牌
属地</span>查看与修改</font></b></th>
</tr>
<tr bgcolor="#E8F1FF">
<td class="forumRowHighlight" width="40%" align="center">分类名称</td>
<td class="forumRowHighlight" width="20%" align="center">分类排序</td>
<td class="forumRowHighlight" width="20%" align="center">确定操作</td>
</tr>
<%set rs=server.CreateObject("adodb.recordset")
rs.Open "select * from anclass order by anclassidorder ",conn,1,1
dim paixu
if rs.EOF and rs.BOF then
response.Write "<div align=center><font color=red>还没有分类</font></center>"
paixu=0
else
do while not rs.EOF
%>
<form name="form1" method="post" action="saveanclass.asp?action=edit&id=<%=int(rs("anclassid"))%>">
<tr bgcolor="#E8F1FF" align="center">
<td class="forumRowHighlight"><input name="anclass" type="text" id="anclass" size="12" value="<%=trim(rs("anclass"))%>">
</td>
<td class="forumRowHighlight"><input name="anclassidorder" type="text" id="anclassidorder" size="4" value="<%=int(rs("anclassidorder"))%>">
</td>
<td class="forumRowHighlight"><input type="submit" name="Submit" value="修 改">
<a href="saveanclass.asp?id=<%=int(rs("anclassid"))%>&action=del" onClick="return confirm('您确定要删除该分类吗?')"><font color=red>删除</font></a>
</td>
</tr>
</form>
<%rs.MoveNext
loop
paixu=rs.RecordCount
end if%>
</table><br>
<table class="tableBorder" width="90%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
<tr>
<th colspan="3" align="center" ><b><font color="#ffffff">品牌<span lang="zh-cn">属地</span>添加</font></b></th>
</tr>
<tr bgcolor="#E8F1FF" align="center">
<td class="forumRowHighlight" width="40%" align="center"> 分类名称</td>
<td class="forumRowHighlight" width="20%" align="center"> 分类排序</td>
<td class="forumRowHighlight" width="20%" align="center"> 确定操作</td>
</tr>
<form name="form1" method="post" action="saveanclass.asp?action=add">
<tr bgcolor="#E8F1FF" align="center">
<td class="forumRowHighlight">
<input name="anclass2" type="text" id="anclass2" size="12">
</td>
<td class="forumRowHighlight">
<input name="anclassidorder2" type="text" id="anclassidorder2" size="4" value="<%=paixu+1%>">
</td>
<td class="forumRowHighlight">
<input type="submit" name="Submit3" value="添 加">
</td>
</tr>
</form>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -