📄 addsalesadder.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="../inc/conn.asp"-->
<%set rs=conn.execute("select top 1 id from sales where userid="&session("memberid")&" order by id desc")
if rs.eof then
response.write""
else
id=rs("id")
salesid=year(date())+month(date())+(day(date())+id)
end if
if request("submit")="送出我的信息" then
names=request("names")
adders=request("adders")
tel=request("tel")
id=request("id")
zips=request("zips")
'response.write""&names&"<br>"
'response.write""&adders&"<br>"
'response.write""&tel&"<br>"
'response.write""&id&"<br>"
'response.write""&zips&"<br>"
'response.end
if names="" or adders="" or tel="" or zips="" then
Response.Write("<script language=""javascript"">alert('收货人的姓名、地址、电话不能为空!');location='javascript:history.back()';</script>")
Response.End()
end if
if zips="" or IsNumeric(zips)=false or len(zips)>6 then
Response.Write("<script language=""javascript"">alert('邮编不正确!');location='javascript:history.back()';</script>")
Response.End()
end if
Set rs= Server.CreateObject("ADODB.Recordset")
sql="select id,names,tel,adders,zips,senddate from sales where id="&id&""
rs.open sql,conn,3,3
rs("names")=names
rs("adders")=adders
rs("tel")=tel
rs("zips")=zips
rs("senddate")=date()
rs.update
Response.Write("<script language=""javascript"">alert('谢谢您,我们会以最快的速度处理您的订货!');location='javascript:window.close()';</script>")
Response.End()
rs.close
set rs=nothing
end if
%>
<html>
<head>
<title>提货人信息</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../Style.css" rel="stylesheet" type="text/css">
</head>
<body background="../image/smallbg.gif" leftmargin="4" topmargin="4">
<form name="form1" method="post" action="">
<table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#000000">
<tr align="center" bgcolor="#f1f1f1">
<td colspan="2">请在下面输入您的收货信息:</td>
</tr>
<tr bgcolor="#FFFFFF">
<td colspan="2" align="center"><font color="#FF0000">您的订单号:<%=salesid%>
<input name="id" type="hidden" id="id" value="<%=id%>">
</font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="30%" align="center">收货人姓名:</td>
<td><input name="names" type="text" class="inputtd" id="names2"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td align="center">收货人地址:</td>
<td><input name="adders" type="text" class="inputtd" id="adders2"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td align="center">收货人电话:</td>
<td><input name="tel" type="text" class="inputtd" id="tel2"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td align="center">收货地邮编:</td>
<td><input name="zips" type="text" class="inputtd" id="tel2" maxlength="6"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td colspan="2" align="center"><input name="Submit" type="submit" class="inputtd" value="送出我的信息"></td>
</tr>
</table>
</form>
</body>
</html>
<%set conn=nothing%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -