{if $full_page}
{include file="page_header.htm"}
{insert_scripts files="../js/utils.js,listtable.js"}

<form method="post" action="wx_user.php" name="listForm">
<div class="list-div" id="listDiv">
{/if}
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-top:10px;">
<tr>
<td height="36" class="BotNavBg">
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
	<td align="right" style="padding-right:3px;">{include file="page.htm"}</td>
	</tr>
	</table>
</td>
</tr>
</table>
<table cellspacing="0" cellpadding="0" class="list-table" width="100%">
<tr class="thead">
	<th width="10%" align="left"><a href="javascript:listTable.sort('nickname');">昵称</a>{$sort_nickname}</th>
	<th width="10%"><a href="javascript:listTable.sort('sex');">性别</a>{$sort_sex}</th>
	<th width="10%"><a href="javascript:listTable.sort('province'); ">省份 </a>{$sort_province}</th>
	<th width="10%"><a href="javascript:listTable.sort('city'); ">城市 </a>{$sort_city}</th>
	<th width="22%" align="left"><a href="javascript:listTable.sort('wxid'); ">用户标识 </a>{$sort_wxid}</th>
	<th width="18%"><a href="javascript:listTable.sort('subscribe_time'); ">关注时间</a>{$sort_subscribe_time}</th>
	<th width="15%">操作</th>
	</tr>
	{foreach from=$user_list item=list}
	<tr>
	<td class="first-cell">{$list.nickname|escape:html}</td>
	<td align="center"><span>{if $list.sex == 1}男{elseif $list.sex == 2}女{else}未知{/if}</span></td>
	<td align="center"><span>{$list.province|escape:html}</span></td>
	<td align="center"><span>{$list.city|escape:html}</span></td>
	<td align="left"><span>{$list.wxid|escape:html}</span></td>
	<td align="center"><span>{$list.subscribe_time|escape:html}</span></td>
	<td align="center" nowrap="true">
	<span><a href="wx_send.php?act=add&amp;uid={$list.uid}">发送消息</a></span>
	</td>
	</tr>
	{/foreach}
</table>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
	<td height="36" class="BotNavBg">
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
		<tr>
			<td align="right" style="padding-right:3px;">{include file="page.htm"}</td>
		</tr>
		</table>
	</td>
  </tr>
</table>
{if $full_page}
</div>
</form>

{literal}
<script language="JavaScript">
<!--
listTable.recordCount = {$record_count};
  listTable.pageCount = {$page_count};
  {foreach from=$filter item=item key=key}
  listTable.filter.{$key} = '{$item}';
  {/foreach}
  {literal}
//-->
</script>
{/literal}
{include file="page_footer.htm"}
{/if}