<?php session_start();
  	include_once("conn/conn.php");
	include_once("config.php");
	include_once("top.php");
	$i_sqlstr="select * from tb_video_user ";
	$i_rst = $conn->execute($i_sqlstr);
	$arrays=$i_rst->GetRows();

	$total1=count($arrays);
if(empty($_GET[pages])==true || is_numeric($_GET[pages])==false){
	$page1=1;
}else{
	$page1=intval($_GET[pages]);
}
if($total1==0){

$smarty->assign("discuss_false","F");

}else{ 
	$pagesize1=12;
	if($total1<$pagesize1){
		$pagecount1=1;
	}else{
		if($total1%$pagesize1==0){
			$pagecount1=intval($total1/$pagesize1);
		}else{
			$pagecount1=intval($total1/$pagesize1)+1;
		} 
	}
$smarty->assign("total1",$total1);			//通过assign方法将数组$array中的数据写入到myrow中      
$smarty->assign("pagesize1",$pagesize1);	//通过assign方法将数组$array中的数据写入到myrow中      
$smarty->assign("page1",$page1);			//通过assign方法将数组$array中的数据写入到myrow中      
$smarty->assign("pagecount1",$pagecount1);	//通过assign方法将数组$array中的数据写入到myrow中      

}

	$d_sqlstr="select * from tb_video_user order by tb_user_id desc";
	$d_rst = $conn->SelectLimit($d_sqlstr,$pagesize1,($page1-1)*$pagesize1);
	$arrayes=$d_rst->GetRows();

	$smarty->assign("video_user",$arrayes);

	$smarty->display("play_user.tpl");
?>