-
Notifications
You must be signed in to change notification settings - Fork 0
/
chaxun.asp
246 lines (242 loc) · 8.28 KB
/
chaxun.asp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
<!--#include file="include/conn.asp" -->
<!--#include file="include/include.asp" -->
<!--#include file="chk_user.asp" -->
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
.style1 {color: #f2ab5b}
-->
</style>
<%
if right(request("zhuangtai"),1)="3" then
sql="select * from [order] where didanhao='"&request("order")&"';"
set rs=Server.CreateObject("ADODB.Recordset")
rs.open sql,conn,3,3
rs("zhuangtai")=right(request("zhuangtai"),1)
rs.update
rs.close
set rs=nothing
response.Write("<script>alert('用户确认成功!');window.location.href='chaxun.asp?order="&request("order")&"';</script>")
end if
%>
<table width="792" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td colspan="3"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="792" height="165" background="images/index_r1_c1.jpg"><!--#include file="top.asp" --></td>
</tr>
</table></td>
</tr>
<tr>
<td width="197"><!--#include file="left.asp" --></td>
<td width="590" valign="top"><table border="0" cellpadding="0" cellspacing="0" width="590">
<tr>
<td colspan="3"><img name="index_7_r1_c1" src="images/ddcx.jpg" width="590" height="49" border="0" alt=""></td>
</tr>
<tr>
<td colspan="3"><img name="index_7_r2_c1" src="images/index_7_r2_c1.jpg" width="590" height="9" border="0" alt=""></td>
</tr>
<tr>
<td width="16" height="643" background="images/index_7_r3_c1.jpg"> </td>
<td width="564" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
</table>
<%
Sum=0
if request("order")<>"" then
SafeRequest(request("order"))
sql="select * from [order] where didanhao='"&request("order")&"';"
set rs=Server.CreateObject("ADODB.Recordset")
rs.open sql,conn,3,3
if not rs.eof then
information=split(rs("information"),",")
shuliang=split(rs("shuliang"),",")
%>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td>
<table border="0" cellspacing="1" cellpadding="4" align="center" width="100%" bgcolor="BDBDBC">
<form name="form" action="chaxun.asp" method="post">
<tr>
<td width="13%" bgcolor="#FFFFFF">订单编号:</td>
<td width="22%" bgcolor="#FFFFFF"><%=request("order")%></td>
<td width="18%" bgcolor="#FFFFFF"><div align="center">已收款
<input type="checkbox" name="zhuangtai" disabled value="1"<%if rs("zhuangtai")>0 then response.Write("checked") end if %>>
</div></td>
<td width="18%" bgcolor="#FFFFFF"><div align="center">已发货
<input type="checkbox" name="zhuangtai" disabled value="2"<%if rs("zhuangtai")>1 then response.Write("checked") end if %>>
</div></td>
<td width="18%" bgcolor="#FFFFFF"><div align="center">已收货
<input type="checkbox" name="zhuangtai" <%if rs("zhuangtai")<2 or rs("zhuangtai")>2 then response.Write("disabled") end if%> value="3"<%if rs("zhuangtai")>2 then response.Write("checked") end if %>>
</div></td>
<td width="18%" bgcolor="#FFFFFF"><input type="submit" value="确认收货"></td>
</tr>
<input type="hidden" name="order" value="<%response.Write request("order") %>">
</form>
</table>
<table border="0" cellspacing="1" cellpadding="4" align="center" width="100%" bgcolor="BDBDBC">
<tr bgcolor="#FFFFFF" height="25" align="center">
<td width="300">仪 器 名 称</td>
<td width="40">数量</td>
<td width="60">出租价格</td>
<td width="60">成交价</td>
<td width="70">小 计</td>
</tr>
<tr bgcolor="#FFFFFF" height="25"align="center">
<td align="left">
<%
for i=0 to ubound(information)
sql2="select * from [information] where id="&trim(information(i))&""
set rs2=Server.CreateObject("ADODB.Recordset")
rs2.open sql2,conn,3,3
%>
<a href="lookpro.asp?id=<%=rs2("id")%>" target="_blank"><%=rs2("mingcheng")%></a><br>
<%
rs2.close
set rs2=nothing
next
%>
</td>
<td>
<%
for i=0 to ubound(shuliang)
response.Write(shuliang(i))
response.Write("<br>")
next
%>
</td>
<td>
<%
for i=0 to ubound(shuliang)
sql2="select * from [information] where id="&trim(information(i))&""
set rs2=Server.CreateObject("ADODB.Recordset")
rs2.open sql2,conn,3,3
response.Write(rs2("shichang"))
response.Write("<br>")
rs2.close
set rs2=nothing
next
%>
</td>
<td>
<%
for i=0 to ubound(shuliang)
sql2="select * from [information] where id="&trim(information(i))&""
set rs2=Server.CreateObject("ADODB.Recordset")
rs2.open sql2,conn,3,3
response.Write(rs2("shichang"))
response.Write("<br>")
rs2.close
set rs2=nothing
next
%>
</td>
<td>
<%
for i=0 to ubound(shuliang)
sql2="select * from [information] where id="&trim(information(i))&""
set rs2=Server.CreateObject("ADODB.Recordset")
rs2.open sql2,conn,3,3
Sum=Sum+rs2("shichang")*shuliang(i)
response.Write(rs2("shichang")*shuliang(i))
response.Write("<br>")
rs2.close
set rs2=nothing
next
%>
</td>
</tr>
<tr bgcolor="#FFFFFF" height="25"align="center">
<td align="left" colspan="5">
<%if session("je")<100 Then response.Write("铜牌会员九折 总计:"&Sum*0.9) else if session("je")>100 and session("je")<500 Then response.Write("银牌会员八折 总计:"&Sum*0.8) else if session("je")>500 Then response.Write("金牌会员七折 总计:"&Sum*0.7) end if %></td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="BDBDBC">
<tr bgcolor=#ffffff>
<td width="150" height="26"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="10"></td>
</tr>
</table>
收货人姓名:
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="10"></td>
</tr>
</table></td>
<td width="600" height="26"><%=rs("shoujianren")%></td>
</tr>
<tr bgcolor=#ffffff>
<td height="30">详细地址:</td>
<td height="28"><%=rs("dizhi")%></td>
</tr>
<tr bgcolor=#ffffff>
<td height="30">邮 编:</td>
<td height="28"><%=rs("youbian")%></td>
</tr>
<tr bgcolor=#ffffff>
<td height="30">电 话:</td>
<td height="28"><%=rs("tel")%></td>
</tr>
<tr bgcolor=#ffffff>
<td height="30">电子邮件:</td>
<td height="28"><%=rs("mail")%></td>
</tr>
<tr bgcolor=#ffffff>
<td height="26">送货方式:</td>
<td height="28"><%=rs("songhuo")%></td>
</tr>
<tr bgcolor=#ffffff>
<td height="30">支付方式:</td>
<td height="20"><%=rs("zhifu")%></td>
</tr>
<tr bgcolor=#ffffff>
<td height="40" valign="middle">简单留言:</td>
<td height="28"><%=HTMLEncode(rs("leaveword"))%></td>
</tr>
</table> </td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" class="table-zuoyou">
<tr>
<td> <br></td>
</tr>
<tr>
<td>
</td>
</tr>
</table>
<%
else
response.Write("<script>alert('无此订单号');window.location.href='chaxun.asp';</script>")
end if
rs.close
set rs=nothing
else
%>
<form name="form" action="chaxun.asp" method="post">
<div align="center">请输入您的订单号:
<input name="order" type="text">
<input type="submit" value="查询">
</div>
</form>
<%end if%>
<table width="96%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td> </td>
</tr>
</table></td>
<td width="10" background="images/index_7_r3_c3.jpg"> </td>
</tr>
<tr>
<td colspan="3"><img name="index_7_r4_c1" src="images/index_7_r4_c1.jpg" width="590" height="7" border="0" alt=""></td>
</tr>
</table></td>
<td width="8"><img name="index_r2_c3" src="images/index_r2_c3.jpg" width="5" height="753" border="0" alt=""></td>
</tr>
<tr>
<td colspan="3"><!--#include file="foot.asp" --></td>
</tr>
</table>