anclass.asp

来自「酷购网上商城~~ 完整的asp源代码.通过少许的改动就可以让你拥有自己的商城~~」· ASP 代码 · 共 89 行

ASP
89
字号
<!--#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="../images/css.css" rel="stylesheet" type="text/css">
<style>
BODY {
SCROLLBAR-FACE-COLOR: #e7e7e7;  
SCROLLBAR-HIGHLIGHT-COLOR: #ffffff;
SCROLLBAR-SHADOW-COLOR: #d4d0c8;
SCROLLBAR-3DLIGHT-COLOR: #FFFFFF;
SCROLLBAR-ARROW-COLOR:  #ffffff;
SCROLLBAR-TRACK-COLOR: #f7f7f7;
SCROLLBAR-DARKSHADOW-COLOR: #e7e7e7; 
}
</style>
</head>
<body>
                              <table class="tableBorder" width="96%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
							  <tr>
							  <td colspan="4" align="center" bgcolor="#dfdfdf"><b>商品查看与修改</font></b></td>
							  </tr>
                                <tr bgcolor="#CCCCCC"> 
                                  <td width="40%" align="center"><strong>分类名称</strong></td>
                                  <td width="20%" align="center"><strong>分类排序</strong></td>
                                  
                                  <td width="20%" align="center"><strong>确定操作</strong></td>
                                </tr>
                                <%set rs=server.CreateObject("adodb.recordset")
		  rs.Open "select * from shop_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="#f2f2f2" align="center"> 
                                    <td><input name="anclass" type="text" id="anclass" size="12" value="<%=trim(rs("anclass"))%>">
                                    </td>
                                    <td><input name="anclassidorder" type="text" id="anclassidorder" size="4" value="<%=int(rs("anclassidorder"))%>">
                                    <td><input type="submit" name="Submit" value="修 改">&nbsp;
									<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="96%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
<tr>
<td colspan="4" align="center" bgcolor="#dfdfdf"><b>添加商品大类</font></b></td>
</tr>
<tr bgcolor="#CCCCCC" align="center"> 
<td width="40%" align="center"><strong> 分类名称</strong></td>
<td width="20%" align="center"><strong> 分类排序</strong></td>
<td width="20%" align="center"><strong> 确定操作</strong></td>
</tr>
<form name="form1" method="post" action="saveanclass.asp?action=add">
<tr bgcolor="#f2f2f2" align="center"> 
<td>
<input name="anclass2" type="text" id="anclass2" size="12">
</td>
<td>
<input name="anclassidorder2" type="text" id="anclassidorder2" size="4" value="<%=paixu+1%>">
</td>
<td>
<input type="submit" name="Submit3" value="添 加">

</td>
</tr>
</form>
</table>
<!--#include file="copyright.asp"-->
</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?