<!--#include file="conn.asp"-->
<%if session("admin")="" then
response.Write "<script language='javascript'>alert('网络超时或您还没有登陆！');window.location.href='login.asp';</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="../css.css" rel="stylesheet" type="text/css">
<script LANGUAGE="javascript">
<!--
function checkspace(checkstr) {
  var str = '';
  for(i = 0; i < checkstr.length; i++) {
    str = str + ' ';
  }
  return (str == checkstr);
}
function check()
{
  if(checkspace(document.form1.jiage1.value)) {
	document.form1.jiage1.focus();
    alert("价格一不能为空！");
	return false;
  }
  if(checkspace(document.form1.zengpin1.value)) {
	document.form1.zengpin1.focus();
    alert("赠品一不能为空！");
	return false;
  }
    if(checkspace(document.form1.jiage2.value)) {
	document.form1.jiage2.focus();
    alert("价格二不能为空！");
	return false;
  }
    if(checkspace(document.form1.zengpin2.value)) {
	document.form1.zengpin2.focus();
    alert("赠品二不能为空！");
	return false;
  }
    if(checkspace(document.form1.jiage3.value)) {
	document.form1.jiage3.focus();
    alert("价格三不能为空！");
	return false;
  }
    if(checkspace(document.form1.zengpin3.value)) {
	document.form1.zengpin3.focus();
    alert("赠品三不能为空！");
	return false;
  }
    if(checkspace(document.form1.jiage4.value)) {
	document.form1.jiage4.focus();
    alert("价格四不能为空！");
	return false;
  }
    if(checkspace(document.form1.zengpin4value)) {
	document.form1.zengpin4.focus();
    alert("赠品四不能为空！");
	return false;
  }
	document.admininfo.submit();
  }
//-->
</script> 
</head>

<body>    <%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????琼r?????o" method="post" action="savegouwuliucheng.asp?action=add"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
  <tr bgcolor="f1f1f1"> 
    <td height="23" colspan="9" > <div align="center">购物流程设置</div></td>
  </tr>
  <tr bgcolor="#FFFFFF"> 
    <td height="23" > <div align="center">价格一</div></td>
    <td height="23" > <div align="center">赠品一</div></td>
    <td height="23" > <div align="center">价格二</div></td>
    <td height="23" > <div align="center">赠品二</div></td>
    <td height="23" > <div align="center">价格三</div></td>
    <td height="23" > <div align="center">赠品三</div></td>
    <td height="23" > <div align="center">价格四</div></td>
    <td height="23" > <div align="center">赠品四</div></td>
    <td height="23" > <div align="center">操作</div></td>
  </tr>
  <tr bgcolor="#FFFFFF"> 
    <td height="23"> <div align="center"> 
        <input name="jiage1" class="wenbenkuang" type="text" id="jiage1" size="8">
      </div></td>
    <td height="23"> <div align="center"> 
        <input name="zengpin1" class="wenbenkuang" type="text" id="zengpin1" size="20">
      </div></td>
    <td height="23"> <div align="center"> 
        <input name="jiage2" class="wenbenkuang" type="text" id="jiage2" size="8">
      </div></td>
    <td height="23"> <div align="center"> 
        <input name="zengpin2" class="wenbenkuang" type="text" id="zengpin2" size="20">
      </div></td>
    <td height="23"> <div align="center"> 
        <input name="jiage3" class="wenbenkuang" type="text" id="jiage3" size="8">
      </div></td>
    <td height="23"> <div align="center"> 
        <input name="zengpin3" class="wenbenkuang" type="text" id="zengpin3" size="20">
      </div></td>
    <td height="23"> <div align="center"> 
        <input name="jiage4" class="wenbenkuang" type="text" id="jiage4" size="8">
      </div></td>
    <td height="23"> <div align="center"> 
        <input name="zengpin4" class="wenbenkuang" type="text" id="zengpin4" size="20">
      </div></td>
    ????琼r?????o<br>
    <td height="23"> <div align="center"> 
        <input type="submit" name="Submit2" value="增加" class="go-wenbenkuang" onClick="return check();" >
      </div></td>
  </tr>
</table></form>
<%  else
		  do while not rs.EOF
		  %>
<form name="form1" method="post" action="savegouwuliucheng.asp?action=edit&id=<%=int(rs("gouwuliuchengid"))%>">
  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
    <tr bgcolor="f1f1f1"> 
      <td height="23" colspan="9" > <div align="center">购物流程设置</div></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td height="23" > 
        <div align="center">价格一</div></td>
      <td height="23" > 
        <div align="center">赠品一</div></td>
      <td height="23" > 
        <div align="center">价格二</div></td>
      <td height="23" > 
        <div align="center">赠品二</div></td>
      <td height="23" > 
        <div align="center">价格三</div></td>
      <td height="23" > 
        <div align="center">赠品三</div></td>
      <td height="23" > 
        <div align="center">价格四</div></td>
      <td height="23" > 
        <div align="center">赠品四</div></td>
      <td height="23" > 
        <div align="center">操作</div></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td height="23"> 
        <div align="center"> 
          <input name="jiage1" class="wenbenkuang" type="text" id="jiage1" size="8" value="<%=int(rs("jiage1"))%>">
        </div></td>
      <td height="23"> 
        <div align="center"> 
          <input name="zengpin1" class="wenbenkuang" type="text" id="zengpin1" size="20" value="<%=trim(rs("zengpin1"))%>">
        </div></td>
      <td height="23"> 
        <div align="center"> 
          <input name="jiage2" class="wenbenkuang" type="text" id="jiage2" size="8" value="<%=int(rs("jiage2"))%>">
        </div></td>
      <td height="23"> 
        <div align="center"> 
          <input name="zengpin2" class="wenbenkuang" type="text" id="zengpin2" size="20" value="<%=trim(rs("zengpin2"))%>">
       </div></td>
      <td height="23"> 
        <div align="center"> 
          <input name="jiage3" class="wenbenkuang" type="text" id="jiage3" size="8" value="<%=int(rs("jiage3"))%>">
        </div></td>
      <td height="23"> 
        <div align="center"> 
          <input name="zengpin3" class="wenbenkuang" type="text" id="zengpin3" size="20" value="<%=trim(rs("zengpin3"))%>">
        </div></td>
      <td height="23"> 
        <div align="center"> 
          <input name="jiage4" class="wenbenkuang" type="text" id="jiage4" size="8" value="<%=int(rs("jiage4"))%>">
        </div></td>
      <td height="23"> 
        <div align="center"> 
          <input name="zengpin4" class="wenbenkuang" type="text" id="zengpin4" size="20" value="<%=trim(rs("zengpin4"))%>">
        </div></td>
      <br>
      <td height="23"> 
        <div align="center"> 
          <input type="submit" name="Submit" value="修改" class="go-wenbenkuang" onClick="return check();" >
        </div></td>
    </tr>
    <%rs.MoveNext
      loop
      end if
%>
    <br>
    <table width="80%" border="0" cellspacing="0" cellpadding="0" align="center">
      <tr> 
        <td> <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr> 
              <td  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="0">
                              <tr> 
                                <td height="20"> <div align="center"><font color="#000000">操作注意事项及说明</font></div></td>
                              </tr>
                              <tr> 
                                <td> <table width="80%" border="0" align="center" cellpadding="5" cellspacing=????琼r?????o"0">
                                    <tr> 
                                      <td height="16"><font color="#FF0000">·请注意不要含有非法字符。<br>
                                        ·进行删除操作的同时，会删除相关的所有记录。</font></td>
                                    </tr>
                                  </table></td>
                              </tr>
                            </table></td>
                        </tr>
                      </table></td>
                  </tr>
                </table></td>
            </tr>
          </table></td>
      </tr>
    </table></td></tr>
  </table>
</form>
<!--#include file="copyright.asp"-->
</body>
</html>
