<!--<?php
require($this->getSegmentFile('config.nav'));
$path = M_P;
print <<<EOT
-->
<script src="mode/dianpu/js/city.js" language="JavaScript" type="text/javascript"></script> 
<form name="updateConfig" action="{$_viewer->baseUrl}&action=updateConfig" method="post">
<input type="hidden" value="stepConfig" name="p" />
<h2 class="h1"><span class="fl mr10">店铺功能</span></h2>
<div class="admin_table mb10">
	<table cellspacing="0" cellpadding="0" width="100%">
	    <tbody>
		<tr class="tr1 vt">
			<td class="td1">开启评论</td>
			<td class="td2" width="350">
				<ul class="list_A list_80">
					<li><input name="canComment" type="radio" value="1" {$_viewer->canComment[1]} /> 开启</li>
					<li><input name="canComment" type="radio" value="0" {$_viewer->canComment[0]} /> 关闭</li>
				</ul>
			</td>
			<td class="td2"><div class="help_a">店铺的评论功能，登录用户可使用</div></td>
		</tr>
	 	<!--  <tr class="tr1">
			<td class="td1">星级点评</td>
			<td class="td2">
				<ul class="list_A list_80">
					<li><input name="starRemark" type="radio" value="1" {$_viewer->starRemark[1]}/> 开启</li>
					<li><input name="starRemark" type="radio" value="0" {$_viewer->starRemark[0]}/> 关闭</li>
				</ul>
			</td>
			<td class="td2"><div class="help_a">店铺的评分功能，登录用户可使用</div></td>
		</tr>-->
		
		<tr class="tr1 vt">
			<td class="td1">列表页显示的店铺数</td>
			<td class="td2">
		      <input name="listNum" type="text" class="input input_wa" id="listNum" value="{$_viewer->listNum}"/>
			</td>
			<td class="td2"><div class="help_a">默认为15</div></td>
		</tr>
		</tbody>
	</table>
</div>
<h2 class="h1"><span class="fl mr10">地域设置</span></h2> 
<div class="admin_table mb10"> 
	<table cellspacing="0" cellpadding="0" width="100%"> 
		<tbody> 
		<tr class="tr1 vt"> 
			<td class="td1">默认城市</td> 
			<td class="td2" width="350"> 
				<select id="selProvince" onChange = "getCity(this.options[this.selectedIndex].value,'')"></select> 
				<select id="selCity" name="mapcity"><option>-城市-</option></select> 
			</td> 
			<td class="td2"><div class="help_a">地图默认显示城市设置</div></td> 
		</tr> 
		<tr class="tr1 vt"> 
			<td class="td1">MAPABC KEY 设置</td>
			<td class="td2"> 
				<textarea class="textarea" name="mapkey" >{$_viewer->mapkey}</textarea>
			</td>
			<td class="td2"><div class="help_a">地图功能，需要先维护MAPABC的API Key后才能正常使用。<a href="http://code.mapabc.com/key.shtml" target="_blank">点此获取MAPABC API KEY</a></div></td> 
		</tr>
		</tbody> 
	</table> 
</div>
<div class="p10 tac">
<span class="btn">
  <span><button type="submit">提 交</button></span></span></div>
</form>
<script type="text/javascript">
getProvince("{$_viewer->mapcity}");
</script>
<!--
EOT;
?>
