<!--#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 qx8<>1 then
response.Write "<div align=center><font size=80 color=red><b>您没有此项目管理权限！</b></font></div>"
response.End
end if
%>
<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">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.style1 {
	color: #000000;
	font-weight: bold;
}
.STYLE2 {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="STYLE2">* 为必添项目</span></td>
      </tr>
    </table></td>
  </tr>
</table>
<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 height="26"><font color="#000000">&nbsp;操作说明：先选择一个供求一级大类，然后在当前大类下可进行增加或修改二级小类的操作。</font></td>
        </tr>
        <tr>
          <td height="26"><span style="font-size:14px;color:#ffffff">
		  <form id="selform" name="selform" method="post" action="">
		    <span class="STYLE2"><font color="#000000">&nbsp;</font>第一步：</span>
		    <select name="select1" id="select1" onChange="if(options[selectedIndex].value)location.href='info_nclass.asp?classid1='+(options[selectedIndex].value);" >
              <option value="0" >--请选择分类--</option>
              <%ida=int(request("classid1"))
			  if ida="" then
			  ida=0
			  end if
			set rsdl=server.CreateObject("adodb.recordset")
		  rsdl.Open "select * from shop_infoid order by infoid",conn,1,1
		  do while not rsdl.eof%>
              <option value="<%=rsdl("id")%>" <%if ida=rsdl("id") then%> selected<%end if%>><%=rsdl("info")%></option>
              <%rsdl.movenext
			loop%>
            </select>
			</form>
          </span></td>
        </tr>
    </table></td>
  </tr>
</table>
<%set rs=server.CreateObject("adodb.recordset")
		rs.open "select * from shop_infoid2 where classid1="&ida&" order by infoid",conn,1,1
		dim i
		i=rs.recordcount%>
<table width="95%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#999999">
  <tr bgcolor="#cccccc">
    <td width="42%" height="22">
    <div align="center">分类名称</div></td>
    <td width="9%" height="22">
    <div align="center">排 序</div></td>
    <td width="23%" height="22">
    <div align="center">操 作</div></td>
  </tr>
  <%if rs.eof and rs.bof then
		  response.write "No data!"
		  else
		  do while not rs.eof%>
  <tr bgcolor="#F3F3F3">
    <form name="form1" method="post" action="info_save.asp?action=edit2&classid1=<%=request("classid1")%>&id=<%=rs("id")%>">
      <td height="24">
        <div align="center">
          <input name="info" type="text" class="wenbenkuang"  id="info" value="<%=trim(rs("info"))%>" size="30">
      </div></td>
      <td>
        <div align="center">
          <input name="infoid" type="text" class="wenbenkuang"  id="infoid" value=<%=rs("infoid")%> size="3" onKeyPress="return event.keyCode>=48&&event.keyCode<=57" >
      </div></td>
      <td>
        <div align="center">
          <input type="submit" name="Submit" class="go-wenbenkuang"  value="修改">
&nbsp;&nbsp;<a href=info_save.asp?action=del2&id=<%=rs("id")%>&classid1=<%=request("classid1")%>><font color="#FF0000">删除</font></a> </div></td>
    </form>
  </tr>
  <%rs.movenext
		  loop
		  end if
		  rs.close
		  set rs=nothing%>
</table>
<form name="form2" method="post" action="info_save.asp?action=add2&classid1=<%=request("classid1")%>" onSubmit="return ck1()">
<script language="javascript">
function ck1()
{

if(selform.select1.selectedIndex==0)
{
alert("请选择分类")
return false
}

if(form2.info1.value=="")
{
alert("请输入名称")
form2.info1.focus()
return false
}



if(form2.infoid1.value=="")
{
alert("请输入排序")
form2.infoid1.focus()
return false
}

}
</script>
        
  <table width="95%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#999999">
    <tr bgcolor="#cccccc"> 
      <td height="15"> <div align="center">添加供求信息小类名称</div></td>
      <td> <div align="center">排 序</div></td>
      <td> <div align="center">操 作</div></td>
    </tr>
    <tr bgcolor="#F3F3F3"> 
      <td height="15"> <div align="center"> 
          <input name="info1" class="wenbenkuang"  type="text" id="info1" size="26">
      </div></td>
      <td> <div align="center"> 
          <input name="infoid1" class="wenbenkuang" type="text" id="infoid1" value=<%=i+1%> size="3" onKeyPress="return event.keyCode>=48&&event.keyCode<=57" >
      </div></td>
      <td> <div align="center"> 
          <input type="submit" name="Submit2" class="go-wenbenkuang"  value="添 加">
      </div></td>
    </tr>
  </table>
</form>
<!--#include file="copyright.asp"-->
<p>&nbsp;</p>
<p>&nbsp;</p>
</body>
</html>
