<{include file="index/header.html"}>
<div class="cnav"><a href="javascript:;" class="back">店铺管理</a></div> 
<div class="main"> 
	<form action="?m=shop&a=save" method="post">
		<{if $row.id}><input type="hidden" name="id" value="<{$row.id}>"/><{/if}>
		<table class="etable">
			<tr>
				<td width="120">店铺类型：</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" type="text" size="38" value="<{$row.contact}>"></td>
			</tr> 
			<tr>
				<td>分成比例：</td>
				<td><input name="ratio" type="text" size="38" value="<{$row.ratio}>"></td>
			</tr>
			<tr>
				<td>限时促销：</td>
				<td>
					<label><input name="act_status" type="radio" value="1" <{if $row.act_status =='1'}>checked="checked"<{/if}>>开启</label>
					<label><input name="act_status" type="radio" value="0" <{if $row.act_status =='0'}>checked="checked"<{/if}>>关闭</label> 
				</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"}>
