<!--#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")>2 then
response.Write "<div align=center><font size=80 color=red><b>您没有此项目管理权限！</b></font></div>"
response.End
end if
if qx3<>1 then
response.Write "<div align=center><font size=80 color=red><b>您没有此项目管理权限！</b></font></div>"
response.End
end if
%>
<%dim anclassid,anclass,paixu
anclass=request.QueryString("nclass")
anclassid=request.QueryString("id")
%>
<html>
<head>
<title>网软志成在线购物系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="../css.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.STYLE1 {color: #FF0000}
-->
</style>
</head>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="1%" height="28">&nbsp;</td>
    <td width="99%"><table width="100%" border="0" cellspacing="0" cellpadding="5">
      <tr>
        <td width="77%" height="27" style="font-size:14px;color:#ffffff">&nbsp;<strong><font color="#000000">网软志成购物后台管理系统 &gt;&gt; 分类管理 &gt;&gt; 二级小类管理 </font></strong></td>
        <td width="23%" style="font-size:14px;color:#ffffff"><span class="STYLE1">* 为必添项目</span></td>
      </tr>
    </table></td>
  </tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="1%" height="28">&nbsp;</td>
    <td width="99%"><table width="100%" border="0" cellspacing="0" cellpadding="5">
      <tr>
        <td height="27" style="font-size:12px;color:#ffffff">&nbsp;<font color="#000000">操作说明：首先先选择一个商品一级大类，然后在当前大类下可进行增加或修改二级小类的操作。</font></td>
        </tr>
    </table></td>
  </tr>
</table>
<br>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
  <form name="dhss">
    <td height="30"><IMG height=5 src="images/block.gif" width=1><br>
        <span class="STYLE1">第一步：</span>
        <select name="select1" class="wenbenkuang" 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")
		rs.Open "select * from shop_anclass order by anclassidorder",conn,1,1
		do while not rs.eof %>
          <option value="nclass_manage.asp?id=<%=rs("anclassid")%>&anclass=<%=rs("anclass")%>" <%if rs("anclassid")=cint(request.QueryString("id")) then %>selected<%end if%>><%=trim(rs("anclass"))%></option>
          <%rs.movenext
		loop
		rs.close
		set rs=nothing
		%>
        </select>
        <br>
        <%if request.QueryString("id")<>"" then
        response.Write "当前大类："&request.QueryString("anclass")
        end if%>
    </td>
  </form>
  </tr>
</table>
<table width="95%" border="0" cellpadding="3" cellspacing="1" align="center" bgcolor="#999999">
  <tr bgcolor="#cccccc">
    <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>
    <td>
    <div align="center">确定操作</div></td>
  </tr>
  <%
        if anclassid="" then
        response.Write ""
        else
        set rs=server.CreateObject("adodb.recordset")
        rs.Open "select * from shop_nclass where anclassid="&anclassid&" order by nclassidorder",conn,1,1
         if rs.EOF and rs.BOF then
		  response.Write "<div align=center><font color=red>还没有分类</font></center>"
		  paixu=0
		  else
		 iii=1
         do while not rs.EOF
         %>
  <form name="forma<%=iii%>" method="post" action="nclass_save.asp?action=edit&id=<%=rs("nclassid")%>&anclass=<%=request.QueryString("anclass")%>">
    <tr bgcolor="#F3F3F3">
      <td>
        <div align="center">
          <input name="nclass" class="wenbenkuang" type="text" id="nclass" size="12" value="<%=trim(rs("nclass"))%>">
          <input name="anclassid" class="wenbenkuang" type="hidden" value="<%=request.QueryString("id")%>" id="Hidden1">
      </div></td>
      <td>
        <div align="center">
          <input name="nclassidorder" class="wenbenkuang" type="text" id="nclassidorder" size="4" value="<%=int(rs("nclassidorder"))%>" onKeyPress="return event.keyCode>=48&&event.keyCode<=57">
      </div></td>
      <td align="center"><input name="xsztys" type="text" class="wenbenkuang" id="xsztys" value="<%=rs("xsztys")%>" size="7">
        <img src="images/tm.gif"  width="20" height="20"  align="absmiddle"  style="background-color:<%=rs("xsztys")%>" onClick="colorcd('forma<%=iii%>','xsztys','snsncolr<%=iii%>')">&nbsp;<font id="snsncolr<%=iii%>" color="<%=rs("xsztys")%>">网软志成</font></td>
      <td >
        <div align="center">
          <input name="pic2" class="wenbenkuang" type="text" id="pic2" size="10" value="<%=rs("piccc")%>">
          <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="links" class="wenbenkuang" type="text" id="links" size="10" value="<%=rs("links")%>">
      </div></td>
      <td>
        <div align="center">
          <input name="spxlh" class="wenbenkuang" type="text" id="spxlh" size="4" value="<%=int(rs("spxlh"))%>" onKeyPress="return event.keyCode>=48&&event.keyCode<=57">
      </div></td>
      <td>
        <div align="center">
          <input name="spxll" class="wenbenkuang" type="text" id="spxll" size="4" value="<%=int(rs("spxll"))%>" onKeyPress="return event.keyCode>=48&&event.keyCode<=57">
      </div></td>
      <td><div align="center">
          <input name="xs" type="radio" value="2" <%if int(rs("xs"))=2 then%>checked<%end if%>>
          是
          <input type="radio" name="xs" value="1" <%if int(rs("xs"))=1 then%>checked<%end if%>>
      否</div></td>
      <td>
        <div align="center">
          <input type="submit" name="Submit" class="go-wenbenkuang" value="修">
&nbsp;<a href="nclass_save.asp?id=<%=int(rs("nclassid"))%>&action=del&anclassid=<%=request.QueryString("id")%>&anclass=<%=request.QueryString("anclass")%>" onClick="return confirm('您确定进行删除操作吗？')"><font color=red>删</font></a></div></td>
    </tr>
  </form>
  <%iii=iii+1
  rs.movenext
        loop
        paixu=rs.RecordCount
        rs.close
        set rs=nothing
        end if
        end if
				%>
</table>
<br>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="30"><span class="STYLE1"><IMG height=5 src="images/block.gif" width=1>第二步：</span><font color="#000000">在这里添加当前一级大类下的二级小类。</font><br>
      <%if request.QueryString("id")<>"" then
        response.Write "当前大类："&request.QueryString("anclass")
        end if%></td>
  </tr>
</table>
<table width="95%" border="0" cellpadding="3" cellspacing="1" bgcolor="#999999" align="center">
  <tr bgcolor="#cccccc">
    <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>
    <td>
    <div align="center">确定操作</div></td>
  </tr>
  <form name="form2" method="post" action="nclass_save.asp?action=add&anclass=<%=request.QueryString("anclass")%>" onSubmit="return ck1()">
    <script language="javascript">
  function ck1()
  {
   if(dhss.select1.selectedIndex==0)
  {
  alert("请选择分类")
    return false
  }
  if(form2.nclass2.value=="")
  {
  alert("请输入名称")
  form2.nclass2.focus()
  return false
  }
  
    if(form2.xsztys2.value=="")
  {
  alert("请选择颜色")
  form2.xsztys2.focus()
  return false
  }
  if(form2.nclassidorder2.value=="")
  {
  alert("请输入排序")
  form2.nclassidorder2.focus()
  return false
  }
  }
  </script>
    <tr bgcolor="#F3F3F3">
      <td>
        <div align="center">
          <input name="nclass2" type="text" class="wenbenkuang" id="nclass22" size="12">
          <input name="anclassid" class="wenbenkuang" type="hidden" value="<%=request.QueryString("id")%>">
      </div></td>
      <td>
        <div align="center">
          <input name="nclassidorder2" class="wenbenkuang" type="text" id="nclassidorder2" size="4" value="<%=paixu+1%>" onKeyPress="return event.keyCode>=48&&event.keyCode<=57">
      </div></td>
      <td align="center"><input name="xsztys2" type="text" class="wenbenkuang" id="xsztys2" value="#666666" size="7">
        <img src="images/tm.gif"  width="20" height="20"  align="absmiddle"  style="background-color: #666666" onClick="colorcd('form2','xsztys2','sztys2')">&nbsp;<font id="sztys2" color="#666666">网软志成</font></td>
      <td >
        <div align="center">
          <input name="pic" class="wenbenkuang" type="text" id="pic4" size="10" >          
          <input type="button" name="Submit22" class="go-wenbenkuang" value="传" onClick="window.open('../upload.asp?formname=form2&editname=pic&uppath=shoppic&filelx=jpg','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')">
      </div></td>
      <td >
        <div align="center">
          <input name="links2" class="wenbenkuang" type="text" id="links22" size="10">
      </div></td>
      <td ><div align="center">
          <input name="spxlh2" type="text" class="wenbenkuang" id="spxlh22" value="10" size="4" onKeyPress="return event.keyCode>=48&&event.keyCode<=57">
      </div></td>
      <td ><div align="center">
          <input name="spxll2" type="text" class="wenbenkuang" id="spxll22" value="1" size="4" onKeyPress="return event.keyCode>=48&&event.keyCode<=57">
      </div></td>
      <td ><div align="center">
          <input name="xs" type="radio" value="2" checked >
          是
          <input type="radio" name="xs" 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="color.asp"-->
<!--#include file="copyright.asp"-->
</body>
</html>
