<%@ Page language="c#" Codebehind="ShippingArea.aspx.cs" AutoEventWireup="true" Inherits="XpShop.Manage.ShippingArea" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML>
	<HEAD>
	    <!--#include file="inc/head.inc"-->
		<title>配送地区管理</title>
		<script type="text/javascript" src="inc/ShippingArea.js"></script>
		<style type="text/css">
		    c1{ width:10%;}
		    c2{ width:20%;}
		    c3{ width:20%;}
		    c4{ width:20%;}
		    c5{ width:10%;}
		    c6{ width:10%;}
		    c7{ width:10%;}
		</style>
	</HEAD>
	<body>
	    <div class="container">
		<div class="sub_container">
		<div class="sub_container_title"><a href="<%=AdminDefault%>" target="_top">桌面</a><img src="images/admin_title.jpg" height=9px width=8px align="absmiddle" />
		    <% if (this.Request.QueryString["Action"] == "Manage")
         {%>配送地区列表<%} if (this.Request.QueryString["Action"] == "Add" | this.Request.QueryString["Action"] == "Modify")
         {%>配送地区添加<%}%>
		</div>
		<div class="sub_container_content">
		<form id="Form1" method="post" runat="server">
		    <div class="frame">
		        <div class="frame_title"><asp:label id="lblAction" runat="server" CssClass="tableHeaderText"></asp:label></div>
		        <div class="frame_content">
		            <%--<% if(this.Request.QueryString["Action"] == "Manage"){%>--%>
		            <div class="manage">
			        <table class="tableBorder" cellSpacing="0" cellPadding="0" width="100%" align="center" border="0">
				        <tr>
					        <td class="forumRowHighlight" height="23">
					            
					            <table style="width:100%;">
					                <tr>
					                    <td class="c1">序号</td>
					                    <td class="c2">配送地区名称</td>
					                    <td class="c3">地区编码</td>
					                    <td class="c4">描述</td>
					                    <td class="c5">配送价格</td>
					                    <td class="c6">修改</td>
					                    <td class="c7">删除</td>
					                </tr>
					            <asp:Repeater ID="rptList" runat="server">
					                <ItemTemplate>
					                <tr id='top_<%# DataBinder.Eval(Container.DataItem, "ShippingAreaID") %>' class="top">
					                    <td class='areaID c1'><%# DataBinder.Eval(Container.DataItem, "ShippingAreaID")%></td>
					                    <td class='name c2'><img src='images/folder_close.gif' <%# DataBinder.Eval(Container.DataItem, "HaveChild").ToString() == "0" ? "height='1' width='9'" : ""%> /><%# DataBinder.Eval(Container.DataItem, "Name")%></td>
					                    <td class='code c3'><%# DataBinder.Eval(Container.DataItem, "Code")%></td>
					                    <td class='description c4'><%# DataBinder.Eval(Container.DataItem, "Description")%></td>
					                    <td class='setprice c5'><a href='ShippingPrice.aspx?ShippingAreaID=<%# DataBinder.Eval(Container.DataItem, "ShippingAreaID") %>'>设定</a></td>
					                    <td class='modify c6'><a href='#'>修改</a></td>
					                    <td class='delete c7'><a href='#'>删除</a></td><%--删除--%>
					                </tr>
					                </ItemTemplate>
					            </asp:Repeater>
					            </table>
					            
					        </td>
				        </tr>
			        </table>
			        </div>
			        <%--<%}if(this.Request.QueryString["Action"] == "Add" | this.Request.QueryString["Action"] == "Modify"){%>--%>
			        <div class="modify">
			        <table class="tableBorder" cellspacing="0" cellpadding="0" width="100%" align="center"
                        border="0">
				        <tr>
					        <td height="23">
						        <table class="ptable" cellspacing="0" cellpadding="0">
							        <tr>
								        <th class="tl">配送地区名称：
								        </th>
								        <td class="tr"><asp:textbox id="txtName" runat="server"></asp:textbox></td>
							        </tr>
							        <tr>
								        <th class="tl">配送地区编码：
								        </th>
								        <td class="tr"><asp:textbox id="txtCode" runat="server"></asp:textbox></td>
							        </tr>
							        <tr>
								        <th class="tl">上级地区：
								        </th>
								        <td class="tr"><FONT face="宋体"><asp:dropdownlist id="ddlArea" runat="server"></asp:dropdownlist><asp:label id="lblNotify" runat="server"></asp:label></FONT></td>
							        </tr>
                                    <tr>
								        <th class="tl">配送方式：
								        </th>
								        <td class="tr"><font color="red">货到付款手续费填写方式：净额填写直接填写数字如20.00；百分比填写方式如5%</font>
                                        	<table width="350px" border="1" id="shipping" border="1" cellspacing="0" cellpadding="0" bordercolor="#A7A6AA" bordercolordark="#FFFFFF" bgcolor="#FFFFFF" >
                                            	<tr id="shippingType" style="display:none;">
                                                	<td width="30%" id="shippingID"><input type="checkbox" />圆通快递</td>
                                                    <td width="30%" id="isHdfk"><input type="checkbox" />是否货到付款</td>
                                                    <td width="40%" id="cost">货到付款手续费&nbsp;<input type="text" size="2" /></td>
                                                </tr>
                                            </table>
                                        </td>
							        </tr>
							        <tr>
								        <th class="tl">描述：
								        </th>
								        <td class="tr"><asp:textbox id="txtDescription" runat="server" Width="350px" Height="60px" TextMode="MultiLine"></asp:textbox></td>
							        </tr>
							        <tr>
								        <th class="tl"></th>
									    <td>
											<asp:Button id="btnSave" OnClick="btnSave_Click" runat="server" Text="保存" CssClass="inputbtn"></asp:Button>
									        <asp:Button id="btnCancel" OnClick="btnCancel_Click" runat="server" Text="取消" CausesValidation="False" CssClass="inputbtn"></asp:Button></td>
							        </tr>
						        </table>
					        </td>
				        </tr>
			        </table>
			        </div>
			        <%--<%}%>--%>
		        </div>
	        </div>
            <input type="hidden" id="shippingIDs" name="shippingIDs" value="" />
            <input type="hidden" id="isHdfks" name="isHdfks" value="" />
            <input type="hidden" id="costs" name="costs" value="" />
		</form>
        <form id="shippingForm">
        	
        </form>
		</div>
		</div>
		</div>
	</body>
</HTML>
