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

📄 xclass.asp

📁 购物系统(本版为正式商业版
💻 ASP
字号:
<!--#include file="conn.asp"-->
<!--#include file="adminset.asp"-->
<%if session("admin")="" then
response.Write "<script language='javascript'>alert('网络超时或您还没有登陆!');window.location.href='login.asp';</script>"
response.End
end if
'if session("flag")>1 then
'response.Write "<div align=center><font size=80 color=red><b>您没有此项目管理权限!</b></font></div>"
'response.End
'end if
'if qx2<>1 then
'response.Write "<div align=center><font size=80 color=red><b>您没有此项目管理权限!</b></font></div>"
'response.End
'end if
%>
<%dim nclassid,nclass,paixu,aid,anclass
nclass=request.QueryString("nclass")
nclassid=request.QueryString("id")
anclass=request.QueryString("anclass")
aid=request.QueryString("aid")
%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../css.css" rel="stylesheet" type="text/css">

</head>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0" background="images/right_top2.gif">
  <tr>
    <td width="1%">&nbsp;</td>
    <td width="99%"><table width="100%" border="0" cellspacing="0" cellpadding="5">
        <tr>
          <td width="30%" style="font-size:14px;color:#ffffff">&nbsp;<strong><font color="#000000"><%=aid%>商品小类管理</font></strong></td>
          <td width="70%" align="right">&nbsp;</td>
        </tr>
    </table></td>
  </tr>
</table>
<br>
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="30"><IMG height=5 src="images/block.gif" width=1><br>
        <form name="myform" method="post" action="" onSubmit="return checkkk()" >
<%set rs=server.createobject("adodb.recordset")
        rs.open "select * from shop_anclass order by anclassidorder",conn,1,1
	if rs.eof and rs.bof then
	response.write "请先添加栏目。"
	response.end
	else
%>
<select name="anclassid" size="1" id="anclassid" onChange="var jmpURL=this.options[this.selectedIndex].value ; if(jmpURL!='') {window.location=jmpURL;} else {this.selectedIndex=0 ;}"  class="wenbenkuang">
          <option >选择商品分类</option>
		  <option value="xclass.asp?aid=<%=rs("anclassid")%>&anclass=<%=rs("anclass")%>" <%if rs("anclassid")=cint(request.QueryString("aid")) then %>selected<%end if%>><%=trim(rs("anclass"))%></option>
		     <%			         rs.movenext
        do while not rs.eof
%>
          <option value="xclass.asp?aid=<%=rs("anclassid")%>&anclass=<%=rs("anclass")%>" <%if rs("anclassid")=cint(request.QueryString("aid")) then %>selected<%end if%>><%=trim(rs("anclass"))%></option>
    <%
        rs.movenext
        loop
	end if
        rs.close
%>
  </select>
  <font color="#FF0000">
  <select name="Nclassid" class="wenbenkuang" id="Nclassid" onChange="var jmpURL=this.options[this.selectedIndex].value ; if(jmpURL!='') {window.location=jmpURL;} else {this.selectedIndex=0 ;}" >
          <option >选择商品分类</option>
          <%set rs=server.createobject("adodb.recordset")
		  if aid="" then
		  aid=0
		  end if
		rs.Open "select * from shop_nclass where anclassid="&aid&" order by nclassidorder",conn,1,1
		do while not rs.eof %>
          <option value="xclass.asp?id=<%=rs("nclassid")%>&nclass=<%=rs("nclass")%>&aid=<%=aid%>&anclass="<%=anclass%>"" <%if rs("nclassid")=cint(request.QueryString("id")) then %>selected<%end if%>><%=trim(rs("nclass"))%></option>
          <%rs.movenext
		loop
		rs.close
		set rs=nothing
		%>
      </select>
        <%if request.QueryString("id")<>"" then
        response.Write "当前查讯:"&request.QueryString("nclass")
        end if%>
        </form>
    </td>
  </tr>
</table>
<table width="90%" border="0" cellpadding="3" cellspacing="1" align="center" bgcolor="#9DB2D4">
  <tr bgcolor="#C7D3E6">
    <td>
    <div align="center">分类名称</div></td>
    <td>
    <div align="center">排序</div></td>
    <td>
    <div align="center">图片上传:</div></td>
    <td>
    <div align="center">连接地址:</div></td>
    <td>
    <div align="center">行数</div></td>
    <td>
    <div align="center">列数</div></td>
    <td><div align="center">是否显示</div></td>
    <td>
    <div align="center">确定操作</div></td>
  </tr>
  <%
        if nclassid="" then
        response.Write "<div align=center><font color=red>请选择左测的分类</font></div>"
        else
        set rs=server.CreateObject("adodb.recordset")
        rs.Open "select * from shop_xclass where nclassid="&nclassid&" order by xpx",conn,1,1
         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="savexclass.asp?action=edit&id=<%=rs("id")%>&nclass=<%=request.QueryString("nclass")%>">
    <tr bgcolor="#F0F3F8">
      <td>        <div align="center">
          <input name="xclass" class="wenbenkuang" type="text" id="xclass" size="12" value="<%=trim(rs("xclass"))%>">
          <input name="nclassid" class="wenbenkuang" type="hidden" value="<%=request.QueryString("id")%>" id="Hidden1">
          <input name="anclassid" class="wenbenkuang" type="hidden" value="<%=request.QueryString("aid")%>" id="anclassid">
      </div></td>
      <td>
        <div align="center">
          <input name="xpx" class="wenbenkuang" type="text" id="xpx" size="4" value="<%=int(rs("xpx"))%>">
      </div></td>
      <td >
        <div align="center">
          <input name="xpic" class="wenbenkuang" type="text" id="pic2" size="22" value="<%=rs("xpic")%>">
          <input type="button" name="Submit222" class="go-wenbenkuang" value="传" onClick="window.open('../upload.asp?formname=form1&uppath=shoppic&filelx=jpg','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')">
      </div></td>
      <td >
        <div align="center">
          <input name="xurl" class="wenbenkuang" type="text" id="xurl" size="22" value="<%=rs("xurl")%>">
      </div></td>
      <td>
        <div align="center">
          <input name="xh" class="wenbenkuang" type="text" id="xh" size="4" value="<%=int(rs("xh"))%>">
      </div></td>
      <td>
        <div align="center">
          <input name="xl" class="wenbenkuang" type="text" id="xl" size="4" value="<%=int(rs("xl"))%>">
      </div></td>
      <td><div align="center">
          <input name="xxs" type="radio" value="2" <%if int(rs("xxs"))=2 then%>checked<%end if%>>
          <input type="radio" name="xxs" value="1" <%if int(rs("xxs"))=1 then%>checked<%end if%>>
      否</div></td>
      <td>
        <div align="center">
          <input type="submit" name="Submit" class="go-wenbenkuang" value="修">
&nbsp;<a href="savexclass.asp?id=<%=int(rs("id"))%>&action=del&nclassid=<%=request.QueryString("id")%>&nclass=<%=request.QueryString("nclass")%>&anclassid=<%=request.QueryString("aid")%>" onClick="return confirm('您确定进行删除操作吗?')"><font color=red>删</font></a></div></td>
    </tr>
  </form>
  <%rs.movenext
        loop
        paixu=rs.RecordCount
        rs.close
        set rs=nothing
        end if
        end if
				%>
</table>
<br>
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="30"><IMG height=5 src="images/block.gif" width=1><font color="#000000">添加商品分类</font> 当前分类 <%=request.QueryString("nclass")%></td>
  </tr>
</table>
<table width="90%" border="0" cellpadding="3" cellspacing="1" bgcolor="#9DB2D4" align="center">
  <tr bgcolor="#C7D3E6">
    <td>
    <div align="center">分类名称</div></td>
    <td>
    <div align="center">排序</div></td>
    <td>
    <div align="center">图片上传:</div></td>
    <td>
    <div align="center">连接地址:</div></td>
    <td><div align="center">行数</div></td>
    <td><div align="center">列数</div></td>
    <td><div align="center">是否显示</div></td>
    <td>
    <div align="center">确定操作</div></td>
  </tr>
  <form name="form2" method="post" action="savexclass.asp?action=add&nclass=<%=request.QueryString("nclass")%>">
    <tr bgcolor="#F0F3F8">
      <td>
        <div align="center">
          <input name="xclass" type="text" class="wenbenkuang" id="xclass" size="12">
          <input name="nclassid" class="wenbenkuang" type="hidden" value="<%=request.QueryString("id")%>">
      <input name="anclassid" class="wenbenkuang" type="hidden" value="<%=request.QueryString("aid")%>" id="anclassid"></div></td>
      <td>
        <div align="center">
          <input name="xpx" class="wenbenkuang" type="text" id="xpx" size="4" value="<%=paixu+1%>">
      </div></td>
      <td >
        <div align="center">
          <input name="xpic" class="wenbenkuang" type="text" id="xpic" size="22" >          
          <input type="button" name="Submit22" class="go-wenbenkuang" value="传" onClick="window.open('../upload.asp?formname=form2&editname=xpic&uppath=shoppic&filelx=jpg','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')">
      </div></td>
      <td >
        <div align="center">
          <input name="xurl" class="wenbenkuang" type="text" id="xurl" size="22">
      </div></td>
      <td ><div align="center">
          <input name="xh" type="text" class="wenbenkuang" id="xh" value="10" size="4">
      </div></td>
      <td ><div align="center">
          <input name="xl" type="text" class="wenbenkuang" id="xl" value="1" size="4">
      </div></td>
      <td ><div align="center">
          <input name="xxs" type="radio" value="2" checked >
          <input type="radio" name="xxs" value="1">
      否</div></td>
      <td>
        <div align="center">
          <input type="submit" name="Submit2" class="go-wenbenkuang" value="添加">
      </div></td>
    </tr>
  </form>
</table>
<br>
<!--#include file="copyright.asp"-->
</body>
</html>

⌨️ 快捷键说明

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