<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="predeposit_cash_list" />
<table width="680" class="from_table">
	<tr>
		<th align="left" style="width:120px"><tpl> $langPreSearchMemberName </tpl>：</th><td width="150"><input type="text" class="txtinput_short" name="search_member_name" id="search_member_name" /></td>
		<th width="350" align="left"  style="width:120px"><tpl> $langPreDetailCreateTime </tpl>：</th><td colspan="2" style="width:350px"><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 align="left" style="width:120px"><tpl> $langPreCashType </tpl>：</th><td width="150"><select name="search_cash_type" id="search_cash_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" style="width:120px"><tpl> $langPreState </tpl>：</th><td><select name="search_cash_state" id="search_cash_state">
				<option value=""></option>
				<option value="0"><tpl> $langPreDetailStateZero </tpl></option>
				<option value="1"><tpl> $langPreDetailStateOne </tpl></option>
				<option value="2"><tpl> $langPreDetailStateTwo </tpl></option>
			</select>	</td>
	<td><span class="btn_left">
	  <input type="submit" value="<tpl> $langPreSearch </tpl>" class="btn_submit" /></span></td>
	</tr>
	
</table>
</form>
<table  class="from_table2_one top-1">
 <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> $langPreCashAmount </tpl></th>
	  <th width="200"><tpl> $langPreCashType </tpl></th>
	  <th width="200"><tpl> $langPreState </tpl></th>
	  <th width="200"><tpl> $langPreAction </tpl></th>
  </tr>
  </thead>
  <tpl> if $cash_array[0].predeposit_c_id neq '' </tpl>
	  <tpl> section name=i loop=$cash_array </tpl>
	  <tr>
		  <!-- <td><input name="predeposit_c_id[]" type="checkbox" value="<tpl> $cash_array[i].predeposit_c_id </tpl>"/></td> -->	
	    <td class="pd-left" width="200" align="left"><tpl> $cash_array[i].create_time </tpl></td>
		  <td width="200" align="left"><tpl> $cash_array[i].member_name </tpl></td>
		  <td width="200" align="left"><tpl> $cash_array[i].amount </tpl></td>
		  <td width="200" align="left">
			<tpl> if $cash_array[i].payment_type eq '1' </tpl><!-- 线下 -->
		  		<tpl> $langPreCashTypeOffline </tpl>
			  <tpl> else </tpl>
				<tpl> if $cash_array[i].payment eq 'alipay' </tpl>
					<tpl> $langPreCashTypeAlipay </tpl>
				<tpl> /if </tpl>
				<tpl> if $cash_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=$cash_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=predeposit_cash_view&id=<tpl> $cash_array[i].predeposit_c_id </tpl>');" title="<tpl> $langPreView </tpl>" class="view_a_pic">
	   </a></td>
	  </tr>
	  <tpl> /section </tpl>
	 
	<tpl> else  </tpl>
	  <tr>
		<td colspan="7"><tpl> $langSysCNoThing </tpl>！</td>
	  </tr>
	<tpl> /if </tpl>
</table>
 <tpl> if $cash_array[0].predeposit_c_id neq '' </tpl>
<div class="table-5-bottom"><div style="float:right; padding-right:20px">
		<tpl> $page_list </tpl>		
		</div></div>
		<tpl> /if </tpl>
<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>