⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ad_report.asp

📁 商品订单管理:商品分类管理 添加与修改商品 管理订单 投诉订单 反馈信息 商品留言管理 管理网站用户:管理用户 管理后台管理员 新闻公告管理:新闻添加(支持图片新闻) 修改删除 首页公告设置 网站常规
💻 ASP
字号:
<!--#include file="conn.asp"-->
<%
if session("admin_name")="" then
    response.redirect "ad_login.asp"
end if
set rs=server.createobject("adodb.recordset")
%>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<meta http-equiv="Content-Language" content="zh-cn">
<link href=img/css.css rel=STYLESHEET type=text/css>
</head>
<%

sub_number=request("sub_number")
sql="select * from sub where sub_number='"&sub_number&"'"
rs.open sql,conn,3,3
if rs.eof then
%>

<p align="center">the order is not found</p>
<%
else
%>
<table border="0" width="100%" cellspacing="1">
  <tr>
    <td width="100%">
      <table border="0" width="100%" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111">
        <tr>
          <td width="74%" bgcolor="#F5EFE7"> 
            <img border="0" src="img/promo_list_top.gif" width="100%" height="4"></td>
        </tr>
        <tr>
          <td width="74%" bgcolor="#DBC2B0" height="25"> 
            <p align="center">Order Number:<font color="#FFFFFF"><b><%=rs("sub_number")%></b>  
              <%sub_number=rs("sub_number")%>
              </font> &nbsp;&nbsp;&nbsp;&nbsp;</font>Payment:<font color="#FFFFFF"><b><%=rs("qian")%></b>
            </font>
            
          </td>
        </tr>
        <tr>
          <td width="74%">
            <table border="0" width="100%" cellspacing="0" cellpadding="0">
              <tr> 
                <td bgcolor="#F5EFE7" colspan="2">Date:<b><%=rs("sub_date")%></b></td>
                <td bgcolor="#F5EFE7" colspan="2">User Name:<b><%=rs("user_name")%></b></td>
              </tr>
              <tr> 
                <td bgcolor="#F5EFE7" colspan="2">Consignee:<b><%=rs("sub_to")%></b></td>
                <td bgcolor="#F5EFE7" colspan="2">Addreee:<b><%=rs("sub_adds")%></b></td>
              </tr>
              <tr> 
                <td bgcolor="#F5EFE7" colspan="2">Phone Number:<b><%=rs("sub_tel")%></b></td>
                <td bgcolor="#F5EFE7" colspan="2">Email:<b><%=rs("sub_mail")%></b></td>
              </tr>
              <tr> 
                <td bgcolor="#F5EFE7" colspan="4" height="15">
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="16%">Other:</td>
                      <td width="84%"><b><%=rs("other")%></b></td>
                    </tr>
                  </table>
                </td>
              </tr>
              <%rs.close%>
              <tr bgcolor="#f0f0f0"> 
                <td colspan="4" bgcolor="#DBC2B0"> 
                  <img border="0" src="img/promo_list_top.gif" width="100%" height="4"></td>
              </tr>
              <tr bgcolor="#f0f0f0"> 
                <td colspan="4" bgcolor="#DBC2B0" height="25"> 
                  <p align="center"><b><font color="#FFFFFF">The Product you buy:</font></b></p>
                </td>
              </tr>
              <tr bgcolor="#f7f7f7"> 
                <td width="29%" bgcolor="#F5EFE7">Product</td>
                <td width="12%" bgcolor="#F5EFE7">Price</td>
                <td width="19%" bgcolor="#F5EFE7">Count</td>
                <td width="40%" bgcolor="#F5EFE7">Total</td>
              </tr>
              <%sql="select * from basket where sub_number='"&sub_number&"'"
              rs.open sql,conn,3,3
              if rs.eof then
                  response.write "the order is not found"
                  response.end
              else
                  do while not rs.eof%>
              <tr> 
                <td width="29%" bgcolor="#F5EFE7"><%=rs("hw_name")%></td>
                <td width="12%" bgcolor="#F5EFE7"> <%=rs("hw_cash")%> RMB</td>
                <td width="19%" bgcolor="#F5EFE7"><%=rs("basket_count")%></td>
                <td width="40%" bgcolor="#F5EFE7"><font color=red> <%=rs("hw_cash")*rs("basket_count")%> 
                  </font>RMB</td>
                <%totalcash=totalcash+rs("hw_cash")*rs("basket_count")%>
              </tr>
              <%rs.movenext
              loop
              %>
              <tr> 
                <td bgcolor="#F5EFE7" colspan="3">You should Pay:</td>
                <td width="40%" bgcolor="#F5EFE7"><font color=red><%=totalcash%></font>RMB</td>
              </tr>
              <%end if
              rs.close%>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<%end if
set rs=nothing
conn.close
set conn=nothing
%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -