📄 add2.asp
字号:
<!--#include file="../0.asp"-->
<!--#include file="../../../conn/conn.asp"-->
<!--#include file="../../../conn/nosql.asp"-->
<%
session("id")=clng(Request("id"))
t_id1=session("id")
%>
<html>
<head>
<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" leftmargin="0" topmargin="0">
<div align="center">
<p><br>
<a href="index.asp">>>返回送货清单主页面</a> <br>
</p>
</div>
<table width="100%" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td height="207" valign="top" width="10%"> <form name="ffm" method="POST" action=add2.asp>
<table bgcolor=#FFFFFF border=0 cellpadding=3 cellspacing=1
width="99%" align="center" class="9bang">
<tbody>
<tr bgcolor="#f1f1f1">
<td bgcolor="#E8F1FF" class="008c5e">>>新增送货信息
(只需输入订单号即可,如果是电话订单请选中<font color="#FF3333">电话</font>后的选框)</td>
</tr>
<tr>
<td height="18" bgcolor=#E8F1FF class="008c5e"> <div align="center">
订单号<font color="#FF0000"><b>
<input name="id" type="hidden" id="id" value="<%=Request("id")%>">
</b></font>
<input name="bh" type="text" id="bh" size="15" maxlength="14">
<font color="#FF3333">电话</font>
<input name="lx" type="checkbox" id="lx" value="1">
<input name="Submit" type="submit" value="提交">
</div>
</td>
</tr>
</tbody>
</table>
<br>
<%if request("bh")<>"" then
if request("lx")<>"" then
lx=1
Set s= Server.CreateObject("abodb.recordset")
set rs = conn.execute("select * from telorder where t_id="&clng(request("bh"))&"")
if rs.eof then
Response.Write("<script>alert(""找不到该订单信息,请确认您输入的订单号是否正确!"");history.back();</script>")
else
Set s= Server.CreateObject("abodb.recordset")
conn.execute("Insert into sh(bh,lx,dz,name,tel,bz,sjid)values("&rs("t_id")&","&lx&",'"&rs("t_add")&"','"&rs("t_name")&"','"&rs("t_tel")&"','"&rs("t_biaozhi")&"',"&t_id1&")")
end if
rs.close
else
Set s= Server.CreateObject("abodb.recordset")
set rs = conn.execute("select * from cart where bh='"&nosql(replace(request("bh"),"'",""))&"'")
if rs.eof then
Response.Write("<script>alert(""找不到该订单信息,请确认您输入的订单号是否正确!"");history.back();</script>")
else
conn.execute("Insert into sh(bh,dz,name,tel,bz,sjid)values('"&nosql(replace(request("bh"),"'",""))&"','"&rs("dz")&"','"&rs("name")&"','"&rs("tel")&"','"&rs("bz")&"',"&t_id1&")")
end if
rs.close
end if
end if
'添加完成,开始显示数据
Set s= Server.CreateObject("abodb.recordset")
set rs = conn.execute("select * from sh where sjid="&t_id1&"")
%>
<table bgcolor=#FFFFFF border=0 cellpadding=3 cellspacing=1
width="99%" align="center" class="9bang">
<%set rs = conn.execute("select * from sh where sjid="&t_id1&" order by id desc")
if not rs.eof then %>
<tr bgcolor="#FFFFFF">
<td colspan="5" bgcolor="#E8F1FF" class="008c5e"> <div align="center">本次送货清单列表
<a href="ok.asp?id=<%=rs("sjid")%>">>>打印本次送货清单</a></div></td>
</tr>
<tbody>
<tr bgcolor="#f1f1f1">
<td width=100 bgcolor="#E8F1FF" class="008c5e">
<div align="center">订单号</div></td>
<td width=225 bgcolor="#E8F1FF" class="008c5e"> <div align="center">送货地址</div></td>
<td width=75 bgcolor="#E8F1FF" class="008c5e"> <div align="center">收货人姓名</div></td>
<td width=179 bgcolor="#E8F1FF" class="008c5e"> <div align="center">联系电话</div></td>
<td width=35 align="center" bgcolor="#E8F1FF" class="008c5e">删除</td>
</tr>
<%
While NOT rs.EOF
%>
<tr>
<td bgcolor=#E8F1FF width=100 height="18">
<div align="center">
<%if rs("lx")=1 then Response.Write ("电话")%>
<%=rs("bh")%></div></td>
<td bgcolor=#E8F1FF width=225 height="18"> <%=rs("dz")%></td>
<td bgcolor=#E8F1FF width=75 height="18"> <div align="center"><%=rs("name")%></div></td>
<td height="18" bgcolor=#E8F1FF> <%=rs("tel")%></td>
<td width="35" rowspan="2" bgcolor=#E8F1FF> <div align="center"><a href=del.asp?x=a&id=<%=rs("id")%>>删除</a></div></td>
</tr>
<tr>
<td bgcolor=#E8F1FF height="18"> </td>
<td height="18" colspan="3" bgcolor=#E8F1FF>备注:<%=rs("bz")%></td>
</tr>
<%
rs.MoveNext()
Wend
end if %>
</tbody>
</table>
<input type="hidden" name="MM_insert" value="true">
</form></td>
</tr>
</table>
</body>
</html>
<%
rs.Close
set rs=nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -