<!--{include file="<!--{$oetplpath}-->block_head.tpl"}-->
<div class="oemarry_layout">
  <div class="oe_content">
	
	<form id="serform" action="<!--{$oefile}-->&c=<!--{$c}-->&a=select" method="post">
	<div class="oe_txtwrap">
	  查看范围：
	  <select name="viewtype" id="viewtype" onchange="changeGetAdmin();">
	    <option value='0'>所有数据</option>
	    <option value='1'<!--{if $viewtype == '1'}--> selected<!--{/if}-->>我的数据</option>
	    <option value='2'<!--{if $viewtype == '2'}--> selected<!--{/if}-->>下属数据</option>
	  </select>
	  <span id='json_sadminid'>
	  <!--{if $viewtype == '2'}-->
	  <!--{hook mod='subadmin' type='select' name='sadminid' text='=全部=' value=$sadminid}-->
	  <!--{/if}-->
	  </span>
	  <script type="text/javascript">
	  function changeGetAdmin() {
		  $type = $('#viewtype').val();
		  if ($type == 2) {
			  oemarrySelectSubAdmin("sadminid", "<!--{$sadminid}-->", "=全部=");
		  }
		  else {
			  $("#json_sadminid").html("");
		  }
	  }
	  </script>
	  &nbsp;
	 
	  分类：<!--{hook mod='shopcat' type='select' name='scatid' text='=请选择=' value=$scatid}-->&nbsp;
	  
	  店铺名称：<input type="text" name="sname" id="sname" class="input-150" value="<!--{$sname}-->" />&nbsp;<br />
	  类型：
	  <select name="stype" id="stype">
	    <option value="">=不限=</option>
		<option value="1"<!--{if $stype == '1'}--> selected<!--{/if}-->>个人</option>
		<option value="2"<!--{if $stype == '2'}--> selected<!--{/if}-->>企业</option>
	  </select>&nbsp;
	  所在地区：
		<!--{area type='select' name='sarea' depth='1' child='1' text='=请选择=' value=$sarea1}-->
		<span id="json_sarea2">
		  <!--{if $sarea1 > 0}-->
		  <!--{area type='select' name='sarea' depth='2' child='1' text='=请选择=' parentid=$sarea1 value=$sarea2}-->
		  <!--{else}-->
		  <select name="sarea2" id="sarea2"><option value="">=请选择=</option></select>
		  <!--{/if}-->
		</span>
		<span id="json_sarea3">
		  <!--{if $sarea2 > 0}-->
		  <!--{area type='select' name='sarea' depth='3' child='1' text='=请选择=' parentid=$sarea2 value=$sarea3}-->
		  <!--{else}-->
		  <select name="sarea3" id="sarea3"><option value="">=请选择=</option></select>
		  <!--{/if}-->
		</span>
		<span id="json_sarea4">
		  <!--{if $sarea3 > 0}-->
		  <!--{area type='select' name='sarea' depth='4' text='=请选择=' parentid=$sarea3 value=$sarea4}-->
		  <!--{/if}-->
		</span>
		&nbsp;&nbsp;<input type="submit" name="btn_search" id="btn_search" class="button_2" value="搜索" />

	</div>
	</form>

    <table class="oe_table_list table_cs">
	  <tr>
	    <th width="10%">ID</th>
		<th width="8%">类型</th>
		<th width="25%">店铺</th>
		<th width="13%">分类</th>
		<th width="12%">地区</th>
		<th width="15%">入驻时间</th>
		<th width="10%">负责人</th>
		<th>操作</th>
	  </tr>
	  <!--{if empty($shop)}-->
	  <tr>
	    <td class="text_center" colspan="8">No data!</td>
	  </tr>
	  <!--{else}-->
	  <!--{foreach $shop as $volist}-->
	  <tr>
	    <td class="text_center"><!--{$volist.shopid}--></td>
		<td class="text_center">
		<!--{if $volist.shoptype == '2'}-->
		<font color="blue">企业</font>
		<!--{else}-->
		个人
		<!--{/if}-->
		</td>
		<td><!--{$volist.shopname}--></td>
		<td><!--{$volist.catname}--></td>
		<td class="text_center"><!--{$volist.province}--> <!--{$volist.city}--></td>
		<td><!--{$volist.addtime|date_format:"%Y/%m/%d %H:%M"}--></td>
		<td class="text_center">
		<!--{if $volist.ownerid == '0'}-->
		~~
		<!--{else}-->
		<!--{hook mod='admin' type='text' item='lastname' value=$volist.ownerid}-->
		<!--{/if}-->
		</td>
		<td class="text_center">
		 <a href="javascript:;" class="oe_ico_green" onclick="oeSelectShop('<!--{$volist.shopid}-->', '<!--{$volist.shopname}-->');">选择</a>
		</td>
	  </tr>
	  <!--{/foreach}-->
	  <!--{/if}-->
	</table>

	<div class="oe_page_box"><!--{$showpage}--></div>

  </div>
</div>
<script type="text/javascript">
//选择模板文件
function oeSelectShop(shopid, shopname) {
	window.parent.$("#<!--{$inputid}-->").val(shopid);
	window.parent.$("#<!--{$inputid}-->_tips").html(shopname);
	$.dialog.close();
}
</script>
</body>
</html>