<!--#include file="conn.asp"-->
<%if session("admin")="" then
response.Write "<script language='javascript'>alert('网络超时或您还没有登陆！');history.go(-1);</script>"
response.End
else
if session("flag")>1 then
response.Write "<div align=center><font size=80 color=red><b>您没有此项目管理权限！</b></font></div>"
response.End
end if
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>
td{font-size:9pt;line-height:120%;color:#353535} 
body{font-size:9pt;line-height:120%} 

a:link          { color: #000000; text-decoration: none }
a:visited       { color: #000000; text-decoration: none }
a:active        { color: #000000; text-decoration: none }
a:hover         { color: #336699; text-decoration: none; position: relative; right: 0px; top: 1px }
</style>
</head>

<body bgcolor="#799AE1">
<table width="80%" border="1" cellspacing="0" cellpadding="1" bordercolor="#6699FF" align="center">
  <tr> 
    <td> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td background="../images/back_3.gif" rowspan="2"> 
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="12v">
              <tr> 
                <td class="12v" > 
                  <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" id="AutoNumber3" height="0" width="100%">
                    <tr> 
                      <td> 
                        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#006600">
                          <tr> 
                            <td height="20" bgcolor="#FFFFFF"> 
                              <div align="center"><font color="#000000">商品大类管理</font></div>
                            </td>
                          </tr>
                          <tr> 
                            <td height="44" bgcolor="#E8F1FF"> 
                              <table width="80%" border="0" align="center" cellpadding="1" cellspacing="0">
                                <tr> 
                                  <td width="33%"> 
                                    <div align="center">分类名称</div>
                                  </td>
                                  <td width="21%"> 
                                    <div align="center">分类排序</div>
                                  </td>
                                  <td width="15%"> 
                                    <div align="center">常用分类</div>
                                  </td>
                                  <td width="31%"> 
                                    <div align="center">确定操作</div>
                                  </td>
                                </tr>
                                <%set rs=server.CreateObject("adodb.recordset")
		  rs.Open "select * from shop_anclass order by anclassidorder ",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="saveanclass.asp?action=edit&id=<%=int(rs("anclassid"))%>">
                                  <tr> 
                                    <td> 
                                      <div align="center"> 
                                        <input name="anclass" type="text" id="anclass" size="12" value="<%=trim(rs("anclass"))%>">
                                      </div>
                                    </td>
                                    <td> 
                                      <div align="center"> 
                                        <input name="anclassidorder" type="text" id="anclassidorder" size="4" value="<%=int(rs("anclassidorder"))%>">
                                      </div>
                                    </td>
                                    <td> 
                                      <div align="center"> 
                                        <input name=changyong type=checkbox value=1>
                                        <%if rs("changyong")=1 then
                response.Write "<font color=red>常用</font>"
                else
                response.Write "增加"
                end if%>
                                      </div>
                                    </td>
                                    <td> 
                                      <div align="center"> 
                                        <input type="submit" name="Submit" value="修 改">
                                        &nbsp; <a href="saveanclass.asp?id=<%=int(rs("anclassid"))%>&action=del" onClick="return confirm('您确定进行删除操作吗？')"><font color=red>删除</font></a> 
                                      </div>
                                    </td>
                                  </tr>
                                </form>
                                <%rs.MoveNext
          loop
          paixu=rs.RecordCount
          end if%>
                              </table>
                            </td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<br>
<table width="80%" border="1" cellspacing="0" cellpadding="1" bordercolor="#6699FF" align="center">
  <tr> 
    <td> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td background="../images/back_3.gif" rowspan="2"> 
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="12v">
              <tr> 
                <td class="12v" > 
                  <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" id="AutoNumber3" height="0" width="100%">
                    <tr> 
                      <td> 
                        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#006600">
                          <tr> 
                            <td height="20" bgcolor="#FFFFFF"> 
                              <div align="center"><font color="#000000">添加商品大类</font></div>
                            </td>
                          </tr>
                          <tr> 
                            <td bgcolor="#E8F1FF"> 
                              <table width="80%" border="0" align="center" cellpadding="1" cellspacing="0">
                                <tr> 
                                  <td width="33%"> 
                                    <div align="center">分类名称</div>
                                  </td>
                                  <td width="21%"> 
                                    <div align="center">分类排序</div>
                                  </td>
                                  <td width="15%"> 
                                    <div align="center">常用分类</div>
                                  </td>
                                  <td width="31%"> 
                                    <div align="center">确定操作</div>
                                  </td>
                                </tr>
                                <form name="form1" method="post" action="saveanclass.asp?action=add">
                                  <tr> 
                                    <td> 
                                      <div align="center"> 
                                        <input name="anclass2" type="text" id="anclass2" size="12">
                                      </div>
                                    </td>
                                    <td> 
                                      <div align="center"> 
                                        <input name="anclassidorder2" type="text" id="anclassidorder2" size="4" value="<%=paixu+1%>">
                                      </div>
                                    </td>
                                    <td> 
                                      <div align="center"> 
                                        <input name="changyong2" type="checkbox" id="changyong2" value="1">
                                      </div>
                                    </td>
                                    <td> 
                                      <div align="center"> 
                                        <input type="submit" name="Submit3" value="添 加">
                                      </div>
                                    </td>
                                  </tr>
                                </form>
                              </table>
                            </td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<br>
<table width="80%" border="1" cellspacing="0" cellpadding="1" bordercolor="#6699FF" align="center">
  <tr> 
    <td> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td background="../images/back_3.gif" rowspan="2"> 
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="12v">
              <tr> 
                <td class="12v" > 
                  <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" id="AutoNumber3" height="0" width="100%">
                    <tr> 
                      <td> 
                        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#006600">
                          <tr> 
                            <td bgcolor="#FFFFFF" height="20"> 
                              <div align="center"><font color="#000000">操作注意事项及说明</font></div>
                            </td>
                          </tr>
                          <tr> 
                            <td bgcolor="#E8F1FF"> 
                              <table width="80%" border="0" align="center" cellpadding="5" cellspacing="0">
                                <tr> 
                                  <td height="16"><font color="#FF0000">·请注意分类名称不要含有非法字符。<br>
                                    ·增加常用分类后，些分类将会被列出前台常用分类中。<br>
                                    ·进行删除操作的同时，会删除此大类下包含的所有小分类和图书。</font></td>
                                </tr>
                              </table>
                            </td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<!--#include file="copyright.asp"-->
</body>
</html>
