<!--#include file="conn.asp"-->
<%
if session("admin")="" then
conn.close
set conn = nothing
response.Write "<script language='javascript'>alert('请先登录！');location.href='index.asp' ;</script>"
response.End
else
if request.cookies("sundxshop")("admin")="" then
conn.close
set conn = nothing
response.Write "<script language='javascript'>alert('请先登录！');location.href='index.asp' ;</script>"
response.End
end if
end if
%>
<title>转移类别</title>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" BGCOLOR="#39867B">
  <tr> 
    <td height="20" BGCOLOR="#39867B" align="center"><font color="#ffffff">商品类别转移</font></td>
  </tr>
  <tr> 
    <td height="89" bgcolor="#FFFFFF"> <br> 
	<table width="56%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#CCCCCC">
        <form name="form1" method="post" action="savemove.asp">
          <tr bgcolor="#FFFFFF"> 
            <td width="40%" align="right">请选择您要转移的小类：</td>
            <td width="60%"> <select name="sortsid" size="1" class="smallinput" >
                <%set rs=server.CreateObject("adodb.recordset")
                rs.Open "select sortsid,sorts from sorts order by sortsid",conn,1,1
                if rs.EOF and rs.BOF then
                response.Write "<option value=0>还没有分类</option>"
                else
                do while not rs.EOF
                %>
                <option value="<%=int(rs("sortsid"))%>"><%=trim(rs("sorts"))%></option>
                <%rs.MoveNext
                loop
                rs.Close
                set rs=nothing
                end if%>
              </select> </td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td align="right">请选择所属大类：</td>
            <td> <select name="categoryid" size="1" class="smallinput" >
                <%set rs=server.CreateObject("adodb.recordset")
                rs.Open "select categoryid,category from category order by categoryorder",conn,1,1
                if rs.eof and rs.bof then
                response.Write "<option value=0>还没有分类</option>"
                else
                do while not rs.eof
                %>
                <option value="<%=int(rs("categoryid"))%>"><%=trim(rs("category"))%></option>
                <%rs.movenext
                loop
                rs.close
                set rs=nothing
                end if%>
              </select> </td>
          </tr>
          <tr bgcolor="#FFFFFF" align="center"> 
            <td height="30" colspan="2"><input type="submit" name="Submit" value="确定转移"></td>
          </tr>
        </form>
      </table></td>
  </tr>
</table>
<br>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" BGCOLOR="#39867B">
  <tr> 
    <td height="20" BGCOLOR="#39867B"> <div align="center"><font color="#ffffff">操作注意事项及说明</font></div></td>
  </tr>
  <tr> 
    <td height="34" bgcolor="#FFFFFF"> <table width="80%" border="0" align="center" cellpadding="5" cellspacing="0">
        <tr> 
          <td height="16"><font color="#ffffff">·转移小类的同时也转移小类下所有的商品。<br>
            ·转移后需要修改小分类的排序。</font></td>
        </tr>
      </table></td>
  </tr>
</table>
<!--#include file="footer.asp"-->
</body>
</html>

