1337 3YP455 5H311
:
216.73.216.0
:
119.59.104.17 / www.hrdigest.co.th
:
Linux re1.hostinglotus.net 4.18.0-553.58.1.el8_10.x86_64 #1 SMP Wed Jun 25 06:37:46 EDT 2025 x86_64
:
/
home
/
hrdigest
/
public_html
/
admin
/
UP104D F1L3:
files >> /home/hrdigest/public_html/admin/menu.php
<?php // *****Copy right 2003 ,TNS NETWORK LTD.,PART.***** // function Add_Menu($ID, $N, $L, $txt_menu_name, $Mem){ $sql = mysql_query("Select * From `menu` Inner Join `page` On `menu`.`page` = `page`.`page` Where `menu`.`dic` = '$ID' and mem_lock = 0 Order By `menu`.`sort` Asc , `menu`.`cid` Asc "); $num = mysql_num_rows($sql); if($num > 0){ echo "<ul style='display: none;'>"; while($row = mysql_fetch_array($sql)){ if($row["page"] == "index"){ $show_px = "page_a"; }else{ $show_px = $row["page"]; } if($row["page"] == "link"){ $show_px = "<b>$row[$txt_menu_name]</b>"; }elseif ($row["click"] ==1) { $show_px = "<b>$row[$txt_menu_name]</b>"; }else{ $show_px = $show_px . ".php?cid=$row[cid]&cname=$row[$txt_menu_name]"; $show_px = "<a href='$show_px'><b>$row[$txt_menu_name]</b></a>"; } $sql3 = mysql_query("Select * From `menu` Inner Join `page` On `menu`.`page` = `page`.`page` Where `menu`.`dic` = '$row[cid]' and mem_lock = 0 Order By `menu`.`sort` Asc , `menu`.`cid` Asc "); $num3 = mysql_num_rows($sql3); $_num = 1; if ($num3==0 ) { if($_num == 1){ echo "<li>$show_px</li>"; } }else{ if($_num == 1){ echo"<li class='expandable'> <div class='hitarea expandable-hitarea'></div> $show_px"; Add_Menu($row["cid"], $N, $L, $txt_menu_name, $Mem); echo "</li>"; } } } // End While echo "</ul>"; } // End If } ?> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <script type="text/javascript" src="../js/jquery-1.11.3.min.js"></script> <link href="index.css" rel="stylesheet" type="text/css"> <link rel="stylesheet" href="css/jquery.treeview.css" /> <link rel="stylesheet" href="css/screen.css" /> <link rel="stylesheet" type="text/css" href="../css/jquery-ui.css"> <link rel="stylesheet" type="text/css" href="../js/jquery.datetimepicker.css"> <script src="js/jquery.cookie.js" type="text/javascript"></script> <script src="js/jquery.treeview.js" type="text/javascript"></script> <script type="text/javascript" src="wysiwyg.js"></script> <script type="text/javascript" src="../js/jquery-ui.js"></script> <script type="text/javascript" src="../js/jquery.datetimepicker.js"></script> <script type="text/javascript"> $(function() { $("#tree").treeview({ collapsed: true, animated: "medium", control:"#sidetreecontrol", prerendered: true, persist: "location" }); }) </script> <link href="index.css" rel="stylesheet" type="text/css"> <link rel="stylesheet" type="text/css" href="sddm.css"> <link href="index.css" rel="stylesheet" type="text/css" /> <link rel="stylesheet" type="text/css" href="sddm.css" /> <table width="155" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="5"></td> </tr> </table> <? if(eregi("^0$|^3$|^4$", $_SESSION["level"])){ ?> <table width="190" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td><table width="100%" border="0" cellpadding="0" cellspacing="0" class="main1" style="background:#f9faff url('icon/topmenu3.jpg'); background-repeat:no-repeat;"> <tr> <td colspan="2" style="padding-left:10px; height:23px;"><table width="100%" border="0" cellspacing="0" cellpadding="0" class="main"> <tr> <td width="32%"><b>Menu</b></td> <td width="68%"><div id="sidetreecontrol"> <div align="center"><a href="?#">Collapse</a> | <a href="?#">Expand</a> </div> </div></td> </tr> </table></td> </tr> <tr> <td height="5" colspan="2"></td> </tr> <tr> <td width="2%" height="55" align="left"></td> <td width="98%" align="left" valign="top"> <div id="sidetree"> <ul class="treeview" id="tree"> <? $Mresult = mysql_query("Select * From `menu` Inner Join `page` On `menu`.`page` = `page`.`page` Where `menu`.`dic` = '0' && `mem_lock` = '0' Order By `menu`.`sort` Asc , `menu`.`cid` Asc "); while($Mrow = mysql_fetch_array($Mresult)){ $sql2 = mysql_query("Select * From `menu` Inner Join `page` On `menu`.`page` = `page`.`page` Where `menu`.`dic` = '$Mrow[cid]' and mem_lock = 0 Order By `menu`.`sort` Asc , `menu`.`cid` Asc "); $num2 = mysql_num_rows($sql2); if($Mrow["page"] == "index"){ $show_px = "page_a"; }else{ $show_px = $Mrow["page"]; } if($Mrow["page"] == "link"){ $show_px = "<b>$Mrow[$txt_menu_name]</b>"; }elseif ($Mrow["click"] ==1) { $show_px = "<b>$Mrow[$txt_menu_name]</b>"; }else{ $show_px = $show_px . ".php?cid=$Mrow[cid]&cname=$Mrow[$txt_menu_name]"; $show_px = "<a href='$show_px'><b>$Mrow[$txt_menu_name]</b></a>"; } $_num = 1; if($num2 ==0){ if($_num == 1){ echo "<li>$show_px</il>"; } }else{ if($_num == 1){ ?> <li class="expandable"> <div class="hitarea expandable-hitarea"></div> <?=$show_px?> <? Add_Menu($Mrow["cid"], $_GET["n"], $L, $txt_menu_name, $Mem); } echo "</li>"; } } // End While ?> </ul> </div> </td> </tr> <tr> <td height="5" colspan="2"></td> </tr> </table></td> </tr> </table> <table width="155" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="2"><img src="../images/icon/spx.gif" width="14" height="6" /></td> </tr> </table> <? } ?> <table width="190" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td background="icon/topmenu.jpg"><table width="100%" height="19" border="0" cellpadding="0" cellspacing="0" class="main"> <tr> <td width="8%" height="7"></td> <td width="92%" height="7"><b>Contact Form</b></td> </tr> </table></td> </tr> <tr> <td><img src="icon/topmenu2.jpg" width="190" height="2" /></td> </tr> <tr> <td bgcolor="#f9faff"><table width="100%" border="0" cellpadding="5" cellspacing="0" class="main"> <tr> <td width="8%"> </td> <td width="92%"><a href="addnew_menu.php?cname=Add New Menu"> </a> <table width="100%" border="0" cellpadding="0" cellspacing="0" class="main"> <tr> <td width="9"><img src="icon/b_plus.png" width="9" height="9" /></td> <td> <a href="autoform.php?tb=form_contact&cname=contact">Contact Form</a></td> </tr> </table></td> </tr> </table></td> </tr> </table> <table width="155" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="2"><img src="../images/icon/spx.gif" width="14" height="6" /></td> </tr> </table> <? if(eregi("^0$|^1$|^4$", $_SESSION["level"])){ ?> <table width="190" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td background="icon/topmenu.jpg"><table width="100%" height="19" border="0" cellpadding="0" cellspacing="0" class="main"> <tr> <td width="8%" height="7"><img src="icon/spx.gif" width="14" height="6" /></td> <td width="92%" height="7"><b>Job</b></td> </tr> </table></td> </tr> <tr> <td><img src="icon/topmenu2.jpg" width="190" height="2" /></td> </tr> <tr> <td bgcolor="#f9faff"><table width="100%" border="0" cellpadding="5" cellspacing="0" class="main"> <tr> <td width="8%"> </td> <td width="92%"><a href="addnew_menu.php?cname=Add New Menu"> </a> <table width="100%" border="0" cellpadding="0" cellspacing="0" class="main"> <tr> <td width="9"><img src="icon/b_plus.png" width="9" height="9" /></td> <td> <a href="job.php?cname=Job">Job</a></td> </tr> </table></td> </tr> </table></td> </tr> </table> <table width="155" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="2"><img src="../images/icon/spx.gif" width="14" height="6" /></td> </tr> </table> <? } ?> <table width="190" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td background="icon/topmenu.jpg"><table width="100%" height="19" border="0" cellpadding="0" cellspacing="0" class="main"> <tr> <td width="8%" height="7"><img src="icon/spx.gif" width="14" height="6" /></td> <td width="92%" height="7"><b>System</b></td> </tr> </table></td> </tr> <tr> <td><img src="icon/topmenu2.jpg" width="190" height="2" /></td> </tr> <tr> <td bgcolor="#f9faff"><table width="100%" border="0" cellpadding="5" cellspacing="0" class="main"> <tr> <td width="8%"> </td> <td width="92%"><a href="addnew_menu.php?cname=Add New Menu"> </a> <table width="100%" border="0" cellpadding="0" cellspacing="0" class="main"> <? if(eregi("^0$|^4$", $_SESSION["level"])){ ?> <? } ?> <? if(eregi("^0$|^4$", $_SESSION["level"])){ ?> <tr> <td width="16" valign="top"><a href="addnew_menu.php?cname=Add New Menu"><img src="icon/b_browse.png" width="16" height="16" border="0" align="absmiddle" /></a></td> <td valign="top"> <a href="addnew_menu.php?cname=Add New Menu">Add New Menu</a></td> </tr> <? } ?> <? if(eregi("^0$|^4$", $_SESSION["level"])){ ?> <? } ?> <tr> <td valign="top"><a href="changpw.php"><img src="icon/b_usrlist.gif" width="16" height="16" border="0" align="absmiddle" /></a></td> <td valign="top"> <a href="system.php">My Account</a></td> </tr> <tr> <td valign="top"><a href="index.php?logoff=ok"><img src="icon/s_loggoff.png" width="16" height="16" border="0" align="absmiddle" /></a></td> <td valign="top"> <a href="index.php?logoff=ok">Log Off</a></td> </tr> </table></td> </tr> </table></td> </tr> </table>
1337r0j4n | 13379H0575 53CURI7Y 734M