"; if($fktype=="WR001"){ $fktypeDesc = "ศูนย์ปฏิบัติการกรมประมง"; $fktype_bar = "DOC Center"; $gopageMain = "index.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="30"; } */ //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"nrow=$nrow
"; //if($nrow !="0"){ ?>
  >> คลิกเลือก Icon หมวดหมู่ เพื่อดูรายละเอียด

 
"; } 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=""; } if($obj_url !=""){ $obj_topic_sh = "$obj_topic"; }else{ $obj_topic_sh = "$obj_topic"; //$obj_topic_sh = "$obj_topic"; } //file show //$url_img = "../doccenter/"; $url_img = "../"; $obj_files = $obj_image; //$paththumb =$url_img."/".$categorythb_imgf; $paththumb =$url_img."/".$category_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\""; }else{ //$obj_imgsh="\"$obj_topic\""; $obj_imgsh="\"$obj_topic\""; } }else{ if($obj_url !=""){ @$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"
 
"; ?>