<?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("singer", 1, 1, $id)."");exit();}
if(cd_mobilepc=="no"){if (!isMobile()){header("Location:".LinkUrl("singer", 1, 1, $id)."");exit();}}
$error="您访问的Url页面不存在，请检查Url是否正确或包含非法字符！";
if(!IsNumID($id)) {exit(include _cctvai_root_ . "/include/error/content_error.php");}
$singer=$db->getrow('select * from ' . tname('singer') . " where CD_ID='" . $id . "'");
$db->query('update ' . tname('singer') . " 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 $singer["CD_Name"]?>_最新<?php echo $singer["CD_Name"]?>好听的歌曲_MV_新歌_<?php echo $singer["CD_Name"]?>专辑-<?php echo cd_webname?>手机版</title> 
  <meta name="keywords" content="<?php echo $singer["CD_Name"]?>,<?php echo $singer["CD_Name"]?>资料,<?php echo $singer["CD_Name"]?>歌曲,<?php echo $singer["CD_Name"]?>专辑,<?php echo $singer["CD_Name"]?>好听的歌,<?php echo $singer["CD_Name"]?>新歌,<?php echo $singer["CD_Name"]?>MV,<?php echo cd_webname?>" /> 
  <meta name="description" content="<?php echo $singer["CD_Name"]?>好听的歌曲，<?php echo cd_webname?>收集所有<?php echo $singer["CD_Name"]?>的歌曲大全，包含最新<?php echo $singer["CD_Name"]?>专辑免费在线试听、<?php echo $singer["CD_Name"]?>的歌曲mp3下载、以及<?php echo $singer["CD_Name"]?>MV、新歌和<?php echo $singer["CD_Name"]?>专辑等信息。" /> 
  <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"> 
   <header class="x5_heads"> 
    <a href="singer/index.php?id=<?php echo GetAlias("cctvai_user", "cd_id", "cd_name", $singer['CD_User'])?>">
	<img src="<?php echo linkuserphoto(GetAlias("cctvai_user", "cd_id", "cd_name", $singer['CD_User']), 48)?>" class="head-bg-blur" /> 
    <div class="pabg"></div> 
    <img src="<?php echo linkuserphoto(GetAlias("cctvai_user", "cd_id", "cd_name", $singer['CD_User']), 48)?>" class="head-avatar" /> 
    <p class="head-name box ellipsis txt-shadow"><?php echo GetAlias("cctvai_user", "cd_nicheng", "cd_name", $singer['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", $singer['CD_User'])?>&nbsp;&nbsp;分享：<?php echo GetAlias("cctvai_user", "cd_djmub", "cd_name", $singer['CD_User'])?>个作品&nbsp;&nbsp;粉丝：<?php echo GetAlias("cctvai_user", "cd_ufans", "cd_name", $singer['CD_User'])?></p> 
    </div> </a>
   </header>  
<div class="x5_weizhi"><a href="artist.php" title="歌手">歌手</a> &gt; <a href="artist_list.php?id=<?php echo $singer["CD_ClassID"]?>"><?php echo GetAlias("cctvai_singerclass", "CD_Name", "CD_ID", $singer['CD_ClassID'])?></a> &gt; <?php echo $singer["CD_Name"]?></div>

   <div class="singer"> 
    <ul class="list_con" id="yc_list_tj"> 
     <li> 
	 <a href="artist_p.php?id=<?php echo $singer["CD_ID"]?>" class="m_head"><img alt="" src="<?php echo LinkPicUrl($singer['CD_Pic'],"singer");?>" width="80" height="80" /></a> 
	 <a href="artist_p.php?id=<?php echo $singer["CD_ID"]?>"> <h4><?php echo $singer["CD_Name"]?></h4> <p><span>生日&nbsp;:&nbsp;<?php echo $singer["CD_Birthday"]?></span><span>地区&nbsp;:&nbsp;<?php echo $singer["CD_Birth"]?></span></p> </a> </li> 
    </ul> 
    <div> 
    </div> 
   </div>
   
   <div class="dance-list" style="margin-bottom: 20px;"> 
   <div class="head"><strong><?php echo $singer["CD_Name"]?>最新单曲</strong><a href="so_list.php?ac=dj&key=<?php echo $singer["CD_Name"]?>" style="float: right;color: #289CE7;">更多...&nbsp;&nbsp;</a></div> 
    <ul class="musicList" style="margin-top: 10px;"> 
<?php 
$sql="select CD_User,CD_ID,CD_Name from ".tname('dj')." where CD_Deleted=0 and CD_Passed=0 and CD_Singer='".$singer["CD_ID"]."' order by UNIX_TIMESTAMP(CD_AddTime) desc LIMIT 0,10";
$result=mysql_query($sql);
while($dj=mysql_fetch_array($result)){
echo '<li><a href="play_p.php?id='.$dj['CD_ID'].'"> <span class="t-i"><img src="'.linkuserphoto(GetAlias("cctvai_user", "cd_id", "cd_name", $dj['CD_User']), 48).'" /></span> <span class="t-t"><strong>'.$dj['CD_Name'].'</strong><em>'.GetAlias("cctvai_user", "cd_nicheng", "cd_name", $dj['CD_User']).'</em></span><span class="t-z"></span></a> </li>';
} 
?>
    </ul> 
   </div> 

   <div class="valbum-list" style="margin-bottom: 15px;"> 
    <div class="head"  style="margin-bottom: 15px;"><strong><?php echo $singer["CD_Name"]?>最新歌单</strong><a href="so_list.php?ac=malbum&key=<?php echo $singer["CD_Name"]?>" style="float: right;color: #289CE7;">更多...&nbsp;&nbsp;</a></div> 
   </div> 
<?php 
$malbumsql = "select CD_ID,CD_Pic,CD_Name,CD_GongSi,CD_YuYan from " . tname('malbum') . " where CD_Passed=0 and CD_Singer='".$singer["CD_ID"]."' Order by UNIX_TIMESTAMP(CD_AddTime) desc limit 0,5";
$result=mysql_query($malbumsql);
while($malbum=mysql_fetch_array($result)){
echo '   <div class="singer" style="margin-top: 10px;"> 
    <ul class="list_con" id="yc_list_tj"> 
     <li> 
	 <a href="malbum_p.php?id='.$malbum['CD_ID'].'" class="m_head"><img alt="" src="'.LinkPicUrl($malbum['CD_Pic'],"malbum").'" width="60" height="60" /></a> 
	 <a href="malbum_p.php?id='.$malbum['CD_ID'].'" style="padding: 10px 0px;"> <h4 style="font-size: 14px;">'.$malbum['CD_Name'].'</h4> <p><span>语言&nbsp;:&nbsp;'.$malbum['CD_YuYan'].'</span><span>发行&nbsp;:&nbsp;'.$malbum['CD_GongSi'].'</span></p> </a> </li> 
    </ul> 
    <div> 
    </div> 
   </div>';
} 
?>

   <div class="video-list" style="margin-top: 15px;"> 
    <div class="head" style="margin-bottom: 15px;"><strong><?php echo $singer["CD_Name"]?>最新视频</strong><a href="so_list.php?ac=video&key=<?php echo $singer["CD_Name"]?>" style="float: right;color: #289CE7;">更多...&nbsp;&nbsp;</a></div> 
<?php 
$sql="select CD_Hits,CD_Pic,CD_ID,CD_Name,CD_LastHitTime from ".tname('video')." where CD_Deleted=0 and CD_Passed=0 and CD_Singer='".$singer["CD_ID"]."' order by CD_LastHitTime desc LIMIT 0,10";
$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 class="valbum-list" style="margin-bottom: 10px;margin-top: 15px;"> 
    <div class="head" style="margin-bottom: 15px;"><strong><?php echo $singer["CD_Name"]?>最新视频集</strong><a href="so_list.php?ac=valbum&key=<?php echo $singer["CD_Name"]?>" style="float: right;color: #289CE7;">更多...&nbsp;&nbsp;</a></div> 
   </div> 
<?php 
$valbumsql = "select CD_ID,CD_Pic,CD_Name,CD_GongSi,CD_YuYan from " . tname('valbum') . " where CD_Passed=0 and CD_Singer='".$singer["CD_ID"]."' Order by UNIX_TIMESTAMP(CD_AddTime) desc limit 0,5";
$result=mysql_query($valbumsql);
while($valbum=mysql_fetch_array($result)){
echo '   <div class="singer" style="margin-top: 10px;"> 
    <ul class="list_con" id="yc_list_tj"> 
     <li> 
	 <a href="valbum_p.php?id='.$valbum['CD_ID'].'" class="m_head"><img alt="" src="'.LinkPicUrl($valbum['CD_Pic'],"valbum").'" width="60" height="60" /></a> 
	 <a href="valbum_p.php?id='.$valbum['CD_ID'].'" style="padding: 10px 0px;"> <h4 style="font-size: 14px;">'.$valbum['CD_Name'].'</h4> <p><span>语言&nbsp;:&nbsp;'.$valbum['CD_YuYan'].'</span><span>发行&nbsp;:&nbsp;'.$valbum['CD_GongSi'].'</span></p> </a> </li> 
    </ul> 
    <div> 
    </div> 
   </div>';
} 
?>
   

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