<!--#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 qx1<>1 then
response.Write "<div align=center><font size=80 color=red><b>您没有此项目管理权限！</b></font></div>"
response.End
end if
%>
<html>
<head>
<title>网软志成在线购物系统</title>
<script>
function IsDigit()
{
  return ((event.keyCode >= 48) && (event.keyCode <= 57));
}
</script>
<meta http-equiv="目录类型" content="文本/html; 字符集=gb2312">
<link href="../css.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {
	color: #000000;
	font-weight: bold;
}
.style2 {
	font-weight: bold;
	border: 1px solid #999999;
	font-family: "宋体";
	font-size: 9pt;
	color: #333333;
}
.style3 {font-weight: bold}
.style4 {font-weight: bold; color: #333333; }
.style5 {font-weight: bold; font-family: "宋体"; }
.STYLE6 {color: #FF0000}
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head>
<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">
<center>
<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" 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"><strong><font color="#000000">网软志成购物后台管理系统 &gt;&gt; 商品管理 &gt;&gt; 品牌管理</font></strong></td>
            <td width="23%" style="font-size:14px;color:#ffffff"><span class="STYLE6">* 为必添项目</span></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
<br>
  <table border="0" width="95%" cellpadding="3" cellspacing="1" style="border-collapse: collapse" bgcolor="#999999" >
    <form name="pinform" method="post" action="pinpai_save.asp?action=update">
      <tr align=center bgcolor="#cccccc" height=25> 
        <td width="6%" bgcolor="#CCCCCC">序号</td>
        <td width="27%" bgcolor="#CCCCCC">品牌名称</td>
        <td width="10%" bgcolor="#CCCCCC">是否推荐</td>
        <td width="19%" bgcolor="#CCCCCC">排序
          (必填项，数字)</td>
        <td width="32%" bgcolor="#CCCCCC">上传图片</td>
        <td width="6%" bgcolor="#CCCCCC">&nbsp;</td>
      </tr>
      <%
Set rs = Server.CreateObject("ADODB.Recordset")
rs.open "SELECT  * From shop_pinpai  order by pinpaiorder",conn,1,1
if rs.recordcount=0 then 
%>
      <tr bgcolor="#F3F3F3"> 
        <td height=25 colspan="9" align="center"> <span class="STYLE6">还没有添加品牌 </span></td>
      </tr>
      <%
else
iiii=1
    do while not rs.eof
%>
      <tr height=25 bgcolor="#F3F3F3"> 
        <td align=center><%=rs("ID")%></td>
        <td align=center> <input type="hidden" name="pinpaiid" value="<%=rs("id")%>"> 
          <input class="wenbenkuang" type="text" name="pinpainame" size="22" value="<%=trim(rs("pinpainame"))%>">        </td>
        <td align=center> <select class=text name="tuijian" size="1">
            <option value="1" <%if rs("tuijian")=1 then %>selected<%end if%>>推荐</option>
            <option value="0" <%if rs("tuijian")=0 then %>selected<%end if%>>不推荐</option>
          </select> </td>
        <td align=center> <input class="wenbenkuang" type="text" name="pinpaiorder" size="10" value="<%=rs("pinpaiorder")%>" ONKEYPRESS="event.returnValue=IsDigit();" >        </td>
        <td align=center><input name="pinlogo" type="text" class="wenbenkuang"  id="pinlogo" size="20"  value="<%=rs("pinlogo")%>"> 
        </td>
        <td align=center> <a href="pinpai_kill.asp?pinpaiid=<%=rs("id")%>">删除</a>        </td>
      </tr>
      <%
	  iiii=iiii+1
    rs.MoveNext
    Loop
%>
<tr height=25 bgcolor="#F3F3F3"> 
        <td colspan="6" align=center><input type="submit" name="Submit22" value="保存修改" class="go-wenbenkuang"> 
        &nbsp; <input type="reset" value="重新设定" class="go-wenbenkuang" name="重置" >        </td>
      </tr>
    </form>
	 <%
end if
%>
	  <form name="myform1" method="post" action="pinpai_save.asp?action=add">
<tr height=25 bgcolor="#F3F3F3">
  <td rowspan="2" align="center" bgcolor="#CCCCCC">添加新品牌</td>
  <td align="center" bgcolor="#CCCCCC">品牌名称</td>
  <td align="center" bgcolor="#CCCCCC">是否推荐</td>
  <td align="center" bgcolor="#CCCCCC">排序
    (必填项，数字)</td>
  <td align="center" bgcolor="#CCCCCC">&nbsp;</td>
  <td align="center" bgcolor="#CCCCCC">&nbsp;</td>
  </tr>
<tr height=25 bgcolor="#F3F3F3">
  <td align=center><input name="pinpainame" type="text" class="wenbenkuang" id="pinpainame" size="22"></td>
  <td align=center><select name="tuijian" size="1" class="wenbenkuang" id="tuijian">
    <option value="1" >推荐</option>
    <option value="0" >不推荐</option>
  </select></td>
  <td align=center><input name="pinpaiorder" type="text" class="wenbenkuang" id="pinpaiorder" ONKEYPRESS="event.returnValue=IsDigit();" value="<%=iiii%>" size="10" ></td>
  <td align=center><input name="pinlogo" type="text" class="wenbenkuang" id="pinpainame22" size="20">
    <a href=# onClick="window.open('../upload.asp?formname=myform1&editname=pinlogo&uppath=shoppic&filelx=jpg','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')">上传</a></td>
  <td align=center><input name="Submit2" type="submit" class="go-wenbenkuang" value="添加"></td>
</tr>
      <%
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
    </form>
  </table>
  <br>
</center>
<!--#include file="copyright.asp"-->
<p>&nbsp;</p>
<p>&nbsp;</p>
</body>
</html>