<%@ Page CodeFileBaseClass="AliCMS.Lib.AdminPageBase" %>
<ali:Get ID="SupplierAddresses" Object="Supplier.Addresses" InnerID="Request.QueryString['ID']" Validate="True" />
<ali:Get ID="Supplier" Object="Supplier" Guid="SupplierAddresses[SupplierID]" />
<section data-page="supplier_addresses_edit" data-title="编辑供应商收货地址" data-id="<%=Supplier[InnerID]%>" data-region-linkage="({element:'[data-id=region] select:first',index:1,id:'<%=SupplierAddresses[RegionID]%>',parentChain:null,parentChainPage:'../ajax_parent_chain.aspx?RegionID=<%=SupplierAddresses[RegionID]%>'})">
	<div class="path1"><span>您的位置：</span><a href="../list.aspx" target="ali-navtab">供应商列表</a> → <a href="list.aspx?SupplierID=<%=Supplier[ID]%>" target="ali-navtab"><%=Supplier[Name]%>的收货地址列表</a> → <b class="<%=ContentLang%>Font"><%=SupplierAddresses[Address]%></b></div>
	<form action="" class="post">
		<div class="post-body">
			<table class="post-table">
				<tr>
					<th width="140">地区：</th>
					<td data-id="region">
						<select class="<%=ContentLang%>Font">
							<option value="" data-inner-id="" data-parent-chain="">-- 未指定 --</option>
							<ali:List Mark="Goods" Object="Region" Condition="ParentID IS NULL">
								<ali:Record>
									<option value="<%=ID%>" data-inner-id="<%=InnerID%>" data-parent-chain="<%=ParentChain%>"><%=Name%></option>
								</ali:Record>
							</ali:List>
						</select>
					</td>
				</tr>
				<tr>
					<th>地址：</th>
					<td><input type="text" name="Address" value="<%=SupplierAddresses[Address]%>" size="30" maxlength="50" class="ali-input <%=ContentLang%>Font"></td>
				</tr>
				<tr>
					<th>邮政编码：</th>
					<td><input type="text" name="Zip" value="<%=SupplierAddresses[Zip]%>" size="10" maxlength="10" class="ali-input"></td>
				</tr>
				<tr>
					<th>是否默认：</th>
					<td>
						<%If Convert.ToBoolean(SupplierAddresses[IsDefault])%>
							<label><input type="radio" name="IsDefault" value="true" checked>是</label> <label><input type="radio" name="IsDefault" value="false">否</label>
						<%Else%>
							<label><input type="radio" name="IsDefault" value="true">是</label> <label><input type="radio" name="IsDefault" value="false" checked>否</label>
						<%EndIf%>
					</td>
				</tr>
			</table>
		</div>
		<div class="post-footer"><button type="submit" class="ali-button">保 存</button></div>
	</form>
</section>