<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<% data_path="../" 'ACC连接数据库路径，对SQL无效 %>
<!--#include file="../conn/conn.asp"-->
<!--#include file="../inc/safe.asp"-->
<!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=gb2312" />
<title></title>
<style type="text/css">
<!--
body{font-size:12px;}
#order ul{list-style:none;}
#order ul li{margin:3px; width:300px; padding:1px 0px 2px 10px; border-bottom:1px dashed #CCCCCC; font-size:13px;}
a:link,a:visited{text-decoration:none; color:#3399CC;}
a:hover{text-decoration:underline; color:#660000;}
-->
</style>

</head>
<%
if issession=0 then
if request.Cookies("Yxmemberid")="" then
response.write "<script language='javascript'>"
response.write"parent.location.href='../login/login1.asp';</SCRIPT>"
response.end
end if
username=Replace_Text(request.Cookies("Yxmember"))
gsid=Replace_Text(request.Cookies("Yxmemberid"))
else
if session("id")="" then
response.write "<script language='javascript'>"
response.write"parent.location.href='../login/login1.asp';</SCRIPT>"
response.end
end if
username=session("user")
gsid=session("id")
end if





orderid=request("id")
comid=trim(request("comid"))

'------------------更新------------------
sqlview="update yixiang_fq_order set viewkey=1 where id="&orderid&""
conn.execute sqlview
'---------------------------------------


set rs=server.CreateObject("adodb.recordset")
sql="select * from yixiang_fq_order where id="&orderid&""
rs.open sql,conn,1,1
if rs.eof then
  response.Write("该订单已经删除或者操作错误。<a href='#' onclick='javascript:window.close();'>关闭</a>")
  response.end
end if

set rscom=server.CreateObject("adodb.recordset")
sqlcom="select * from yixiang_corporation where id="&comid&""
rscom.open sqlcom,conn,1,1
if rscom.eof then
	Ncom="<font color=red>未提供</font>"
else
	Ncom=rscom("phone")
end if
%>
<body>
<table width="400" height="301" border="0">
  <tr>
    <td height="35" align="center" valign="middle"><strong>查看订单</strong></td>
  </tr>
  <tr>
    <td align="left" valign="top" style="padding:0px 0px 0px 20px;"><p>
	<div id="order">
	<ul>
	<li><font color="#7B869A">订单号：</font><font color="#FF6600"><%=rs("billno")%></font></li>
	<li><font color="#7B869A">产品名称：</font><%=rs("hpmc")%></li>
	<li><font color="#7B869A">订购数量：</font><%=rs("gmsl")%><%=rs("jldw")%></li>
	<li><font color="#7B869A">发货期限：</font><%=rs("fhqx")%>天</li>
	<li><font color="#7B869A">运费方式：</font><%=rs("yunf")%></li>
	<li><font color="#7B869A">货品所在地：</font><%=rs("hpszd")%></li>
	<li><font color="#7B869A">发起卖家：</font><%=rscom("user")%></li>
	<li><font color="#7B869A">联系电话：</font><%=Ncom%></li>
	<li><font color="#7B869A">提交日期：</font><%=rs("dateandtime")%></li>
	<li><font color="#7B869A">产品详情：
	<table>
		 <tr>
    <td width="250" style="table-layout:fixed;word-break:break-all"><font color="red"><%if trim(rs("xxms"))="" then%>无<%else%><%=rs("xxms")%><%end if%></font></td>
  </tr>
	</table>
	</font>	
	</li>
	</ul>
	</div>
	</td>
  </tr>  
  <tr>
    <td height="35" align="center" valign="middle" style="font-size:12px;">【 <a href="javascript:window.print()">打印</a> 】 【 <a href="javascript:window.close()">关闭</a> 】</td>
  </tr>
</table>
<%
rscom.close
rs.close
%>
</body>
</html>
