<form id="pagerForm" method="post" action="?action=money&do=list2">
	<input type="hidden" name="pageNum" value="1" />
	<input type="hidden" name="typeid"  value="<?php echo $this->_var['typeid'];?>"/>
	<input type="hidden" name="salesid"  value="<?php echo $this->_var['salesid'];?>"/>
	<input type="hidden" name="fz"  value="<?php echo $this->_var['fz'];?>"/>
	<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=money&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="radio" name="fz"  value="1" />初诊
						<input type="radio" name="fz"  value="2" />复诊
					</td>
					<td>
					<!--{$salesid_cn}-->
					</td>
					<td>
					<!--{$typeid_cn}-->
					</td>
					<td>
					<input type="radio" name="money_qf"  value="1" />欠费
					</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>
					<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="show" href="?action=sell&do=show&id={id}" target="navTab" rel="sellshow"><span>明细</span></a></li>
				<li class="line">line</li>
				
			</ul>
		</div>
		<table class="list" layouth="91" style="width:1000px;">
			<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>
				</tr>
			</thead>
			<tbody>			
			<!--{foreach from=$list item=row}-->
				<tr target="id" rel="<!--{$row.id}-->" >
					<td><!--{$row.id}--></td>
					<td ><!--{$row.created_at}--></td>
					<td class="<!--{$row.vip}-->"><a href="?action=sell&do=show&id=<!--{$row.id}-->" target="dialog" width="800"><!--{$row.name}--></a></td>
					<td><!--{$row.salesid2_txt}--></td>
					<td><!--{$row.salesid_txt}--></td>
					<td><!--{$row.dh_txt}--></td>
					<td><!--{$row.fz_cn}--></td>
					<td><!--{$row.money_ss}--></td>
					<td><!--{$row.money_qf}--></td>
					<td><!--{$row.yepay}--></td>
					<td><!--{$row.money_tk}--></td>
					<td><a href="?action=smsmail&do=sms&id=<!--{$row.infoid}-->" target="navTab" >短信</a></td>
				</tr>
				
			<!--{/foreach}-->
			</tbody>
		</table>
		<div class="panelBar">
			<div class="pages">
				<span>共{$total}条{if $smarty.session.roleid == "1"}--共实收金额<!--{$list2.num_t}-->--未收欠款<!--{$list2.num2}-->{/if}</span>
			</div>
			
			<div class="pagination" targetType="navTab" totalCount="{$total}" numPerPage="30" pageNumShown="10" currentPage="{$pageNum}"></div>

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