<!--#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
%>

<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">
<!--
.style4 {color: #000000}
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.STYLE1 {color: #FF0000}
-->
</style>
</head>
<body>
<iframe width="260" height="165" id="colourPalette" src="../images/nc_selcolor.htm" style="visibility:hidden; position: absolute; left: 0px; top: 0px;border:1px gray solid" frameborder="0" scrolling="no" ></iframe>
<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" 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 class="style4" style="font-size:12px;color:#ffffff">&nbsp;<font color="#000000">注1：商品大类行数列数即为前台分类页面中显示商品调用的行与列，建议列数最大为3列，行数不限。<br>
          <span class="style4" style="font-size:12px;color:#ffffff">&nbsp;</span>注2：首页调用区域的一句话描述，建议输入不超过40个汉字，以免撑破首页该区域的页面。<br>
          <span class="style4" style="font-size:12px;color:#ffffff">&nbsp;</span>注3：首页显示图片建议上传图片大小为137宽X124高 像素，以获取最佳效果。</font><span class="STYLE1">且图片需为透明背景的GIF，方能与区域风格搭配合理。<br>
          <font color="#000000"><span class="style4" style="font-size:12px;color:#ffffff">&nbsp;</span></font>[如客户调整不理想，建议选择本系统程序根目录下的“首页分类色彩图片”中的图片或可联系客服获取增值帮助。]</span><font color="#000000"><br>
          <span class="style4" style="font-size:12px;color:#ffffff">&nbsp;</span>注4：首页调用区域的显示风格，如果欲获取更得风格效果，请联系客服。</font></td>
      </tr>
    </table></td>
  </tr>
</table>
<br>
<table width="95%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#999999">
  <tr bgcolor="#CCCCCC">
    <td width="3%">ID</td>
    <td width="10%">
    <div align="center">分类名称</div></td>
    <td width="4%">
    <div align="center">排序</div></td>
    <td width="7%">
    <div align="center">浮动价</div></td>
    <td width="16%">
    <div align="center">分类文字颜色</div></td>
    <td width="16%">
      <div align="center">
        <p>首页显示图片：</p>
    </div></td>
    <td width="15%">
    <div align="center">首页显示风格：</div></td>
    <td width="5%">
    <div align="center">行数</div></td>
    <td width="5%">
    <div align="center">列数</div></td>
    <td width="12%"><div align="center">是否显示</div></td>
    <td width="7%">
    <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
		  iii=1
		  do while not rs.EOF
		  %>
  <form name="forma<%=iii%>" method="post" action="anclass_save.asp?action=edit&id=<%=int(rs("anclassid"))%>" >
 
    <tr bgcolor="#F3F3F3">
      <td rowspan="2"><%=rs("anclassid")%></td>
      <td rowspan="2">
        <div align="center">
          <input name="anclass" class="wenbenkuang" type="text" id="anclass" size="12" value="<%=trim(rs("anclass"))%>">
      </div></td>
      <td>
        <div align="center">
          <input name="anclassidorder" type="text" class="wenbenkuang" id="anclassidorder" size="4" value="<%=int(rs("anclassidorder"))%>" onKeyPress="return event.keyCode>=48&&event.keyCode<=57">
      </div></td>
      <td>
        <div align="center">
          <input name="fudongjia" type="text" id="fudongjia" class="wenbenkuang" size="4" value="<%=rs("fudongjia")%>">
      </div></td>
      <td align="center" bgcolor="#F3F3F3"><input name="sztys" type="text" class="wenbenkuang" id="sztys" value="<%=rs("sztys")%>" size="7">
        <img src="images/tm.gif"  width="20" height="20"  align="absmiddle"  style="background-color:<%=rs("sztys")%>" onClick="colorcd('forma<%=iii%>','sztys','snsncolr<%=iii%>')">&nbsp;<font id="snsncolr<%=iii%>" color="<%=rs("sztys")%>">网</font></td>
      <td >
        <div align="center">
          <input name="pic" class="wenbenkuang" type="text" id="pic" size="10" value="<%=rs("pic")%>">
          <input type="button" name="Submit22" class="go-wenbenkuang" value="传" onClick="window.open('../upload.asp?formname=forma<%=iii%>&editname=pic&uppath=shoppic&filelx=jpg','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')">
      </div></td>
      <td >
        <div align="center">
          <select name="links">
            <option value="images/fenlei01.gif" <%if rs("links")="images/fenlei01.gif" then%>selected<%end if%>>蓝色基调背景</option>
            <option value="images/fenlei02.gif" <%if rs("links")="images/fenlei02.gif" then%>selected<%end if%>>粉色基调背景</option>
            <option value="images/fenlei03.gif" <%if rs("links")="images/fenlei03.gif" then%>selected<%end if%>>黄色基调背景</option>
            <option value="images/fenlei04.gif" <%if rs("links")="images/fenlei04.gif" then%>selected<%end if%>>绿色基调背景</option>
          </select>
      </div></td>
      <td>
        <div align="center">
          <input name="spdlh" type="text" class="wenbenkuang" id="spdlh" value="<%=int(rs("spdlh"))%>" size="2" maxlength="2" onKeyPress="return event.keyCode>=48&&event.keyCode<=57">
      </div></td>
      <td>
        <div align="center">
          <input name="spdll" type="text" class="wenbenkuang" id="spdll" value="<%=int(rs("spdll"))%>" size="2" maxlength="2" 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 rowspan="2">
        <div align="center">
          <input type="submit" name="Submit" value="修" class="go-wenbenkuang">
      <a href="anclass_save.asp?id=<%=int(rs("anclassid"))%>&action=del" onClick="return confirm('您确定进行删除操作吗？')"><font color=red>删</font></a> </div></td>
    </tr>
    <tr bgcolor="#F3F3F3">
      <td colspan="8" bgcolor="#F3F3F3">首页调用区域的一句话描述：
      <input name="miaoshu" type="text" class="wenbenkuang" value="<%=rs("miaoshu")%>" size="60"></td>
    </tr>
  </form>
  <%iii=iii+1
  rs.MoveNext
          loop
          paixu=rs.RecordCount
          end if%>
</table>
<br>
<table width="95%" border="0" align="center" cellpadding="3" cellspacing="1" bordercolor="#999999" bgcolor="#999999">
  <tr bgcolor="#CCCCCC">
    <td width="12%"><div align="center">分类名称</div></td>
    <td width="5%"><div align="center">排序</div></td>
    <td width="6%"><div align="center">浮动价</div></td>
    <td width="14%"><div align="center">分类文字颜色</div></td>
    <td width="16%"><div align="center">
        <p>首页显示图片上传：</p>
    </div></td>
    <td width="15%"><div align="center">首页显示风格：</div></td>
    <td width="5%"><div align="center">行数</div></td>
    <td width="5%"><div align="center">列数</div></td>
    <td width="13%"><div align="center">是否显示</div></td>
    <td width="9%"><div align="center">进行操作</div></td>
  </tr>
  <form name="form2" method="post" action="anclass_save.asp?action=add" onSubmit="return ck1()">
   <script language="javascript">
  function ck1()
  {
  if(form2.anclass2.value=="")
  {
  alert("请输入名称")
  form2.anclass2.focus()
  return false
  }
    if(form2.sztys2.value=="")
  {
  alert("请选择颜色")
  form2.sztys2.focus()
  return false
  }
  
  if(form2.anclassidorder2.value=="")
  {
  alert("请输入排序")
  form2.anclassidorder2.focus()
  return false
  }
  }
  </script>
    <tr bgcolor="#F3F3F3">
      <td rowspan="2"><div align="center">
        <input name="anclass2" type="text" class="wenbenkuang" id="anclass22" size="12">
      </div></td>
      <td>
        <div align="center">
          <input name="anclassidorder2" class="wenbenkuang" type="text" id="anclassidorder22" size="4" value="<%=paixu+1%>" onKeyPress="return event.keyCode>=48&&event.keyCode<=57">
      </div></td>
      <td>
        <div align="center">
          <input name="fudongjia2" type="text" class="wenbenkuang" id="fudongjia22" value="0"  size="5">
      </div></td>
      <td align="center"><input name="sztys2" type="text" class="wenbenkuang" id="sztys2" value="#666666" size="7">
        <img src="images/tm.gif"  width="20" height="20"  align="absmiddle"  style="background-color: #666666" onClick="colorcd('form2','sztys2','sztys2')">&nbsp;<font id="sztys2" color="#666666">网</font></td>
      <td >
        <div align="center">
          <input name="pic" class="wenbenkuang" type="text" id="pic3" 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">
          <select name="links2">
            <option value="images/fenlei01.gif" selected>蓝色基调背景</option>
            <option value="images/fenlei02.gif" >粉色基调背景</option>
            <option value="images/fenlei03.gif" >黄色基调背景</option>
            <option value="images/fenlei04.gif" >绿色基调背景</option>
          </select>
        </div></td>
      <td>
        <div align="center">
          <input name="spdlh2" type="text" class="wenbenkuang" id="spdlh22" value="8" size="2" maxlength="2" onKeyPress="return event.keyCode>=48&&event.keyCode<=57">
      </div></td>
      <td><div align="center">
          <input name="spdll2" type="text" class="wenbenkuang" id="spdll22" value="2" size="2" maxlength="2" 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 rowspan="2"><div align="center">
          <input type="submit" name="Submit3" value="添加" class="go-wenbenkuang">
      </div></td>
    </tr>
    <tr bgcolor="#F3F3F3">
      <td colspan="8">首页调用区域的一句话描述：
      <input name="miaoshu" type="text" class="wenbenkuang" size="60"></td>
    </tr>
  </form>
</table>
<!--#include file="color.asp"-->
<!--#include file="copyright.asp"-->
<p>&nbsp;</p>
<p>&nbsp;</p>
</body>
</html>
