<%@ Page Language="C#" AutoEventWireup="false" CodeBehind="OrderModify.aspx.cs" Inherits="web.admin.OrderMod" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>OrderModify</title><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<LINK href="inc/style.css" type="text/css" rel="stylesheet">
				<script language="JavaScript">
<!--
//By Dicky 2005-2-17 11:16:49
function Window_Load(Flag)
{

if (Flag == 0)
{

  parent.document.all['Loading'].style.display = 'block';
  parent.document.all['Loading'].style.width = '500';
   parent.document.all['Loading'].style.height = '60';
  //show the window
}
else
{
  parent.document.all['Loading'].style.display = 'none';
  
  //hide the window
}
}
//-->
</script>
	</HEAD>
		<body >
	
	
	<body MS_POSITIONING="GridLayout" rightmargin="0" leftmargin="0" topmargin="0" onload="Window_Load(1);">
		<form id="Form1" method="post" runat="server">
  <div align="center">
    <TABLE width="100%" height="37" border="0" cellPadding="0" cellSpacing="0" background="img/labelbg.gif" bgColor="#EDF6FF" id="Table1">
      <TBODY>
        <TR> 
          <TD width="3%" height="37" vAlign="middle"><STRONG><BR>
            </STRONG> </TD>
          <TD vAlign="middle" align="center" width="30%"><div align="left">下载管理  
              &gt;下载详细信息</div></TD>
          <TD class="body-shoptitle" vAlign="middle" align="center" width="67%"><strong>下载编号： 
            <%=order.OrderNo%>
            下载日期： 
            <%=order.OrderTime%>
            <%if(order.ShipTime!=""){%>
            送货日期： 
            <%=order.ShipTime%>
            <%}%>
            </strong> </TD>
        </TR>
      </TBODY>
    </TABLE>
    <TABLE id="Table2" cellSpacing="0" cellPadding="0" width="98%" bgColor="#ffffff" border="0">
      <TBODY>
        <TR> 
          <TD height="31"><strong><img src="images/top02.gif" width="19" height="16"> 
            下载信息</strong> </TD>
        </TR>
      </TBODY>
    </TABLE>
    <TABLE id="Table3" cellSpacing="0" cellPadding="1" width="98%" bgColor="#ffffff" border="0">
      <TBODY>
        <TR> 
          <TD>&nbsp; </TD>
        </TR>
      </TBODY>
    </TABLE>
    <TABLE width="98%" border="1" cellPadding="2" cellSpacing="2" bordercolor="#CCCCCC" id="Table4">
      <TBODY>
        <TR bgcolor="#EDF6FF"> 
          <TD  height="26"
							align="left" style="BORDER-RIGHT: #DADADA 1px solid; BORDER-TOP: #DADADA 1px solid; BORDER-LEFT: #DADADA 1px solid; BORDER-BOTTOM: #DADADA 1px solid">优惠名称 
          </TD>
  
          <td  height="33" align="center" bgcolor="#EDF6FF" style="BORDER-RIGHT: #DADADA 1px solid; BORDER-TOP: #DADADA 1px solid; BORDER-LEFT: #DADADA 1px solid; BORDER-BOTTOM: #DADADA 1px solid"> 
            <%=GetResourceString("zjf")%>
          </td>
          <td align="center" bgcolor="#EDF6FF" style="BORDER-RIGHT: #DADADA 1px solid; BORDER-TOP: #DADADA 1px solid; BORDER-LEFT: #DADADA 1px solid; BORDER-BOTTOM: #DADADA 1px solid">截止日期</td>
        </TR>
        <!-- BEGIN row -->
        <asp:repeater id="rptOrderItems" Runat="server"> 
          <ItemTemplate> 
            <TR> 
              <TD align="left"  height="9"> 
               <a href="../info/showinfo_<%#DataBinder.Eval(Container.DataItem, "ProductID")%>.html" target="_blank"><%= GetCom(order.Sjid)%> <%# DataBinder.Eval(Container.DataItem, "ProductName") %></a>
              </TD>
            
              <td width="100" height="20" rowspan="2" align="center" bgcolor="#FFFFFF"> 
                <%# Getsc(Convert.ToInt32(DataBinder.Eval(Container.DataItem, "ProductID").ToString()), int.Parse(DataBinder.Eval(Container.DataItem, "Quantity").ToString())) == "0" ? "0点" : "" + Getsc(Convert.ToInt32(DataBinder.Eval(Container.DataItem, "ProductID").ToString()), int.Parse(DataBinder.Eval(Container.DataItem, "Quantity").ToString())) + "点"%>
              </td>
              <td  width="100" height="20" rowspan="2" align="center" bgcolor="#FFFFFF"> <%# getrq(DataBinder.Eval(Container.DataItem, "ProductID").ToString())%></td>
            </TR>
            <TR> 
              <TD align="left" height="9"><font color="#FF0000">短信内容：</font> 
                <%# getdx(DataBinder.Eval(Container.DataItem, "ProductID").ToString(), DataBinder.Eval(Container.DataItem, "OrderID").ToString())%>
              </TD>
            </TR>
          </ItemTemplate>
        </asp:repeater>
      </TBODY>
    </TABLE>
    <br>
    <TABLE id="Table5" cellSpacing="0" cellPadding="2" width="98%" bgColor="#ffffff" border="0">
      <tr> 
        <td vAlign="top" width="50%"> 
          <table id="Table9">
           <tr> 
              <td width="72" align="right">所属店铺：</td>
              <td width="371">
                <a href="../company/company_<%=order.Sjid%>.html" target="_blank"><%= GetCom(order.Sjid)%> ( 查看 )；联系电话：<%= GetComTel(order.Sjid)%></a>
              </td>
            </tr>
            <tr> 
              <td width="72" align="right">状态：</td>
              <td width="371">
                <%= GetStatus(orderID.ToString()).ToString()%>
              </td>
            </tr>
      
            <tr> 
              <td align="right">用户名：</td>
              <td> 
                <%=GetMemberName(order.MemberID).ToString() == "anonymous" ? "<font color='FF6600'>非会员直接下载</font>" : "<a href='member.aspx?name=" + GetMemberName(order.MemberID) + "'> " + GetMemberName(order.MemberID) + "(查看会员)</a>"%>
              </td>
            </tr>
            <tr> 
              <td align="right">下载手机：</td>
              <td> 
                <%=order.BuyerPhone%>
           
              </td>
            </tr>
       
          </table></td>
        
      </tr>
    </TABLE>
    <table id="Table11" width="98%" bgColor="#ffffff">

      <tr> 
        <td><STRONG><font color="blue">下载管理历史</font></STRONG> <HR noShade SIZE="1"> 
        </td>
      </tr>
      <tr> 
        <td>
          <%=GetManageHistory()%>
          <HR noShade SIZE="1"> </td>
      </tr>
      <tr> 
        <td><STRONG><img src="images/top02.gif" width="19" height="16"> 修改下载状态</STRONG> 
          <HR noShade SIZE="1"> </td>
      </tr>
      <tr> 
        <td> <asp:CheckBox id="cb1" runat="server" Text="是否已确认"></asp:CheckBox> 
   
          <asp:CheckBox id="cb4" runat="server" Text="是否已归档"></asp:CheckBox> 
          <asp:CheckBox id="cb5" runat="server" Text="是否取消"></asp:CheckBox> 
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color="red"><strong><br>
          <br>
          说明：<br>
          1、</strong>归档后赠送积分（归档就是交易成功的下载进行归档备案处理）<br>
          <strong>2</strong>、归档后的下载如果选择了不归档和取消，如果赠送了者积分，积分将从客户的记录中扣除！</font>&nbsp;<font color="#FF0000"><strong><br>
         
          <br>
          管理员附言：
          <asp:TextBox id="txtMessage" runat="server" Text="" width="250" TextMode="Multiline" height="40"></asp:TextBox> 
        </td>
      </tr>
      <tr> 
        <td height="20" align="center" valign="middle"><asp:Button ID="btnSave" Runat="server" Text="保 存" style="BORDER-RIGHT: #DADADA 1px solid; BORDER-TOP: #DADADA 1px solid; BORDER-LEFT: #DADADA 1px solid; BORDER-BOTTOM: #DADADA 1px solid"
							Width="69" Height="22" ></asp:Button> <input type="button" onclick='printOrder(<%=Request.QueryString["OrderID"]%>)' value="打 印" style="BORDER-RIGHT: #DADADA 1px solid; BORDER-TOP: #DADADA 1px solid; BORDER-LEFT: #DADADA 1px solid; WIDTH: 69px; BORDER-BOTTOM: #DADADA 1px solid; HEIGHT: 22px"> 
          <script language="javascript">
						function printOrder(oid)
						{
							temp=window.open('../OrderPrint.aspx?OrderID='+oid,'shopcat','scrollbars=yes');
							temp.focus();
						}
						</script> </td>
      </tr>
    </table>
  </div>
</form>
	</body>
</HTML>
