  <header class="user-top"> 
   <img src="<?php echo linkuserphoto($cctvai_web_userid,120)?>" class="user-bg-blur"/> 
   <div class="pabg"></div> 
   <img src="<?php echo linkuserphoto($cctvai_web_userid,120)?>" class="user-avatar"/> 
   <?php if($cctvai_web_grade=="1"){echo '<img src="images/vip.png" class="user-vip">'; }?>
   <a href="../user/index.php"><span class="user-share txt-shadow">会员中心-></span></a> 
   <p class="user-name box ellipsis txt-shadow"><?php echo $cctvai_web_nicheng;?>&nbsp;<?php if(CheckLogin($cctvai_web_userid)) {echo '<span style="font-size: 12px;">在线</span>';} else {echo '<span style="font-size: 12px;">离线</span>';}?></p> 
   <div class="user-sign box ellipsis txt-shadow"> 
    <p class="ellipsis"><?php echo $cctvai_web_sex?>&nbsp;分享:<?php echo $cctvai_web_djmub;?>&nbsp;粉丝:<?php echo $cctvai_web_ufans; ?>&nbsp;关注:<?php echo $cctvai_web_ufav; ?></p> 
    <div class="ellipsis">等级:<?php echo getrankname($cctvai_web_rank,2); ?>&nbsp;被访问 <?php echo $cctvai_web_hits;?> 次 </div> 
   </div> 
   <?php
   $sql="select cd_lock from " . tname('friend') . " where cd_uid='" . $CcTvAi_com_userid . "' and cd_uids='" . $cctvai_web_userid . "'";
   if($rows=$db->getrow($sql)) {
		if($rows['cd_lock']=='1') {
			echo'<span class="user-btn-follow" onclick="friendDel('.$cctvai_web_userid.')">X 取消关注√ </span><a href="../user/index.php?ac=pm&view=add&classid='.$cctvai_web_userid.'"><span class="user-btn-follow1">发送私信</span></a>';
		} else {
			echo'<span class="user-btn-follow" onclick="friendDel('.$cctvai_web_userid.')">X 取消关注</span><a href="../user/index.php?ac=pm&view=add&classid='.$cctvai_web_userid.'"><span class="user-btn-follow1">发送私信</span></a>';
		}
   }else{
	   echo'<span class="user-btn-follow" onclick="friendAdd('.$cctvai_web_userid.')">+ 关注</span><a href="../user/index.php?ac=pm&view=add&classid='.$cctvai_web_userid.'"><span class="user-btn-follow1">发送私信</span></a>';
   }
   ?> 
   <section class="my-count clearfix pa"> 
    <span class="box my-count-a"><a href="index.php?id=<?php echo $cctvai_web_userid; ?>"><div class="my-count-txt box"><span class="my-count-span<?php if($ac=="index"){echo ' on';} ?>">主页</span> </div> </a></span> 
    <span class="box my-count-a"><a href="index.php?ac=dance&id=<?php echo $cctvai_web_userid; ?>"><div class="my-count-txt box"><span class="my-count-span<?php if($ac=="dance"){echo ' on';} ?>">音乐</span> </div> </a></span> 
    <span class="box my-count-a"><a href="index.php?ac=video&id=<?php echo $cctvai_web_userid; ?>"><div class="my-count-txt box"><span class="my-count-span<?php if($ac=="video"){echo ' on';} ?>">视频</span> </div> </a></span> 
    <span class="box my-count-a"><a href="index.php?ac=album&id=<?php echo $cctvai_web_userid; ?>"><div class="my-count-txt box"><span class="my-count-span<?php if($ac=="album"){echo ' on';} ?>">照片</span> </div> </a></span> 
	<span class="box my-count-a"><a href="index.php?ac=fans&id=<?php echo $cctvai_web_userid; ?>"><div class="my-count-txt box"><span class="my-count-span<?php if($ac=="fans"){echo ' on';} ?>">关系</span> </div> </a></span> 
   </section> 
  </header>  