<%@ Page language="c#" Codebehind="ShippingArea.aspx.cs" AutoEventWireup="false" Inherits="XpShop.WebUI.Admin.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>
	    <!--loading start-->
        <div id="loadingContainer">
            <div class="panel">
                <div class="loadIcon">
                    <div>正在加载...</div>
                </div>
            </div>
            <div id="loadingbackground"></div>
        </div>    
        <!--loading end-->
	    <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" />
		    <% 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'><%# 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="tableBorder" cellSpacing="0" cellPadding="0" width="95%" align="center" border="0">
							        <tr>
								        <td align="left">配送地区名称：
								        </td>
								        <td><asp:textbox id="txtName" runat="server"></asp:textbox></td>
							        </tr>
							        <tr>
								        <td align="left">配送地区编码：
								        </td>
								        <td><asp:textbox id="txtCode" runat="server"></asp:textbox></td>
							        </tr>
							        <tr>
								        <td align="left">上级地区：
								        </td>
								        <td><FONT face="宋体"><asp:dropdownlist id="ddlArea" runat="server"></asp:dropdownlist><asp:label id="lblNotify" runat="server"></asp:label></FONT></td>
							        </tr>
							        <tr>
								        <td align="left">描述：
								        </td>
								        <td><asp:textbox id="txtDescription" runat="server" Width="350px" Height="60px" TextMode="MultiLine"></asp:textbox></td>
							        </tr>
							        <tr>
								        <td align="center" colspan="2"><br />
									        <asp:Button id="btnSave" runat="server" Text="保存"></asp:Button>
									        <asp:Button id="btnCancel" runat="server" Text="取消" CausesValidation="False"></asp:Button></td>
							        </tr>
						        </table>
					        </td>
				        </tr>
			        </table>
			        </div>
			        <%--<%}%>--%>
		        </div>
	        </div>
	        
		</form>
		</div>
		</div>
		</div>
	</body>
</HTML>
