<!--<?php
require($this->getSegmentFile('dianpu.nav'));
$_title = $_viewer->group ? '店铺组编辑' : '店铺组添加';
print <<<EOT
-->
<h2 class="h1">{$_title}</h2>
<form action="{$_viewer->baseUrl}&action=addgroups" method="post" name="FORM">
<input type="hidden" value="2" name="step"/>
<input type="hidden" value="{$_viewer->group[groupid]}" name="groupid"/>
<div class="admin_table mb10">
	<table width="100%">
		<tr class="tr1">
			<td class="td1">名称</td>
			<td class="td2" width="250"><input name="title" type="text" class="input input_wa" value="{$_viewer->group[title]}" /></td>
			<td class="td2"><span class="help a">店铺组名称</span></td>
		</tr>
		<tr>
			<td class="td1">支持logo上传</td>
			<td class="td2">
				<ul class="list_A list_80">
					<li><input name="config[uploadlogo]" type="radio" value="1" {$_viewer->configs->uploadlogo_Y}/> 开启</li>
					<li><input name="config[uploadlogo]" type="radio" value="0" {$_viewer->configs->uploadlogo_N}/> 关闭</li>
				</ul>
			</td>
			<td class="td2"><span class="help a">是否让店主自由上传店铺logo</span></td>
		</tr>
		<tr>
			<td class="td1">支持评论功能</td>
			<td class="td2">
				<ul class="list_A list_80">
					<li><input name="config[comments]" type="radio" value="1" {$_viewer->configs->comments_Y}/> 开启</li>
					<li><input name="config[comments]" type="radio" value="0" {$_viewer->configs->comments_N}/> 关闭</li>
				</ul>
			</td>
			<td class="td2"><span class="help a"></span></td>
		</tr>
		<tr class="tr1">
			<td class="td1">搜索结果显示店铺</td>
			<td class="td2">
				<ul class="list_A list_80">
					<li><input name="config[dianpushow]" type="radio" value="1" {$_viewer->configs->dianpushow_Y}/> 开启</li>
					<li><input name="config[dianpushow]" type="radio" value="0" {$_viewer->configs->dianpushow_N}/> 关闭</li>
				</ul>
			</td>
			<td class="td2"><span class="help a">在全站搜索结果的右侧随机显示该店铺组下店铺</span></td>
		</tr>
		<tr class="tr1">
			<td class="td1">搜索结果显示推荐商品</td>
			<td class="td2">
				<ul class="list_A list_80">
					<li><input name="config[productshow]" type="radio" value="1" {$_viewer->configs->productshow_Y}/> 开启</li>
					<li><input name="config[productshow]" type="radio" value="0" {$_viewer->configs->productshow_N}/> 关闭</li>
				</ul>
			</td>
			<td class="td2"><span class="help a">在全站搜索结果右侧随机显示推荐商品</span></td>
		</tr>
		<tr>
			<td class="td1">允许设置在线旺旺</td>
			<td class="td2">
				<ul class="list_A list_80">
					<li><input name="config[wangwang]" type="radio" value="1" {$_viewer->configs->wangwang_Y}/> 开启</li>
					<li><input name="config[wangwang]" type="radio" value="0" {$_viewer->configs->wangwang_N}/> 关闭</li>
				</ul>
			</td>
			<td class="td2"><span class="help a">店铺的在线联系方式</span></td>
		</tr>
		<tr>
			<td class="td1">允许设置在线QQ</td>
			<td class="td2">
				<ul class="list_A list_80">
					<li><input name="config[qq]" type="radio" value="1" {$_viewer->configs->qq_Y}/> 开启</li>
					<li><input name="config[qq]" type="radio" value="0" {$_viewer->configs->qq_N}/> 关闭</li>
				</ul>
			</td>
			<td class="td2"><span class="help a">店铺的在线联系方式</span></td>
		</tr>
		<tr class="tr1">
			<td class="td1">最多可发布商品数量</td>
			<td class="td2"><input type="text" class="input_wc input" name="config[maxproduct]" value="{$_viewer->config[maxproduct]}"/> </td>
			<td class="td2"><span class="help a">店铺最多可发布的商品上限</span></td>
		</tr>
		<tr class="tr1">
			<td class="td1">店铺说明最多页数</td>
			<td class="td2"><input type="text" class="input_wc input" name="config[maxexplain]" value="{$_viewer->config[maxexplain]}"/> </td>
			<td class="td2"><span class="help a">店铺首页介绍页面上限</span></td>
		</tr>
		<tr class="tr1">
			<td class="td1">店铺组风格模板设置</td>
			<td class="td2">
<!--
EOT;
if(!$_viewer->styles){
print <<<EOT
-->
				暂时没有任何模板,请先到<a onclick="parent.PW.Dialog({'id': 'dianpu_config','name': '核心设置','url': '{$admin_file}?adminjob=mode&admintype=dianpu_config&action=managestyle','max': false});return false;" href="javascript:;">风格管理中</a>编辑店铺风格
<!--
EOT;
} else {print <<<EOT
-->
				<ul class="list_B">
<!--
EOT;
foreach($_viewer->styles as $key => $value){
$_checked = $value['checked'] ? 'checked="checked"' : '';
$_checked_default = $value['checked_default'] ? 'checked="checked"' : '';
print <<<EOT
-->
					<li>
						<label><input type="checkbox" value="{$value[styleid]}" name="style[]" {$_checked}> {$value[title]}</label>&nbsp;&nbsp;
						<label><input type="radio" value="{$value[styleid]}" name="defaultStyle" {$_checked_default}> 默认风格</label>
					</li>
<!--
EOT;
}print <<<EOT
-->
				</ul>
<!--
EOT;
}print <<<EOT
-->
			</td>
			<td class="td2"><span class="help a"></span></td>
		</tr>
	</table>
</div>
<div class="p10 tac">
	<span class="btn"><span><button type="submit">提 交</button></span></span>
	<span class="bt"><span><button type="button" onclick="javascript:history.go(-1);">返回列表</button></span></span>
</div>
</form>
<!--
EOT;
?>