<%@ Page language="c#" Codebehind="OrderAdd.aspx.cs" AutoEventWireup="true" Inherits="XpShop.WebUI.Admin.OrderAdd" ValidateRequest="false" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML>
	<HEAD>
		<title>添加订单</title>
	    <!--#include file="inc/head.inc"-->
		<script type="text/javascript" src="inc/multi_popup.js"></script>
		<script type="text/javascript" src="inc/jquery.easydrag.handler.beta2.js"></script>
		<script type="text/javascript" src="inc/PageBar.js"></script>
	    <script type="text/javascript" src="inc/OrderAdd.js"></script>
	    <link type="text/css" rel="stylesheet" href="style/multi_popup.css" />
		<script type="text/javascript" src="inc/ui.datepicker.cn.js"></script>
		<link type="text/css" rel="stylesheet" href="inc/ui.datepicker.css" />
	    <script type="text/javascript">
	        var ShopFolder = '/<%=ShopFolder %>';
			var memberAdvance = 0;
			var cartID = '';
			var couponsCode = '';
			var shipFreeType = <%=shipfree.FreeType %>;//免运费方式
			var leastMoney = <%=shipfree.LeastMoney %>;//FreeType为1时用到此变量
			var strSelectArea = '<%=GetResourceString("SelectArea")%>';
	    </script>
	    <style type="text/css">
	        .c1{width:5%;}
	        .c2{width:35%;}
	        .c3{width:15%;}
	        .c4{width:15%;}
	        .c5{width:15%;}
	        .c6{width:15%;}
	    </style>
	</HEAD>
	<body>
	    <div class="container">
		<div class="sub_container">
		<div class="sub_container_title"><a href="../default.aspx" target="_blank">桌面</a><img src="images/admin_title.jpg" height="9px" width="8px" align="absmiddle" />手动添加订单</div>
		<div class="sub_container_content">
		<form id="Form1" method="post" runat="server">
		    <div class="frame">
		        <div class="frame_title">输入会员名称</div>
		        <div class="frame_content">
					<table class="ptable" cellspacing="0" cellpadding="0">
						<tr>
							<th class="tl"><input type="radio" id="member_1" name="member" value="1" checked="checked" /><label for="member_1">请输入会员帐号：</label></th>
							<td class="tr"><asp:TextBox id="txtMemberName" runat="server"></asp:TextBox><span style="color:Red;">*</span><span id="memberInfo"></span><input type="hidden" id="GroupID" name="GroupID" value="0" /></td>
						</tr>
						<tr>
						    <th class="tl"><input type="radio" id="member_0" name="member" value="0" /><label for="member_0">匿名用户：</label></th>
						    <td class="tr"></td>
						</tr>
					</table>
		        </div>
	        </div>
	        <div class="frame">
	            <div class="frame_title">选择订单商品</div>
	            <div class="frame_content">
	                <table class="ptable" cellspacing="0" cellpadding="0" id="cart" style="display:none; width:99%; margin-bottom:8px;">
	                    <tr>
	                        <td class="tr">商品编号</td>
	                        <td class="tr">商品名称</td>
	                        <td class="tr">商品规格</td>
	                        <td class="tr" style="text-align:center">价格</td>
	                        <td class="tr" style="text-align:center">购买数量</td>
	                        <td class="tr" style="text-align:center">小计</td>
	                        <td class="tr" style="text-align:center">删除</td>
	                    </tr>
	                </table>
	                <table class="ptable" cellspacing="0" cellpadding="0" id="pinfo">
	                    <tr>
	                        <th class="tl">输入商品编号：</th>
	                        <td class="tr">
	                            <input type="text" id="ProductNo" /><input type="button" id="btnGetProInfo" value="查询" />
	                        </td>
	                    </tr>
	                </table>
	            </div>
	        </div>
	        
	        <div class="frame">
	            <div class="frame_title">填写收货人地址</div>
	            <div class="frame_content">
	                <table class="ptable" cellspacing="0" cellpadding="0">
                        <tr>
                            <th class="tl"><em>*</em>收货人姓名：</th>
                            <td class="tr"><asp:textbox id="txtRName" runat="server"></asp:textbox><span class="infotips">请填写您的有效证件上的真实姓名，以免延误您按时收到货物</span></td>
                        </tr>
                        <tr>
                            <th class="tl">手机/电话：</th>
                            <td class="tr"><asp:textbox id="txtRPhone" runat="server"></asp:textbox></td>
                        </tr>
                        <tr style="display:none;">
                            <th class="tl">联系手机：</th>
                            <td class="tr"><asp:textbox id="txtRMobile" runat="server"></asp:textbox></td>
                        </tr>
                        <tr>
                            <th class="tl"><em>*</em>地区：</th>
                            <td class="tr">
                                <asp:dropdownlist id="ddlTopAreas" runat="server" AutoPostBack="false"></asp:dropdownlist>
								<asp:dropdownlist id="ddlSubAreas" runat="server" AutoPostBack="false">
									<asp:ListItem Value="0">选择地区</asp:ListItem>
								</asp:dropdownlist>
								<asp:dropdownlist id="ddlThirdAreas" name="ddlThirdAreas" runat="server" AutoPostBack="false">
									<asp:ListItem Value="0">选择地区</asp:ListItem>
								</asp:dropdownlist>
                            </td>
                        </tr>
                        <tr>
                            <th class="tl"><em>*</em>地址：</th>
                            <td class="tr">
                            <asp:textbox id="txtRAddress" runat="server" Columns="20"></asp:textbox>
                            <span class="infotips">格式：街道-小区-门牌号数-楼层-房间</span>
                            </td>
                        </tr>
                        <tr>
                            <th class="tl"><em>*</em>邮编：</th>
                            <td class="tr"><asp:textbox id="txtRPostalcode" runat="server"></asp:textbox></td>
                        </tr>
                        <tr>
                            <th class="tl">电子邮箱：</th>
                            <td class="tr"><asp:textbox id="txtREmail" runat="server"></asp:textbox></td>
                        </tr>
                        <tr>
                            <th class="tl"></th>
                            <td class="tr"></td>
                        </tr>
                    </table>
	            </div>
	        </div>
	        
	        <div class="frame">
	            <div class="frame_title">选择支付方式</div>
	            <div class="frame_content">
	                <asp:RadioButtonList ID="rblPayment" Runat="server" RepeatDirection="Vertical" RepeatLayout="Table"></asp:RadioButtonList>
	            </div>
	        </div>
	        
	        <div class="frame">
	            <div class="frame_title">选择配送方式</div>
	            <div class="frame_content">
	                <div id="shippingsList"></div>
	            </div>
	        </div>
	        
	        <div class="frame">
	            <div class="frame_title">确认订单信息,提交生成订单.</div>
	            <div class="frame_content">
	                <table class="ptable" cellspacing="0" cellpadding="0">
						<tr>
							<th class="tl"></th>
							<td class="tr">	<asp:button id="btnSubmit" OnClick="btnSubmit_Click" runat="server" Text="提交" CssClass="inputbtn"></asp:button></td>
						</tr>
	                </table>
	            </div>
	        </div>
		</form>
		</div>
		</div>
		</div>
	</body>
</HTML>
