Server IP : 119.59.102.212 / Your IP : 216.73.216.88 Web Server : Apache/2 System : Linux narin 2.6.32-042stab142.1 #1 SMP Tue Jan 28 23:44:17 MSK 2020 x86_64 User : yangkam ( 1022) PHP Version : 5.6.40 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/yangkam/domains/yangkam.go.th/public_html/coremain/module/news/ |
Upload File : |
<?php // Status Package Module $status_module=select_query("status_module","cms_status_module","id","2"); if($status_module[0]!=1) { fieldset_no_module(); } $navig['news']="รายละเอียดข่าวข่าวประชาสัมพันธ์ (ภายในหน่วยงาน)"; navigator($navig); echo"<br>"; bar_header("ข่าวประชาสัมพันธ์ (ภายในหน่วยงาน)"); // Bar_Header fieldset_top("ข่าวประชาสัมพันธ์"); if($p_id_news!="") { $id_news=trim($p_id_news); } // นับจำนวนผู้เข้าชมข่าวเพิ่มขึ้นทีละ 1 $max=select_max_query("state","cms_news","id","$id_news"); update_query("cms_news","state","$max[0]","id",$id_news); // แสดงเนื้อหาข่าวประชาสัมพันธ์ (ภายในหน่วยงาน) echo"<table width='100%' border='0' cellspacing='1' align='center' cellpadding='0'>"; if($_SESSION[admin_web]=="admin" or (id_top_permission("news"))){ $sqlnews="select * from cms_news where id=$id_news"; }else{ $sqlnews="select * from cms_news where id=$id_news and status=1"; } $re=mysql_query($sqlnews); $co=mysql_num_rows($re); if($co==0){ echo "<br><br><b><center>*** ไม่พบข้อมูล</center></b><br><br>"; exit; } $data = mysql_fetch_array($re); { // เนื้อหาข่าว news_full($data[topic],$data[fulltexts]); // รูปประกอบข่าว if($data[pic1]!="") { box_picture($data[pic1],$data[position_pic1]); msg_picture($data[explain1],$data[position_pic1]); } if($data[pic2]!="") { box_picture($data[pic2],$data[position_pic2]); msg_picture($data[explain2],$data[position_pic2]); } if($data[pic3]!="") { box_picture($data[pic3],$data[position_pic3]); msg_picture($data[explain3],$data[position_pic3]); } if($data[pic4]!="") { box_picture($data[pic4],$data[position_pic4]); msg_picture($data[explain4],$data[position_pic4]); } // ไฟล์ประกอบข่าว if($data[files]!=""){ box_file($data[files]); } // รายละเอียดอื่น ๆ box_other($data[who], $data[date_post]); } echo"</table>"; fieldset_down(); ?>