<?php
/*
'**************************************************************************************************
' 程序名称: CCTVAI开源音乐管理系统
' 官方网站: http://www.cctvai.com
' 联系 Q Q: 1542367792
' QQ交流群：136687984
' 版本：(终结版)
' 备注：未经书面授权，不得向任何第三方提供本软件系统！
' 功能，模板，插件，扩展，定制请联系QQ：1542367792
'**************************************************************************************************
*/
error_reporting(0); 
include "../include/cctvai.conn.php";
$id=SafeRequest("id", "get");
if(cd_mobile=="no"){header("Location:".LinkUrl("news", 1, 1, $id)."");exit();}
if(cd_mobilepc=="no"){if (!isMobile()){header("Location:".LinkUrl("news", 1, 1, $id)."");exit();}}
$error="您访问的Url页面不存在，请检查Url是否正确或包含非法字符！";
if(!IsNumID($id)) {exit(include _cctvai_root_ . "/include/error/content_error.php");}
$news=$db->getrow('select * from ' . tname('news') . " where CD_ID='" . $id . "'");
$db->query('update ' . tname('news') . " set CD_Hits=CD_Hits+1 where CD_ID='" . $id . "'");
?>
<!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 $news["CD_Name"]?>_娱乐播报-<?php echo cd_webname?>手机版</title> 
  <meta name="keywords" content="<?php echo $news["CD_Name"]?>,<?php echo cd_webname?>手机版" /> 
  <meta name="description" content="<?php echo $news["CD_Name"]?>" /> 
  <link rel="stylesheet" href="css/style.css" type="text/css" />
  <link rel="stylesheet" href="css/news.css" type="text/css" />
 </head> 
 <body> 
<?php include "nav.php";?>
  <div class="x5_wap"> 
<?php include "head.php";?>
<div class="x5_weizhi"><a href="news.php" title="娱乐播报">娱乐播报</a> &gt; <a href="news_list.php?id=<?php echo $news["CD_ClassID"]?>"><?php echo GetAlias("cctvai_newsclass", "CD_Name", "CD_ID", $news['CD_ClassID'])?></a> &gt; 阅读</div>
   <div class="news"> 
    <h2><?php echo $news["CD_Name"]?></h2> 
    <p class="s_p"><span>阅读：<span id="viewnum"><?php echo $news["CD_Hits"]?></span></span><span>Time:<?php echo $news["CD_AddTime"]?></span></p> 
	<div class="html-text"><?php echo str_decode($news['CD_Intro']);?></div>
   </div> 
<!-- Baidu Button BEGIN -->
<div style="padding: 10px;">
<div id="share_label" style="border-bottom: none"><span>分享到 : </span></div>
  <div class="bdsharebuttonbox">
   <a href="#" class="bds_more" data-cmd="more"></a>
   <a href="#" class="bds_qzone" data-cmd="qzone" title="分享到QQ空间"></a>
   <a href="#" class="bds_tqq" data-cmd="tqq" title="分享到腾讯微博"></a>
   <a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信"></a>
   <a href="#" class="bds_sqq" data-cmd="sqq" title="分享到QQ好友"></a>
   <a class="bds_count" data-cmd="count"> </a>
  </div> 
  <script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"32"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
</div>
<!-- Baidu Button 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 and CD_ClassID='".$news["CD_ClassID"]."' Order by UNIX_TIMESTAMP(CD_AddTime) desc limit 0,5";
$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 class="head"><strong>评论</strong></div> 
	<div class="comments">留言板代码</div>
      </div>
  </div> 
<?php include "bottom.php";?>
 </body>
</html>