<?php error_reporting(0);?>
<!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 $cctvai_web_nicheng?><?php echo $title?> -<?php echo cd_webname?></title>
  <script type="text/javascript" src="js/function.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 'cctvai_header.php';?>
  <div class="video-list"> 
  <div class="head"><strong>视频</strong></div> 
<?php
$videosql="select CD_Hits,CD_Pic,CD_ID,CD_Name,CD_LastHitTime from ".tname('video')." where CD_Deleted=0 and CD_Passed=0 and CD_User='".$cctvai_web_username."' order by UNIX_TIMESTAMP(CD_AddTime) desc";
$Arr=getuserpage($videosql, 20); //sql,每页显示条数
$result=$db->query($Arr[2]);
$num=$db->num_rows($result);
if($num==0) {
		echo '<center>No.video</center>';
} else {
	if($result) {
		while($video=$db->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 class="page"><?php echo $Arr[0];?></div>
  </div>  
<?php include 'cctvai_bottom.php';?>
 </body>
</html>
