<!--{include file="<!--{$oetplpath}-->block_head.tpl"}-->
<div class="oemarry_layout">
  <div class="oe_content">
	
	<form id="serform" action="<!--{$oefile}-->&c=<!--{$c}-->&a=selectshop" method="post">
	<input type="hidden" name="inputid" id="inputid" value="<!--{$inputid}-->" />
	<div class="oe_txtwrap">
	  类型：
	  <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;
	  用户名：<input type="text" name="susername" id="susername" class="input-100" value="<!--{$susername}-->" />&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%">UID</th>
		<th width="8%">类型</th>
		<th width="18%">用户名</th>
		<th width="13%">手机</th>
		<th width="10%">性别</th>
		<th width="15%">地区</th>
		<th width="15%">注册时间</th>
		<th>操作</th>
	  </tr>
	  <!--{if empty($user)}-->
	  <tr>
	    <td class="text_center" colspan="8">No data!</td>
	  </tr>
	  <!--{else}-->
	  <!--{foreach $user as $volist}-->
	  <tr>
	    <td class="text_center"><!--{$volist.userid}--></td>
		<td class="text_center">
		<!--{if $volist.type == '2'}-->
		<font color="blue">商家</font>
		<!--{else}-->
		个人
		<!--{/if}-->
		</td>
		<td><!--{$volist.username}--></td>
		<td><!--{$volist.mobile}--></td>
		<td class="text_center">
		<!--{if $volist.gender == '2'}-->
		女
		<!--{elseif $volist.gender == '1'}-->
		男
		<!--{else}-->
		..
		<!--{/if}-->
		</td>
		<td class="text_center"><!--{$volist.province}--> <!--{$volist.city}--></td>
		<td><!--{$volist.regtime|date_format:"%Y/%m/%d %H:%M"}--></td>
		<td class="text_center">
		 <a href="javascript:;" class="oe_ico_green" onclick="oeSelectUser('<!--{$volist.userid}-->', '<!--{$volist.username}-->');">选择</a>
		</td>
	  </tr>
	  <!--{/foreach}-->
	  <!--{/if}-->
	</table>

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

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