"; }else{ $menubar= "../cp/$info[templatedir]"."/"."$info[menubar]"; $header="../cp/$info[templatedir]/$info[headerfile]"; $footer=""; } $pp=$menubar; $sqll="select * from vdo order by vdo_id desc limit 0,1"; $info2= @mysql_fetch_array(@mysql_db_query($database,$sqll)); ?>
"; }else{ echo ""; } ?>
"> 
"; } echo "
 
"> >> ภาพกิจกรรม
"; $Per_Page =$info[galleryshow]; if($_GET[Page] ==""){ $Page=1; }else{ $Page=$_GET[Page]; } $Prev_Page = $Page-1; $Next_Page = $Page+1; $Page_start = ($Per_Page*$Page)-$Per_Page; $sql8="select * from picactivitycat"; $result=@mysql_db_query($database,$sql8); $Num_Rows = @mysql_num_rows($result); if($Num_Rows<=$Per_Page) $Num_Pages =1; else if(($Num_Rows % $Per_Page)==0) $Num_Pages =($Num_Rows/$Per_Page) ; else $Num_Pages =($Num_Rows/$Per_Page) +1; $Num_Pages = (int)$Num_Pages; $sql3="select * from picactivitycat order by cat_id desc LIMIT $Page_start , $Per_Page"; $result3 = @mysql_db_query($database,$sql3); while($info3=@mysql_fetch_array($result3)){ $sqlcom="select * from picactivity where Category=$info3[cat_id] limit 0,1"; $pic=mysql_fetch_array(mysql_db_query($database,$sqlcom)); echo "
$info3[description]
"; ?>

< "; for($i=1; $i<=$Num_Pages; $i++){ if($i != $Page) echo " $i | "; else echo " $i "; } /*สร้างปุ่มเดินหน้า */ if($Page < $Num_Pages) echo " > "; ?>

จำนวนผู้เยี่ยมชม :