<?php
/*
'**************************************************************************************************
' 程序名称: CCTVAI开源音乐管理系统
' 官方网站: http://www.cctvai.com
' 联系 Q Q: 1542367792
' QQ交流群：136687984
' 版本：(终结版)
' 备注：未经书面授权，不得向任何第三方提供本软件系统！
' 功能，模板，插件，扩展，定制请联系QQ：1542367792
'**************************************************************************************************
*/
error_reporting(0); 
include "../include/cctvai.conn.php";
include "../include/cctvai.inc.php";
$id=SafeRequest("id", "get");
if(cd_mobile=="no"){header("Location:".DownLinkUrl(cd_webmlvideo,$id)."");exit();}
if(cd_mobilepc=="no"){if (!isMobile()){header("Location:".DownLinkUrl(cd_webmlvideo,$id)."");exit();}}
$error="您访问的Url页面不存在，请检查Url是否正确或包含非法字符！";
if(!IsNumID($id)) {exit(include _cctvai_root_ . "/include/error/content_error.php");}
$video=$db->getrow('select * from ' . tname('video') . " where CD_ID='" . $id . "'");
$form=strtolower(trim(substr(strrchr($video['CD_DownUrl'], "."), 1)));
$server=$db->getrow("select * from " . tname('server') . " where CD_ID=" . $video['CD_Server'] . "");
$downurl=$server['CD_DownUrl'] . $video['CD_DownUrl'];
$grade=$video['CD_Grade'];
if ($grade=="0") {$grade="免费下载";}if ($grade=="1") {$grade="普通用户";}if ($grade=="2") {$grade="VIP会员";}
?>
<!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 $video['CD_Name'];?><?php echo $form;?>下载-<?php echo cd_webname?>手机版</title> 
  <meta name="keywords" content="<?php echo $video['CD_Name'];?><?php echo $form;?>下载" /> 
  <meta name="description" content="<?php echo $video['CD_Name'];?><?php echo $form;?>下载" /> 
  <link rel="stylesheet" href="css/style.css" type="text/css" />
  <link rel="stylesheet" href="css/video.css" type="text/css" />
 </head> 
 <body> 
<?php include "nav.php";?>
  <div class="x5_wap"> 
   <div class="x5_heads"> 
    <div class="x5_head"> 
	<a href="singer/index.php?id=<?php echo GetAlias("cctvai_user", "cd_id", "cd_name", $video['CD_User'])?>">
     <div class="image">
      <img src="<?php echo linkuserphoto(GetAlias("cctvai_user", "cd_id", "cd_name", $video['CD_User']), 48)?>" width="50" height="50" />
     </div> 
     <p class="name"><span class="text"><?php echo GetAlias("cctvai_user", "cd_nicheng", "cd_name", $video['CD_User'])?>&nbsp;个人空间</span></p> 
     <p class="des"><?php echo GetAlias("cctvai_user", "cd_sex", "cd_name", $video['CD_User'])?>&nbsp;&nbsp;分享：<?php echo GetAlias("cctvai_user", "cd_djmub", "cd_name", $video['CD_User'])?>个作品&nbsp;&nbsp;粉丝：<?php echo GetAlias("cctvai_user", "cd_ufans", "cd_name", $video['CD_User'])?></p> 
	 </a>
    </div> 
   </div> 
<div class="x5_weizhi"><a href="video.php" title="MV视频">MV视频</a> &gt; <a href="video_list.php?id=<?php echo $video["CD_ClassID"]?>"><?php echo GetAlias("cctvai_videoclass", "CD_Name", "CD_ID", $video['CD_ClassID'])?></a> &gt; 视频下载</div>
<div class="video">
    <div class="title"><h1><?php echo $video["CD_Name"]?></h1></div> 
    <div class="cDGray"> 
       <ul> 
        <li>文件格式：<span><?php echo $form?></span></li> 
        <li>文件大小：<span><?php echo $video['CD_Siz']?></span></li>  
        <li>播放时长：<span><?php echo $video['CD_Playtime']?></span></li> 
        <li>所属歌手：<span><a href="artist_p.php?id=<?php echo $video['CD_Singer']?>" target="_blank"><?php echo GetAlias('cctvai_singer', 'CD_Name', 'CD_ID', $video['CD_Singer'])?></a></span></li>
        <li>文件码率：<span><?php echo $video['CD_Bitkbps']?></span></li> 
		<li>所属分类：<span><a href="video_list.php?id=<?php echo $video['CD_ClassID']?>" target="_blank"><?php echo GetAlias("cctvai_videoclass", "CD_Name", "CD_ID", $video['CD_ClassID'])?></a></span></li> 
        <li>下载权限：<span><?php echo $grade?></span></li> 
        <li>下载人气：<span><?php echo $video['CD_DownHits']?></span></li> 
        <li>下载扣费：<span><?php echo $video['CD_Points']?></span>金币</li> 
        <li>更新时间：<span><?php echo date('Y-m-d',strtotime($video["CD_AddTime"]))?></span></li> 
       </ul>
    </div> 
	<?php if($CcTvAi_com_userid){echo'<div>您的账户剩余<font color="red">'.$CcTvAi_com_points.'</font>个金币</div>';}?>
	<div class="down">
	<a href="cctvai.down.php?action=video&id=<?php echo $video['CD_ID']?>" onclick="return confirm(' 下载需扣除 <?php echo $video['CD_Points']?> 金币，确定下载吗？');" class="d"><span>下载<?php echo $form?>文件</span></a>
	<a href="video_p.php?id=<?php echo $video['CD_ID']?>" target="_blank" class="t"><span>播放视频</span></a>
	</div> 
	<div class="word">广告代码</div>
</div> 

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