⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 smallclass.asp

📁 某公司的进销存软件的设计与开发
💻 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">&nbsp;<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>&nbsp;&nbsp;</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="../about/about1.htm"><img src="../images/res.gif" border="0" hspace="2" align="absmiddle">修改</a></td>
    <td align="center"><a href="../about/about1.htm" 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 + -