<?php
/*
'**************************************************************************************************
' 程序名称: CCTVAI开源音乐管理系统
' 官方网站: http://www.cctvai.com
' 联系 Q Q: 1542367792
' QQ交流群：136687984
' 版本：(终结版)
' 备注：未经书面授权，不得向任何第三方提供本软件系统！
' 功能，模板，插件，扩展，定制请联系QQ：1542367792
'**************************************************************************************************
*/
error_reporting(0); 
include "../include/cctvai.conn.php";
if(cd_mobile=="no"){header("Location:".cd_webpath.cd_webmlnews."");exit();}
if(cd_mobilepc=="no"){if (!isMobile()){header("Location:".cd_webpath.cd_webmlnews."");exit();}}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head> 
  <meta http-equiv="Content-Type" content="text/html; charset=gbk" /> 
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" /> 
  <meta name="apple-mobile-web-app-capable" content="yes" /> 
  <meta name="apple-mobile-web-app-status-bar-style" content="black" /> 
  <meta name="format-detection" content="telephone=no" /> 
  <title>娱乐-电影_电视_音乐_明星八卦_娱乐新闻-<?php echo cd_webname?>手机版</title> 
  <meta name="keywords" content="电影,电视,音乐,明星,八卦,娱乐,新闻,美图,写真" /> 
  <meta name="description" content="娱乐是最全面最专业的娱乐资讯平台，提供娱乐八卦新闻和专题报道，集明星、女星、电影、电视、音乐、视频等娱乐资讯。" /> 
  <script src="js/jquery.js"></script>
  <script src="js/swiper.min.js"></script>
  <script src="js/main.js"></script>
  <link rel="stylesheet" href="css/style.css" type="text/css" />
  <link rel="stylesheet" href="css/list.css" type="text/css" />
 </head> 
 <body> 
<?php include "nav.php";?>
  <div class="x5_wap"> 
<?php include "head.php";?>
<!--分类筛选begin-->
   <div class="x5_class"> 
    <div class="container"> 
     <div class="class1"> 
      <div class="swiper-container"> 
       <div class="swiper-wrapper">
	   <div class="swiper-slide">按分类</div>
	   <div class="swiper-slide selected"><a href="news.php">首页</a></div>
<?php
$newsclasssql="select CD_ID,CD_Name from " . tname('newsclass') . " where CD_FatherID=0 and CD_IsHide=0 order by CD_TheOrder";
$results=$db->query($newsclasssql);
if($results) {
		while($newsclass=$db->fetch_array($results)) {
						echo'<div class="swiper-slide"><a href="news_list.php?id='.$newsclass['CD_ID'].'">'.$newsclass['CD_Name'].'</a></div> ';
		}
}
?>		
       </div> 
      </div> 
	  </div>	  
	 </div> 
   </div> 
<!--分类筛选end-->
<div class="content-slide">
    <div class="head"><strong>最新娱乐播报</strong></div> 
        <ul class="news-list">
<?php 
$newssql = "select CD_ID,CD_Name,CD_AddTime from " . tname('news') . " where CD_IsIndex=0 Order by UNIX_TIMESTAMP(CD_AddTime) desc limit 0,30";
$result=mysql_query($newssql);
while($news=mysql_fetch_array($result)){
echo '<li><a href="news_p.php?id='.$news['CD_ID'].'">'.$news['CD_Name'].'</a><span>'.date('Y-m-d',strtotime($news['CD_AddTime'])).'</span></li>';
} 
?>
        </ul>
      </div>
		

  </div> 
<?php include "bottom.php";?>
 </body>
</html>