<form action="predeposit.manage.php" method="get" name="form_search" id="form_search" onsubmit="ajax_list();return false;">
<input type="hidden" name="action" id="action" value="pay_record_list" />
<table width="680" class="from_table">
	<tr>
	<th width="223"><tpl> $langPreSearchMemberName </tpl>：</th>
		<td width="218" align="left"><input type="text" name="search_member_name" class="txtinput_short" id="search_member_name" size="20"/>	</td>
		<th width="200"><tpl> $langPreDetailCreateTime </tpl>：</th>
		<td colspan="2" align="left"><input type="text" name="search_start_date" class="txtinput_short"  style="cursor:pointer"  id="search_start_date" size="15"  readonly="readonly" /> <tpl> $langPreSearchTo </tpl>
	  <input type="text" name="search_end_date" class="txtinput_short"  style="cursor:pointer"  id="search_end_date" size="15"  readonly="readonly" /> 	</td>
	</tr>
	<tr>
	<th><tpl> $langPreRecordType </tpl>：</th>
	  <td align="left"><select name="search_record_type" id="search_record_type">
				<option value=""></option>
				<option value="offline"><tpl> $langPreCashTypeOffline </tpl></option>
				<option value="alipay"><tpl> $langPreCashTypeAlipay </tpl></option>
				<option value="tenpay"><tpl> $langPreCashTypeTenpay </tpl></option>
			</select>	</td>
      <th align="left"><tpl> $langPreState </tpl>：</th><td width="350" align="left"><select name="search_record_state" id="search_record_state">
				<option value=""></option>
				<option value="0"><tpl> $langPreDetailStateZero </tpl></option>
				<option value="1"><tpl> $langPreDetailStateOne </tpl></option>
				<option value="2"><tpl> $langPreDetailStateOne </tpl></option>
			</select>	</td>	<td width="350" align="left"><span class="btn_left">
			<input type="submit" value="<tpl> $langPreSearch </tpl>"  class="btn_submit"/></span></td>
    </tr>
	<tr>
		<td colspan="2" align="center"></td>
		<td></td>	<td></td>
</tr>
</table>
</form>
<table  class="from_table2_one">
 <thead>
	 <tr class="area_ajax_list_title">
	  <!-- <th>选</th> -->
	  <th class="pd-left" width="200"><tpl> $langPreDetailCreateTime </tpl></th>
	  <th width="200"><tpl> $langPreSearchMemberName </tpl></th>
	  <th width="200"><tpl> $langPreSenderName </tpl></th>
	  <th width="200"><tpl> $langPreSenderAmount </tpl></th>
	  <th width="200"><tpl> $langPreType </tpl></th>
	  <th width="200"><tpl> $langPreState </tpl></th>
	  <th width="200"><tpl> $langPreAction </tpl></th>
    </tr>
  </thead>
  <tpl> if $record_array[0].predeposit_r_id neq '' </tpl>
	  <tpl> section name=i loop=$record_array </tpl>
	  <tr>
		  <!-- <td><input name="predeposit_r_id[]" type="checkbox" value="<tpl> $record_array[i].predeposit_r_id </tpl>"/></td> -->					
	    <td class="pd-left" width="200" align="left"><tpl> $record_array[i].create_time </tpl></td>
		  <td width="200" align="left"><tpl> $record_array[i].member_name </tpl></td>
		  <td width="200" align="left">
		  <tpl> if $record_array[i].payment_type eq '1' </tpl><!-- 线下支付 -->
			<tpl> $record_array[i].sender_name </tpl>
		  <tpl> else </tpl>
			<tpl> $record_array[i].member_name </tpl>
	    <tpl> /if </tpl>		  </td>
		  <td width="200" align="left">
		  <tpl> if $record_array[i].payment_type eq '1' </tpl><!-- 线下支付 -->
			<tpl> $record_array[i].sender_amount </tpl>
		  <tpl> else </tpl>
			<tpl> $record_array[i].online_amount </tpl>
	    <tpl> /if </tpl>		  </td>
		  <td width="200" align="left">
			<tpl> if $record_array[i].payment_type eq '1' </tpl><!-- 线下支付 -->
				<tpl> $langPreCashTypeOffline </tpl>
			<tpl> else </tpl>
				<tpl> if $record_array[i].payment eq 'alipay' </tpl>
					<tpl> $langPreCashTypeAlipay </tpl>
				<tpl> /if </tpl>
				<tpl> if $record_array[i].payment eq 'tenpay' </tpl>
					<tpl> $langPreCashTypeTenpay </tpl>
				<tpl> /if </tpl>
		<tpl> /if </tpl>		  </td>
		  <td width="200" align="left">
			<tpl> assign var=one value=$record_array[i].record_state </tpl>
		<tpl> $predeposit_record_state[$one] </tpl>		  </td>
		  <td width="200" align="left"><a href="javascript:;" onclick="ShowDiv='result_content';getPageContent('predeposit.manage.php?action=pay_record_view&id=<tpl> $record_array[i].predeposit_r_id </tpl>');" title="<tpl> $langPreView </tpl>" class="view_a_pic">
	    </a></td>
	  </tr>
	  <tpl> /section </tpl>
	 
	<tpl> else  </tpl>
	  <tr>
		<td colspan="6"><tpl> $langSysCNoThing </tpl>！</td>
	  </tr>
	<tpl> /if </tpl>
</table>
<div class="table-5-bottom"><div style="float:right; padding-right:20px">
		<tpl> $page_list </tpl>		
		</div></div>
<script>
$(document).ready(function() {
});	
$(function(){
	$("#search_start_date").datepicker();
	$("#search_end_date").datepicker();
})
function ajax_list(){
	/* 取表单参数 */var queryString=$("#form_search").formSerialize();
	$.ajax({
		url: "predeposit.manage.php",
		data: queryString,
		type:'get',
		dataType:"html",
		beforeSubmit:  showLoading(showText),   // 提交之前执行的方法
		success: function(msg){
			$("#result_content").html(msg);
			hideLoading();
		}
	});
	return false;
}
</script>