<script language="JavaScript" type="text/javascript" src="../js/jquery/thickbox.js"></script>
<link rel="stylesheet" href="../js/jquery/thickbox.css" type="text/css" media="screen" />
<form action="member_personal_certify.manage.php" id="form_search" name="form_search" method="post" onsubmit="return ajax_search();">
<input type="hidden" name="action" id="action" value="ajax_list" />
<table width="680" border="0" cellpadding="0" cellspacing="0" class="from_table2">
	<tr>
	  <th width="150" align="center" valign="middle"> <tpl> $langSysPersonalCertifyMemberName </tpl>:</th>
	  <td width="150" align="left"><input type="text"  name="member_name" id="member_name" class="txtinput_short" value="<tpl> $condition.member_name </tpl>" /></td>
	  <th width="150" align="left"><tpl> $langSysPersonalCertifyState </tpl>:</th>
		<td width="100" align="left">
	    	<select name="certify_state" id="certify_state">
				<option value="0" <tpl> if $condition.certify_state eq '0' </tpl>selected="selected"<tpl> /if </tpl>><tpl> $langSysPersonalCertifyStateZero </tpl></option>
				<option value="1" <tpl> if $condition.certify_state eq '1' </tpl>selected="selected"<tpl> /if </tpl>><tpl> $langSysPersonalCertifyStateOne </tpl></option>
				<option value="2" <tpl> if $condition.certify_state eq '2' </tpl>selected="selected"<tpl> /if </tpl>><tpl> $langSysPersonalCertifyStateTwo </tpl></option>
				<option value="3" <tpl> if $condition.certify_state eq '3' </tpl>selected="selected"<tpl> /if </tpl>><tpl> $langSysPersonalCertifyStateThree </tpl></option>
			</select>
			
	  </td>
	  <td><span class="btn_left" style="float:right">
			<input name="submit3" value="<tpl> $langSysPersonalCertifySearch </tpl>" type="submit" class="btn_submit"/>
		  </span></td>
	</tr>
</table>
</form>
<form action="" id="form_del" name="form_del" method="post">
<table width="680" border="0" cellpadding="0" cellspacing="0" class="from_table2_one top-1">
	<thead>
		<tr class="area_ajax_list_title">
			<th class="pd-left" width="10%" align="center" valign="middle"><tpl> $langSysPersonalCertifyMemberName </tpl></th>
			<th width="250" align="center" valign="middle"><tpl> $langSysPersonalCertifyCardUp </tpl></th>
			<th width="250" align="center" valign="middle"><tpl> $langSysPersonalCertifyCardBack </tpl></th>
			<th width="10%" align="center" valign="middle"><tpl> $langSysPersonalCertifyState </tpl></th>
			<th width="10%" align="center" valign="middle"><tpl> $langSysPersonalCertifyOperate </tpl></th>
		</tr>
	</thead>
	<tpl> if $member_array[0].member_id neq '' </tpl>
		<tpl> section name=i loop=$member_array </tpl>
			<tr>
				<td class="pd-left"><tpl> $member_array[i].login_name </tpl></td>
				<td><a href="../<tpl> $member_array[i].personal_certify_identitycard_up </tpl>" title="" class="thickbox"><tpl> $langSysPersonalCertifyOnclick </tpl></a></td>
				<td><a href="../<tpl> $member_array[i].personal_certify_identitycard_back </tpl>" title="" class="thickbox"><tpl> $langSysPersonalCertifyOnclick </tpl></a></td>
				<td>
					<tpl> if $member_array[i].personal_certify eq '0' </tpl>
						<tpl> $langSysPersonalCertifyStateZero </tpl>
					<tpl> /if </tpl>
					<tpl> if $member_array[i].personal_certify eq '1' </tpl>
						<tpl> $langSysPersonalCertifyStateOne </tpl>
					<tpl> /if </tpl>
					<tpl> if $member_array[i].personal_certify eq '2' </tpl>
						<tpl> $langSysPersonalCertifyStateTwo </tpl>
					<tpl> /if </tpl>
					<tpl> if $member_array[i].personal_certify eq '3' </tpl>
						<tpl> $langSysPersonalCertifyStateThree </tpl>
					<tpl> /if </tpl>
				</td>
				<td>
				<tpl> if $member_array[i].personal_certify neq '0' </tpl>
					<a href="javascript:;" onclick="ajax_view('<tpl> $member_array[i].member_id </tpl>');"><tpl> $langSysPersonalCertifyOperate </tpl></a>
				<tpl> else </tpl>
					<tpl> $langSysPersonalCertifyStateZero </tpl>
				<tpl> /if </tpl>
				</td>
			</tr>
		<tpl> /section </tpl>

	<tpl> else  </tpl>
		<tr>
			<td colspan="6"><tpl> $langSysCNoThing </tpl></td>
		</tr>
	<tpl> /if </tpl>
</table>
<tpl> if $member_array[0].member_id neq '' </tpl>
<div class="table-5-bottom"><div style="float:right; padding-right:20px">
					<tpl> $page_list </tpl>		
				</div></div>
				<tpl> /if </tpl>
</form>
<script>
$(document).ready(function() {
	
});	
//查看并且操作
function ajax_view(id){
	//载入页面
	ShowDiv = "result_content";
	getPageContent("member_personal_certify.manage.php?action=view&id="+id+"&curpage=<tpl> $curpage </tpl>&certify_state=<tpl> $condition.certify_state </tpl>&member_name=<tpl> $condition.member_name </tpl>");
}
//搜索
function ajax_search(){
	/* 取表单参数 */var queryString=$("#form_search").formSerialize();
	$.ajax({
		url: "member_personal_certify.manage.php",
		data: queryString,
		type:'get',
		dataType:"html",
		beforeSubmit:  showLoading(showText),   // 提交之前执行的方法
		success: function(msg){
			$("#result_content").html(msg);
			hideLoading();
		}
	});
	return false;
}
</script>