<!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=gb2312" /> 
  <meta name="renderer" content="webkit" /> 
  <title><?php echo $cctvai_web_nicheng?><?php echo $title?> -<?php echo cd_webname?></title> 
  <script type="text/javascript">
var domIsReady=false,domReadyList=[],domReadyObject=[],$call=function(callback,obj){if(typeof obj!=='object'){obj=document}if(domIsReady){callback.call(obj)}else{domReadyList.push(callback);domReadyObject.push(obj)}};	
var site_domain="<?php echo cd_webpath?>";zone_domain="<?php echo cd_webpath?>user/";zone_singer="<?php echo cd_webmlsinger?>";
</script> 
  <link type="text/css" href="<?php echo cd_webpath?>user/static/css/core.css" rel="stylesheet" /> 
  <link type="text/css" href="<?php echo cd_webpath?>user/static/space/css/common.css" rel="stylesheet" /> 
  <link type="text/css" href="<?php echo cd_webpath?>user/static/space/css/space.css" rel="stylesheet" /> 
  <link type="text/css" id="skin" href="<?php echo cd_webpath?>user/static/space/skin/t<?php echo $cctvai_web_skinid?>/style.css" rel="stylesheet" /> 
 </head> 
 <body> 
  <div class="top" id="top"> 
   <div class="topNav"> 
    <ul> 
     <li class="logo"> <a target="list" href="<?php echo cd_webpath?>user/"></a> </li> 
     <li> <a target="list" href="<?php echo cd_webpath?>">首页</a> </li> 
     <li> <a class="set_menu" style="cursor:pointer;">音乐库</a> 
      <div class="m_set_list" style="display: none;" id="uploadList"> 
       <em></em> 
<?php
$sqlclass="select * from " . tname('class') . " where CD_FatherID=0 and CD_IsHide=0";
$results=$db->query($sqlclass);
if($results) {
	while($row3=$db->fetch_array($results)) {
		$a=$a+1;
		echo '<a href="' . LinkClassUrl("dj", $row3['CD_ID'], 1, 1) . '" target="_blank" class="list"><b class="like"></b>' . $row3['CD_Name'] . '</a>';
	}
}
?>
      </div> </li> 
     <li> <a class="set_menu" style="cursor:pointer;">视频库</a> 
      <div class="m_set_list" style="display: none;" id="uploadList"> 
       <em></em> 
<?php
$sqlclass="select * from " . tname('videoclass') . " where CD_FatherID=0 and CD_IsHide=0";
$results=$db->query($sqlclass);
if($results) {
	while($row3=$db->fetch_array($results)) {
		$a=$a+1;
		echo '<a href="' . LinkClassUrl("video", $row3['CD_ID'], 1, 1) . '" target="_blank" class="list"><b class="like"></b>' . $row3['CD_Name'] . '</a>';
	}
}
?>
      </div> </li> 
     <li> <a class="set_menu" style="cursor:pointer;">歌手大全</a> 
      <div class="m_set_list" style="display: none;" id="uploadList"> 
       <em></em> 
<?php
$sqlclass="select * from " . tname('singerclass') . " where CD_FatherID=0 and CD_IsHide=0";
$results=$db->query($sqlclass);
if($results) {
	while($row3=$db->fetch_array($results)) {
		$a=$a+1;
		echo '<a href="' . LinkClassUrl("singerclass", $row3['CD_ID'], 1, 1) . '" target="_blank" class="list"><b class="like"></b>' . $row3['CD_Name'] . '</a>';
	}
}
?>
      </div> </li> 
     <li> <a class="set_menu" style="cursor:pointer;">会员广场</a> 
      <div class="m_set_list menu" style="display: none;" id="uploadList"> 
       <em></em> 
       <a href="<?php echo cd_webpath?>user/<?php echo rewrite_url('top.php?do=album');?>" target="_blank" class="list"><b class="like"></b>乐迷相册</a>
       <a href="<?php echo cd_webpath?>user/<?php echo rewrite_url('top.php?do=privilege');?>" target="_blank" class="list"><b class="like"></b>认证美女</a>
       <a href="<?php echo cd_webpath?>user/<?php echo rewrite_url('top.php?do=list&view=points');?>" target="_blank" class="list"><b class="like"></b>富豪排行</a>
       <a href="<?php echo cd_webpath?>user/<?php echo rewrite_url('top.php?do=list&view=hits');?>" target="_blank" class="list"><b class="like"></b>人气排行</a>
       <a href="<?php echo cd_webpath?>user/<?php echo rewrite_url('top.php?do=list&view=dj');?>" target="_blank" class="list"><b class="like"></b>DJ排行</a>
       <a href="<?php echo cd_webpath?>user/<?php echo rewrite_url('top.php?do=list&view=fans');?>" target="_blank" class="list"><b class="like"></b>粉丝排行</a>
       <a href="<?php echo cd_webpath?>user/<?php echo rewrite_url('top.php?do=list&view=foll');?>" target="_blank" class="list"><b class="like"></b>关注排行</a> 
       <a href="<?php echo cd_webpath?>user/<?php echo rewrite_url('top.php?do=list&view=level');?>" target="_blank" class="list"><b class="like"></b>等级排行</a> 
       <a href="<?php echo cd_webpath?>user/<?php echo rewrite_url('top.php?do=user');?>" target="_blank" class="list"><b class="like"></b>活跃会员</a> 
      </div> </li> 
    </ul><?php if($userlogined==true) {?>	 
    <div class="user"> 
     <div class="face"> 
      <img class="avatar" width="20" height="20" src="<?php echo linkuserphoto($CcTvAi_com_userid,48)?>" />  
     </div> 
     <div class="info"> 
      <a class="nickname" href="<?php echo linkweburl($CcTvAi_com_userid,$CcTvAi_com_username)?>" target="_blank" title="个人主页"><?php echo $CcTvAi_com_nicheng;?></a> 
      <a href="<?php echo cd_webpath?>user/<?php echo rewrite_url('space.php?do=home');?>" target="_blank">个人中心</a>
      <span id="feedTips" class="feedTips" style="display:none;" title="您的好友有新的动态!"></span> 
      <a href="<?php echo cd_webpath?>user/<?php echo rewrite_url('space.php?do=message');?>" target="_blank">通知</a>
      <span id="msgTips" class="msgTips" style="display:none;" title="您有新的消息!"></span> 
      <div class="set_list"> 
       <a class="set_menu icon share" id="userInfo" href="javascript:;" title="我的分享">分享</a> 
       <div class="m_set_list" style="display: none;" id="uploadList"> 
        <em></em> 
        <a class="list" target="_blank" href="<?php echo cd_webpath?>user/<?php echo rewrite_url('space.php?do=upmusic');?>"> <b class="share"></b>分享音乐 </a> 
		<a class="list" target="_blank" href="<?php echo cd_webpath?>user/<?php echo rewrite_url('space.php?do=upvideo');?>"> <b class="share"></b>分享视频 </a> 
       </div> 
      </div> 
      <div class="set_list"> 
       <a class="set_menu icon song" id="userInfo" href="javascript:;" title="我的歌单">歌单</a> 
       <div class="m_set_list" style="display: none;" id="uploadList"> 
        <em></em> 
        <a class="list" target="_blank" href="<?php echo cd_webpath?>user/<?php echo rewrite_url('space.php?do=music');?>"> <b class="like"></b>收藏的音乐</a> 
        <a class="list" target="_blank" href="<?php echo cd_webpath?>user/<?php echo rewrite_url('space.php?do=music&view=down');?>"> <b class="download"></b>下载的音乐</a> 
        <a class="list" target="_blank" href="<?php echo cd_webpath?>user/<?php echo rewrite_url('space.php?do=video');?>"> <b class="like"></b>收藏的视频</a> 
        <a class="list" target="_blank" href="<?php echo cd_webpath?>user/<?php echo rewrite_url('space.php?do=video&view=down');?>"> <b class="download"></b>下载的视频</a> 
       </div> 
      </div> 
      <div class="set_list"> 
       <a class="set_menu icon set" href="javascript:;" title="个人设置">设置</a> 
       <div class="m_set_list" style="display: none;"> 
        <em></em> 
        <a class="list" target="_blank" href="<?php echo cd_webpath?>user/<?php echo rewrite_url('space.php?do=profile');?>"> <b class="setup"></b>个人设置 </a> 
        <a class="list" target="_blank" href="<?php echo cd_webpath?><?php echo cd_webmlsinger?>/index.php?ac=skin&id=<?php echo $CcTvAi_com_userid?>"> <b class="skin"></b>空间换肤 </a> 
        <a class="list" target="_blank" href="<?php echo cd_webpath?>user/space.php?do=profile&i=avatar"> <b class="avatar"></b>修改头像 </a> 
        <a class="list" href="<?php echo cd_webpath?>user/do.php?p=user&a=ajax&ac=logout"> <b class="exit"></b>退出登录 </a> 
       </div> 
      </div> 
     </div> 
    </div><?php }else{?>
    <div class="user"> 
     <div class="face"> 
      <img class="avatar" width="20" height="20" src="<?php echo linkuserphoto(0,48)?>" /> 
     </div> 
     <div class="info"> 
      <em>欢迎您登录！</em> 
      <a href="<?php echo cd_webpath?>user/" target="_blank">会员空间</a> 
      <a href="javascript:;" onclick="libs.login();">登 录</a> 
      <a href="<?php echo cd_webpath?>user/reg.php">注 册</a> 
      </div> 
    </div> 
<?php }?>	
   </div> 
  </div>  
<?php
if($ac=='album') {
	echo '<div id="albumnm" class="nav">';
} elseif($ac=='dance') {
	echo '<div id="dancem" class="nav">';
} elseif($ac=='video') {
	echo '<div id="lastlistenm" class="nav">';
} elseif($ac=='friend') {
	echo '<div id="fansm" class="nav">';
} elseif($ac=='wall') {
	echo '<div id="wallm" class="nav">';
} elseif($ac=='fav') {
	echo '<div id="favoritesm" class="nav">';
} elseif($ac=='vfav') {
	echo '<div id="favoritesm" class="nav">';
} elseif($ac=='feed') {
	echo '<div id="feedm" class="nav">';
} elseif($ac=='miniblog') {
	echo '<div id="feedm" class="nav">';
} elseif($a=='skin') {
	echo '<div id="skinm" class="nav">';
} else {
	echo '<div id="' . $ac . 'm" class="nav">';
}
?>
   <ul> 
    <li class="mindex"><span><a href="<?php echo linkweburl($cctvai_web_userid,$cctvai_web_username); ?>">主页</a></span></li>
    <li class="mfeed"><span><a href="<?php echo rewrite_url('index.php?ac=feed&id='.$cctvai_web_userid.'');?>">动态</a></span></li>
    <li class="mfavorites"><span><a href="<?php echo rewrite_url('index.php?ac=fav&id='.$cctvai_web_userid.'');?>">收藏</a></span></li>
    <li class="mdance"><span><a href="<?php echo rewrite_url('index.php?ac=dance&id='.$cctvai_web_userid.'');?>">音乐</a></span></li>
    <li class="mlastlisten"><span><a href="<?php echo rewrite_url('index.php?ac=video&id='.$cctvai_web_userid.'');?>">视频</a></span></li>
    <li class="malbum"><span><a href="<?php echo rewrite_url('index.php?ac=album&id='.$cctvai_web_userid.'');?>">照片</a></span></li>
    <li class="mfans"><span><a href="<?php echo rewrite_url('index.php?ac=friend&id='.$cctvai_web_userid.'');?>">关系</a></span></li>
    <li class="mwall"><span><a href="<?php echo rewrite_url('index.php?ac=wall&id='.$cctvai_web_userid.'');?>">留言</a></span></li>
    <?php if($ac == 'skin'){ ?><li class="mskin"><span><a href="<?php echo rewrite_url('index.php?ac=skin&id='.cctvaic_web_userid.'');?>">换肤</a></span></li><?php } ?>
   </ul> 
  </div>
  