Server IP : 119.59.102.212 / Your IP : 3.22.217.190 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/template/t07/ |
Upload File : |
<?php // ################ Background 2 ################## //ปรับความกว้างตามขนาดจอภาพ //========== menu & content table ============ $step2 = $_SESSION['web_width'] + 3; if($_SESSION['admin_web'] == ''){ $sql_right = "SELECT id_top, name, position, left_right, status, module_type FROM cms_menu_top WHERE left_right='2' and status='1' and permission != 'admin' and module_type != 'other' and `lock`='1' order by position asc"; $que_right = mysql_query($sql_right); $num_right = mysql_num_rows($que_right); $chk_right = $num_right > 0 ? 1 : 0; $width_center = $chk_right == 1 ? '80%' : '100%'; }else{ $chk_right = 1; $width_center = '80%'; } ?> <table width='100%' border='0' align='center' cellpadding='0' cellspacing='0'> <tr> <td> <table width='<?= $step2 ?>' align=center border='0' cellspacing='0' cellpadding='0' bgcolor='<?= $_SESSION['bg_menu'] // สี่พื้นเมนู ซ้ายและขวา ?>'> <?php if($mod == ''){ ?> <tr> <td> <?php include('center_top.php'); ?> </td> </tr> <?php } ?> <tr> <td> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td style="width: <?= $width_center ?>;" align='center' valign='top'> <?php if($mod == ''){ include('center_block.php'); }else{ ?> <fieldset class="canvas-corner"> <?php include('coremain/display.php'); include(module($mod, $path)); ?> </fieldset> <?php } ?> </td> <?php if($chk_right == '1'){ ?> <td style="width: 20%;" align="center" valign="top"> <?php include('right_block.php'); ?> </td> <?php } ?> </tr> </table> </td> </tr> </table> </td> </tr> </table> <script language="JavaScript"> $('.edit_manage_header').click(function(){ var arr = $(this).attr('id').split('#@#'); var arrData = [ { name: 'id_top', value: arr[0] }, { name: 'module_type', value: arr[1] } ]; var dialog = 'dialog-popup'; var popup = $('#'+dialog); showDialog(dialog); popup.dialog('option', 'title', 'จัดการเมนู'); $.ajax({ type: 'post', url: 'coremain/module/link/manage_header.php', data: arrData, success: function(result){ popup.html(result); } }); }); $('.btn_addblog').click(function(){ var left_right = $(this).attr('id'); var arrData = [ { name: 'left_right', value: left_right } ]; var dialog = 'dialog-popup'; var popup = $('#'+dialog); showDialog(dialog); popup.dialog('option', 'title', 'เพิ่ม Blog'); $.ajax({ type: 'post', url: 'coremain/header_addblog.php', data: arrData, success: function(result){ popup.html(result); } }); }); $('.btn_addmenu').click(function(){ var left_right = $(this).attr('id'); var arrData = [ { name: 'left_right', value: left_right } ]; var dialog = 'dialog-popup'; var popup = $('#'+dialog); showDialog(dialog); popup.dialog('option', 'title', 'เพิ่ม Blog'); $.ajax({ type: 'post', url: 'coremain/header_addmenu.php', data: arrData, success: function(result){ popup.html(result); } }); }); </script>