Server IP : 119.59.102.212 / Your IP : 3.133.157.170 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/text_running/ |
Upload File : |
<?php if($_SESSION['admin_web']!="admin") { permission_fail(); } // Status Package Module $status_module=select_query("status_module","cms_status_module","id","33"); if($status_module[0]!=1) { fieldset_no_module(); } $navig['text_running']="จัดการ Text Running"; navigator($navig); echo "<br>"; bar_header("จัดการ Text Running"); // Bar_Header fieldset_top("จัดการ Text Running"); import_request_variables('pG', 'p_'); //if($p_hiddata!="") { $hiddata=trim($p_hiddata); } //$num = "'"; //$hiddata = ereg_replace('"', $num, $hiddata); // Update //if ($hiddata != "") { if(isset($p_modes) && $p_hidden_var == '1'){ $hiddata = $p_evar; $sql = "UPDATE cms_text_running SET texts ='$hiddata' WHERE id='1'"; $result = mysql_query($sql); echo "<meta http-equiv='refresh' content='0; url=index.php?mod=text_running&path=text_running'>"; } // SLEECT $sqluser = "select * from cms_text_running where id='1'"; $resultuser = mysql_query($sqluser); $datauser = mysql_fetch_array($resultuser); // ภาษาไทย $data_id = 'abc'; $hidden_var_id = 'hiddata'; ?> <form action="index.php?mod=text_running&path=text_running" method="post"> <table width='98%' border='0' cellspacing='0' align='center' height='20'> <div id="text_running"></div> <tr id="show_span"> <td colspan="2" align=center> <span id="abc" ><?php echo $datauser['texts'] ?></span> <br/> <!-- <input type="hidden" id="data_id" value="<?php echo $data_id ?>" /> <input type="hidden" id="hidden_var_id" value="<?php echo $hidden_var_id ?>" />--> <a href="javascript:void(0);" id="edit_text_running"><img src="coremain/images/edit.gif" border="0" title="แก้ไขข้อมูล" /> แก้ไขข้อมูล</a> <!--<span onclick="OpenMidWin('coremain/core_editor.php?data_id=$data_id&hidden_var_id=$hidden_var_id', 'edit_window', '580','400');"><img src='coremain/images/edit.gif' border='0' title='แก้ไขข้อมูล' onmouseover=this.style.cursor='hand'> แก้ไขข้อมูล</span>--> </td> </tr> <?php //button_text('แก้ไขข้อมูล', 'modes', 4); ?> <!-- <tr> <td colspan='4'> <center><br> <input id="hiddata" type="hidden" name ="hiddata" value="<?php //echo $datauser['text_th'] ?>"> <input id="hiddata1" type="hidden" name ="hiddata1" value="<?php //echo $datauser['text_eng'] ?>"> <input type="submit" name ="modes" value="แก้ไขข้อมูล" onmouseover=this.style.cursor='hand'> </center> </td> </tr>--> <input type="hidden" id="hidden_var" name="hidden_var" value="0" /> </table> </form> <?php fieldset_down(); ?> <script language="JavaScript" type="text/javascript"> $('#edit_text_running').click(function(){ var arrData = [ { name: 'fn_name', value: 'text_editor' }, { name: 'arguments', value: ['500', '349', 'แก้ไข Text Running', '2', 'abc'] } ]; $.ajax({ type: 'post', url: 'coremain/module/text_running/text_editor.php', data: arrData, success: function(result){ $('#show_span').css('display', 'none'); $('#text_running').html(result); } }); }); // $('#edit_text_running').click(function(){ // var txt_id = $('#data_id').val(); // var arrData = [ // { name: 'data_id', value: txt_id }, // { name: 'hidden_var_id', value: $('#hidden_var_id').val() }, //// { name: 'text_running', value: $('#'+txt_id).text() } // ]; // var dialog = 'dialog-popup'; // var popup = $('#'+dialog); // showDialog(dialog); // popup.dialog('option', 'title', 'แก้ไขข้อมูล'); // // $.ajax({ // type: 'post', // url: 'coremain/core_editor.php', // data: arrData, // success: function(result){ // popup.html(result); // } // }); // }); // function OpenMidWin(url, name,width,height) { // var left = parseInt( (screen.availWidth/2) - (width/2)); // var top = parseInt( (screen.availHeight/2) - (height/2)); // var windowFeatures ="width=" + width + ",height=" + height + ",alwaysRaised=yes,menubar=yes,titlebar=yes, toolbar=yes, scrollbars=yes, status=yes, resizable, left=" + left + ",top=" + top + ",screenX=" + left + ",screenY=" + top; // myWindow = window.open(url, name, windowFeatures).focus(); // } </script>