<form id="pagerForm" method="post" action="?action=zhtj&do=list2">
	<input type="hidden" name="pageNum" value="1" />
	<input type="hidden" name="time_start"  value="<?php echo $this->_var['time_start'];?>"/>
	<input type="hidden" name="time_over"  value="<?php echo $this->_var['time_over'];?>"/>
</form>
<div class="page">
	<div class="pageHeader">
		<form onsubmit="return navTabSearch(this);" action="?action=zhtj&do=list2" method="post">
		<div class="searchBar">
			<table class="searchContent">
				<tr>
					<td>
						客户名称:<input type="text" name="name" size="12"/>
					</td>
					<td >
						客户电话:<input type="text" name="tel" size="12" />
					</td>


					<td>
						登记时间:<input type="text" name="time_start" size="9" class="date" readonly="true" />
						-<input type="text" name="time_over" size="9" class="date" readonly="true" />
					</td>
					<td>
					<!--{$salesid_cn}-->
					</td>
					<td>
					<!--{$typeid_cn}-->
					</td>
					</td>
					<td>
					<div class="buttonActive"><div class="buttonContent"><button type="submit">搜索</button></div></div>
					</td>
				</tr>
			</table>
		</div>
		</form>
	</div>
	<div class="pageContent">
		<div class="panelBar">
			<ul class="toolBar">
				<li><a class="add" href="?action=visits&do=new&id={id}" target="navTab"><span>电话回访</span></a></li>
				<li><a class="add" href="?action=smsmail&do=sms&id={id}" target="navTab"><span>发送短信</span></a></li>
				<li><a class="add" href="?action=smsmail&do=send&id={id}" target="dialog"><span>发送邮件</span></a></li>
			</ul>
		</div>
		<table class="list" layouth="91" style="width:1100px;">
			<thead>
				<tr>
					<th align="center">ID</th>
					<th align="center">登记时间</th>
					<th align="center">客户名称</th>
					<th align="center">客户电话</th>
					<th align="center">性别</th>
					<th align="center">年龄</th>
					<th align="center">登记人</th>
					<th align="center">来院次数</th>
					<th align="center">预约方式</th>
					<th align="center">预约科室</th>
					<th align="center">预约医生</th>
					<th align="center">整形项目</th>
					<th align="center">回访次数</th>
					<th align="center">查看</th>
				</tr>
			</thead>
			<tbody>			
			<!--{foreach from=$list item=row}-->
				<tr target="id" rel="<!--{$row.id}-->" >
					<td><!--{$row.id}--></td>
					<td><!--{$row.created_at}--></td>
					<td><!--{$row.name}--></td>
					<td><!--{$row.dh_txt}--></td>
					<td><!--{$row.xb}--></td>
					<td><!--{$row.nl}--></td>
					<td><!--{$row.salesid_txt}--></td>
					<td><!--{$row.visitnum}--></td>
					<td><!--{$row.typeid_txt}--></td>
					<td><!--{$row.productid_txt}--></td>
					<td><!--{$row.doctorid_txt}--></td>
					<td><!--{$row.zxxm}--></td>
					<td><!--{$row.hfnum}--></td>
					<td><a href="?action=info&do=show&id=<!--{$row.id}-->" target="dialog" width="800" height="302">明细</a></td>
				</tr>			
			<!--{/foreach}-->
			</tbody>
		</table>
		<div class="panelBar">
			<div class="pages">
				<span>共{$total}条</span>
			</div>
			
			<div class="pagination" targetType="navTab" totalCount="{$total}" numPerPage="50" pageNumShown="10" currentPage="{$pageNum}"></div>

		</div>
	</div>
</div>