Server IP : 119.59.102.212 / Your IP : 3.15.182.56 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/ |
Upload File : |
<?php function navigator($navigator) { // $i == 0; // foreach ($navigator as $num => $vals) { // $i++; // } $i = count($navigator); $j = 0; echo "<table width='100%'><tr><td background='$_SESSION[web_name]/theme/$_SESSION[themes_]/$_SESSION[header_navigator]' height='$_SESSION[height_navigator]'><font color='000000'>"; foreach ($navigator as $key => $val) { $j++; if ($j < $i) { // คลิกลิงค์ได้ $_link = $key != '' ? "?mod=$key&path=$_SESSION[navigator_path]&id_sub=$_SESSION[id_sub]" : ""; echo " <img src='$_SESSION[web_name]/theme/$_SESSION[themes_]/$_SESSION[icon_navigator]' border='0'> <a href='index.php$_link'><b><font color='000000'>$val</font></b></a> "; } else { // คลิกลิงค์ไม่ได้ echo " <img src='$_SESSION[web_name]/theme/$_SESSION[themes_]/$_SESSION[icon_navigator]' border='0'> $val "; $_SESSION[bar_name] = $val; } } echo"</td></tr></table>"; } function navigator2($navigator, $get_param) { $i == 0; foreach ($navigator as $num => $vals) { $i++; } $j = 0; echo "<table width='100%'><tr><td background='$_SESSION[web_name]/theme/$_SESSION[themes_]/$_SESSION[header_navigator]' height='$_SESSION[height_navigator]'><font color='$_SESSION[bg_body1]'>"; foreach ($navigator as $key => $val) { $j++; if ($j < $i) { // คลิกลิงค์ได้ echo " <img src='$_SESSION[web_name]/theme/$_SESSION[themes_]/$_SESSION[icon_navigator]' border='0'> <a href='index.php?mod=$key&path=$_SESSION[navigator_path]&$get_param'><b><font color='$_SESSION[bg_body1]'>$val</font></b></a> "; } else { // คลิกลิงค์ไม่ได้ echo " <img src='$_SESSION[web_name]/theme/$_SESSION[themes_]/$_SESSION[icon_navigator]' border='0'> $val "; $_SESSION[bar_name] = $val; } } echo"</td></tr></table></font>"; } function product_navig($id_product) { echo "<table width='100%'><tr><td background='$_SESSION[web_name]/theme/$_SESSION[themes_]/navigator.jpg' height='$_SESSION[height_navigator]'><font color='$_SESSION[bg_body1]'>"; echo " <img src='$_SESSION[web_name]/theme/$_SESSION[themes_]/$_SESSION[icon_navigator]' border='0' > <a href='index.php'><b><font color='$_SESSION[bg_body1]'>หน้าแรก</font></b></a> "; print_product_navig($id_product); echo"</td></tr></table></font>"; } function print_product_navig($id_product) { $result_parent = select_result_query("*", "cms_product", "id_product", "$id_product"); while ($data_parent = mysql_fetch_array($result_parent)) { if ($data_parent[id_parent] != 0) { print_product_navig($data_parent[id_parent]); } if ($data_parent[has_child] == 1) { echo "<font color='$_SESSION[bg_body1]'> <img src='$_SESSION[web_name]/theme/$_SESSION[themes_]/$_SESSION[icon_navigator]' border='0'> <a href='index.php?mod=product&path=product&id_product=$data_parent[id_product]'><b><font color='$_SESSION[bg_body1]'>$data_parent[name]</font></b></a> </font>"; } } } // ข้อความ navagator ต่าง ๆ $navig[''] = 'หน้าแรก'; $msg_edit = "แก้ไขข้อมูล"; $msg_add = "เพิ่มข้อมูล"; ?>