<?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."");exit();}
if(cd_mobilepc=="no"){if (!isMobile()){header("Location:".cd_webpath."");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="<?php echo cd_webname?>手机版" /> 
  <link rel="stylesheet" href="css/style.css" type="text/css" />
  <link rel="stylesheet" href="css/index.css" type="text/css" />
 </head> 
 <body> 
<?php include "nav.php";?>
  <div class="x5_wap"> 
<?php include "head.php";?>
   <div class="dance-list"> 
    <div class="head"><strong>热门推荐音乐</strong></div>  
    <ul class="musicList"> 
<?php 
$sql="select CD_User,CD_ID,CD_Name from ".tname('dj')." where CD_Deleted=0 and CD_Passed=0 order by CD_LastHitTime desc LIMIT 0,20";
$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="video-list"> 
   <div class="head"><strong>热播MV视频</strong></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 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> 
<?php include "bottom.php";?>
 </body>
</html>