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

📄 saveto.asp

📁 商品订单管理:商品分类管理 添加与修改商品 管理订单 投诉订单 反馈信息 商品留言管理 管理网站用户:管理用户 管理后台管理员 新闻公告管理:新闻添加(支持图片新闻) 修改删除 首页公告设置 网站常规
💻 ASP
字号:

<!--#include file="conn.asp"-->
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<title>Success!</title>
<link href=img/css.css rel=STYLESHEET type=text/css>
</head> 
<body topmargin="0">
<%
if session("user_name")="" then
        response.write  "<br>"
	response.write "<center>"
	response.write  "1.Already our member, Please Login First!"
        response.write "<br>"
	response.write  "<br>2.New to our, If you want to login, you'll need to register first.<a href=reg.asp target=_blank><font color=#FF0000> register </font></a>!"
	response.write  "<br>"
    response.end
end if

dim sql,rs
set rs=server.createobject("adodb.recordset")
if request("action")="buy" then

if request("count")="" then
    count=1
else
    count=request("count")
end if

if request("hw_id")="" then
    response.write "the product is not found."
else
    hw_id=request("hw_id")
end if

sql="select * from basket where hw_id='"&hw_id&"' and user_name='"&session("user_name")&"' and basket_check=false"
rs.open sql,conn,3,3
if rs.eof then
rs.addnew
rs("hw_id")=hw_id
rs("user_name")=session("user_name")
rs("basket_count")=count
rs("basket_date")=now()
rs("hw_name")=request("hw_name")
rs("hw_cash")=request("hw_cash")
else
rs("basket_count")=int(rs("basket_count"))+int(count)
end if
rs.update
rs.close
%>
<%end if%>
<tr> 
    
  <td valign="top"> 
    <tr> 
          
  <td valign="top" height="120"> 
    <table border="0" width="400" cellspacing="0" cellpadding="0" height="5" align="center">
      <tr> 
        <td width="380" height="18"> 
          <div align="center">
            <TABLE cellSpacing=0 cellPadding=0 width=400 border=0>
              <TBODY>
                <TR> 
                  <TD align=middle bgcolor="#DBC2B0" height="25">
					<font color="#F5EFE7"><%
        if request("sub_number")="" then
        response.write "The Order is not found."
        else
        sub_to=request("sub_to")
        sub_adds=request("sub_adds")
        sub_mail=request("sub_mail")
        sub_tel=request("sub_tel")
		sub_post=request("sub_post")
        sub_number=request("sub_number")
		qian=request("qian")
        other=request("other")
        sql="select * from sub where sub_number='"&sub_number&"'"
        rs.open sql,conn,3,3
        rs("sub_to")=sub_to
        rs("sub_tel")=sub_tel
		rs("sub_post")=sub_post
        rs("sub_mail")=sub_mail
        rs("sub_adds")=sub_adds
		rs("qian")=qian
		rs("other")=other
        rs.update
        rs.close
        %></font><b><font color="#F5EFE7">Thank you ! Your order number:<%=sub_number%></font></b><font color="#F5EFE7">
					</font>
                  </TD>
                </TR>
              </TBODY>
            </TABLE>
          </div>
        </td>
      </tr>
      <tr> 
        <td width="100%"><table width="100%" height="34" border="0" cellpadding="0" cellspacing="0">
              <td width="398" height="120" valign="bottom" bgcolor="#F5EFE7" >
              <div align="center">
                  <center>
                <table width="100%" border="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111">
                  <tr> 
                    <td width="44%" height="20"> 
                      <div align="right">Consignee :</div>
                    </td>
                    <td width="56%" height="20"> 
                      <%=sub_to%> 
                    </td>
                  </tr>
                  <tr> 
                    <td width="44%" height="20"> 
                      <div align="right">Address :</div>
                    </td>
                    <td width="56%" height="20"> 
                      <%=sub_adds%> 
                    </td>
                  </tr>
                  <tr> 
                    <td width="44%" height="20"> 
                      <div align="right">Zip Code :</div>
                    </td>
                    <td width="56%" height="20"> 
                      <%=sub_post%> 
                    </td>
                  </tr>
                  <tr> 
                    <td width="44%" height="20"> 
                      <div align="right">Phone Number :</div>
                    </td>
                    <td width="56%" height="20"> 
                      <%=sub_tel%> 
                    </td>
                  </tr>
                  <tr> 
                    <td width="44%" height="20"> 
                      <div align="right">Email :</div>
                    </td>
                    <td width="56%" height="20"> 
                      <%=sub_mail%> 
                    </td>
                  </tr>
                  <tr> 
                    <td width="44%" height="20"> 
                      <div align="right">Payment :</div>
                    </td>
                    <td width="56%" height="20"> 
                      <%=qian%></td>
                  </tr>
                  <tr>
                    <td width="44%" height="20">
                      <div align="right">Other :</div>
                    </td>
                    <td width="56%" height="20"> 
                      <%=other%></td>
                  </tr>
                  <tr> 
                    <td colspan="2" height="21"> 
                      <div align="center">
                      <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr> 
                          <td> 
                            <p style="word-spacing: 2; line-height: 150%; margin-top: 4; margin-bottom: 6"> 
                              <font color="#FF0000">Congratulation !,you have submitted your order successfully!</td>
                        </tr>
                      </table>
                    	</div>
                    </td>
                  </tr>
                </table>
                  </center>
              </div>
                <p align="center" style="margin-top: 5px; margin-bottom: 5px"><a href="javascript:history.go(-1)"><< Change consignee information</a></div></td>
            </tr>
          </table> </td>
      </tr>
<%end if%> 
    </table>

⌨️ 快捷键说明

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