<?php 
	$this->display(tpl('head',true));
?>
<style>
	.layui-table thead tr th{
		text-align: center;
	}
</style>
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
  	<legend>广告位购买记录</legend>
</fieldset>
<table class="layui-table" cellspacing="0" cellpadding="0" border="0"  lay-filter="demoEvent">
	<thead>
		<tr>
			<th width="40">Id</th>
			<th>广告位名称</th>
			<th width="100">类型</th>
			<th width="150">到期时间</th>
			<th width="150">购买时间</th>
			<th width="65">操作</th>
		</tr>
	</thead>
	<tbody>
		<?php foreach($getlist AS $row) { ?>
		<tr>
			<td align="center"><?php echo $row['id'] ?></td>
			<td><?php echo $row['info']['name'] ?></td>
			<td align="center">{{$row['ad_type']}}</td>
			
			<td align="center">
				{{date('Y-m-d H:i:s',$row['endtime'])}}
			</td>
			<td align="center">
				{{date('Y-m-d H:i:s',$row['posttime'])}}
			</td>
			<td align="center">
				<a class="layui-btn layui-btn-sm layui-btn-warm" href="{{user_plugin_url}}index/edit/id/<?php echo $row[id] ?>">设置广告</a>
			</td>
		</tr>
		<?php } ?>
	</tbody>
</table>
<div class="page">
	<?php echo $Get_Page ?>
</div>
<?php 
	$this->display(tpl('foot',true));
?>
