
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>在线购买_<%=config("title")%></title>
<meta name="keywords" content="<%=config("keywords")%>,在线购买" />
<meta name="description" content="<%=config("description")%>:在线购买" />
</head>
<!--#include file="css_js.html" --><body>
<!--#include file="top.html" -->
<div id="container">
  <div class="xxxxx">
 <div id="content">

<table width="100%" border="0" cellspacing="0" cellpadding="0" id="newscon">
  <tr>
    <td class="title">会员中心</td>
  </tr>
  <tr>
    <td align="right" class="title2">&nbsp; </td>
  </tr>
  <tr>
    <td class="con">
       <%if session("username")<>"" then%>
<% 
products_id=ad
if not isnumeric(products_id) then
Response.Write "<script>alert('错误的参数！');history.go(-1);</script>" 
Response.End()
end if
exec="select * from [user] where id="&session("username")&"  "
set rs=server.createobject("adodb.recordset") 
rs.open exec,conn,1,1 
%>
  <table width="100%" border="0" cellpadding="5" cellspacing="0">
  <form action="Buy_order.asp" method="post" name="add">
    <tr>
      <td width="19%" height="30">产品名称：</td>
      <td width="81%" colspan="2"><%
exec="select * from [products] where id="&products_id
set rss=server.createobject("adodb.recordset") 
rss.open exec,conn,1,1
response.write ("<a href=""/ShowProducts.asp?id="&rss("id")&"""><b>"&rss("title")&"</b></a>")
%>
        <label>
        <input name="products_id" type="hidden" value="<%=products_id%>" />
        </label></td>
      </tr>
    <tr>
      <td height="30">订单编号：</td>
      <td width="81%" colspan="2"><%BuyId = year(now) & month(now) & day(now) & hour(now) & minute(now) & second(now)%><%=buyid%>
        <input name="OrderNo" type="hidden" value="<%=buyid%>" />
        <input name="userid" type="hidden" value="<%=session("username")%>" /></td>
    </tr>
    
    
    <tr>
      <td height="30">订购数量：</td>
      <td colspan="2"><label>
        <input type="text" name="numbers" class="yifancms"/>
      </label></td>
      </tr>
    <tr>
      <td height="30">订购姓名：</td>
      <td colspan="2"><input name="names" type="text" value="<%=rs("zsname")%>" class="yifancms"/></td>
    </tr>
    <tr>
      <td height="30">联系电话：</td>
      <td colspan="2"><input name="tel" type="text" value="<%=rs("tel")%>" class="yifancms"/></td>
      </tr>
    <tr>
      <td height="30">联系地址：</td>
      <td colspan="2"><input name="address" type="text" value="<%=rs("gsadd")%>" size="40" class="yifancms"/></td>
      </tr>
    <tr>
      <td height="30">邮政编码：</td>
      <td colspan="2"><input name="code" type="text" value="<%=rs("youbian")%>" class="yifancms"/></td>
    </tr>
    <tr>
      <td height="30">其它说明：</td>
      <td colspan="2"><textarea name="sm" cols="40" rows="8" class="yifancms"></textarea></td>
    </tr>
    <tr>
      <td height="30">订单时间：</td>
      <td colspan="2"><%=now%></td>
    </tr>
    <tr>
      <td height="30">&nbsp;</td>
      <td colspan="2"><label>
        <input type="submit" name="button" id="button" value="提交订单" />
      </label></td>
    </tr></form>
  </table>
  <%
else
response.write "<script>alert('请先登陆！');window.location.href='/member/login.asp';</script>" 
end if
%> 
</td>
  </tr>
</table>
</div>
</div></div>



<!--#include file="foot.html" -->
</body>
</html>
