<{include file="index/header.html"}>
<link rel="stylesheet" href="<{$__PUBLIC__}>plug/kindeditor/themes/default/default.css" />
<script charset="utf-8" src="<{$__PUBLIC__}>plug/kindeditor/kindeditor-min.js"></script>
<script charset="utf-8" src="<{$__PUBLIC__}>plug/kindeditor/lang/zh_CN.js"></script>
<script>
	var editor;
	KindEditor.ready(function(K) {
		editor = K.create('textarea[name="intro"]', {
			resizeType : 1,
			allowPreviewEmoticons : false,
			allowImageUpload : true,
			uploadJson : 'index.php?m=article&a=upload_img',
			items : [
				'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
				'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
				'insertunorderedlist', '|', 'emoticons', 'image', 'link']
		});
	});
</script>
<script language="javascript" src="<{$__PUBLIC__}>js/jquery.min.js" type="text/javascript"></script>
<script language="javascript" src="<{$__PUBLIC__}>js/common.js" type="text/javascript"></script>
<div class="main">
<{include file="shop/nav.html"}>
<form action="#" method="post">
	<{if $smarty.get.id neq ''}>
		<input type="hidden" name="id" value="<{$smarty.get.id}>"/>
	<{/if}>
	<table class="etable">
		<tr>
			<td>店铺类型：</td>
			<td>
				<{foreach item=i key=k from=$shop_type}>
					<label><input type="radio" value="<{$k}>" name="type" <{if $row.type == $k}>checked="checked"<{/if}>/><{$i}>店铺</label> 
				<{/foreach}> 
			</td>
	  	</tr> 
		<tr>
			<td>店铺分类：</td>
			<td>
				<select name="cid">
			<{foreach item=i from=$shop_type_row}>	
					<option value="<{$i.cid}>" <{if $i.cid == $row.cid}>selected="selected"<{/if}>><{$i.name}></option>
			<{/foreach}>		
				</select>
			</td>
	  	</tr> 
	  	<tr>
			<td>店铺名称：</td>
			<td><input name="name" type="text" size="38" value="<{$row.name}>"></td>
	  	</tr> 
		<tr>
			<td>联系电话：</td>
			<td><input name="mobile" type="text" size="38" value="<{$row.mobile}>"></td>
	  	</tr>
		<tr>
			<td>联系姓名：</td>
			<td><input name="contact_name" type="text" size="38" value="<{$row.contact_name}>"></td>
	  	</tr>
		<script type="text/javascript">
			district_prov('<{$row.prov}>');
			setTimeout(district_city('<{$row.prov}>','<{$row.city}>'),1000);
			setTimeout(district_dist('<{$row.city}>','<{$row.dist}>'),1000);
		</script>
		<tr>
			<td>所在地区：</td>
			<td> 
				<select name="prov" id="district_prov">
					<option value="0"></option>
				</select>
				<select name="city" id="district_city">
					<option value="0">请选择</option>
				</select>
				<select name="dist" id="district_dist">
					<option value="0">请选择</option>
				</select>
			</td>
	  	</tr> 
		<tr>
			<td>地址经度：</td>
			<td><input name="lng" type="text" size="15" value="<{$row.lng}>"></td>
	  	</tr> 
		<tr>
			<td>地址纬度：</td>
			<td><input name="lat" type="text" size="15" value="<{$row.lat}>"></td>
	  	</tr> 
		<tr>
			<td>分成比例：</td>
			<td><input name="ratio" type="text" size="15" value="<{$row.ratio}>"></td>
	  	</tr>
		<tr>
			<td>状态：</td>
			<td>
				<label><input name="status" type="radio" value="1" <{if $row.status =='1'}>checked="checked"<{/if}>>开启</label>
				<label><input name="status" type="radio" value="0" <{if $row.status =='0'}>checked="checked"<{/if}>>关闭</label>	
			</td>
	  	</tr>
	  	<tr>
			<td>&nbsp;</td>
			<td><input name="submit" type="submit" class="submit" value="保存信息"/></td>
	  	</tr>
	</table>
</form> 
</div>
<{include file="index/footer.html"}> 
