|
include_once("obj_banner-top.php");
?>
|
|
#insert banner
include_once("obj_banner.php");
?>
|
เว็บไซต์เพื่อการศึกษาต่อต่างประเทศ ทุนการศึกษาต่อต่างประเทศ เรียนต่างประเทศ |
|
|
|
$menu_id = 5;
$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 limit 3";
$result = mysql_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);
if($i == 3){
$_right = 0;
$i = 0;
}else $_right = 15;
?>
$i++;
}
?>
|
|
|
|
$menu_id = 4;
$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 limit 4";
$result = mysql_query($sql);
$count_row = mysql_num_rows($result);
$i = 0;
while($rs = mysql_fetch_array($result)){
$src = _PATH_UPLOAD_._TITLE_CMS_."thumb_/".$rs[_TABLE_."_Thumbnail"];
$src = "admin/".str_replace("../", "", $src);
?>
|
}
?>
|
|
|
$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 limit 4";
$result = mysql_query($sql);
$count_row = mysql_num_rows($result);
$i = 0;
while($rs = mysql_fetch_array($result)){
$src = _PATH_UPLOAD_._TITLE_CMS_."thumb_/".$rs[_TABLE_."_Thumbnail"];
$src = "admin/".str_replace("../", "", $src);
?>
|
}
?>
|
|
#insert banner
include_once("obj_banner-agent.php");
?>
|
|
|
$menu_id = 20;
$sql = " SELECT * FROM "._MODULE_TABLE_AGENT_.
" WHERE "._MODULE_TABLE_AGENT_."_Status = 'Enable' ".
" AND "._MODULE_TABLE_AGENT_."_MenuID = '$menu_id' ";
#Order By
$sql .= " ORDER BY IF("._MODULE_TABLE_AGENT_."_Order > 0 , "._MODULE_TABLE_AGENT_."_Order , "._MODULE_TABLE_AGENT_."_ID ) DESC limit 10";
$result = mysql_query($sql);
$i = 0;
$arr_agent = "";
$link_agent = "";
$swf_agent = "";
$rotation_1 = 0;
$_count_rotation_1 = mysql_num_rows($result);
while($rs = mysql_fetch_array($result)){
#$src = _PATH_UPLOAD_._TITLE_CMS_."thumb_/".$rs[_TABLE_."_Thumbnail"];
$swf_agent[] = "admin/upload/module_aget"._TITLE_CMS_."/".$rs[_MODULE_TABLE_AGENT_."_FileName"];
$src_agent[] = "admin/upload/module_aget"._TITLE_CMS_."/".$rs[_MODULE_TABLE_AGENT_."_PhysicalName"];
$link_agent[] = $rs[_MODULE_TABLE_AGENT_."_Title"];
#echo "";
#$src = "admin/".str_replace("../", "", $src);
$rotation_1++;
}
#print_r($src_agent);
?>
|
|
|
|
|
$menu_id = 3;
$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 limit 10";
$result = mysql_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);
if($i == 5){
$_right = 0;
$i = 0;
}else $_right = 10;
?>
$i++;
}
?>
|
|
|
|
include("menu/right_menu01.php");
?>
|
|
include("obj_banner-button.php");
?>
|
|
|
|
$menu_id = 1;
$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 limit 6";
$result = mysql_query($sql);
$count_row = mysql_num_rows($result);
$i = 0;
while($rs = mysql_fetch_array($result)){
$src = _PATH_UPLOAD_._TITLE_CMS_."thumb_/".$rs[_TABLE_."_Thumbnail"];
$src = "admin/".str_replace("../", "", $src);
if($i == 0){
?>
-=php_sprit_data($rs[_TABLE_."_Title"])?>.html" > |
}else{
?>
|
}
$i++;
}
?>
|
|
|
$menu_id = 7;
$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 limit 6";
$result = mysql_query($sql);
$count_row = mysql_num_rows($result);
$i = 0;
while($rs = mysql_fetch_array($result)){
$src = _PATH_UPLOAD_._TITLE_CMS_."thumb_/".$rs[_TABLE_."_Thumbnail"];
$src = "admin/".str_replace("../", "", $src);
if($i == 0){
?>
-=php_sprit_data($rs[_TABLE_."_Title"])?>.html" > |
}else{
?>
|
}
$i++;
}
?>
|
|
|
|
$menu_id = 6;
$sql = " SELECT * FROM "._MODULE_TABLE_VIDEO_.
" WHERE "._MODULE_TABLE_VIDEO_."_Status = 'Enable' ".
" AND "._MODULE_TABLE_VIDEO_."_MenuID = '$menu_id' ";
#Order By
$sql .= " ORDER BY IF("._MODULE_TABLE_VIDEO_."_Order > 0 , "._MODULE_TABLE_VIDEO_."_Order , "._MODULE_TABLE_VIDEO_."_ID ) DESC limit 1";
$result = mysql_query($sql);
$i = 0;
if($rs = mysql_fetch_array($result)){
$src = _FILE_MODULE_VIDEO_."/title_video/".$rs[_MODULE_TABLE_VIDEO_."_PhysicalImage"];
$src_vdo = _FILE_MODULE_VIDEO_."/video/".$rs[_MODULE_TABLE_VIDEO_."_PhysicalName"];
$src = "admin/".str_replace("../", "", $src);
$_Title = $rs[_MODULE_TABLE_VIDEO_."_Title"];
if($rs[_MODULE_TABLE_VIDEO_."_TypeVideo"] == "my_video" || $rs[_MODULE_TABLE_VIDEO_."_TypeVideo"] == "my_ftp" ){
#$src = "../"._FILE_MODULE_PHOTO_IMAGE_."/".$rs_photo[_MODULE_TABLE_PHOTO_."_PhysicalName"];
$Object_video_file = $src_vdo;
#echo $src_vdo;
$Object_video_width = 358;
$Object_video_height = 214;
$embed_file = " |
$sql = " SELECT * FROM "._MODULE_TABLE_VIDEO_.
" WHERE "._MODULE_TABLE_VIDEO_."_Status = 'Enable' ".
" AND "._MODULE_TABLE_VIDEO_."_MenuID = '$menu_id' ";
#Order By
$sql .= " ORDER BY IF("._MODULE_TABLE_VIDEO_."_Order > 0 , "._MODULE_TABLE_VIDEO_."_Order , "._MODULE_TABLE_VIDEO_."_ID ) DESC limit 1,7";
$result = mysql_query($sql);
$i = 0;
while($rs = mysql_fetch_array($result)){
$src = _FILE_MODULE_VIDEO_."/".$rs[_MODULE_TABLE_VIDEO_."_PhysicalImage"];
$src_vdo =_FILE_MODULE_VIDEO_."/video/".$rs[_MODULE_TABLE_VIDEO_."_PhysicalName"];
$src = "admin/".str_replace("../", "", $src);
?>
}#end while
?> |
|
=$_Title?> |
|
|
|
|
include_once("obj_banner-entertain.php");
?>
|
|
|
|
$menu_id = 19;
$sql = " SELECT * FROM "._MODULE_TABLE_AGENT_.
" WHERE "._MODULE_TABLE_AGENT_."_Status = 'Enable' ".
" AND "._MODULE_TABLE_AGENT_."_MenuID = '$menu_id' ";
#Order By
$sql .= " ORDER BY IF("._MODULE_TABLE_AGENT_."_Order > 0 , "._MODULE_TABLE_AGENT_."_Order , "._MODULE_TABLE_AGENT_."_ID ) DESC limit 10";
#echo $sql;
$result = mysql_query($sql);
$i = 0;
$src_agent = "";
$link_agent = "";
$swf_agent = "";
$rotation_2 = 0;
$_count_rotation_2 = mysql_num_rows($result);
while($rs = mysql_fetch_array($result)){
#$src = _PATH_UPLOAD_._TITLE_CMS_."thumb_/".$rs[_TABLE_."_Thumbnail"];
$swf_agent[] = "admin/upload/module_aget"._TITLE_CMS_."/".$rs[_MODULE_TABLE_AGENT_."_FileName"];
$src_agent[] = "admin/upload/module_aget"._TITLE_CMS_."/".$rs[_MODULE_TABLE_AGENT_."_PhysicalName"];
$link_agent[] = $rs[_MODULE_TABLE_AGENT_."_Title"];
}
#print_r($src_agent);
$rotation_2++;
?>
|
$menu_id = 12;
$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 limit 4";
$result = mysql_query($sql);
#$count_row = mysql_num_rows($result);
$i = 0;
while($rs = mysql_fetch_array($result)){
$src = _PATH_UPLOAD_._TITLE_CMS_."thumb_/".$rs[_TABLE_."_Thumbnail"];
$src = "admin/".str_replace("../", "", $src);
if($i == 3){
$_right = 10;
$i = 0;
}else $_right = 0;
?>
$i++;
}#end while
?> |
|
|
|
|
|
include_once("obj_banner-english.php");
?>
|
|
|
|
|
$menu_id = 9;
$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 limit 1";
$result = mysql_query($sql);
$count_row = mysql_num_rows($result);
$i = 0;
if($rs = mysql_fetch_array($result)){
$src = _PATH_UPLOAD_._TITLE_CMS_."/".$rs[_TABLE_."_PhysicalName"];
#$src = _PATH_UPLOAD_._TITLE_CMS_."thumb_/".$rs[_TABLE_."_Thumbnail"];
$src = "admin/".str_replace("../", "", $src);
?>
|
|
=php_sprit_data($rs[_TABLE_."_Title"])?>
|
|
}
?>
|
|
$menu_id = 9;
$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 limit 1,4";
$result = mysql_query($sql);
#$count_row = mysql_num_rows($result);
$i = 0;
while($rs = mysql_fetch_array($result)){
$src = _PATH_UPLOAD_._TITLE_CMS_."thumb_/".$rs[_TABLE_."_Thumbnail"];
$src = "admin/".str_replace("../", "", $src);
if($i == 2){
$_right = 10;
$i = 0;
}else $_right = 0;
?>
|
=php_split_p($rs[_TABLE_."_Subject"])?>
|
}
?>
|
|
|
|
|
|
|
|
$menu_id = 8;
$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 limit 1";
$result = mysql_query($sql);
$count_row = mysql_num_rows($result);
$i = 0;
if($rs = mysql_fetch_array($result)){
$src = _PATH_UPLOAD_._TITLE_CMS_."/".$rs[_TABLE_."_PhysicalName"];
#$src = _PATH_UPLOAD_._TITLE_CMS_."thumb_/".$rs[_TABLE_."_Thumbnail"];
$src = "admin/".str_replace("../", "", $src);
?>
}
?>
|
$menu_id = 8;
$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 limit 1,4";
$result = mysql_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);
if($i == 3){
$_right = 10;
$i = 0;
}else $_right = 0;
?>
}
?>
|
|
|
|
|
|
|
|