<?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_webmlartist."");exit();}
if(cd_mobilepc=="no"){if (!isMobile()){header("Location:".cd_webpath.cd_webmlartist."");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="歌手,全部歌手,歌手列表,歌手资料,歌手排行榜,<?php echo cd_webname?>手机版" /> 
  <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="artist.php">首页</a></div>
<?php
$artistclasssql="select CD_ID,CD_Name from " . tname('singerclass') . " where CD_FatherID=0 and CD_IsHide=0 order by CD_TheOrder";
$results=$db->query($artistclasssql);
if($results) {
		while($artistclass=$db->fetch_array($results)) {
						echo'<div class="swiper-slide"><a href="artist_list.php?id='.$artistclass['CD_ID'].'">'.$artistclass['CD_Name'].'</a></div> ';
		}
}
?>		
       </div> 
      </div> 
	  </div>	  
	 </div> 
   </div> 
<!--分类筛选end-->
   <div class="artist-list"> 
   <div class="head"><strong>推荐歌手</strong></div> 
   <div class="list">
    <ul class="musicList">
<?php
$singersql = "select CD_Pic,CD_ID,CD_Name,CD_Birth from " . tname('singer') . " where CD_IsBest=0 and CD_Passed=0  Order by UNIX_TIMESTAMP(CD_AddTime) desc limit 0,10";
$results  = $db->query($singersql);
if ($results) {
while ($singer = $db->fetch_array($results)) {
echo '<li><a href="artist_p.php?id='.$singer['CD_ID'].'"> <span class="t-i"><img src="'.LinkPicUrl($singer['CD_Pic'],"singer").'" /></span> <span class="t-t"><strong>'.$singer['CD_Name'].'</strong><em>'.$singer['CD_Birth'].'</em></span><span class="t-z"></span></a> </li>';
}
}
?>	
    </ul> 
   </div>
   <div class="head"><strong>热门歌手</strong></div> 
   <div class="list">
    <ul class="musicList">
<?php
$singersql = "select CD_Pic,CD_ID,CD_Name,CD_Birth from " . tname('singer') . " where CD_IsBest=1 and CD_Passed=0  Order by CD_Hits desc limit 0,10";
$results  = $db->query($singersql);
if ($results) {
while ($singer = $db->fetch_array($results)) {
echo '<li><a href="artist_p.php?id='.$singer['CD_ID'].'"> <span class="t-i"><img src="'.LinkPicUrl($singer['CD_Pic'],"singer").'" /></span> <span class="t-t"><strong>'.$singer['CD_Name'].'</strong><em>'.$singer['CD_Birth'].'</em></span><span class="t-z"></span></a> </li>';
}
}
?>	
    </ul> 
   </div>
   </div> 

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