"; if($fktype=="WR001"){ $fktypeDesc = "ศูนย์ปฏิบัติการกรมประมง"; $fktype_bar = "DOC Center"; $gopageMain = "doclist.php"; } //echo"fktype=$fktype
"; @$data = $_REQUEST['data']; //@$module = $_REQUEST['module']; //@$fktype = $_REQUEST['fktype']; @$cgid = $_REQUEST['cgid']; @$fkyear = $_REQUEST['fkyear']; @$pagesizeEvent = $_REQUEST['pagesize']; @$NumColumn = $_REQUEST['NumColumn']; if(empty($cgid)){ $cgid = "4"; } /* if(empty($cgid)){ $cgid="30"; } */ /* echo"module=$module
"; echo"fktype=$fktype
"; echo"cgid=$cgid
"; echo"fkyear=$fkyear
"; */ if(!empty($module)){ $sql_Module = "select module_name from $tbmodule_tab where module_id = '$module' "; $rs_Module = select_MySQL_return_RS($sql_Module); $arr_Module= mysql_fetch_array($rs_Module); $ModuleName = $arr_Module["module_name"]; }else{ $ModuleName = ""; } if(!empty($fktype)){ $sql_Tab = "select * from $tbmodule_type_tab where tab_id = '$fktype' "; $rs_Tab = select_MySQL_return_RS($sql_Tab); $arr_Tab= mysql_fetch_array($rs_Tab); $TabName = $arr_Tab["tab_name"]; $allow_intro = $arr_Tab["allow_intro"]; $allow_detail = $arr_Tab["allow_detail"]; $allow_referurl = $arr_Tab["allow_referurl"]; $allow_photo = $arr_Tab["allow_photo"]; $allow_comment = $arr_Tab["allow_comment"]; $allow_upload = $arr_Tab["allow_upload"]; $allow_upload_ext = $arr_Tab["allow_upload_ext"]; $allow_category = $arr_Tab["allow_category"]; $allow_propproduct = $arr_Tab["allow_propproduct"]; $allow_date = $arr_Tab["allow_date"]; $allow_thumbnail = $arr_Tab["allow_thumbnail"]; $allow_category = $arr_Tab["allow_category"]; /*echo"allow_intro=$allow_intro
"; echo"allow_detail=$allow_detail
"; echo"allow_referurl=$allow_referurl
"; echo"allow_photo=$allow_photo
"; echo"allow_upload=$allow_upload
"; echo"allow_upload_ext=$allow_upload_ext
"; echo"allow_comment=$allow_comment
";*/ }else{ $TabName = ""; } $orderby="cont_id desc"; //$orderby="cont_datestmp desc, cont_id desc "; $gopageDetail = "doccenter_detail.php"; //include ("admin/content_upload_define.php"); //not move this position $extendMenu = "cgid=$cgid"; //echo"cgid=$cgid

"; //section $sql_Section = "select tab_id, tab_name, tab_name_en, module_name, module_name_en from $tbmodule_type_tab tab, $tbmodule_tab mo where tab.module_id = mo.module_id and tab.module_id = '$module' and tab_id = '$fktype' and tab_active = '1' group by tab_id order by tab_id asc "; $rs_Section = select_MySQL_return_RS($sql_Section); $sec = 0; while ($arr_Section = mysql_fetch_array($rs_Section)){ $sec ++; @$section_id = $arr_Section["tab_id"]; @$section_name_th = $arr_Section["tab_name"]; @$section_name_en = $arr_Section["tab_name_en"]; @$module_name_th = $arr_Section["module_name"]; @$module_name_en = $arr_Section["module_name_en"]; $fktype = $section_id; //set variable if($_SESSION['SS_LANG'] == 'th'){ $section_name = $section_name_th; $module_name = $module_name_th; }else{ $section_name= $section_name_en; $module_name = $module_name_en; } $section_name=stripslashes($section_name); $module_name=stripslashes($module_name); @$section_namesh = "$section_name"; //@$module_namesh = "$module_name"; //@$section_namesh = "$section_name"; @$module_namesh = "$module_name"; } //category if(!empty($cgid)){ $sql_cateSH= "select category_id,category_name, category_desc from $tbcontentcms_category where category_id = '$cgid' and module_id = '$module' and tab_id = '$fktype' "; $result_cateSH= select_MySQL_return_RS($sql_cateSH); $rs_cateSH= mysql_fetch_array($result_cateSH); @$cate_id= $rs_cateSH["category_id"]; @$cate_name = $rs_cateSH["category_name"]; //@$cate_namesh = "$cate_name"; @$cate_namesh = "$cate_name"; }else{ @$cate_id= ""; @$cate_name = "Activity All"; @$cate_namesh = "รายงานศูนย์ปฏิบัติการกรมประมง ทั้งหมด"; } ?>
DOC Center
ศูนย์ปฏิบัติการกรมประมง
วิสัยทัศน์กรมประมง : "มุ่งพัฒนาและบริหารการเปลี่ยนแปลง เพื่อเป็นผู้นำและสร้างความมั่นคงอาหารด้านประมงของประเทศ ภายใต้การพัฒนาอย่างยั่งยืน"
 
  ศูนย์ปฏิบัติการกรมประมง DOC
"; } echo""; } } //while //expand row if($NumColumn != "1"){ if($totalpage == $page){ for ($kk= 1; $kk <= $nrowExt; $kk++) { echo""; } } } echo"
   
procurement
ค้นหา :

"; //echo"nrow=$nrow
"; //if($nrow !="0"){ ?> "; } echo""; } } //while //expand row if($NumColumn != "1"){ if($totalpage == $page){ for ($kk= 1; $kk <= @$nrowExt; $kk++) { echo""; } } } echo"
$sql_Arg;"; $i=0; echo""; while ($arr_Arg= mysql_fetch_array($rs_Arg)){ $i++; @$obj_id = $arr_Arg["category_id"]; @$obj_topic = $arr_Arg["category_name"]; @$obj_image = $arr_Arg["category_image"]; @$obj_url = trim($arr_Arg["category_desc"]); @$obj_lastupdate = $arr_Arg["updatedate"]; @$obj_active = $arr_Arg["category_status"]; @$obj_order = $arr_Arg["category_sort"]; @$obj_level = $arr_Arg["level"]; @$obj_parent = $arr_Arg["parent_id"]; $obj_topic=stripslashes($obj_topic); /* $obj_topic = ereg_replace("<(BR|br|P|\/P)>","
", $obj_topic); $obj_topic = ereg_replace(" ","", $obj_topic); $obj_topic = ereg_replace("<([^>]*)>","", $obj_topic); $count_topic = strlen($obj_topic); if($count_topic > 30){ $obj_topic=substr($obj_topic, 0,30); $obj_topic = $obj_topic."..."; }else{ $obj_topic = $obj_topic; }*/ //check null value if(empty($obj_topic)){ $obj_topic=""; } $obj_topic_sh = "$obj_topic"; //$obj_topic_sh = "$obj_topic"; //file show //$url_img = "../dofapps/"; $url_img = "./"; $obj_files = $obj_image; $paththumb =$url_img."/".$categorythb_imgf; $pathreal = $url_img."/".$category_imgf; if ($obj_files !=""){ @$sizefile= getimagesize("$pathreal/$obj_files"); $W=$sizefile[0]; $H=$sizefile[1]; if($obj_url !=""){ //$obj_imgsh="\"$obj_topic\""; $obj_imgsh="\"$obj_topic\""; }else{ $obj_imgsh="\"$obj_topic\""; } }else{ if($obj_url !=""){ //@$obj_imgsh = "\"$obj_topic\""; @$obj_imgsh = "\"$obj_topic\""; }else{ @$obj_imgsh = "\"$obj_topic\""; } } //$obj_imgsh = "$obj_imgsh"; $obj_imgsh = "
  $obj_imgsh  
"; @$odd_line=$i%$NumColumn; $NumPercent = floor(100/$NumColumn); if (@$odd_line == 1){ echo"
"; ?>
"; if (@$odd_line == 0){ echo"
 
"; ?>

"; //echo"nrow=$nrow

"; if($nrow =="0"){ echo line(3); echo "
No data found !!!
"; echo line(3); }else{ ?> "; echo""; echo"
Total : $nrow Record  
"; ?>
[ ดูทั้งหมด ]
$sql_Arg;"; $i=0; echo""; while ($arr_Arg= mysql_fetch_array($rs_Arg)){ $i++; @$obj_id = $arr_Arg["cont_id"]; @$obj_topic_th = trim($arr_Arg["cont_topic"]); @$obj_topic_en = trim($arr_Arg["cont_topic_en"]); @$obj_intro_th = trim($arr_Arg["cont_intro"]); @$obj_intro_en = trim($arr_Arg["cont_intro_en"]); @$obj_detail = trim($arr_Arg["cont_detail"]); @$obj_datetime = $arr_Arg["updatedate"]; @$obj_thumb = $arr_Arg["cont_thumb"]; @$obj_openflag = $arr_Arg["cont_openflag"]; //HTML, FILE, LINK @$obj_thumb = trim($arr_Arg["cont_thumb"]); @$obj_files = $arr_Arg["cont_clip"]; @$obj_filessource = $arr_Arg["cont_clipflag"]; //upload,url @$obj_filesurl = $arr_Arg["cont_clipurl"]; @$obj_filescode = $arr_Arg["cont_clipcode"]; @$obj_active = $arr_Arg["active"]; @$obj_referurl = $arr_Arg["cont_referurl"]; @$obj_highlight = $arr_Arg["cont_highlight"]; @$obj_openflag = $arr_Arg["cont_openflag"]; @$obj_openurl = $arr_Arg["cont_openurl"]; @$obj_clip = $arr_Arg["cont_clip"]; @$obj_clipname = $arr_Arg["cont_clipname"]; @$obj_price = $arr_Arg["cont_price"]; @$obj_size = $arr_Arg["cont_size"]; @$obj_color = $arr_Arg["cont_color"]; @$obj_weight = $arr_Arg["cont_weight"]; @$obj_contdate = $arr_Arg["cont_date"]; @$obj_contdatestmp = trim($arr_Arg["cont_datestmp"]); @$tab_id = $arr_Arg["tab_id"]; @$obj_openurl = $arr_Arg["cont_openurl"]; @$obj_fileext1 = $arr_Arg["cont_file1"]; @$obj_fileext2 = $arr_Arg["cont_file2"]; @$obj_fileext3 = $arr_Arg["cont_file3"]; //09/04/2007 17:54:40 //$obj_datetime=formatdate($obj_datetime,"%d/%m/%Y %H:%M"); //$obj_datetime=formatdate($obj_contdatestmp,"%d/%m/%Y"); /* $datesplit = explode("/", $obj_datetime); $dnew = $datesplit[2]; $mnew = $datesplit[1]; $ynew = $datesplit[0]+543; $shortmonth = $thaimonth[trim($mnew)-1]; */ //(25/12/2007 21:47) --> systemdate $datepost="(update : ".formatdate($obj_datetime,"%d/%m/%Y %H:%M").")"; // date to show /* $datesplit = explode("/", $obj_contdate); $dnew = $datesplit[2]; $mnew = $datesplit[1]; $ynew = $datesplit[0]+543; $shortmonth = $thaimonth[trim($mnew)-1]; $obj_dateassign = $dnew." ".$shortmonth." ".$ynew; */ //mark new --> หากเป็นกระทู้ที่ พึ่งโพสใหม่ ภายใน 30 วัน ให้ขึ้นกระพริบว่า New //$start_date = "2010-03-15 00:00:00"; //$end_date = "2010-03-17 09:36:15"; $start_date = formatdate($obj_datetime,"%Y-%m-%d %H:%M:%S"); $end_date = date("Y-m-d H:i:s"); $date_diff = date_diff($start_date, $end_date); $date_split = explode(" days", $date_diff); //$day_hot = trim($date_split[0]); // piece1 //edit on 2014-04-21 by Nanthiya $MyDay = strtotime($start_date); $today = strtotime($end_date); $day_hot = round(abs($today-$MyDay)/60/60/24); //printf("I'm %d days old.", round(abs($today-$MyDay)/60/60/24)); if($day_hot <=15){ $MarkNew="New "; }else{ $MarkNew=""; } //set variable if($_SESSION['SS_LANG'] == 'th'){ $obj_topic= $obj_topic_th; $obj_intro= $obj_intro_th; }else{ $obj_topic= $obj_topic_en; $obj_intro= $obj_intro_en; } $obj_topic=stripslashes($obj_topic); $obj_intro=stripslashes($obj_intro); $obj_clipname=stripslashes($obj_clipname); //$obj_topic = CheckRudeEditor($obj_topic); //$obj_intro = CheckRudeEditor($obj_intro); $obj_topic = ereg_replace("<(BR|br|P|\/P)>","
", $obj_topic); $obj_topic = ereg_replace(" ","", $obj_topic); $obj_topic = ereg_replace("<([^>]*)>","", $obj_topic); /* $count_topic = strlen($obj_topic); if($count_topic > 255){ $obj_topic=substr($obj_topic, 0,255); $obj_topic = $obj_topic."..."; }else{ $obj_topic = $obj_topic; }*/ $obj_intro = ereg_replace("<(BR|br|P|\/P)>","
", $obj_intro); $obj_intro = ereg_replace(" ","", $obj_intro); $obj_intro = ereg_replace("<([^>]*)>","", $obj_intro); $count_intro = strlen($obj_intro); if($count_intro > 220){ $obj_intro=substr($obj_intro, 0,220); $obj_intro = $obj_intro."..."; }else{ $obj_intro = $obj_intro; } //check null value if(empty($obj_topic)){ $obj_topic="-"; } if(empty($obj_intro)){ $obj_intro=""; } //$dpath = "../dofapps/".$ctclip_imgf; $dpath = "/".$ctclip_imgf; $dfiles = $obj_clip; $dfilesname = $obj_clipname; $dfilesname = ereg_replace('[[:space:]]+', '', trim($dfilesname)); /* url + clip = refer url url = refer url clip 1 = open clip clip >1 = page detail */ if(!empty($obj_referurl)){ if(!empty($obj_topic)){ $obj_topic_sh = "$obj_topic"; } if(!empty($obj_topicen)){ $obj_topicen_sh = "$obj_topicen"; } }else{ //สำหรับเช็คหน้าที่มีไฟล์หลายไฟล์ //$dpath = "../dofapps/".$ctclip_imgf; $dpath = "/".$ctclip_imgf; $dfiles = $obj_clip; $dfilesname = $obj_clipname; $dfilesname = ereg_replace('[[:space:]]+', '', trim($dfilesname)); if ((!empty($obj_fileext1)) or (!empty($obj_fileext2)) or (!empty($obj_fileext3)) ) { if ($obj_files !=""){ $obj_topic_sh = "$obj_topic"; }else{ $obj_topic_sh = "$obj_topic"; } $obj_contdate_sh = "(update : ".$obj_datetime.")"; }else{ if ($obj_files !=""){ //$obj_topic_sh = "$obj_topic"; $obj_topic_sh = "$obj_topic"; }else{ $obj_topic_sh = "$obj_topic"; } $obj_contdate_sh = "(update : ".$obj_datetime.")"; } } /* //thumbnail show $obj_files = $obj_thumb; $paththumb = $ctthb_imgf; if ($obj_files !=""){ @$sizefile= getimagesize("$pathreal/$obj_files"); $W=$sizefile[0]; $H=$sizefile[1]; $obj_imgsh="\"$obj_topic\""; }else{ @$obj_imgsh = "\"$obj_topic\""; } $obj_imgsh = "$obj_imgsh"; $obj_imgsh = "
  $obj_imgsh  
"; */ @$odd_line=$i%$NumColumn; $NumPercent = floor(100/$NumColumn); //iocn /* @$oddrow=$i%2; if($oddrow == 0){ $iconline=""; }else{ $iconline=""; } */ if (@$odd_line == 1){ echo"
"; ?>
"; if (@$odd_line == 0){ echo"
 
"; } //nrow ?>
1) && ($totalpage != 1)){?> "; echo""; if($totalpage != 1 && $page != 1){ //echo "\"Previous\" "; //echo "\"Previous\" Previous "; echo" "; } for($i=0;$i"; if($page == $listpage[$i]){ //echo "$listpage[$i]"; echo" "; }else{ //echo "$listpage[$i]"; //echo "$listpage[$i]"; echo" "; } //echo"  "; } // for if($totalpage != 1 && $totalpage != $page){ //echo " \"Next\""; //echo " Next \"Next\""; echo" "; } echo"
Total : $nrow Record | PAGE $page/$totalpage :   "; echo"<< "; echo"  
$listpage[$i]
  $listpage[$i]  "; echo">> "; echo"  
"; ?>
เลือกหมวดหมู่

"; //echo"nrow=$nrow
"; $nrowLine = $NumColumn; @$nrowRest=$nrow%$nrowLine; if($nrowRest != 0){ @$nrowExt = $nrowLine - $nrowRest; } //เริ่มเตรียมแสดงข้อมูลต่อ 1 หน้า @$Scriptname=${"Script_Name"}; $pagesize =$LimitRecord; $totalpage =(int)(($nrow-1)/$pagesize+1); $totalrec=($pagesize*$totalpage)-1; if(@$page==""){ $page=1; } //เรียงจากน้อยไปมาก @$goto=(@$page-1)*$pagesize; $nextpage = $page + 1; $prevpage = $page - 1; $listpage = @listpage($page,$totalpage,$pageRange); $pagelink = "module=$module&fktype=$fktype&cgid=$cgid"; //จบการเตรียมแสดงข้อมูลต่อ 1 หน้า $sql_Arg = "select * from $tbcontentcms_category where module_id = '$module' and tab_id = '$fktype' and category_status = '1' "; /*if(!empty($cgid)){ $sql_Arg .= "and category_id ='$cgid' "; } */ $sql_Arg .="order by category_sort asc "; //$sql_Arg .="limit $goto,$pagesize "; $rs_Arg = select_MySQL_return_RS($sql_Arg); //echo "
$sql_Arg;"; $i=0; echo""; while ($arr_Arg= mysql_fetch_array($rs_Arg)){ $i++; @$obj_id = $arr_Arg["category_id"]; @$obj_topic = $arr_Arg["category_name"]; @$obj_image = $arr_Arg["category_image"]; @$obj_url = trim($arr_Arg["category_desc"]); @$obj_lastupdate = $arr_Arg["updatedate"]; @$obj_active = $arr_Arg["category_status"]; @$obj_order = $arr_Arg["category_sort"]; @$obj_level = $arr_Arg["level"]; @$obj_parent = $arr_Arg["parent_id"]; $obj_topic=stripslashes($obj_topic); $obj_topic = ereg_replace("<(BR|br|P|\/P)>","
", $obj_topic); $obj_topic = ereg_replace(" ","", $obj_topic); $obj_topic = ereg_replace("<([^>]*)>","", $obj_topic); $count_topic = strlen($obj_topic); if($count_topic > 100){ $obj_topic=substr($obj_topic, 0,100); $obj_topic = $obj_topic."..."; }else{ $obj_topic = $obj_topic; } //check null value if(empty($obj_topic)){ $obj_topic=""; } if($cgid==$obj_id){ if($obj_url !=""){ $obj_topic_sh = "$obj_topic"; //$obj_topic_sh = "$obj_topic"; }else{ $obj_topic_sh = "$obj_topic"; } }else{ if($obj_url !=""){ $obj_topic_sh = "$obj_topic"; }else{ $obj_topic_sh = "$obj_topic"; } } @$odd_line=$i%$NumColumn; $NumPercent = floor(100/$NumColumn); if (@$odd_line == 1){ echo""; } echo""; if (@$odd_line == 0){ echo""; } } //while //expand row if($NumColumn != "1"){ if($totalpage == $page){ for ($kk= 1; $kk <= @$nrowExt; $kk++) { echo""; } } } echo"
"; echo"
$obj_topic_sh
"; echo"
 
"; ?>