?? subpass.asp
字號:
<%@LANGUAGE="VBSCRIPT" %>
<!-- #include file="../common/conn.asp" -->
<!-- #include file="../common/status.html" -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>我的訂單</title>
<style type="text/css">
<!--
.style2 {font-size: x-small}
-->
</style>
<style>
td {
font-size: 13px;
}
</style>
</head>
<body>
<div align="left"><!-- #include file="pagetop.asp" --></div>
<div align="center"><center>
<table width="95%" border="0" cellspacing="0" cellpadding="0">
<tr height="20">
<td colspan="2"></td>
</tr>
<tr>
<td width="180px" valign="top">
<table width="180" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><!-- #include file="userinfo.asp" --></td>
</tr>
<tr>
<td><!-- #include file="companyinfo.asp" --></td>
</tr>
<tr>
<td><!-- #include file="search_easy.asp" --></td>
</tr>
</table>
</td>
<td valign="top">
<table width="95%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table width="95%" border="0" cellspacing="0" cellpadding="0">
<tr align="center">
<td width="15%" height="30">訂單號</td>
<td width="20%">生成時間</td>
<td width="15%">總價</td>
<td width="15%">是否處理</td>
<td width="25%"></td>
<td width="10%"></td>
</tr>
<% if session("user_name")<>"" then
set rs=server.CreateObject("adodb.recordset")
sql="select uof_id,uof_totalprice,uof_datatime,uof_consignment from scott.user_orderform where uof_userid='"&session("user_name")&"'"
rs.open sql,connstr,1,1
if err.number<>0 then
response.write "<p>數據庫中暫時無數據</p>"
end if
if rs.eof And rs.bof then
%>
對不起,目前還沒有您的訂單信息。
<% else
do while not rs.eof
%>
<tr align="center">
<td height="30"><a href="spu_detail.asp?id=<%=rs("uof_id")%>" target="_blank"><%=rs("uof_id") %></a></td>
<td><%=rs("uof_datatime") %></td>
<td>
<%
set rs1=server.CreateObject("adodb.recordset")
sql1="select uof_totalprice,uof_method2 from scott.user_orderform where uof_id="&rs("uof_id")
rs1.open sql1,connstr,1,1
do while not rs1.eof
totalprice=0
totalprice=totalprice + clng(rs("uof_totalprice"))
rs1.movenext
loop
rs1.movefirst
if rs1("uof_method2")="EMS特快專遞" then
totalprice=totalprice + 10
else
totalprice=totalprice + 5
end if
%><%=totalprice%>
</td>
<td><%=rs("uof_consignment") %></td>
<td><a href="spc_detail.asp?id=<%=rs("uof_id")%>" target="_blank">瀏覽詳細訂單信息</a></td>
<td>
<%if rs("uof_consignment")= "否" then%>
<a href="del_uorder_certain.asp?id=<%=rs("uof_id")%>" target="_blank">刪除</a>
<%else%>
訂單已被處理 <%end if%>
</td>
</tr>
<%
rs.MoveNext
loop
rs1.Close
set rs1=nothing
rs.Close
set rs=nothing
end if
else
set rs=server.CreateObject("adodb.recordset")
sql="select cof_id,cof_totalprice,cof_datatime,cof_consignment from scott.company_orderform where cof_companyname='"&session("company_name")&"'"
rs.open sql,connstr,1,1
if err.number<>0 then
response.write "<p>數據庫中暫時無數據</p>"
end if
if rs.eof And rs.bof then
%>
對不起,目前還沒有您的訂單信息。
<% else
%>
<tr align="center">
<td height="30"><a href="spc_detail.asp?id=<%=rs("cof_id")%>" target="_blank"><%=rs("cof_id") %></a></td>
<td><%=rs("cof_datatime") %></td>
<td>
<%
do while not rs.eof
set rs1=server.CreateObject("adodb.recordset")
sql1="select cof_totalprice,cof_method2 from scott.company_orderform where cof_id="&rs("cof_id")
do while not rs1.eof
totalprice=0
rs1.open sql1,connstr,1,1
totalprice=totalprice + clng(rs("cof_totalprice"))
rs1.movenext
loop
if rs1("cof_method2")="EMS特快專遞" then
totalprice=totalprice + 10
else
totalprice=totalprice + 5
end if
%><%=totalprice%>
</td>
<td><%=rs("cof_consignment") %></td>
<td><a href="spc_detail.asp?id=<%=rs("cof_id")%>" target="_blank">瀏覽詳細訂單信息</a></td>
<td>
<%if rs("cof_consignment")= "否" then%>
<a href="del_corder_certain.asp?id=<%=rs("cof_id")%>" target="_blank">刪除</a>
<%else%>
訂單已被處理 <%end if%>
</td>
</tr>
<%
rs.MoveNext
loop
rs1.Close
set rs1=nothing
rs.Close
set rs=nothing
end if
end if%>
</table>
</td>
</tr>
<tr>
<td></td>
</tr>
</table>
</td>
</tr>
</table>
<!-- #include file="pagefooter.html" -->
</center>
</div>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -