日期:2014-05-17  浏览次数:20785 次

添加增加一行,并且可以写入数据库
请各位高手帮我修改一下,下面的代码,谢谢:
<%
if request.Cookies("soss_username")="" then
%>
<script language="javascript">
top.location.href="../index.asp"
</script>
<%  
  response.end
end if
%>
<!-- #include file="../conn2.asp" -->
<!-- #include file="../const.asp" -->

<html>
<head>
<title><%=dianming%> - 添加新订单</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../style/style.css" rel="stylesheet" type="text/css">
<style>
body {
background-color:#FFFFFF;
}
</style>
</HEAD>

<BODY>
<%
if fla9="0" and request.Cookies("soss_id")<>"1" then
%>
<br><center><img src="../images/note.gif" align="absmiddle">&nbsp;<font color="#FF0000">你不具备此权限,请与管理员联系!</font></center>
<%  
  response.end
end if
%>
<%if request("hid1")="" then%>
<script language="javascript">
function check()
{
if (document.form1.dingdanhao.value=="")
{
alert("有*号的必须填写!");
return false;
}
}
</script>
<form name="form1">
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#C4D8ED">
<tr>
<td><img src="../images/r_1.gif" alt="" /></td>
<td width="100%" background="../images/r_0.gif">
  <table cellpadding="0" cellspacing="0" width="100%">
  <tr>
  <td>&nbsp;添加新订单(带*号的为必填项)</td>
<td align="right"> </td>
  </tr>
  </table>
</td>
<td><img src="../images/r_2.gif" alt="" /></td>
</tr>
<tr>
<td></td>
<td>
<table align="center" cellpadding="4" cellspacing="1" class="toptable grid" border="1">
  <tr>

  <td width="15%" height="30" align="right" colspan="3">供应商名称:</td>
  <td width="35%" class="category" colspan="3">
  <input type="text" name="gys" style="width:400px">
  </td>
  <%
ranNum=int(9*rnd)+10
iddata=month(now)&day(now)&hour(now)&minute(now)&second(now)&ranNum
%>

  <td width="15%" height="30" align="right" colspan="3">订单号:</td>
  <td width="35%"class="category" colspan="3">
<input type="text" name="dingdanhao" id="dingdanhao" value="<%=iddata%>" style="width:400px" size="20"></td>  
  </tr>
  </table>
<table align="center" cellpadding="4" cellspacing="1" class="toptable grid" border="1">
  <tr>
  <td width="16%" height="30" align="center" bgcolor="#DDDDDD">产品名称</td>
  <td width="16%" height=&q