include ("session.php");
include("jadmin/lib/config.php");
include("jadmin/lib/connect.php");
include("function.php");
if($_GET['key']=="news"){
$txt_topmemu=3;
$txt_bg="inner-banner4";
$txt_nav="ข่าวสาร";
$txt_nav2="ข่าวสารและกิจกรรม";
$txt_img="sub-head-news-1";
$txt_top_leftmemu=1;
$txt_head="head-news";
}else if($_GET['key']=="publish"){
$txt_topmemu=3;
$txt_bg="inner-banner4";
$txt_nav="ประกาศ";
$txt_nav2="ข่าวสารและกิจกรรม";
$txt_img="sub-head-news-2";
$txt_top_leftmemu=2;
$txt_head="head-news";
}else if($_GET['key']=="student"){
$txt_topmemu=5;
$txt_bg="inner-banner4";
$txt_nav="ผลงานนักเรียน";
$txt_img="sub-head-student";
$txt_head="head-student";
}
$masterkey=$_GET['key'];
include("jadmin/mod_cms/config.php");
$sql_cms ="SELECT ".$mod_tb_root."_id,".$mod_tb_root."_subject ,".$mod_tb_root."_masterkey ,".$mod_tb_root."_title ,".$mod_tb_root."_credate , ".$mod_tb_root."_pic , ".$mod_tb_root."_htmlfilename FROM ".$mod_tb_root." WHERE ((".$mod_tb_root."_sdate='0000-00-00 00:00:00' AND ". $mod_tb_root."_edate='0000-00-00 00:00:00') OR (".$mod_tb_root."_sdate='0000-00-00 00:00:00' AND TO_DAYS(".$mod_tb_root."_edate)>=TO_DAYS(NOW()) ) OR (TO_DAYS(".$mod_tb_root."_sdate)<=TO_DAYS(NOW()) AND ". $mod_tb_root."_edate='0000-00-00 00:00:00' ) OR (TO_DAYS(".$mod_tb_root."_sdate)<=TO_DAYS(NOW()) AND TO_DAYS(".$mod_tb_root."_edate)>=TO_DAYS(NOW()) )) AND ".$mod_tb_root."_masterkey='".$masterkey."' AND ".$mod_tb_root."_language='Thai'";
$sql_cms.=" AND ".$mod_tb_root."_status!='Disable' AND ".$mod_tb_root."_id='".$_GET['contantid']."' ";
$query_cms=mysql_query($sql_cms);
$count_row_cms=mysql_num_rows($query_cms);
$row_cms=mysql_fetch_array($query_cms);
$txt_cms_id=$row_cms[0];
$txt_cms_subject=rechangeQuot($row_cms[1]);
$txt_cms_key=$row_cms[2];
$txt_cms_detail=rechangeQuot($row_cms[3]);
$txt_cms_deate=ShowDateLongTh($row_cms[4]);
$txt_cms_pic=$mod_path_pictures_fornt."/".$row_cms[5];
$txt_cms_html=$mod_path_html_fornt."/".$row_cms[6];
?>
โรงเรียนจินดาพงศ์ 7/105 แขวงสวนหลวง เขตสวนหลวง กรุงเทพมหานคร 0-2331-4332-3 | Jindapong School - Kindergarten - Primary Level
include("include_menu.php");?>
include("include_bg.php");?>
| |
if($txt_topmemu<>5){?>
include("include_news_leftmenu.php");?>
}else { ?>
}?>
include("include_banner.php");?>
|
 |
 |
 |
 |
| |
if($count_row_cms>=1){ ?>
|
|
| |
| |
|
if (is_file($txt_cms_html)) {
$filename = $txt_cms_html;
$fd = @fopen ($filename, "r");
$contents = @fread ($fd, filesize ($filename));
@fclose ($fd);
echo txtReplaceHTML($contents);
}
?> |
$sql="SELECT ".$mod_tb_file."_id,".$mod_tb_file."_filename,".$mod_tb_file."_name,".$mod_tb_file."_download FROM ".$mod_tb_file." WHERE ".$mod_tb_file."_contantid ='".$txt_cms_id."' ORDER BY ".$mod_tb_file."_id ASC";
$query_file=mysql_query($sql);
$number_row=mysql_num_rows($query_file);
if($number_row>=1){
while($row_file=mysql_fetch_array($query_file)){
$linkRelativePath = $mod_path_file_fornt."/".$row_file[1];
$downloadFile = $row_file[1];
$downloadID = $row_file[0];
$downloadName = $row_file[2];
if($downloadName=="attach file"){
$downloadName = "ดาวน์โหลดคลิ๊กที่นี่";
}
$countDownload= $row_file[3];
$imageType = strstr($downloadFile,'.');
?>
|
| | | | |