|
|
|
#select data
require_once "admin/lib/class.page_split_font_s.php";
$obj = new page_split();
$obj->_setPageSize(18);
$obj->_setFile("education.php");
$obj->_setPage($page);
$menu_id = 11;
$sql = " SELECT * FROM "._TABLE_.
" WHERE "._TABLE_."_Status = 'Enable' ".
" AND "._TABLE_."_MenuID = '$menu_id' ";
#Order By
$sql .= " ORDER BY IF("._TABLE_."_Order > 0 , "._TABLE_."_Order , "._TABLE_."_ID ) DESC ";
#$result = mysql_query($sql);
$result=$obj->_query($sql);
$count_row = mysql_num_rows($result);
$i = 1;
while($rs = mysql_fetch_array($result)){
$src = _PATH_UPLOAD_._TITLE_CMS_."thumb_/".$rs[_TABLE_."_Thumbnail"];
$src = "admin/".str_replace("../", "", $src);
#echo $src;
(file_exists($src) && strlen($rs[_TABLE_."_Thumbnail"])>4) ? $src : $src="../images/nopicture/227x112.jpg";
if($i == 3){
$_right = 0;
$i = 0;
}else $_right = 15;
?>
$i++;
}
?>
|
|
|
$obj->_displayPage($link);?> |
|
include("menu/right_menu.php");
?> |