Server IP : 119.59.102.212 / Your IP : 3.149.249.184 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/gallery/ |
Upload File : |
<?php // Status Package Module $status_module = select_query("status_module", "cms_status_module", "id", "18"); if ($status_module[0] != 1) { fieldset_no_module(); } // Pession if (id_top_permission("b") != 1) { permission_fail(); } $navig['gallery'] = "ภาพกิจกรรม"; $navig['gallery_edit'] = "แก้ไขชื่อกิจกรรม"; navigator($navig); echo "<br>"; bar_header("แก้ไขชื่อกิจกรรม"); fieldset_top("ภาพกิจกรรม"); import_request_variables('pG', 'p_'); if($p_datatm!="") { $datatm=trim($p_datatm); } if($p_id_update!="") { $id_update=trim($p_id_update); } if($p_block!="") { $block=trim($p_block); } if($p_fulltexts!="") { $fulltexts=trim($p_fulltexts); } if($p_en_fulltexts!="") { $en_fulltexts=trim($p_en_fulltexts); } if($p_edit_topic!="") { $edit_topic=trim($p_edit_topic); } if ($edit_topic == 1) { $sql = "UPDATE port_gallery_topic SET `fulltexts` = '$fulltexts',`en_fulltexts` = '$en_fulltexts', `block`='$block' WHERE `id_topic`='$id_update'"; $result = mysql_query($sql) or die(mysql_error()); echo "<center><br><br> ข้อมูลได้ถูกแก้ไขแล้ว </center>"; echo "<meta http-equiv='refresh' content='2; url=index.php?mod=gallery&path=gallery'>"; // exit; } else { $sql = "SELECT * FROM port_gallery_topic WHERE id_topic='$id_update'"; $re = mysql_query($sql); $data = mysql_fetch_array($re); if ($block == "") $block = $data['block']; ?> <form action='index.php?mod=gallery_edit&path=gallery&id_update=<?= $id_update ?>' method='post' name='add' id='add'> <table width='98%' border='0' align='center' cellpadding='1' cellspacing='1'> <tr> <td> <?php text_editor("450", "260", "แก้ไขชื่อกิจกรรม", 2, $data['fulltexts'], "fulltexts"); // Text Editor ?> <INPUT TYPE='hidden' name='edit_topic' value='1'> <INPUT TYPE='hidden' name='block' value='<?= $block ?>'> </td> </tr> <!-- <tr> <td></td> <td> <input type='submit' name='Submit' value='แก้ไขข้อมูล' onmouseover=this.style.cursor='hand'> </td> </tr>--> <?php button_text('แก้ไขข้อมูล'); ?> </table> </form> <?php } fieldset_down(); ?>