<!--#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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="../css.css" rel="stylesheet" type="text/css">
<script LANGUAGE="javascript">


function check()
{
  if(document.form1.qbj1.value=="") {
	document.form1.qbj1.focus();
    alert("价格一不能为空！");
	return false;
  }
  if(document.form1.zengpin1.value=="") {
	document.form1.zengpin1.focus();
    alert("赠品一不能为空！");
	return false;
  }
    if(document.form1.qbj2.value=="") {
	document.form1.qbj2.focus();
    alert("价格二不能为空！");
	return false;
  }
    if(document.form1.zengpin2.value=="") {
	document.form1.zengpin2.focus();
    alert("赠品二不能为空！");
	return false;
  }
    if(document.form1.qbj3.value=="") {
	document.form1.qbj3.focus();
    alert("价格三不能为空！");
	return false;
  }
    if(document.form1.zengpin3.value=="") {
	document.form1.zengpin3.focus();
    alert("赠品三不能为空！");
	return false;
  }
    if(document.form1.qbj4.value=="") {
	document.form1.qbj4.focus();
    alert("价格四不能为空！");
	return false;
  }
    if(document.form1.zengpin4value=="") {
	document.form1.zengpin4.focus();
    alert("赠品四不能为空！");
	return false;
  }
	
  }

</script> 
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.STYLE1 {color: #FF0000}
-->
</style></head>

<body>
<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>
<%set rs=server.CreateObject("adodb.recordset")
		  rs.Open "select * from shop_gouwuliucheng order by gouwuliuchengid ",conn,1,1
		  
		  if rs.EOF and rs.BOF then
%>
<form name="form1" method="post" action="zengpin_save.asp?action=add">
  <table width="95%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#999999">
    <tr bgcolor="#F3F3F3"> 
      <td height="23" > <div align="center">起步价一</div></td>
      <td ><input name="qbj1" class="wenbenkuang" type="text" id="qbj1" size="8"></td>
      <td height="23" > <div align="center">赠品一</div></td>
      <td ><input name="zengpin1" class="wenbenkuang" type="text" id="zengpin1" size="60"></td>
      <td height="23" > <div align="center">操作</div></td>
    </tr>
    <tr bgcolor="#F3F3F3"> 
      <td height="11" colspan="4"> <div align="center"> </div>
      <div align="center"> </div></td>
      <td height="23" rowspan="7"> <div align="center"> 
          <input type="submit" name="Submit2" value="增加" class="go-wenbenkuang" onClick="return check();" >
        </div></td>
      <br>
    </tr>
    <tr bgcolor="#F3F3F3"> 
      <td height="11"><div align="center">起步价二</div></td>
      <td height="11"><input name="qbj2" class="wenbenkuang" type="text" id="qbj2" size="8"></td>
      <td height="-1"><div align="center">赠品二</div></td>
      <td height="-1"><input name="zengpin2" class="wenbenkuang" type="text" id="zengpin2" size="60"></td>
    </tr>
    <tr bgcolor="#F3F3F3"> 
      <td height="23" colspan="4"><div align="center"> </div>
        <div align="center"> </div></td>
    </tr>
    <tr bgcolor="#F3F3F3"> 
      <td height="23"><div align="center">起步价三</div></td>
      <td height="23"><input name="qbj3" class="wenbenkuang" type="text" id="qbj3" size="8"></td>
      <td height="-1"><div align="center">赠品三</div></td>
      <td height="-1"><input name="zengpin3" class="wenbenkuang" type="text" id="zengpin3" size="60"></td>
    </tr>
    <tr bgcolor="#F3F3F3"> 
      <td height="23" colspan="4"><div align="center"> </div>
        <div align="center"> </div></td>
    </tr>
    <tr bgcolor="#F3F3F3"> 
      <td height="23"><div align="center">起步价四</div></td>
      <td height="23"><input name="qbj4" class="wenbenkuang" type="text" id="qbj4" size="8"></td>
      <td height="-1"><div align="center">赠品四</div></td>
      <td height="-1"><input name="zengpin4" class="wenbenkuang" type="text" id="zengpin4" size="60"></td>
    </tr>
  </table>
</form>
<%  else
		  do while not rs.EOF
		  %>
<form name="form1" method="post" action="zengpin_save.asp?action=edit&id=<%=int(rs("gouwuliuchengid"))%>" onSubmit="return check()">
  <table width="95%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#999999">
    <tr bgcolor="#F3F3F3"> 
      <td height="23" > <div align="center">起步价一</div></td>
      <td ><input name="qbj1" type="text" class="wenbenkuang" id="qbj1" value="<%=int(rs("qbj1"))%>" size="8" onKeyPress="return event.keyCode>=46&&event.keyCode<=57"></td>
      <td height="23" > <div align="center">赠品一</div></td>
      <td height="23" ><input name="zengpin1" class="wenbenkuang" type="text" id="zengpin1" size="40" value="<%=trim(rs("zengpin1"))%>"></td>
      <td align="center" >操作</td>
    </tr>
    <tr bgcolor="#F3F3F3">
      <td height="23" colspan="4" >&nbsp;</td>
      <td rowspan="6" align="center" ><input type="submit" name="Submit" value="修改" class="go-wenbenkuang"></td>
    </tr>
    
    <tr bgcolor="#F3F3F3"> 
      <td height="11"><div align="center">起步价二</div></td>
      <td height="11"><input name="qbj2" type="text" class="wenbenkuang" id="qbj2" value="<%=int(rs("qbj2"))%>" size="8" onKeyPress="return event.keyCode>=46&&event.keyCode<=57"></td>
      <td height="11"><div align="center">赠品二</div></td>
      <td height="11"><input name="zengpin2" class="wenbenkuang" type="text" id="zengpin2" size="40" value="<%=trim(rs("zengpin2"))%>" ></td>
    </tr>
    <tr bgcolor="#F3F3F3">
      <td height="11" colspan="4">&nbsp;</td>
    </tr>
	
    
	
    <tr bgcolor="#F3F3F3"> 
      <td height="23"><div align="center">起步价三</div></td>
      <td height="23"><input name="qbj3" type="text" class="wenbenkuang" id="qbj3" value="<%=int(rs("qbj3"))%>" size="8" onKeyPress="return event.keyCode>=46&&event.keyCode<=57"></td>
      <td height="23"><div align="center">赠品三</div></td>
      <td height="23"><input name="zengpin3" class="wenbenkuang" type="text" id="zengpin3" size="40" value="<%=trim(rs("zengpin3"))%>"></td>
    </tr>
    <tr bgcolor="#F3F3F3">
      <td height="23" colspan="4">&nbsp;</td>
    </tr>
	
    
    <tr bgcolor="#F3F3F3"> 
      <td height="23"><div align="center">起步价四</div></td>
      <td height="23"><input name="qbj4" type="text" class="wenbenkuang" id="qbj4" value="<%=int(rs("qbj4"))%>" size="8" onKeyPress="return event.keyCode>=46&&event.keyCode<=57"></td>
      <td height="23"><div align="center">赠品四</div></td>
      <td height="23"><input name="zengpin4" class="wenbenkuang" type="text" id="zengpin4" size="40" value="<%=trim(rs("zengpin4"))%>"></td>
    </tr>
    

  <%rs.MoveNext
      loop
      end if
%></table>
    <br>
    
    <tr bgcolor="#F3F3F3"> 
      <td colspan="3">    </td>
      </table>
</form>
<!--#include file="copyright.asp"-->
</body>
</html>
