<?php 
$this->display(tpl('head')); 
?>
<style>
	.layui-row{
		margin-bottom: 10px;
		margin-left: 20px;
	}
	.my-tabel tr td:first-child {
		    width: 3%;
	}
	.layui-table th{
			text-align:center ;
	}
</style>

<div class="layui-form body" >
	<table class="layui-table my-tabel" >
		<thead>
			<tr>
				<th width="50">Id</th>
				<th>积分</th>
				<th>说明</th>
				<th width="120">时间</th>
			</tr>
		</thead>
		<tbody>
<?php 
foreach($data AS $row){
?>
			<tr id="list_<?php echo $row[id] ?>">
				<td align="center"><?php echo $row[id] ?></td>
				<td align="center"><?php echo $row[integral] ?></td>
				<td><?php echo $row[content] ?></td>
				<td><?php echo date('Y-m-d H:i',$row[posttime] )?></td>
			</tr>
<?php } ?>
		</tbody>
	</table>
	
	<?php if( $Get_Page ){ ?>
	<table class="layui-table my-tabel" >
		<tr>
		<td align="center" class="page"><?php echo $Get_Page ?></td>
		</tr>
	</table>
	<?php } ?>
</div>


<script>
layui.use(['form','layer'], function(){
  	var form = layui.form
  	,layer = layui.layer;
  	
});
</script>
<?php 
$this->display(tpl('foot')); 
?>
