Server IP : 119.59.102.212 / Your IP : 3.143.232.24 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_page/ |
Upload File : |
<?php $navig['new_page'] = $data_name_menu_sub['name']; navigator($navig); echo "<br>"; bar_header("$data_name_menu_sub[name]"); // Bar_Header fieldset_top($data_name_menu_sub['name']); if ($_SESSION['admin_web'] == "admin" || id_sub_permission($id_sub) == 1) { button_edit("index.php?mod=news_page_update&path=news_page"); // Edit_Data } // Update State if ($id_news != "") { $sql_up = "select max(state+1) from cms_news_page WHERE id_sub='$_SESSION[id_sub]' and id_type='$_SESSION[id_type]'"; $result_up = mysql_query($sql_up); $data_up = mysql_fetch_array($result_up); $sqlw = "UPDATE cms_news_page SET state='$data_up[0]' WHERE id_sub='$_SESSION[id_sub]' and id_type='$_SESSION[id_type]'"; $resultw = mysql_query($sqlw); } ?> <table width='100%' border='0' cellspacing='1' align='center' cellpadding='0'> <tr> <td height='100' valign='top'> <div align='center'> <?php $sql = "select * from cms_news_page WHERE id_sub='$_SESSION[id_sub]' and id_type='$_SESSION[id_type]'"; $result = mysql_query($sql); $datanews = mysql_fetch_array($result); { // เนื้อหาข่าว ?> <table width='98%' border='0' cellpadding='0' cellspacing='0'> <tr> <td width='100%'> <?php if ($datanews['topic'] != "") { ?> <img src='coremain/images/top_menu.gif'> <b><?= $datanews['topic'] ?></b> <?php } ?> <?= $datanews['fulltexts'] ?> </td> </tr> <?php if ($datanews['pic1'] != "") { // มีรูปที่ 1 หรือไม่ ?> <tr> <td width='100%'><br> <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 align='<?= $datanews['position_pic1'] ?>'> <TR> <TD valign='top'> <IMG SRC='coremain/images/border/popup_border_01.gif' WIDTH=15 HEIGHT=15 ALT=''></TD> <TD valign='top' background='coremain/images/border/popup_border_02.gif'></TD> <TD valign='top'> <IMG SRC='coremain/images/border/popup_border_03.gif' WIDTH=17 HEIGHT=15 ALT=''></TD> </TR> <TR> <TD valign='top' background='coremain/images/border/popup_border_04.gif'> </TD> <TD valign='top'><img src='<?= $_SESSION['web_name'] ?>/mainfile/<?= $datanews['pic1'] ?>' border='0' name='Img1' width='100%'></TD> <TD valign='top' background='coremain/images/border/popup_border_06.gif'></TD> </TR> <TR> <TD valign='top'> <IMG SRC='coremain/images/border/popup_border_07.gif' WIDTH=15 HEIGHT=16 ALT=''></TD> <TD valign='top' background='coremain/images/border/popup_border_08.gif'> </TD> <TD valign='top'> <IMG SRC='coremain/images/border/popup_border_09.gif' WIDTH=17 HEIGHT=16 ALT=''></TD> </TR> </TABLE> </td> </tr> <tr> <td><div align='<?= $datanews['position_pic1'] ?>'><?= $datanews['explain1'] ?></div></td> </tr> <?php } if ($datanews['pic2'] != "") { // มีรูปที่ 2 หรือไม่ ?> <tr> <td width='100%'><br> <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 align='<?= $datanews['position_pic2'] ?>'> <TR> <TD valign='top'> <IMG SRC='coremain/images/border/popup_border_01.gif' WIDTH=15 HEIGHT=15 ALT=''></TD> <TD valign='top' background='coremain/images/border/popup_border_02.gif'></TD> <TD valign='top'> <IMG SRC='coremain/images/border/popup_border_03.gif' WIDTH=17 HEIGHT=15 ALT=''></TD> </TR> <TR> <TD valign='top' background='coremain/images/border/popup_border_04.gif'> </TD> <TD valign='top'><img src='<?= $_SESSION['web_name'] ?>/mainfile/<?= $datanews['pic2'] ?>' border='0' name='Img1' width='100%' ></TD> <TD valign='top' background='coremain/images/border/popup_border_06.gif'></TD> </TR> <TR> <TD valign='top'> <IMG SRC='coremain/images/border/popup_border_07.gif' WIDTH=15 HEIGHT=16 ALT=''></TD> <TD valign='top' background='coremain/images/border/popup_border_08.gif'> </TD> <TD valign='top'> <IMG SRC='coremain/images/border/popup_border_09.gif' WIDTH=17 HEIGHT=16 ALT=''></TD> </TR> </TABLE> </td> </tr> <tr><td><div align='<?= $datanews['position_pic2'] ?>'><?= $datanews['explain2'] ?></div></td></tr> <?php } if ($datanews['pic3'] != "") { // มีรูปที่ 3 หรือไม่ ?> <tr> <td width='100%'><br> <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 align='<?= $datanews['position_pic3'] ?>'> <TR> <TD valign='top'> <IMG SRC='coremain/images/border/popup_border_01.gif' WIDTH=15 HEIGHT=15 ALT=''></TD> <TD valign='top' background='coremain/images/border/popup_border_02.gif'></TD> <TD valign='top'> <IMG SRC='coremain/images/border/popup_border_03.gif' WIDTH=17 HEIGHT=15 ALT=''></TD> </TR> <TR> <TD valign='top' background='coremain/images/border/popup_border_04.gif'> </TD> <TD valign='top'><img src='<?= $_SESSION['web_name'] ?>/mainfile/<?= $datanews['pic3'] ?>' border='0' name='Img1' width='100%' ></TD> <TD valign='top' background='coremain/images/border/popup_border_06.gif'></TD> </TR> <TR> <TD valign='top'> <IMG SRC='coremain/images/border/popup_border_07.gif' WIDTH=15 HEIGHT=16 ALT=''></TD> <TD valign='top' background='coremain/images/border/popup_border_08.gif'> </TD> <TD valign='top'> <IMG SRC='coremain/images/border/popup_border_09.gif' WIDTH=17 HEIGHT=16 ALT=''></TD> </TR> </TABLE> </td> </tr> <tr><td><div align='<?= $datanews['position_pic3'] ?>'><?= $datanews['explain3'] ?></div></td></tr> <?php } if ($datanews['pic4'] != "") { // มีรูปที่ 4 หรือไม่ ?> <tr> <td width='100%'><br> <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 align='<?= $datanews['position_pic4'] ?>'> <TR> <TD valign='top'> <IMG SRC='coremain/images/border/popup_border_01.gif' WIDTH=15 HEIGHT=15 ALT=''></TD> <TD valign='top' background='coremain/images/border/popup_border_02.gif'></TD> <TD valign='top'> <IMG SRC='coremain/images/border/popup_border_03.gif' WIDTH=17 HEIGHT=15 ALT=''></TD> </TR> <TR> <TD valign='top' background='coremain/images/border/popup_border_04.gif'> </TD> <TD valign='top'><img src='<?= $_SESSION['web_name'] ?>/mainfile/<?= $datanews['pic4'] ?>' border='0' name='Img1' width='100%' ></a></TD> <TD valign='top' background='coremain/images/border/popup_border_06.gif'></TD> </TR> <TR> <TD valign='top'> <IMG SRC='coremain/images/border/popup_border_07.gif' WIDTH=15 HEIGHT=16 ALT=''></TD> <TD valign='top' background='coremain/images/border/popup_border_08.gif'> </TD> <TD valign='top'> <IMG SRC='coremain/images/border/popup_border_09.gif' WIDTH=17 HEIGHT=16 ALT=''></TD> </TR> </TABLE> </td> </tr><tr><td><div align='<?= $datanews['position_pic4'] ?>'><?= $datanews['explain4'] ?></div></td></tr> <?php } if ($datanews['files'] != "") { // ไฟล์ประกอบ ?> <tr> <td width='100%' align='center'><br> <a href="#" onClick="window.open('<?= $_SESSION['web_name'] ?>/mainfile/<?= $datanews['files'] ?>','blah12','width=540,height=450,location=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes')"><u>ไฟล์ประกอบ</u></a> </td> </tr> <?php } // รายละเอียดอื่น ๆ ?> <tr> <td width='100%'> <p align='right'><br>ประกาศโดย : <?= $datanews['who'] ?><br>วันที่ประกาศ : <?= $datanews['date_post'] ?></p> </td> </tr> </table> <?php } ?> </div> </td> </tr> </table> <?php fieldset_down(); ?>