<?php
include ('./inc/aik.config.php');
?>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta http-equiv="cache-control" content="no-siteapp">
<title>综艺列表-<?php echo $aik['title'];?></title>
<link rel='stylesheet' id='main-css'  href='css/style.css' type='text/css' media='all' />
<link rel='stylesheet' id='main-css'  href='css/movie.css' type='text/css' media='all' />
<script type='text/javascript' src='http://apps.bdimg.com/libs/jquery/2.0.0/jquery.min.js?ver=0.5'></script>
<meta name="keywords" content="综艺排行">
<meta name="description" content="<?php echo $aik['title'];?>-综艺排行">
<!--[if lt IE 9]><script src="js/html5.js"></script><![endif]-->
</head>
<body class="page-template page-template-pages page-template-posts-tvshow page-template-pagesposts-tvshow-php page page-id-10">
<?php  include 'header.php';?>
<section class="container">
  <div class="fenlei">
    <div class="b-listfilter" style="padding: 0px;">
      <style>
#noall{
	background-color: #aik651;
    color: #fff;
}
</style>
      <dl class="b-listfilter-item js-listfilter" style="padding-left: 0px;height:auto;padding-right:0px;">
        <dd class="item g-clear js-listfilter-content" style="margin: 0;"> <a href='zongyi.php' target='_self' title='全部'>全部</a>
          <?php
include 'list.php';


foreach ($zycat as $kcat=>$vcat){
    $flzyname= $zyname[$kcat];
    $flid="?cat=".$vcat.'&page=1';
    echo "<a href='$flid' target='_self' title='$flzyname'>$flzyname</a>";
    
} 

$fenge=$_GET['m'];
//echo $fenge;
?>
        </dd>
      </dl>
    </div>
  </div>
  <div class="m-g">
    <div class="b-listtab-main">
      <div class="s-tab-main">
        <ul class="list g-clear">
          <?php
$page=$_GET['page'];
	if(isset($_GET['page'])){
		$page=$_GET['page'];
	}else{
		$page="1";
	}
	if(isset($_GET['cat'])){
		$vcat=$_GET['cat'];
	}else{
		$vcat="all";
	}	
$flid1=file_get_contents('http://www.360kan.com/zongyi/listajax?rank=rankhot&cat='.$vcat.'&year=all&area=all&act=all&pageno='.$page);
$rurl=json_decode($flid1,ture);

foreach ($rurl['data']['list'] as $value){
	$yuming="http://www.360kan.com";
	$do=$yuming.$value['coverpage'];
    $do1=base64_encode($do);
    $cc="./play.php?play=";
    $ccb=$cc.$do1;
	$xvau=$value['title'];
	$ximg=$value['cover'];
	$xstar=$value['desc'];
	$lname=$value['point'];
    echo "<li class='item'>

    <a class='js-tongjic' href='$ccb' title='$xvau' target='_blank'>

<div class='cover g-playicon'>

<img  src='$ximg' alt='$xvau'/>

</div>

<div class='detail'>

<p class='title g-clear'>

 <span class='s1'>$xvau</span>

 <span class='s2'>$lname</span></p>

<p class='star'>$xstar</p>

 </div>

</a>

</li>";

}

?>
        </ul>
      </div>
    </div>
  </div>
     <div class="paging"> <a href="<?php if($page >="2"){$page=$page-1;}echo "?cat=$vcat&page=$page";?>" target="_self">上一页</a> <a href="<?php if($_GET['page'] >"1"){$page+=2;}elseif(!isset($_GET['page']) ||$_GET['page']=="1"){$page+=1;}echo "?cat=$vcat&page=$page";?>" target="_self">下一页</a> <a href="javascript:void(0);">当前第<?php echo $page-1;?>页</a> </div>
      </div>
  </div>
  <div class="asst asst-list-footer"><?php echo $adaik['movie_ad'];?></div>
</section>
<?php  include 'footer.php';?>
</body>
</html>
