
<!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 class="otherhome7">
        <div class="left">    
    <div class="left_banner">
	<h3>在线购买<span></span></h3>
    </div>
             <div class="listban_ul">
        	<ul><!--#include file="member_right.html" --></ul>        
          </div>
    </div>
  <div class="rigth_cont_center">
    	<div class="ri_title">
        	<p>您当前的位置:<%=TD_home%> > <a href="<%=TD_url%>">首页</a> > <span class="last_co"><a href="/buy/">在线购买</a></span></p>
        </div>
        
        <div class="news">
        	<div class="news_lists">
        <%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
%>  </div>

            <div class="pageall">
           </div> 
           		<div class="title_pic">
			<span>推荐期刊简报</span>
		</div>	

		<div class="jspic00">
		
			<div class="img-scroll">
				 <span class="prev"></span>
    			 <span class="next"></span>
				 <div class="img-list">
     			 	<ul><%=OneF_Product_tuijian(1,4,151,112)%> </ul>
  			      </div>
			</div>
		</div>         
        </div>
  </div>    
</div>

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