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

📄 submore.asp

📁 自做的购物网站
💻 ASP
字号:
<%
if session("admin_name")="" then response.end
set rs=server.createobject("adodb.recordset")
%>
<!--#include file="conn.asp"-->
<!--#include file="css.asp"-->
<%if request("action")="pass" then
sql="select * from sub where sub_id="&request("sub_id")
rs.open sql,conn,3,3
if rs.eof then
    response.write "没有此订单信息,或者此订单已通过管理员确认"
    response.end
else
    rs("sub_check")=true
    rs.update
    response.write "<center>"
    response.write rs("sub_number")+"号"
    response.write "<font color=red>订单已经确认!</font>"
end if
rs.close

elseif request("action")="del" then
sql="select * from sub where sub_id="&request("sub_id")
rs.open sql,conn,3,3
sub_number=rs("sub_number")
rs.delete
rs.update
rs.close
sql="select * from basket where sub_number='"&sub_number&"'"
rs.open sql,conn,3,3
do while not rs.eof 
rs.delete
rs.movenext
loop
rs.close
response.write "此订单信息已经删除"


else


sql="select * from sub where sub_id="&request("sub_id")
rs.open sql,conn,3,3
if rs.eof then
    response.write "没有此订单信息"
else%>
<title>订单:<%=rs("sub_number")%>详细信息</title>
<TABLE cellSpacing=1 cellPadding=0 width="700" align=center bgColor=#999999 
border=0>
  <TBODY>
    <TR> 
      <TD width="735" background=images/pics/tile_back.gif id=maintitleback><TABLE cellSpacing=0 cellPadding=3 width="100%" border=0>
          <TBODY>
            <TR> 
              <TD><IMG height=8 src="images/pics/nav_m.gif" width=8 
            border=0></TD>
              <TD width="100%" height="30" valign="bottom" id=maintitle>订单管理 -&gt;订单号:<font color=blue><%=rs("sub_number")%> 
                <%sub_number=rs("sub_number")%>
                </font> &nbsp;&nbsp;&nbsp;&nbsp;付款方式:<font color=blue><%=rs("qian")%></font> 
              </TD>
            </TR>
          </TBODY>
        </TABLE></TD>
    </TR>
    <TR> 
      <TD id=mainbg> <TABLE cellSpacing=1 cellPadding=4 width="100%" border=0 height="342">
          <TBODY>
            <TR> 
              <TD height="30" noWrap 
          background=images/pics/tile_sub.gif id=titlemedium><div align="center"><font color="#FFFFFF">订购日期</font></div></TD>
              <TD height="30" colspan="2" noWrap 
          background=images/pics/tile_sub.gif id=titlemedium><div align="center"> 
                  <font color="#FFFFFF"><%=rs("sub_date")%></font></div></TD>
              <TD width="122" height="30" align=middle noWrap 
          background=images/pics/tile_sub.gif id=titlemedium> <div align="center"><font color="#FFFFFF">订货人</font></div></TD>
              <TD height="30" colspan="2" align=middle noWrap 
          background=images/pics/tile_sub.gif id=titlemedium> <div align="center"><font color="#FFFFFF"><%=rs("user_name")%></font></div></TD>
            </TR>
            <TR> 
              <TD bgColor=#ffffff height="30"><div align="center"><font color="#000000">收货人</font></div></TD>
              <TD width="122" height="30" align=middle bgColor=#ffffff> <div align="center"><font color=#333333><%=rs("sub_to")%></font></div></TD>
              <TD width="122" height="30" align=middle bgColor=#ffffff><div align="center">电话</div></TD>
              <TD align=middle bgColor=#ffffff height="30"><div align="center"><%=rs("sub_tel")%> 
                </div></TD>
              <TD width="122" height="30" bgColor=#ffffff><div align="center">E-mail</div></TD>
              <TD width="122" height="30" align=middle bgColor=#ffffff><div align="center"><%=rs("sub_mail")%> 
                </div></TD>
            </TR>
            <TR> 
              <TD bgColor=#ffffff height="30"><div align="center"><font color="#000000">收货地址</font></div></TD>
              <TD height="30" colspan="5" align=middle bgColor=#ffffff> <div align="center"></div>
                <div align="center"><%=rs("sub_adds")%> </div></TD>
            </TR>
            <TR> 
              <TD bgColor=#ffffff height="30"><div align="center">备注信息</div></TD>
              <TD height="30" colspan="5" align=middle bgColor=#ffffff> <div align="center"><b><%=rs("other")%></b></div></TD>
            </TR>
            <TR> 
              <TD height="30" colspan="6" bgColor=#ffffff><div align="center"><img src="../IMAGES/pics/seperator.gif" width="359" height="1"></div></TD>
            </TR>
            <TR> 
              <TD height="30" colspan="6" bgColor=#ffffff><div align="center"><font color="#FF0000">订购货物列表</font></div></TD>
            </TR>
            <TR> 
              <%rs.close
                    %>
              <TD bgColor=#ffffff height="30"><div align="center">货物名称</div></TD>
              <TD height="30" colspan="2" align=middle bgColor=#ffffff> <div align="center">单价</div></TD>
              <TD height="30" align=middle bgColor=#ffffff><div align="center">数量</div></TD>
              <TD height="30" colspan="2" align=middle bgColor=#ffffff><div align="center">合计</div></TD>
            </TR>
            <%sql="select * from basket where sub_number='"&sub_number&"'"
              rs.open sql,conn,3,3
              if rs.eof then
                  response.write "没有此订单信息"
                  response.end
              else
                  do while not rs.eof%>
            <TR> 
              <TD width=122 bgColor=#ffffff height="30"><div align="center"><%=rs("hw_name")%></div></TD>
              <TD height="30" colspan="2" align=middle bgColor=#ffffff> <div align="center"><%=rs("hw_cash")%>元</div></TD>
              <TD height="30" align=middle bgColor=#ffffff><div align="center"><%=rs("basket_count")%></div></TD>
              <TD height="30" colspan="2" align=middle bgColor=#ffffff><div align="center"><font color=red><%=rs("hw_cash")*rs("basket_count")%></font>元</div></TD>
              <%totalcash=totalcash+rs("hw_cash")*rs("basket_count")%>
            </TR>
            <%rs.movenext
              loop
              rs.close
              %>
            <TR> 
              <TD bgColor=#ffffff height="30"><div align="center">总计</div></TD>
              <TD height="30" colspan="2" align=middle bgColor=#ffffff><div align="center"></div></TD>
              <TD height="30" align=middle bgColor=#ffffff><div align="center"></div></TD>
              <TD height="30" colspan="2" align=middle bgColor=#ffffff><div align="center"><font color=red><%=totalcash%></font>元</div></TD>
            </TR>
            <%end if%>
            <TR> 
              <TD height="30" colspan="6" bgColor=#ffffff><div align="center"><img src="../IMAGES/pics/seperator.gif" width="359" height="1"></div></TD>
            </TR>
            <TR> 
              <TD id=mainfoot 
colSpan=6 height="20"> <div align="center"> 
                  <table width="50%" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td><div align="center"><a href="submore.asp?sub_id=<%=request("sub_id")%>&action=pass"><img src="images/pics/buyok.gif" width="88" height="26" border="0"></a></div></td>
                      <td><div align="center"><a href="submore.asp?sub_id=<%=request("sub_id")%>&action=del"><img src="images/pics/del.gif" width="88" height="26" border="0"></a></div></td>
                    </tr>
                  </table>
                </div></TD>
            </TR>
          </TBODY>
        </TABLE></TD>
    </TR>
  </TBODY>
</TABLE>
<%end if
end if
set rs=nothing
conn.close
set conn=nothing
%>

⌨️ 快捷键说明

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