<?php
require "./data/index.php";
require "config.php";
$data = data(array("act" => "index"));


?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta name="referrer" content="no-referrer">
<meta name="format-detection" content="telephone=no">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=0">
<title><?php echo $CONFIG['title']."-".$CONFIG['keywords'];?></title>
<meta name="keywords" content="<?php echo $CONFIG['keywords'];?>">
<meta name="description" content="<?php echo $CONFIG['description'];?>">
<link rel="stylesheet" type="text/css" href="./templets/<?php echo $templets;?>/css/jquery.mobile.min.css">
<link rel="stylesheet" type="text/css" href="./templets/<?php echo $templets;?>/css/common.css">
</head>

<body class="body">

<div class="header">
	<a class="logo" href="./?name=<?=$_GET['name']?>" style="background-image:url(<?php if(!$logo){echo $CONFIG['logo']?:' ./images/logo.png';}else{echo $CONFIG['logo']?:' ./templets/'.$templets.'/images/logo.png';}?>"></a>
	<div class="search">
		<a id="searchDo"></a>
		<input type="text" placeholder="输入你想看的" id="search" />
	</div><div align="center"><a href="./app/v_xxphp_cn_1_0_0.apk" target="_blank">本站APP下载</a></div>
	<div class="navigate">
		<a href="./?name=<?=$_GET['name']?>" class="current">精选</a>
		<a href="./list/dianshi/?name=<?=$_GET['name']?>">电视剧</a>
		<a href="./list/dianying/?name=<?=$_GET['name']?>">电影</a>
		<a href="./list/zongyi/?name=<?=$_GET['name']?>">综艺</a>
		<a href="./list/dongman/?name=<?=$_GET['name']?>">动漫</a>
	</div>
</div>

<div class="s-slider">
	<ul id="bannerList">
		<?php foreach($data['banner'] as $v){ ?>
		<li><a href="./play/?vid=<?php echo urlencode($v['id'])?>"><i style="background-image:url(<?php echo $v['pic']?>)"></i><span><?php echo htmlspecialchars($v['title'])?></span></a></li>
		<?php } ?>
	</ul>
	<ol></ol>
	<div style="display:none"><span class="now"></span><span>/</span><span class="total"></span></div>
</div>

<div class="list">

	<h3 class="title">电视剧</h3>

	<div class="items" id="dianshiList">
		<?php foreach($data['dianshi'] as $k => $v){ ?>
		<a href="./play/?vid=<?php echo urlencode($v['id'])?>"<?php echo $k >= 6 ? ' style="display:none"' : '' ?>>
			<i style="background-image:url(<?php echo $v['pic']?>)"><b><?php echo $v['hint']?></b></i>
			<span><?php echo htmlspecialchars($v['title'])?></span>
		</a>
		<?php } ?>
		<span class="clear"></span>
	</div>

	<div class="more">
		<a href="./list/dianshi/"><img src="./templets/<?php echo $CONFIG['templets'];?>/images/more_1.png" />更多电视剧</a>
		<a class="switch-button" data-list-type="dianshi"><img src="./templets/<?php echo $CONFIG['templets'];?>/images/more_2.png" />换一批</a>
	</div>
</div>

<div class="clear" style="height:0.8rem"></div>

<div class="list">

	<h3 class="title">电影</h3>

	<div class="items" id="dianyingList">
		<?php foreach($data['dianying'] as $k => $v){ ?>
		<a href="./play/?vid=<?php echo urlencode($v['id'])?>"<?php echo $k >= 6 ? ' style="display:none"' : '' ?>>
			<i style="background-image:url(<?php echo $v['pic']?>)"><b><?php echo $v['hint']?></b></i>
			<span><?php echo htmlspecialchars($v['title'])?></span>
		</a>
		<?php } ?>
		<span class="clear"></span>
	</div>

	<div class="more">
		<a href="./list/dianying/"><img src="./templets/<?php echo $CONFIG['templets'];?>/images/more_1.png" />更多电影</a>
		<a class="switch-button" data-list-type="dianying"><img src="./templets/<?php echo $CONFIG['templets'];?>/images/more_2.png" />换一批</a>
	</div>
</div>

<div class="clear" style="height:0.8rem"></div>

<div class="list">

	<h3 class="title">综艺</h3>

	<div class="items" id="zongyiList">
		<?php foreach($data['zongyi'] as $k => $v){ ?>
		<a href="./play/?vid=<?php echo urlencode($v['id'])?>"<?php echo $k >= 6 ? ' style="display:none"' : '' ?>>
			<i style="background-image:url(<?php echo $v['pic']?>)"><b><?php echo $v['hint']?></b></i>
			<span><?php echo htmlspecialchars($v['title'])?></span>
		</a>
		<?php } ?>
		<span class="clear"></span>
	</div>

	<div class="more">
		<a href="./list/zongyi/"><img src="./templets/<?php echo $CONFIG['templets'];?>/images/more_1.png" />更多综艺</a>
		<a class="switch-button" data-list-type="zongyi"><img src="./templets/<?php echo $CONFIG['templets'];?>/images/more_2.png" />换一批</a>
	</div>
</div>

<div class="clear" style="height:0.8rem"></div>

<div class="list">

	<h3 class="title">动漫</h3>

	<div class="items" id="dongmanList">
		<?php foreach($data['dongman'] as $k => $v){ ?>
		<a href="./play/?vid=<?php echo urlencode($v['id'])?>"<?php echo $k >= 6 ? ' style="display:none"' : '' ?>>
			<i style="background-image:url(<?php echo $v['pic']?>)"><b><?php echo $v['hint']?></b></i>
			<span><?php echo htmlspecialchars($v['title'])?></span>
		</a>
		<?php } ?>
		<span class="clear"></span>
	</div>

	<div class="more">
		<a href="./list/dongman/"><img src="./templets/<?php echo $CONFIG['templets'];?>/images/more_1.png" />更多动漫</a>
		<a class="switch-button" data-list-type="dongman"><img src="./templets/<?php echo $CONFIG['templets'];?>/images/more_2.png" />换一批</a>
	</div>
</div>

<div class="clear" style="height:2rem"></div>

<div class="copyright">
    <?php echo $CONFIG['copyright'];?>
</div>

<a class="scroll-to-top" id="scrollToTop"></a>

<script src="./static/js/jquery.min.js"></script>
<script src="./static/js/common.js"></script>
<script src="./static/js/index.js"></script>

<div id="footer">
    <?php echo $CONFIG['footcode'];?>
</div>  
 

</body>
</html>