<%
'商易仿淘宝4.0(多用户)
'ACCESS版演示网站：http://www.ftaobao.com(商易仿淘宝商城)
'SQL版演示网站：http://sql.ftaobao.com
'电话：0571-56907100
'QQ：1147100
%>

<!--#include file="../include/conn.asp"-->
<!--#include file="../include/money.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="../include/css.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#FFFFFF" text="#000000">
  <%hy "/user/login.asp"

  id=shopnet("id")
  set rs = conn.execute("select * from telorder where id="&id&"")
   t_name=rs("telname")
   t_add=rs("teladd")
   t_tel=rs("tel")
   t_biaozhi=rs("telbeizhu")
   t_date=rs("datetime")
   user_name=rs("telusername")
   rmb=rs("jiage")
	rs.close %>
  <br>
  <table width="95%" border="0" cellspacing="1" cellpadding="3" align="center" bgcolor="#CCCCCC">
    <tr> 
      <td bgcolor="#FFFFFF" width="25%"> <div align="left"><font color="#009933"><b>电话订单<%=id%>详细信息</b></font></div></td>
      <td bgcolor="#FFFFFF" width="66%"><b><%=user_name%>电话中心</b></td>
    </tr>
    <tr> 
      <td bgcolor="#FFFFFF" colspan="2"> <table width="90%" align="center">
          <tr bgcolor="#f1f1f1" align="center"> 
            <td width="45%"><b>商品名称</b></td>
            <td width="11%"><b>市场价格</b></td>
            <td width="11%"><b>会员价格</b></td>
            <td width="11%" align="center"><b>数量</b></td>
          </tr>

          <tr bgcolor="#f1f1f1" align="center"> 
            <td width="45%"><%=rs("telname")%></td>
            <td width="11%"><%=mprice%></td>
            <td width="11%"><%=leprice%></td>
            <td width="11%" align="center"><%=num%></td>
          </tr>
          <tr bgcolor="#f1f1f1" align="center"> 
            <td><b>小　　计</b></td>
            <td><%=pit1%></td>
            <td><%=pit%></td>
            <td align="center"><%=pit2%></td>
          </tr>
        </table></td>
    </tr>
    <tr> 
      <td bgcolor="#FFFFFF" colspan="2"> </td>
    </tr>
    <tr> 
      <td bgcolor="#FFFFFF" colspan="2" height="48"> <div align="center"><b>收货人信息</b></div></td>
    </tr>
    <tr> 
      <td bgcolor="#FFFFFF" colspan="2"> <table width="90%" align="center">
        <tr bgcolor="#f1f1f1"> 
          <td width="15%" align="center"><b>客户名称</b></td>
          <td width="20%" align="center"><%=t_name%></td>
          <td width="15%" align="center"><b>联系电话</b></td>
          <td colspan="3"><%=t_tel%></td>
        </tr>
        <tr bgcolor="#f1f1f1"> 
          <td width="15%" align="center"><b>送货地址</b></td>
          <td colspan="3" align="left"><%=t_add%></td>
          <td width="15%" align="center"><b>地点标志</b></td>
          <td width="15%" align="center"><%=t_biaozhi%></td>
        </tr>
      </table></td>
    </tr>
  </table>
  <hr width="90%" color=#cccccc noShade size=1>
  
<table width="80%" border="0" cellspacing="4" cellpadding="0" align="center">
    <tr valign="bottom"> 
      
    <td width="40%">客户部门：</td>
      
    <td width="30%">配送部：</td>
      
    <td width="30%">消费者：</td>
    </tr>
  </table>
<form name="form" method="post" action="">
  <table width="80%" border="0" cellspacing="0" cellpadding="0" align="center" id=ads style="DISPLAY: ">
    <tr> 
      <td align="center"><OBJECT id=WebBrowser classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 width=0>
        </OBJECT>
        <input type="hidden" name=id value=<%=id%>> <input name="Submit" type="submit" class="go-wenbenkuang" value="好,发货"> 
        <input name="Submit" type="submit" class="go-wenbenkuang" value="货已到">
        <input type=button class="go-wenbenkuang" onClick="return checkQtys(this.form);" value=直接打印> 
        <input type=button class="go-wenbenkuang" onclick=document.all.WebBrowser.ExecWB(8,1) value=页面设置> 
        <input type=button class="go-wenbenkuang" onclick=document.all.WebBrowser.ExecWB(7,1) value=打印预览> 
        <input name="Submit" type="submit" class="go-wenbenkuang" value="关闭窗口">
      </td>
    </tr>
  </table>
</form>
</body>
</html>
<%oprat=request.form("submit")
    id=shopnet("id")
	if oprat<>"" and id<>"" then 
	   if oprat="好,发货" then 
	                   conn.Execute("update telorder set istate=1  where t_id="&id)			

Response.Write("<script>alert(""订单处理成功"");window.opener.location.href=""dingdan.asp?abc=tel"";self.close();</script>")
		else 
		    if oprat="货已到" then 
			sql="select istate from telorder where t_id='"&id&"'"
           rs.open sql,conn,1,1 
             conn.Execute("update telorder set istate=2  where t_id='"&id&"'")			
            rs.close
Response.Write("<script>alert(""订单处理成功"");window.opener.location.href=""dingdan.asp?abc=tel"";self.close();</script>")
		else 
		    if oprat="关闭窗口" then 
Response.Write("<script>self.close();</script>")
			end if
		 end if 
		end if
   	end if 
conn.close
set conn=nothing
%>
