Hacked By AnonymousFox

Current Path : C:/AppServ/www/new_msd1/webengine/mod_dmenu/
Upload File :
Current File : C:/AppServ/www/new_msd1/webengine/mod_dmenu/loadmenuhome_green.php

<?
function loadMenu($myParentID,$myMID,$myUpperLayerName) {
	global $System_DataBase_Name,$System_Session_Level;
	include("../../webengine/mod_dmenu/config.php");
	$myHideAll ="";
	?>
	<div id="idDropMenu<?=$myUpperLayerName?>" style="position:absolute; <? if($myMID==8) { echo "left:145px; top:0px; width:170px; height:1px; z-index:1; display:none;"; } else { echo "left:165px; top:0px; width:170px; height:18px; z-index:1; display:none;"; }?>" onMouseOver="showDropMenu(<?=($myMID+1)?>)" onMouseOut="countdownClose()">
	<?
	$sql = "SELECT * FROM ".$myModule_Table1." WHERE ".$myModule_Table1."_ParentID=".$myParentID." AND ".$myModule_Table1."_MID='$myMID' AND ".$myModule_Table1."_Status='Enable' ORDER BY ".$myModule_Table1."_Ordering ASC ";
	$Query=MYSQL_DB_QUERY($System_DataBase_Name,$sql) OR DIE("Error: เกิดความผิดพลาด <br>$sql<br>\n");
	$RecordCount=MYSQL_NUMROWS($Query);
	?>
	<? if( ($myParentID==0 && $myMID==8) || $RecordCount==0) { } else { ?>
	<table width="100%" border="0" cellpadding="0" cellspacing=1 bgcolor="#000000">
	<tr><td bgcolor="#079900">
	<? } ?>
	<?
	$MaxOrder =$RecordCount;
	if($RecordCount>0) {
		$index=1;
		while($index<$RecordCount+1) {
			$Row=MYSQL_FETCH_ARRAY($Query);
			$sql1 = "SELECT * FROM ".$myModule_Table1." WHERE ".$myModule_Table1."_ParentID =".$Row[$myModule_Table1."_ID"]." AND ".$myModule_Table1."_MID='$myMID' AND ".$myModule_Table1."_Status='Enable'  ORDER BY ".$myModule_Table1."_Ordering ASC ";
			$Query1=MYSQL_DB_QUERY($System_DataBase_Name,$sql1) OR DIE("Error: เกิดความผิดพลาด <br>$sql<br>\n");
			$RecordCount1=MYSQL_NUMROWS($Query1);
			if($RecordCount1>0) {
				$myHideAll .= "document.getElementById('idDropMenu".$myUpperLayerName."_".$Row[$myModule_Table1."_ID"]."').style.display='none'; "; 
			}
			?>
			<? if( ($myParentID==0 && $myMID==8) || $RecordCount==0) { } else { ?>
			<? if($index>1) { ?>
			<table width="100%" height="1" border="0" cellpadding="0" cellspacing="0" bgcolor="#0EA501">
			<tr>
			<td height="1" align="center"><img src="../../images/templates/green-menu-indent.gif" width="149" height="1"></td>
			</tr>
			</table>
			<? } ?>
			<table width="100%" height="20" border="0" cellpadding="0" cellspacing="0"  bgcolor="#0EA501">
			<tr onMouseOver="this.style.background='#24CD15'; style.cursor='hand'; 
				menuHideAll<?=$myUpperLayerName?>();
			<? if($RecordCount1>0) { ?>
				document.getElementById('idDropMenu<?=$myUpperLayerName."_".$Row[$myModule_Table1."_ID"]?>').style.display=''; 
				document.getElementById('idDropMenu<?=$myUpperLayerName."_".$Row[$myModule_Table1."_ID"]?>').style.top='<?=(($index-1)*21)+10?>'; 
			<? } ?>
				"  onMouseOut="this.style.background=''; " onClick="
with(document.myMenuForm) {
	SystemMenuID.value=1; 
	<?
	if($Row[$myModule_Table1."_ModuleType"]=="Link") {
		?>
		action='<?=$Row[$myModule_Table1."_URL"]?>'; 
		target='<?=$Row[$myModule_Table1."_Target"]?>';
		submit();
		<?
	} else if($Row[$myModule_Table1."_ModuleType"]=="Not Define") {
		// do not thing
	} else {
		?>
		SystemModuleKey.value='<?=$Row[$myModule_Table1."_ID"]?>'; 
		action='<?=$myModulePathWeb[$Row[$myModule_Table1."_ModuleType"]]?>'; 
		target='<?=$Row[$myModule_Table1."_Target"]?>';
		submit();
		<?
	}
	?>
}
					"> 
			<td width="14" align="center"><img src="../../webengine/images/bullet/sidemenu_bullet.gif" width="9" height="10" vspace="2" hspace="2"></td>
			<td><font color="#FFFFFF"><?=$Row[$myModule_Table1."_Name"]?></font></td>
			<td width="11" align="center"><?
			if($RecordCount1>0) {
				?><img src="../../webengine/images/bullet/arrow-nextmenu.gif" width="4" height="7" border="0" vspace="4"><?
			} else {
				echo "&nbsp;";
			}
			?></td>
			</tr>
			</table>
			<? } ?>
			<?
			if($RecordCount1>0) {
				loadMenu($Row[$myModule_Table1."_ID"],$myMID,$myUpperLayerName."_".$Row[$myModule_Table1."_ID"]);
			}
		   $index++;
		}
	}
	?>
	<SCRIPT LANGUAGE="JavaScript">
	<!--
	function menuHideAll<?=$myUpperLayerName?>() {
		<?= $myHideAll ?>
	}
	//-->
	</SCRIPT>
	<? if( ($myParentID==0 && $myMID==8) || $RecordCount==0) { } else { ?>
	</td></tr></table>
	<? }  ?>
	</div>
	<?
}

function loadMenu8($myParentID,$myMID,$myUpperLayerName) {
	global $System_DataBase_Name,$System_Session_Level;
	include("../../webengine/mod_dmenu/config.php");
	?>
	<table width="149" border="0" cellspacing="0" cellpadding="0">
	<tr>
	<td><img src="../../images/templates/green-main1.gif" width="149" height="27"></td>
	</tr>
	<tr>
	<td bgcolor="#079900"   onMouseOver="showDropMenu(9)" onMouseOut="countdownClose()"> 
      <?
$sql = "SELECT * FROM ".$myModule_Table1." WHERE ".$myModule_Table1."_ParentID=".$myParentID." AND ".$myModule_Table1."_MID='$myMID' AND ".$myModule_Table1."_Status='Enable' ORDER BY ".$myModule_Table1."_Ordering ASC ";
$Query=MYSQL_DB_QUERY($System_DataBase_Name,$sql) OR DIE("Error: เกิดความผิดพลาด <br>$sql<br>\n");
$RecordCount=MYSQL_NUMROWS($Query);
$MaxOrder =$RecordCount;
if($RecordCount>0) {
	$index=1;
	while($index<$RecordCount+1) {
		$Row=MYSQL_FETCH_ARRAY($Query);
		$sql1 = "SELECT * FROM ".$myModule_Table1." WHERE ".$myModule_Table1."_ParentID =".$Row[$myModule_Table1."_ID"]." AND ".$myModule_Table1."_MID='$myMID' AND ".$myModule_Table1."_Status='Enable' ORDER BY ".$myModule_Table1."_Ordering ASC ";
		$Query1=MYSQL_DB_QUERY($System_DataBase_Name,$sql1) OR DIE("Error: เกิดความผิดพลาด <br>$sql<br>\n");
		$RecordCount1=MYSQL_NUMROWS($Query1);
		?>
      <? if($index>1) { ?>
      <table width="100%" height="1" border="0" cellpadding="0" cellspacing="0" bgcolor="#0EA501">
        <tr> 
          <td height="1" align="center"><img src="../../images/templates/green-menu-indent.gif" width="149" height="1"></td>
        </tr>
      </table>
      <? } ?>
			<table width="100%" height="20" border="0" cellpadding="0" cellspacing="0"  bgcolor="#0EA501">
			<tr onMouseOver="this.style.background='#24CD15'; style.cursor='hand'; 
				menuHideAll<?=$myUpperLayerName?>();
			<? if($RecordCount1>0) { ?>
				document.getElementById('idDropMenu<?=$myUpperLayerName."_".$Row[$myModule_Table1."_ID"]?>').style.display=''; 
				document.getElementById('idDropMenu<?=$myUpperLayerName."_".$Row[$myModule_Table1."_ID"]?>').style.top='<?=(($index-1)*21)+10?>'; 
			<? } ?>
				"  onMouseOut="this.style.background=''; " onClick="
with(document.myMenuForm) {
	SystemMenuID.value=1; 
	<?
	if($Row[$myModule_Table1."_ModuleType"]=="Link") {
		?>
		action='<?=$Row[$myModule_Table1."_URL"]?>'; 
		target='<?=$Row[$myModule_Table1."_Target"]?>';
		submit();
		<?
	} else if($Row[$myModule_Table1."_ModuleType"]=="Not Define") {
		// do not thing
	} else {
		?>
		SystemModuleKey.value='<?=$Row[$myModule_Table1."_ID"]?>'; 
		action='<?=$myModulePathWeb[$Row[$myModule_Table1."_ModuleType"]]?>'; 
		target='<?=$Row[$myModule_Table1."_Target"]?>';
		submit();
		<?
	}
	?>
}
					"> 
					<td width="14" align="center"><img src="../../webengine/images/bullet/sidemenu_bullet.gif" width="9" height="10" vspace="2" hspace="2"></td>
					<td><font color="#FFFFFF"><?=$Row[$myModule_Table1."_Name"]?></font><? if($Row[$myModule_Table1."_NewStatus"]=="Yes"){ ?>&nbsp;<img src="../../images/icon/icon_new_red.gif"><? }?></td>
					<td width="11" align="center"><?
					if($RecordCount1>0) {
						?><img src="../../webengine/images/bullet/arrow-nextmenu.gif" width="4" height="7" border="0" vspace="4"><?
					} else {
						echo "&nbsp;";
					}
					?></td>
                    </tr>
                  </table>
			      <?
		   $index++;
		}
	}
?>
	       </td>
              </tr>
              <tr>
                <td><img src="../../images/templates/green-main2.gif" width="149" height="8"></td>
              </tr>
      </table>
	<?
}

?>

Hacked By AnonymousFox1.0, Coded By AnonymousFox