<%if request.cookies("bjx")("shjianame")="" then
response.Redirect "admin_login.asp"
response.End
end if
%>
<!--#include file="conn.asp"-->
<html>
<head>
<title>订单详细信息</title>
<script language="javascript">
<!--
function checkQty(form){
		ads.style.display = "none";
   document.all.WebBrowser.ExecWB(6,1)
   
}
-->
</script>
<script language="javascript">
<!--
function checkQtys(form){
		ads.style.display = "none";
  document.all.WebBrowser.ExecWB(6,6)
 }
-->
</script>
<script>
function showadv(){
if (document.form1.advshow.checked == true) {
		adv.style.display = "";
		ads.style.display = "";
	}else{
		adv.style.display = "none";
		
	}
}		
</script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../../images/css.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {
	color: #3399CC;
	font-weight: bold;
}
-->
</style>
</head>
<body bgcolor="#FFFFFF" text="#000000">
  <%id=request("id") 
   set rs = conn.execute("select * from tuangou where tgid="&id&"")
   rad=rs("rad")
   tgid=rs("tgid")
   shjiaid=rs("shjiaid")
   bookid=rs("bookid")
   bookname=rs("bookname")
   danwei=rs("danwei")
   shuliang=rs("shuliang")
   forname=rs("forname")
   formail=rs("formail")
   tel=rs("tel")
   tgtime=rs("tgtime")
   name=rs("name")
   shuoming=rs("shuoming")
	rs.close %>
  &nbsp;&nbsp;<strong><%=danwei%>的团购订单</strong><br>
  <hr width="90%" color=#cccccc noShade size=1>
  <table width="40%"  border="0" align="center" cellspacing="1" class="tableBorder">
    <tr>
      <td bgcolor="#FFFFCC"><div align="center" class="style1">
        <div align="left">团购订单<font color=red><%=tgid%></font>详细表</div>
      </div></td>
      <td bgcolor="#CCCCCC">&nbsp;</td>
    </tr>
    <tr>
      <td width="24%" bgcolor="#EAEAEA"><div align="right">订单号码：</div></td>
      <td width="76%" bgcolor="#EAEAEA"><%=tgid%></td>
    </tr>
    <tr>
      <td bgcolor="#EAEAEA"><div align="right">商品名称：</div></td>
      <td bgcolor="#EAEAEA"><%=bookname%>      </td>
    </tr>
    <tr>
      <td bgcolor="#EAEAEA"><div align="right">商品ＩＤ：</div></td>
      <td bgcolor="#EAEAEA"><%=bookid%></td>
    </tr>
    <tr>
      <td bgcolor="#EAEAEA"><div align="right">订购数量：</div></td>
      <td bgcolor="#EAEAEA"><%=shuliang%></td>
    </tr>
    <tr>
      <td bgcolor="#EAEAEA"><div align="right">订单时间：</div></td>
      <td bgcolor="#EAEAEA"><%=tgtime%></td>
    </tr>
    <tr>
      <td bgcolor="#EAEAEA"><div align="right">订单性质：</div></td>
      <td bgcolor="#EAEAEA"><%=rad%></td>
    </tr>
    <tr>
<%
Set rs = Server.CreateObject("ADODB.Recordset")
rs.open "SELECT  * From tuangou  where name='"&request.cookies("bjx")("shjianame")&"' and tgid="&id&"",conn,1,3
%>
      <td bgcolor="#EAEAEA"><div align="right">订单状态：</div></td>
      <td bgcolor="#EAEAEA"><%if rs("action")=0 then%><font color=red>［未处理］</font><%elseif rs("action")=1 then%><font color=green>［已发货］</font><%elseif rs("action")=2 then%><font color=purple>[货已到达]</font><%elseif rs("action")=3 then%><font color=blue>[已收款］</font><%end if%></td>
	<%  rs.close
set rs=nothing
conn.close
set conn=nothing
%>
    </tr>
    <tr>
      <td bgcolor="#FFFFCC"><div align="left" class="style1">订购客户信息</div></td>
      <td bgcolor="#CCCCCC">&nbsp;</td>
    </tr>
    <tr>
      <td bgcolor="#EAEAEA"><div align="right">订购单位：</div></td>
      <td bgcolor="#EAEAEA"><%=danwei%></td>
    </tr>
    <tr>
      <td bgcolor="#EAEAEA"><div align="right">联 系 人：</div></td>
      <td bgcolor="#EAEAEA"><%=forname%></td>
    </tr>
    <tr>
      <td bgcolor="#EAEAEA"><div align="right">联系电话：</div></td>
      <td bgcolor="#EAEAEA"><%=tel%></td>
    </tr>
    <tr>
      <td bgcolor="#EAEAEA"><div align="right">E - MAIL：</div></td>
      <td bgcolor="#EAEAEA"><%=formail%></td>
    </tr>
    <tr>
      <td valign="top" bgcolor="#EAEAEA"><div align="right">简要说明：</div></td>
      <td bgcolor="#EAEAEA"><textarea name="textarea" cols="50" rows="6"><%=shuoming%></textarea></td>
    </tr>
  </table>
  <br>
  <table width="90%"  border="0" align="center" cellspacing="1" class="tableBorder">
    <tr>
      <td bgcolor="#EAEAEA">修改订单状态：
        <table width="40%"  border="0" align="center">
          <tr>
            <td><form name="form2" method="post" action="savetg.asp?id=<%=tgid%>&action=0">
              <input name="zhuangtai" type="hidden" id="zhuangtai" value="0">
              <input name="id" type="hidden" id="id" value="rs(&quot;tgid&quot;)">              
              <input name="s" type="submit" class="go-wenbenkuang" id="s" value="未处理">
            </form></td>
            <td><form name="form3" method="post" action="savetg.asp?id=<%=tgid%>&action=1">
              <input name="zhuangtai" type="hidden" id="zhuangtai" value="1">
              <input name="id" type="hidden" id="id" value="rs(&quot;tgid&quot;)">              
              <input name="s" type="submit" class="go-wenbenkuang" id="s" value="已发货">
            </form></td>
            <td><form name="form4" method="post" action="savetg.asp?id=<%=tgid%>&action=2">
              <input name="zhuangtai" type="hidden" id="zhuangtai" value="2">
              <input name="id" type="hidden" id="id" value="rs(&quot;tgid&quot;)">              
              <input name="s" type="submit" class="go-wenbenkuang" id="s" value="货到达">
            </form></td>
            <td><form name="form5" method="post" action="savetg.asp?id=<%=tgid%>&action=3">
              <input name="zhuangtai" type="hidden" id="zhuangtai" value="3">
              <input name="id" type="hidden" id="id" value="rs(&quot;tgid&quot;)">              
              <input name="s" type="submit" class="go-wenbenkuang" id="s" value="已收款">
            </form></td>
            <td><input name="button" type=button class="go-wenbenkuang" onClick="return checkQtys(this.form);" value=直接打印></td>
            <td><input name="button2" type=button class="go-wenbenkuang" onclick=document.all.WebBrowser.ExecWB(8,1) value=页面设置></td>
          </tr>
        </table>        
      </td>
    </tr>
  </table>
</body>
</html>
