<?php 
	$this->display(tpl('head',true));
?>
<style>
	.action{
		border-top:solid 1px #EFEFEF ;
	}
	.action_p{
		position: absolute;
		margin-top: -14px;
		left: 43%;
		font-size: 1.2em;
		background-color: #fff;
	}
	.action_button{
		margin-top: 15px;
		margin-bottom: 10px;
		text-align: center;
	}
	.action_button .layui-btn{
		font-size: 1em;
		padding: 5px 10px;
		height: 35px;
		line-height: 25px;
	}
	.frind_link_list_name div{
		height: 35px;
		line-height: 35px;
		border-bottom: 1px solid #efefef;
	}
	.frind_link_list_name div:first-child{
		padding-left: 10px;
		font-size: 1.2em;
	}
	.frind_link_list_name div:last-child{
		padding-right: 10px;
	}
	.link,.category{
		line-height: 25px;
		padding-left: 10px;
	}
</style>
<div class="frind_link left w-100">
	<?php foreach($data AS $row) { php?>
	<div class="frind_link_list left w-100 mt10 bcf">
		<div class="frind_link_list_name left w-100">
			<div class="left b">
				<?php echo $row['title'] ?>
			</div>
			<div class="right">
				状态:
				<?php if($row[state]==1){ ?>
					<span class="green">已审并显示</span>
				<?php }elseif($row[state]==0){ ?>
					<span class="blue">待审核</span>
				<?php }elseif($row[state]=='-1'){ ?>
					<span class="red">黑名单</span>
				<?php }else{ ?>
					<span class="red">已拒绝</span>
				<?php } ?>
			</div>
		</div>
		<div class="link left w-100 mt10">
			网&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;址：<?php echo $row['link'] ?>
		</div>
		<div class="category left w-100">
			所属分类：<?php echo $row['name'] ?>
		</div>
		<div class="action w-100 left mt10">
			<div class="action_p b">操&nbsp;&nbsp;&nbsp;&nbsp;作</div>
			<div class="action_button">
				<a class="layui-btn layui-btn-sm layui-btn-warm" href="<?php echo PLUGIN_ACTION ?>friend/edit/id/<?php echo $row[id] ?>">编辑</a>
				<a class="layui-btn layui-btn-sm layui-btn-danger" href="<?php echo PLUGIN_ACTION ?>friend/del/id/<?php echo $row[id] ?>">删除</a>
			</div>
		</div>
	</div>
	<?php } php?>
</div>
<?php if($Get_Page) { ?>
	<div class="w-100 left bcf mt10">
		<div class="layui-form-item mt10 center page">
			<?php echo $Get_Page ?>
		</div>
	</div>
<?php } ?>
<?php 
	$this->display(tpl('foot',true));
?>
