<?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("valbum", 1, 1, $id)."");exit();}
if(cd_mobilepc=="no"){if (!isMobile()){header("Location:".LinkUrl("valbum", 1, 1, $id)."");exit();}}
$error="您访问的Url页面不存在，请检查Url是否正确或包含非法字符！";
if(!IsNumID($id)) {exit(include _cctvai_root_ . "/include/error/content_error.php");}
$valbum=$db->getrow('select * from ' . tname('valbum') . " where CD_ID='" . $id . "'");
$db->query('update ' . tname('valbum') . " 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 $valbum["CD_Name"]?>视频集-<?php echo cd_webname?>手机版</title> 
  <meta name="keywords" content="<?php echo $valbum["CD_Name"]?>,<?php echo cd_webname?>手机版" /> 
  <meta name="description" content="<?php echo $valbum["CD_Name"]?>" /> 
  <link rel="stylesheet" href="css/style.css" type="text/css" />
  <link rel="stylesheet" href="css/valbum.css" type="text/css" />
 </head> 
 <body> 
<?php include "nav.php";?>
  <div class="x5_wap"> 
   <header class="x5_heads"> 
    <a href="singer/index.php?id=<?php echo GetAlias("cctvai_user", "cd_id", "cd_name", $valbum['CD_User'])?>">
	<img src="<?php echo linkuserphoto(GetAlias("cctvai_user", "cd_id", "cd_name", $valbum['CD_User']), 48)?>" class="head-bg-blur" /> 
    <div class="pabg"></div> 
    <img src="<?php echo linkuserphoto(GetAlias("cctvai_user", "cd_id", "cd_name", $valbum['CD_User']), 48)?>" class="head-avatar" /> 
    <p class="head-name box ellipsis txt-shadow"><?php echo GetAlias("cctvai_user", "cd_nicheng", "cd_name", $valbum['CD_User'])?>&nbsp;个人空间&nbsp;<span style="font-size: 12px;"></span></p> 
    <div class="head-sign box ellipsis txt-shadow"> 
     <p class="ellipsis"><?php echo GetAlias("cctvai_user", "cd_sex", "cd_name", $valbum['CD_User'])?>&nbsp;&nbsp;分享：<?php echo GetAlias("cctvai_user", "cd_djmub", "cd_name", $valbum['CD_User'])?>个作品&nbsp;&nbsp;粉丝：<?php echo GetAlias("cctvai_user", "cd_ufans", "cd_name", $valbum['CD_User'])?></p> 
    </div> </a>
   </header> 
<div class="x5_weizhi"><a href="valbum.php" title="视频专辑">视频专辑</a> &gt; 专辑播放</div>
   <div class="valbum"> 
    <div class="pic"><img src="<?php echo LinkPicUrl($valbum['CD_Pic'],"valbum");?>"/></div> 
    <div class="title"><h1><?php echo $valbum["CD_Name"]?></h1></div> 
    <div class="cDGray"> 
     <ul> 
      <li>所属歌手：<span><a href="artist_p.php?id=<?php echo $valbum['CD_Singer']?>" target="_blank"><?php echo GetAlias('cctvai_singer', 'CD_Name', 'CD_ID', $valbum['CD_Singer'])?></a></span></li> 
      <li>所属分类：<span><a href="valbum_list.php?id=<?php echo $valbum['CD_ClassID']?>" target="_blank"><?php echo GetAlias("cctvai_valbumclass", "CD_Name", "CD_ID", $valbum['CD_ClassID'])?></a></span></li> 
      <li>发行公司：<span><?php echo $valbum['CD_GongSi']?></span></li> 
      <li>唱片语言：<span><?php echo $valbum['CD_YuYan']?></span></li> 
      <li>发行时间：<span><?php echo date('Y-m-d',strtotime($valbum['CD_AddTime']))?></span></li> 
	  <li>人气指数：<span><?php echo $valbum['CD_Hits']?></span></li> 
     </ul> 
    </div> 
    <div class="lrc">专辑介绍：<?php echo str_checkhtml($valbum['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="video-list"> 
    <div class="head"><strong>专辑列表</strong></div> 
<?php 
if($valbum["CD_Song"]){
	$dsql="and CD_ID in(".$valbum["CD_Song"].") ";
}else{
	$dsql="and CD_ID in(0) ";
}
$sql="select CD_Hits,CD_Pic,CD_ID,CD_Name,CD_LastHitTime from ".tname('video')." where 1=1 $dsql or CD_SpecialID='" . $valbum["CD_ID"] . "' and CD_Passed=0 and CD_Deleted=0 and CD_ClassID<>0  Order by UNIX_TIMESTAMP(CD_AddTime) desc";
$result=mysql_query($sql);
while($video=mysql_fetch_array($result)){
echo '    <div class="videoMv" onclick="window.open(\'video_p.php?id='.$video['CD_ID'].'\',\'_self\')">
     <p class="videoMvImg"><img src="'.LinkPicUrl($video['CD_Pic'],"video").'" width="100%" height="75" /></p>
     <p class="videoRiTex"><span class="videoRiName">'.$video['CD_Name'].'</span><span class="videoRiHits">人气：'.$video['CD_Hits'].'</span><span class="videoRiHits">推荐时间：'.datetime($video['CD_LastHitTime']).'</span></p>
    </div> ';
} 
?>	
   </div> 

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