<?php 
	$this->display(tpl('head'));
?>
<fieldset class="layui-elem-field layui-field-title">
	<legend>认证管理</legend>
</fieldset>
<div class="layui-row">
	<a class="layui-btn" href="/admin/renzheng/index/type_main/state_1">主体已审</a>
	<a class="layui-btn layui-btn-normal" href="/admin/renzheng/index/type_main/state_-1">主体未审</a>
	<a class="layui-btn layui-btn-danger" href="/admin/renzheng/index/type_main/state_-2">主体退回</a>
	<?php hook_listen('admin_renzheng_index_tpl_sort') ?>
</div>
<?php if($_GET['type']=='main'){ ?>
	<table class="layui-table">
		<thead>
			<tr>
				<th width="100">UID</th>
				<th width="100">用户名</th>
				<th>认证主体</th>
				<th>主体名称</th>
				<th>主体代码</th>
				<th>认证状态</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
	<?php foreach($data AS $row) { ?>
			<tr>
				<td><?php echo $row['uid'] ?></td>
				<td><?php echo $row['username'] ?></td>
				<td>
					<?php echo $row['id_type']==1 ? '个人认证' : '企业认证' ?>
				</td>
				<td>
					<?php echo $row['real_name'] ?>
				</td>
				<td>
					<?php echo $row['id_number']?>
				</td>
				<td>
					<?php echo $row['id_rz_state']==1 ? '<span class="green">审核通过</span>' :($row['id_rz_state']==-1 ? '<span class="red">待审核</span>' : '<span class="blue">退回编辑</span>' )?>
				</td>
				<td width="80">
					<div class="layui-table-cell ">
						<a class="layui-btn layui-btn-sm layui-btn-warm" href="/admin/renzheng/content/type_main/uid_<?php echo $row['uid'] ?>">认证详情</a>
					</div>
				</td>
			</tr>
	<?php } ?>
		</tbody>
	</table>
<div class="page">
	<?php echo $Get_Page ?>
</div>
<?php }?>

<?php hook_listen('admin_renzheng_index_tpl_list') ?>
<?php $this->display(tpl('foot')); ?>