?? smallclass.asp
字號:
<%
if session("username")="" then
%>
<script language="javascript">
top.location.href="../login.asp"
</script>
<%
response.end
end if
%>
<!-- #include file="../conn2.asp" -->
<!-- #include file="../const.asp" -->
<html>
<head>
<title><%=dianming%> - 小類管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../style2.css" rel="stylesheet" type="text/css">
</HEAD>
<BODY>
<%
if fla5="0" then
%>
<br><center><font color="#FF0000">你不具備此權限,請與管理員聯系!</font></center>
<%
response.end
end if
nowbigclass=request("bigclass")
%>
<table width="98%" border="0" cellpadding="0" cellspacing="2" align="center">
<form name="form1">
<tr>
<td width="25%" height="21"> <img src="../Images/ico/ico52.gif" width="32" height="32" hspace="2" vspace="2" align="absmiddle"><font size="+1"><strong> 修改 / 刪除小類</strong></font></td>
<td width="75%" align="right">
<%
sql="select * from bigclass order by id"
set rs_bigclass=conn.execute(sql)
%>
請選擇大類:
<select name="bigclass" onChange="form1.submit()">
<option value="">請選擇大類</option>
<%
do while rs_bigclass.eof=false
%>
<option value="<%=rs_bigclass("id")%>"<%if trim(cstr(rs_bigclass("id")))=nowbigclass then%> selected="selected"<%end if%>><%=rs_bigclass("bigclass")%></option>
<%
rs_bigclass.movenext
loop
%>
</select> </td>
</tr>
</form>
</table>
<table width="98%" border="0" cellspacing="1" cellpadding="2" align="center" class="TableMenu">
<tr class="a1" style="color:#ffffff;font-size:12px;">
<th width="40%" height="30">小類名稱</th>
<th width="31%" height="30">所屬大類</th>
<th width="15%">修改</th>
<th width="14%">刪除</th>
</tr>
<%
if nowbigclass="" then
sql="select * from smallclass order by id_bigclass,id"
else
sql="select * from smallclass where id_bigclass="&nowbigclass&" order by id"
end if
set rs_smallclass=conn.execute(sql)
do while rs_smallclass.eof=false
sql="select * from bigclass where id="&rs_smallclass("id_bigclass")
set rs_bigclass=conn.execute(sql)
%>
<tr bgcolor="#ececec" onMouseOver="this.bgColor='#ffffff'" onMouseOut="this.bgColor='#ececec'">
<td align="center" height="25"><%=rs_smallclass("smallclass")%></td>
<td align="center"><%=rs_bigclass("bigclass")%></td>
<td align="center"><a href="smallclass_modi.asp?id=<%=rs_smallclass("id")%>"><img src="../images/res.gif" border="0" hspace="2" align="absmiddle">修改</a></td>
<td align="center"><a href="smallclass_del.asp?id=<%=rs_smallclass("id")%>" onClick="return confirm('將同時刪除屬于此小類的所有產品!?。≌埳髦兀。?!\n\n確定要刪除此小類嗎?')"><img src="../images/del.gif" border="0" hspace="2" align="absmiddle">刪除</a></td>
</tr>
<%
rs_smallclass.movenext
loop
%>
</table>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -