<?php
include_once("global.php");

$recommend  = get_recommend(); 
$data = shows_all();
    $cates = getCates();
 ?>
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title><?= $configs['site_title'] ?> <?= $configs['site_subtitle'] ?> </title>
    <meta name="description" content="<?=$configs['index_desc']?>">
<meta name="keywords" content="<?=$configs['index_Keyword']?>">

<link rel="stylesheet" href="/views/<?php echo $configs['views']; ?>/css/layui.css" media="all">
<link rel="stylesheet" href="/views/<?php echo $configs['views']; ?>/css/style1.css" media="all">
<link rel="stylesheet" href="/views/<?php echo $configs['views']; ?>/css/style.css" media="all">
</head>
<body>
<header class="layui-bg-black">
  <nav class="layui-container">
    <div class="logo"> <a href="<?=$configs['site_url']?>"><?=$configs['site_title']?></a> </div>
    <ul class="layui-nav layui-layout-left header-menu">
      <span class="introduce"> <?=$configs['site_subtitle']?>
      </span>
    <span class="layui-nav-bar" style="width: 0px; left: 0px; opacity: 0;"></span></ul>
    <ul class="layui-nav layui-layout-right">
      <li class="layui-nav-item layui-this"><a href="<?=$configs['site_url']?>">首页</a></li>
      <li class="layui-nav-item"><a href="enbody.php" >收录</a></li>
    <span class="layui-nav-bar" style="left: 20px; top: 55px; width: 0px; opacity: 0;"></span></ul>
  </nav>
</header>


  <div class="main layui-container">
<div class="ads">
<div class="links-top" id="recommend">
<ul>
<?php if($recommend):?>
<?php foreach($recommend as $k =>$v):?>
<li><a href="<?=$v['url']?>" target="_blank" rel="nofollow"><img src="<?=$v['upload_img']?>"><br><span><?=$v['website_name']?></span></a></li>
<?php endforeach;?>
<?php endif; ?>
 
</ul>	
</div>
 <div class="layui-row layui-col-space10">
       
         <?php if($cates):?>
             <?php foreach($cates as $k =>$v):?>
             <div class="layui-col-md12">
        <div class="layui-card margin-bottom-0">
          <div class="layui-card-header"> 
                                      <h2><?php echo $v['cate_name'];
             
            ?> </h2>
                                                          </div>
          <div class="index-links-content">
                          <?php if ($data[$v['cate_id']]): ?>
                              <?php foreach ($data[$v['cate_id']] as $kk => $vv): ?>
                                  <a href="<?= $vv['url'] ?>" target="_blank"><div class="lan cu"><?= $vv['website_name'] ?></div></a>
                              <?php endforeach; ?>
          <?php endif; ?>
</div>
        </div>
      </div>
      
      <?php endforeach;?> 
	<?php endif; ?>
             
             
             
       </div>
  </div>
</div>
<div class="layui-footer margin-top-10" id="footer">
  <div class="page-wb layui-clear">
    <div class="page-left layui-mt5">
<a href="#">
    <p class="layui-mt10"> Copyright©2020 - 2022     All Rights reserved. Powered by     开源程序:莲花上网导航  </p>
</a></div><a href="#">
    </a><div class="page-right"><a href="#">
      </a><ul class="footerUl"><a href="#">
        </a><li><a href="#"></a><a href="enbody.php">申请收录</a></li>
      </ul>
    </div>
  </div>
</div>
    <div style="display:none"><?php echo $configs['statistics_code']; ?></div>
</body></html>