📄 add.asp
字号:
<!--#include file="../0.asp"-->
<!--#include file="../../../conn/conn.asp"-->
<!--#include file="../../../conn/nosql.asp"-->
<html>
<head>
<title>电话定购第一步</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../../../css/css.css" rel="stylesheet" type="text/css">
<STYLE>
BODY {
SCROLLBAR-FACE-COLOR: #799ae1;
SCROLLBAR-HIGHLIGHT-COLOR: #799ae1;
SCROLLBAR-SHADOW-COLOR: #799ae1;
SCROLLBAR-3DLIGHT-COLOR: #799ae1;
SCROLLBAR-ARROW-COLOR: #fcfcfc;
SCROLLBAR-TRACK-COLOR: #aabfec;
SCROLLBAR-DARKSHADOW-COLOR: #799ae1;
SCROLLBAR-BASE-COLOR: #799ae1;
background-color: #CAD7F7;
}
</STYLE>
</head>
<body bgcolor="#FFFFFF" text="#000000"><br>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td valign="middle" align="center">
<% Select case Request("add")
case "t"%>
<form method="POST" action="?add=a">
第一步:录入客户信息 <br>
<br>
<table bgcolor=#FFFFFF border=0 cellpadding=3 cellspacing=1
width="99%" align="center" class="9bang">
<tbody>
<tr>
<td bgcolor=#E8F1FF width=137 class="008c5e" height="25" align="center"><font size="2">客户名称</font></td>
<td bgcolor=#E8F1FF width=322 class="008c5e" height="25"> <font size="2">
<input name=t_name type="text" value="" size="20">
</font></td>
<td width=154 height="25" align="center" bgcolor=#E8F1FF class="008c5e"><font size="2">联系电话</font></td>
<td bgcolor=#E8F1FF width=307 class="008c5e" height="25"> <font size="2"><span class="9bang"><span class="9bang">
<input name="t_tel" type="text" value="" size="20">
</span></span> </font></td>
</tr>
<tr>
<td bgcolor=#E8F1FF class="008c5e" width="137" height="25" align="center"><font size="2">送货地址</font></td>
<td colspan="3" class="008c5e" bgcolor=#E8F1FF height="25"> <font size="2">
<input name="t_add" type="text" value="" size="71">
</font></td>
</tr>
<tr>
<td bgcolor=#E8F1FF class="008c5e" height="25" align="center"><font size="2">订单备注</font></td>
<td colspan="3" class="008c5e" bgcolor=#E8F1FF height="25"><font size="2">
<input name="t_biaozhi" type="text" value="" size="71">
</font></td>
</tr>
<tr>
<td bgcolor=#E8F1FF class="008c5e" height="25" align="center">配送费用</td>
<td colspan="3" class="008c5e" bgcolor=#E8F1FF height="25"><font size="2"><span class="9bang"><span class="9bang">
<input name="rmb" type="text" id="rmb" size="20">
</span></span></font></td>
</tr>
<tr>
<td bgcolor=#E8F1FF class="008c5e" width="137" height="25"> </td>
<td bgcolor=#E8F1FF class="008c5e" colspan="3" height="25"> <font size="2">
<input name="submit" type="submit" value="提交">
<input name="Reset" type="reset" value="重填">
<input name="Submit" type="button" onClick="javascript:window.history.go(-1)" value="返回">
</font></td>
</tr>
</tbody>
</table>
</form>
<%case "x"
if Request("id")="" then
response.write "系统拒绝了您的操作请求"
response.end
end if
id=clng(request("id"))
set rs = conn.execute("select * from telorder where t_id="&id&"")%>
<form method="POST" action=?add=b>
>>修改客户信息 <a href="add2.asp?id=<%=Request("id")%>">>>修改订单信息</a>
<br>
<br>
<table bgcolor=#FFFFFF border=0 cellpadding=3 cellspacing=1
width="99%" align="center" class="9bang">
<tbody>
<tr>
<td bgcolor=#E8F1FF width=138 class="008c5e" height="25" align="center"><font size="2">客户名称</font></td>
<td bgcolor=#E8F1FF width=321 class="008c5e" height="25"> <font size="2">
<input name=t_name type="text" id="t_name" value="<%=rs("t_name")%>" size="20">
</font></td>
<td width=154 height="25" align="center" bgcolor=#E8F1FF class="008c5e"><font size="2">联系电话</font></td>
<td bgcolor=#E8F1FF width=307 class="008c5e" height="25"> <font size="2"><span class="9bang"><span class="9bang">
<input name="t_tel" type="text" id="t_tel" value="<%=rs("t_tel")%>" size="20">
</span></span> </font></td>
</tr>
<tr>
<td bgcolor=#E8F1FF class="008c5e" width="138" height="25" align="center"><font size="2">送货地址</font></td>
<td colspan="3" class="008c5e" bgcolor=#E8F1FF height="25"> <font size="2">
<input name="t_add" type="text" id="t_add" value="<%=rs("t_add")%>" size="71">
</font></td>
</tr>
<tr>
<td bgcolor=#E8F1FF class="008c5e" height="25" align="center"><font size="2">订单备注</font></td>
<td colspan="3" class="008c5e" bgcolor=#E8F1FF height="25"><font size="2">
<input name="t_biaozhi" type="text" id="t_biaozhi" value="<%=rs("t_biaozhi")%>" size="71">
</font></td>
</tr>
<tr>
<td bgcolor=#E8F1FF class="008c5e" height="25" align="center">配送费用</td>
<td colspan="3" class="008c5e" bgcolor=#E8F1FF height="25"><font size="2"><span class="9bang"><span class="9bang">
<input name="rmb" type="text" id="rmb" value="<%=rs("rmb")%>" size="20">
</span></span></font></td>
</tr>
<tr>
<td bgcolor=#E8F1FF class="008c5e" width="138" height="25"> </td>
<td bgcolor=#E8F1FF class="008c5e" colspan="3" height="25"> <font size="2">
<input name="submit2" type="submit" value="提交">
<input name="Reset2" type="reset" value="重填">
<input name="Submit2" type="button" onClick="javascript:window.history.go(-1)" value="返回">
<input name="id" type="hidden" id="id" value="<%=Request("id")%>">
</font></td>
</tr>
</tbody>
</table>
</form>
<%case "a"
Set s= Server.CreateObject("abodb.recordset")
conn.execute("Insert into telorder(t_name,t_tel,t_biaozhi,t_add,user_name,rmb)values('"&nosql(replace(Request("t_name"),"'",""))&"','"&nosql(replace(Request("t_tel"),"'",""))&"','"&nosql(replace(Request("t_biaozhi"),"'",""))&"','"&nosql(replace(Request("t_add"),"'",""))&"','"&nosql(session("www.wygk.cn"))&"','"&clng(Request("rmb"))&"')")
set rs2 = conn.execute("select t_id from telorder where t_name='"&nosql(replace(Request("t_name"),"'",""))&"' and t_tel='"&nosql(replace(Request("t_tel"),"'",""))&"'")
Response.redirect "add2.asp?id="&rs2("t_id")&""
case "b"
if Request("id")<>"" then
Set s= Server.CreateObject("abodb.recordset")
conn.execute("Update telorder set t_name = '"&nosql(replace(Request("t_name"),"'",""))&"',t_tel = '"&nosql(replace(Request("t_tel"),"'",""))&"',t_biaozhi='"&nosql(replace(Request("t_biaozhi"),"'",""))&"',t_add='"&nosql(replace(Request("t_add"),"'",""))&"',rmb="&clng(Request("rmb"))&" where t_id="&clng(Request("id"))&"")
Response.redirect "add2.asp?id="&Request("id")&""
end if
End Select
%>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -