?? anclass.asp
字號:
<!--#include file="conn.asp"-->
<%if session("bjxadmin")="" 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">
</head>
<body>
<table class="tableBorder" width="90%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
<tr>
<td colspan="4" align="center" background="../images/admin_bg_1.gif"><b><font color="#ffffff">商品查看與修改</font></b></td>
</tr>
<tr >
<td width="40%" align="center">分類名稱</td>
<td width="20%" align="center">分類排序</td>
<td width="20%" align="center">浮動價</td>
<td width="20%" align="center">確定操作</td>
</tr>
<%set rs=server.CreateObject("adodb.recordset")
rs.Open "select * FROM BJX_class1 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 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>
<td><input name="fudongjia" type="text" id="fudongjia" size="8" value="<%=rs("fudongjia")%>">
</td>
<td><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>
<td colspan="4" align="center" background="../images/admin_bg_1.gif"><b><font color="#ffffff">添加商品大類</font></b></td>
</tr>
<tr align="center">
<td width="40%" align="center"> 分類名稱</td>
<td width="20%" align="center"> 分類排序</td>
<td width="20%" align="center"> 浮動價</td>
<td width="20%" align="center"> 確定操作</td>
</tr>
<form name="form1" method="post" action="saveanclass.asp?action=add">
<tr 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 name="fudongjia2" type="text" id="fudongjia2" size="8" value="10">
</td>
<td>
<input type="submit" name="Submit3" value="添 加">
</td>
</tr>
</form>
</table>
<!--#include file="bjxfoot.asp"-->
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -