<!--#include file="conn.asp"-->
<%
if request.cookies("bjx")("shjianame")="" then
response.Redirect "admin_index.asp"
response.End
end if
%>
<html><head><title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../images/css.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {color: #FF0000}
-->
</style>
</head>
<body>
                              <table class="tableBorder" width="90%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
							  <tr>
							  <td colspan="4" align="center" background="../images/admin_bg_1.gif"><b><font color="#ffffff">产品查看与修改</font></b></td>
							  </tr>
                                <tr bgcolor="#E8F1FF"> 
                                  <td width="27%" align="center">分类名称</td>
                                  <td width="38%" align="center">分类<span class="style1">ID</span></td>
                                  <td width="15%" align="center">分类排序</td>
                                  <td width="20%" align="center">确定操作</td>
                                </tr>
                                <%set rs=server.CreateObject("adodb.recordset")
		  rs.Open "select * from shop_shjclass where shjname='"&request.cookies("bjx")("shjianame")&"' order by shjclassidorder ",conn,1,1
		  dim paixu
		  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="saveshjclass.asp?action=edit&id=<%=int(rs("shjclassid"))%>">
                                  <tr bgcolor="#E8F1FF" align="center"> 
                                    <td><input name="shjclass" type="text" class="wenbenkuang" id="shjclass" value="<%=trim(rs("shjclass"))%>" size="12">
                                    </td>
                                    <td><input name="textfield" type="text" class="wenbenkuang" size="5" maxlength="100"value="<%=trim(rs("shjclassid"))%>" readonly>
                                    ID不可改变,请在加入产品时填入正确ID</td>
                                    <td><input name="shjclassidorder" type="text" class="wenbenkuang" id="shjclassidorder" value="<%=int(rs("shjclassidorder"))%>" size="4">
                                    </td>
                                    <td><input name="Submit" type="submit" class="go-wenbenkuang" value="修 改">
                                    &nbsp;
									<a href="saveshjclass.asp?id=<%=int(rs("shjclassid"))%>&action=del" onClick="return confirm('您确定要删除该分类吗？')"><font color=red>删除</font></a>
                                    </td>
                                  </tr>
                                </form>
						<%rs.MoveNext
								loop
								paixu=rs.RecordCount
								end if%>
</table>
                              <br>
<table class="tableBorder" width="90%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
<tr>
<td colspan="3" align="center" background="../images/admin_bg_1.gif"><b><font color="#ffffff">添加产品大类</font></b></td>
</tr>
<tr bgcolor="#E8F1FF" align="center"> 
<td width="40%" align="center"> 分类名称</td>
<td width="20%" align="center"> 分类排序</td>
<td width="20%" align="center"> 确定操作</td>
</tr>
<form name="form1" method="post" action="saveshjclass.asp?action=add">
<tr bgcolor="#E8F1FF" align="center"> 
<td>
<input name="shjclass2" type="text" class="wenbenkuang" id="shjclass2" size="12">
</td>
<td>
<input name="shjclassidorder2" type="text" class="wenbenkuang" id="shjclassidorder2" value="<%=paixu+1%>" size="4">
</td>
<td>
<input name="Submit3" type="submit" class="go-wenbenkuang" value="添 加">

</td>
</tr>
</form>
</table>
<br>
　
<table width="90%" border="０" align="center" cellspacing="1" class="tableBorder">
  <tr bgcolor="#CCCCCC">
    <td colspan="2"><span class="style1">！注意:</span></td>
  </tr>
  <tr>
    <td width="7%" align="right" bgcolor="#FFFF99">※</td>
    <td width="93%" bgcolor="#EAEAEA">请在您添加产品时在产品分类ID中填入您&quot;添加产品大类&quot;后系统分配的&quot;分类<span class="style1">ID</span>&quot; ,这样您的产品才能正确的进行分类！</td>
  </tr>
  <tr>
    <td align="right" bgcolor="#FFFF99">※</td>
    <td bgcolor="#EAEAEA">如果您将产品加入一个分类Ａ，那么如果这个分类Ａ被删除的话，您需要将所有此类里的产品重新分类，否则将出错！</td>
  </tr>
  <tr>
    <td align="right" bgcolor="#FFFF99">※</td>
    <td bgcolor="#EAEAEA">分类ＩＤ由系统分配，请不要更改ＩＤ，如果更改，将出错！</td>
  </tr>
  <tr>
    <td align="right" bgcolor="#FFFF99">※</td>
    <td bgcolor="#EAEAEA">如果您需要修改分类，在管理我的产品中，修改分类ＩＤ即可！</td>
  </tr>
</table>
</body>
</html>