{js:artTemplate}
{js:areaSelect}
<div class="headbar">
	<div class="position"><span>系统</span><span>></span><span>自提点管理</span><span>></span><span>自提点管理编辑</span></div>
</div>
<div class="content_box">
	<div class="content form_content">
		<form action='{url:/system/takeself_update}' method='post' name='takeself'>
			<input type='hidden' name='id' value=""/>
			<table class="form_table">
				<col width="150px" />
				<col />
				<tr>
					<th>名称：</th>
					<td>
						<input type='text' class='normal' name='name' value='{$this->takeselfRow['name']}' pattern='required' alt="填写名称" />
						<label>*自提点名称（必填）</label>
					</td>
				</tr>
				<tr>
					<th>地区：</th>
					<td>
						<select name="province" child="city,area" class="auto"></select>
						<select name="city" child="area" class="auto"></select>
						<select name="area" class="auto"></select>
					</td>
				</tr>
				<tr>
					<th>地址：</th>
					<td>
						<input type='text' class='normal' name='address' value='{$this->takeselfRow['address']}' pattern='required' alt="填写名称" />
						<label>*具体地址（必填）</label>
					</td>
				</tr>
				<tr>
					<th>固定电话：</th>
					<td>
						<input type='text' class='normal' name='phone' value='{$this->takeselfRow['phone']}' pattern='required' alt="填写名称" />
						<label>*自提点固定电话（必填）</label>
					</td>
				</tr>
				<tr>
					<th>手机：</th>
					<td>
						<input type='text' class='normal' name='mobile' value='{$this->takeselfRow['mobile']}' pattern='required' alt="填写名称" />
						<label>*自提点负责人手机（必填）</label>
					</td>
				</tr>
				<tr>
					<th>排序：</th>
					<td>
						<input type='text' class='normal' name='sort' value='{$this->takeselfRow['sort']}' pattern='' alt="填写名称" />
						<label>数据排序,数字越小越靠前</label>
					</td>
				</tr>
				<tr>
					<th></th>
					<td>
						<button class='submit' type='submit'><span>确 定</span></button>
					</td>
				</tr>
			</table>
		</form>
	</div>
</div>

<script type='text/javascript'>
//DOM加载完毕
$(function(){
	//修改模式
	var formObj = new Form('takeself');
	formObj.init({echo:JSON::encode($this->takeselfRow)});

	//地区联动插件
	var areaInstance = new areaSelect('province');
	areaInstance.init({echo:JSON::encode($this->takeselfRow)});
});
</script>
