<!--#include file="conn.asp"-->
<!--#include file="adminset.asp"-->
<%if session("admin")="" then
response.Write "<script language='javascript'>alert('网络超时或您还没有登陆！');window.location.href='login.asp';</script>"
response.End
end if
if session("flag")>2 then
response.Write "<div align=center><font size=80 color=red><b>您没有此项目管理权限！</b></font></div>"
response.End
end if
if qx2<>1 then
response.Write "<div align=center><font size=80 color=red><b>您没有此项目管理权限！</b></font></div>"
response.End
end if
%>
<html>
<head>
<title>网软志成在线购物系统 -- 非会员订单信息</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="../css.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.STYLE3 {color: #000000}
.STYLE1 {color: #333333}
.STYLE4 {color: #FF0000}
-->
</style>
</head>
<body leftmargin="5" topmargin="5" marginwidth="0" marginheight="0">
<%dim dingdan,username
dingdan=request.QueryString("dan")
username=request.QueryString("username")
conn.execute("update shop_action_fhy set new=0 where (dingdan in ('"&dingdan&"')) ")
set rs=server.CreateObject("adodb.recordset")
rs.open "select wygkcn_shop.shopid,wygkcn_shop.shopname,wygkcn_shop.shichangjia,wygkcn_shop.huiyuanjia,shop_action_fhy.actiondate,shop_action_fhy.shousex,shop_action_fhy.userzhenshiname,shop_action_fhy.shouhuoname,shop_action_fhy.dingdan,shop_action_fhy.quyu,shop_action_fhy.youbian,shop_action_fhy.liuyan,shop_action_fhy.zhifufangshi,shop_action_fhy.songhuofangshi,shop_action_fhy.zhuangtai,shop_action_fhy.zonger,shop_action_fhy.useremail,shop_action_fhy.usertel,shop_action_fhy.shouhuodizhi,shop_action_fhy.shopcount,shop_action_fhy.danjia,shop_action_fhy.fapiao,shop_action_fhy.feiyong,shop_action_fhy.psdq,shop_action_fhy.qlr,shop_action_fhy.qlr1,shop_action_fhy.qlr2,shop_action_fhy.qlr3,shop_action_fhy.zt,shop_action_fhy.new from wygkcn_shop inner join shop_action_fhy on wygkcn_shop.shopid=shop_action_fhy.shopid where shop_action_fhy.username='"&username&"' and dingdan='"&dingdan&"' ",conn,1,3
if rs.eof and rs.bof then
response.write "<center>此订单中有商品已被管理员删除，无法进行正确计算。<br>订单取消，请手动删除此订单！ "
response.write "<input type=button name=Submit3 value=删除订单 onClick=""location.href='dingdan_fhy_save.asp?action=del&dan="&dingdan&"&username="&username&"'""> </center>"
response.End
end if
%>
<table width="100%" border="0" cellspacing="0" cellpadding="5">
  <tr>
    <td width="77%" height="27" style="font-size:14px;color:#ffffff"><strong><font color="#000000">网软志成购物后台管理系统 &gt;&gt; 订单管理 &gt;&gt; 非会员订单明细</font></strong></td>
    <td width="23%" style="font-size:14px;color:#ffffff">&nbsp;</td>
  </tr>
  <tr>
    <td height="27" style="font-size:12px;color:#ffffff"><span class="STYLE3">操作说明：</span><br>
        <span class="STYLE3">1、这里只有前台用户先选择&quot;用户已经划出款&quot;后，管理员才可以进行后边的操作！<br>
          2、每修改一次订单状态后，请点“刷新”按钮，方可显示目前最新状态！</span></td>
    <td style="font-size:14px;color:#ffffff">&nbsp;</td>
  </tr>
</table>
<table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#999999" align="center">
  <tr bgcolor="#CCCCCC">
    <td height="9" colspan="2" style='PADDING-LEFT: 10px'>
      <div align="center">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="74%" height="25"> <font 
                  color=#ff6600><b><img src="../img/left_7.gif" width="11" height="11"> </b></font>订单号为：<span class="STYLE4"><%=dingdan%></span> ，详细资料如下：</td>
            <td width="26%">
              <div align="center">
                
            </div></td>
          </tr>
        </table>
    </div></td>
  </tr>
  <tr bgcolor="#FFFFFF">
    <td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <form name="form1" method="post" action="dingdan_fhy_save.asp?dan=<%=dingdan%>&action=save&username=<%=username%>">
            <tr><td height="30" >
             
                <%zhuang()%>
                
                </td></tr>
        
        <tr>
          <td height="30" > <div align="center"><input type="submit" class="go-wenbenkuang" name="Submit" value="修改订单状态">
                <input type="button" class="go-wenbenkuang" name="Submit422" value="刷 新" onClick="javascript:location.reload()">
                <input type="button" class="go-wenbenkuang" name="Submit42" value="打 印" onClick="javascript:window.print()">
               <%if rs("zt")=2 then%>
                <a href="dingdan_zuofei.asp?action=hy2&id=<%=dingdan%>">订单还原</a>
                <%else%>
                <a href="dingdan_zuofei.asp?action=zf2&id=<%=dingdan%>">订单作废</a>
				<%end if%></div></td>
        </tr></form>
    </table></td>
  </tr>
  <tr bgcolor="#FFFFFF">
    <td colspan="2"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td width="10" height="10" background="../images/i28.gif"></td>
          <td  background="../images/i29.gif"></td>
          <td width="10" background="../images/i30.gif"></td>
        </tr>
      </table>
        <table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
          <tr bgcolor="#f1f1f1">
            <td>
              <div align="center">商品列表/商品名称</div></td>
            <td>
              <div align="center">订购数量</div></td>
            <td>
              <div align="center">价格</div></td>
            <td bgcolor="#f1f1f1">
              <div align="center">金额小计</div></td>
          </tr>
          <%zongji=0
		do while not rs.eof%>
          <tr bgcolor="#FFFFFF">
            <td style='PADDING-LEFT: 5px'><a href=../list.asp?id=<%=rs("shopid")%> target=_blank><%=trim(rs("shopname"))%></a></td>
            <td>
              <div align="center"><%=rs("shopcount")%></div></td>
            <td>
              <div align="center"><%=formatnumber(round(rs("danjia"),2),2)&""%></div></td>
            <td bgcolor="#FFFFFF">
              <div align="center"><%=formatnumber(round(rs("zonger"),2),2)&""%></div></td>
          </tr>
          <%zongji=rs("zonger")+zongji
								feiyong=rs("feiyong")
		rs.movenext
		loop
		rs.movefirst%>
          <tr bgcolor="#FFFFFF">
            <td colspan="4">
              <div align="right">订单总额：<font color="#ff3300"><%=formatnumber(round(zongji,2),2)%></font>＋费用：<font color="#ff3300"><%=formatnumber(round(feiyong,2),2)%></font> 　　共计：<font color="#ff3300"><%=formatnumber(round(zongji+feiyong,2),2)%></font> &nbsp;</div></td>
          </tr>
        </table>
        <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td width="10" height="10" background="../images/i28.gif"></td>
            <td  background="../images/i29.gif"></td>
            <td width="10" background="../images/i30.gif"></td>
          </tr>
      </table></td>
  </tr>
  <tr bgcolor="#FFFFFF">
    <td width="13%" style='PADDING-LEFT: 10px'>
      <div align="center">收货人姓名：</div></td>
    <td width="87%" style='PADDING-LEFT: 10px'><%=trim(rs("userzhenshiname"))%></td>
  </tr>
  <tr bgcolor="#FFFFFF">
    <td style='PADDING-LEFT: 10px'>
      <div align="center">收货地址：</div></td>
    <td style='PADDING-LEFT: 10px'><%=trim(rs("shouhuodizhi"))%></td>
  </tr>
  <tr bgcolor="#FFFFFF">
    <td style='PADDING-LEFT: 10px'>
      <div align="center">邮编：</div></td>
    <td style='PADDING-LEFT: 10px'><%=trim(rs("youbian"))%></td>
  </tr>
  <tr bgcolor="#FFFFFF">
    <td style='PADDING-LEFT: 10px'>
      <div align="center">联系电话：</div></td>
    <td style='PADDING-LEFT: 10px'><%=trim(rs("usertel"))%></td>
  </tr>
  <tr bgcolor="#FFFFFF">
    <td style='PADDING-LEFT: 10px'>
      <div align="center">电子邮件：</div></td>
    <td style='PADDING-LEFT: 10px'><%=trim(rs("useremail"))%></td>
  </tr><%if rs("quyu")<>"" then%>
  <tr bgcolor="#FFFFFF">
    <td bgcolor="#FFFFFF" style='PADDING-LEFT: 10px'><div align="center">收货地区：</div></td>
    <td bgcolor="#FFFFFF" style='PADDING-LEFT: 10px'><%=trim(rs("quyu"))%></td>
  </tr><%end if%>
  <tr bgcolor="#FFFFFF">
    <td height="22" align="center" bgcolor="#FFFFFF" class="table-xiayou" style='PADDING-LEFT: 10px'>送货方式：</td>
    <td style='PADDING-LEFT: 10px' height="22" class="table-xiayou">
      <%set rs2=server.CreateObject("adodb.recordset")
    rs2.Open "select * from shop_sys where songid="&rs("songhuofangshi"),conn,1,1
    response.Write trim(rs2("fsh"))
    rs2.Close
    set rs2=nothing%></td>
  </tr>
  <tr bgcolor="#FFFFFF">
    <td height="11" align="center" bgcolor="#FFFFFF" class="table-xiayou" style='PADDING-LEFT: 10px'>支付方式：</td>
    <td height="11" class="table-xiayou" style='PADDING-LEFT: 10px'>
      <%set rs2=server.CreateObject("adodb.recordset")
    rs2.Open "select * from shop_songhuo where songid="&rs("zhifufangshi"),conn,1,1
    response.Write trim(rs2("subject"))
    rs2.close
    set rs2=nothing%></td>
  </tr>
  <tr bgcolor="#FFFFFF">
    <td style='PADDING-LEFT: 10px'>
      <div align="center">是否要发票：</div></td>
    <td style='PADDING-LEFT: 10px'>
      <%if rs("fapiao")=1 then %>
      <font color=red>需要发票</font>
      <%else%>
      不需要发票
      <%end if%>
    </td>
  </tr><%if rs("liuyan")<>"" then%>
  <tr bgcolor="#FFFFFF">
    <td style='PADDING-LEFT: 10px'>
      <div align="center">用户留言：</div></td>
    <td style='PADDING-LEFT: 10px'><%=trim(rs("liuyan"))%></td>
  </tr><%end if%>
  <tr bgcolor="#FFFFFF">
    <td height="9" style='PADDING-LEFT: 10px'>
      <div align="center">下单日期：</div></td>
    <td height="9" style='PADDING-LEFT: 10px'><%=rs("actiondate")%></td>
  </tr>
  <tr bgcolor="#FFFFFF">
    <td height="10" style='PADDING-LEFT: 10px'><div align="center">首单责任人：</div></td>
    <td height="10" style='PADDING-LEFT: 10px'><font color="#FF0000">
      <%qlr=rs("qlr")
			if qlr<>"" then
		  qlr=split(qlr,",")
qlrname=qlr(0)
qlrdate=qlr(1)
end if
          qlr1=rs("qlr1")
		  			if qlr1<>"" then
		  qlr1=split(qlr1,",")
qlr1name=qlr1(0)
qlr1date=qlr1(1)
end if
 qlr2=rs("qlr2")
 		  			if qlr2<>"" then
		  qlr2=split(qlr2,",")
qlr2name=qlr2(0)
qlr2date=qlr2(1)
end if
 qlr3=rs("qlr3")
 		  			if qlr3<>"" then
		  qlr3=split(qlr3,",")
qlr3name=qlr3(0)
qlr3date=qlr3(1)
end if
		  %>
      <span class="STYLE1">第一次修改订单状态：</span><%=qlrname%>&nbsp; <%=qlrdate%><br>
      <span class="STYLE1">第二次修改订单状态：</span><%=qlr1name%>&nbsp; <%=qlr1date%><br>
      <span class="STYLE1">第三次修改订单状态：</span><%=qlr2name%>&nbsp; <%=qlr2date%><br>
      <span class="STYLE1">第四次修改订单状态：</span><%=qlr3name%>&nbsp; <%=qlr3date%></font></td>
  </tr>
  <tr bgcolor="#FFFFFF">
    <td height="32" colspan="2">
      <div align="center">
        <input type="button" class="go-wenbenkuang" name="Submit3" value="删除订单" onClick="if(confirm('您确定要删除吗?')) location.href='dingdan_fhy_save.asp?action=del&dan=<%=dingdan%>&username=<%=username%>';else return;">
&nbsp;&nbsp;
        <input type="button" class="go-wenbenkuang" name="Submit2" value="关闭窗口" onClick=javascript:window.close()>
    </div></td>
  </tr>
</table>
<%sub zhuang()
select case rs("zhuangtai")
case "1"%>
<input name="zhuangtai" type="checkbox" DISABLED id="checkbox" value="checkbox" checked>
<font color="#FF0000">订单未处理</font><span style='font-family:Wingdings;'>à</span> 
<%if rs("zhifufangshi")="货到付款" then %>
<input name="zhuangtai" type="checkbox" id="zhuangtai" value="2" >
订单已确认，正在备货<span style='font-family:Wingdings;'>à</span> 
<input type="checkbox" name="zhuangtai" value="3" DISABLED>货已发出<span style='font-family:Wingdings;'>à</span> 
<input type="checkbox" name="zhuangtai" value="checkbox" DISABLED>
货已收到，款结清，谢谢您的定购 
<%else%>
<input name="zhuangtai" type="checkbox" id="zhuangtai" value="2" >
订单已确认，款未到<span style='font-family:Wingdings;'>à</span> 
<input type="checkbox" name="zhuangtai" value="checkbox" DISABLED>款已到，正在备货 <span style='font-family:Wingdings;'>à</span> 
<input type="checkbox" name="zhuangtai" value="checkbox" DISABLED>货已发出<span style='font-family:Wingdings;'>à</span> 
<input type="checkbox" name="zhuangtai" value="checkbox" DISABLED>
货已收到，谢谢您 的定购 
<%end if%>
<%case "2"%>
<input name="zhuangtai" type="checkbox" DISABLED id="checkbox2" value="checkbox" checked>
<font color="#FF0000">订单未处理</font><span style='font-family:Wingdings;'>à</span> 
<%if rs("zhifufangshi")="货到付款" then %>
<input name="zhuangtai" type="checkbox" id="checkbox2" value="2" DISABLED checked>
<font color="#FF0000">订单已确认，正在备货</font><span style='font-family:Wingdings;'>à</span> 
<input type="checkbox" name="zhuangtai" value="3" >
货已发出<span style='font-family:Wingdings;'>à</span> 
<input type="checkbox" name="zhuangtai" value="checkbox" DISABLED>
货已收到，款结清，谢谢您的定购 
<%else%>
<input name="zhuangtai" type="checkbox" id="zhuangtai2" value="2" DISABLED checked>
<font color="#FF0000">订单已确认，款未到</font><span style='font-family:Wingdings;'>à</span> 
<input type="checkbox" name="zhuangtai" value="3" >
款已到，正在备货 <span style='font-family:Wingdings;'>à</span> 
<input type="checkbox" name="zhuangtai" value="checkbox" DISABLED>
货已发出<span style='font-family:Wingdings;'>à</span> 
<input type="checkbox" name="zhuangtai" value="checkbox" DISABLED>
货已收到，谢谢您 的定购 
<%end if%>
<%case "3"%>
<input name="zhuangtai" type="checkbox" DISABLED id="checkbox5" value="checkbox" checked>
<font color="#FF0000">订单未处理</font><span style='font-family:Wingdings;'>à</span> 
<%if rs("zhifufangshi")="货到付款" then %>
<input name="zhuangtai" type="checkbox" id="checkbox5" value="2" DISABLED checked>
<font color="#FF0000">订单已确认，正在备货<span style='font-family:Wingdings;'>à</span></font> 
<input type="checkbox" name="zhuangtai" value="3"  DISABLED checked>
<font color="#FF0000">货已发出</font><span style='font-family:Wingdings;'>à</span> 
<input type="checkbox" name="zhuangtai" value="4" >
货已收到，款结清，谢谢您的定购 
<%else%>
<input name="zhuangtai" type="checkbox" id="zhuangtai22" value="2" DISABLED checked>
<font color="#FF0000">订单已确认，款未到</font><span style='font-family:Wingdings;'>à</span> 
<input type="checkbox" name="zhuangtai" value="checkbox"  DISABLED checked>
<font color="#FF0000"> 款已到，正在备货</font> <span style='font-family:Wingdings;'>à</span> 
<input type="checkbox" name="zhuangtai" value="4">
货已发出<span style='font-family:Wingdings;'>à</span> 
<input type="checkbox" name="zhuangtai" value="checkbox" DISABLED>
货已收到，谢谢您 的定购 
<%end if%>
<%case "4"%>
<input name="zhuangtai" type="checkbox" DISABLED id="checkbox52" value="checkbox" checked>
<font color="#FF0000">订单未处理</font><span style='font-family:Wingdings;'>à</span> 
<%if rs("zhifufangshi")="货到付款" then %>
<input name="zhuangtai" type="checkbox" id="checkbox52" value="2" DISABLED checked>
<font color="#FF0000">订单已确认，正在备货</font><span style='font-family:Wingdings;'>à</span> 
<input type="checkbox" name="zhuangtai" value="3"  DISABLED checked>
<font color="#FF0000">货已发出</font><span style='font-family:Wingdings;'>à</span> 
<input type="checkbox" name="zhuangtai" value="4"   DISABLED checked>
<font color="#FF0000">货已收到，款结清，谢谢您的定购</font> 
<%else%>
<input name="zhuangtai" type="checkbox" id="zhuangtai222" value="2" DISABLED checked>
<font color="#FF0000">订单已确认，款未到</font><span style='font-family:Wingdings;'>à</span> 
<input type="checkbox" name="zhuangtai" value="checkbox"  DISABLED checked>
<font color="#FF0000">款已到，正在备货</font> <span style='font-family:Wingdings;'>à</span> 
<input type="checkbox" name="zhuangtai" value="4"  DISABLED checked>
<font color="#FF0000">货已发出</font><span style='font-family:Wingdings;'>à</span> 
<input type="checkbox" name="zhuangtai" value="5" >
货已收到，谢谢您 的定购 
<%end if%>
<%case "5"%>
<input name="zhuangtai" type="checkbox" DISABLED id="checkbox522" value="checkbox" checked>
<font color="#FF0000">订单未处理</font><span style='font-family:Wingdings;'>à</span> 
<%if rs("zhifufangshi")="货到付款" then %>
<input name="zhuangtai" type="checkbox" id="checkbox522" value="2" DISABLED checked>
<font color="#FF0000"> 订单已确认，正在备货</font><span style='font-family:Wingdings;'>à</span> 
<input type="checkbox" name="zhuangtai" value="3"  DISABLED checked>
<font color="#FF0000">货已发出</font><span style='font-family:Wingdings;'>à</span> 
<input type="checkbox" name="zhuangtai" value="4"   DISABLED checked>
<font color="#FF0000">货已收到，款结清，谢谢您的定购</font> 
<%else%>
<input name="zhuangtai" type="checkbox" id="zhuangtai2222" value="2" DISABLED checked>
<font color="#FF0000">订单已确认，款未到<span style='font-family:Wingdings;'>à</span></font> 
<input type="checkbox" name="zhuangtai" value="checkbox"  DISABLED checked>
<font color="#FF0000">款已到，正在备货</font> <span style='font-family:Wingdings;'>à</span> 
<input type="checkbox" name="zhuangtai" value="4"  DISABLED checked>
<font color="#FF0000">货已发出</font><span style='font-family:Wingdings;'>à</span> 
<input type="checkbox" name="zhuangtai" value="5"  DISABLED checked >
<font color="#FF0000"> 货已收到，谢谢您 的定购</font> 
<%end if%>
<%end select
end sub%>
<!--#include file="copyright.asp"-->