<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ page import="java.util.*" %>
<%! 
    HashMap mapParentModuleIds;
%>
<%
    mapParentModuleIds=(HashMap)session.getAttribute("ParentModuleIds");   
    if(mapParentModuleIds == null)
      response.sendRedirect("<html><body>Error</body></html>");
%>
  
<html:html>
	<HEAD>
		<TITLE>Launch Pad</TITLE>
		<link REL=stylesheet HREF="../INCLUDES/ENRGISE.css">
    <script language="javascript" src="../INCLUDES/ENRGISE.js">
	</HEAD>
<BODY >
<html:form name="LaunchPadActionForm" action="LaunchPad" type="wenrgise.sysadmin.webtier.form.LaunchPadActionForm">
<div id="divPicture" style="position:absolute; left:130px; top:60px; z-index:1"> 
  <img src="SYSADMIN/INCLUDES/IMAGES/LaunchPad1.jpg">
  <div id="divBillingAndCollection" style="position:absolute; left:50px; top:40px; z-index:3">
    <% if(mapParentModuleIds.containsKey("1")){ %>
      <html:image property="butBillingAndCollection" src="SYSADMIN/INCLUDES/IMAGES/butn_BillingAndCollection_act.jpg" disabled="false" />
    <%} else {%>
      <html:image property="butBillingAndCollection" src="SYSADMIN/INCLUDES/IMAGES/butn_BillingAndCollection_dis.jpg" disabled="true" />
    <%}%>
  </div>
  <div id="divAssetManagement" style="position:absolute; left:220px; top:55px; z-index:2"> 
    <% if(mapParentModuleIds.containsKey("2")) {%>
      <html:image property="butAssetManagement" src="SYSADMIN/INCLUDES/IMAGES/butn_AssetManagement_act.jpg" disabled="false" />
    <%} else {%>
      <html:image property="butAssetManagement" src="SYSADMIN/INCLUDES/IMAGES/butn_AssetManagement_dis.jpg" disabled="true" />
    <%}%>
  </div>
  <div id="divGeneralLedger" style="position:absolute; left:330px; top:55px; z-index:2"> 
    <% if(mapParentModuleIds.containsKey("3")) {%>
      <html:image property="butGeneralLedger"  src="SYSADMIN/INCLUDES/IMAGES/butn_GeneralLedger_act.jpg" onclick="doSubmit(3)" disabled="false" />  
    <%} else {%>
      <html:image property="butGeneralLedger"  src="SYSADMIN/INCLUDES/IMAGES/butn_GeneralLedger_dis.jpg" onclick="doSubmit(3)" disabled="act" />
    <%}%>
  </div>
  <div id="divPayrollAccounting" style="position:absolute; left:500px; top:40px;z-index:2"> 
    <% if(mapParentModuleIds.containsKey("5")) {%>
      <html:image property="butPayrollAccounting"  src="SYSADMIN/INCLUDES/IMAGES/butn_PayrollAccounting_act.jpg" onclick="doSubmit(5)" disabled="false" />    
    <%} else {%>
      <html:image property="butPayrollAccounting"  src="SYSADMIN/INCLUDES/IMAGES/butn_PayrollAccounting_dis.jpg" onclick="doSubmit(5)" disabled="true>" />    
    <%}%>
  </div>
  <div id="divOperationAndMaintainance" style="position:absolute; left:80px; top:220px;; z-index:2"> 
     <% if(mapParentModuleIds.containsKey("6")) {%>
       <html:image property="butOperationAndMaintainance"  src="SYSADMIN/INCLUDES/IMAGES/butn_OperationAndMaintainance_act.jpg" onclick="doSubmit(6)"  disabled="false" />
     <%} else {%>
       <html:image property="butOperationAndMaintainance"  src="SYSADMIN/INCLUDES/IMAGES/butn_OperationAndMaintainance_dis.jpg" onclick="doSubmit(6)"  disabled="true" />
     <%}%>
     </div>
  <div id="divHumanResourceManagement" style="position:absolute; left:280px; top:220px; z-index:2"> 
     <% if(mapParentModuleIds.containsKey("7")) {%>
        <html:image property="butHumanResourceManagement"  src="SYSADMIN/INCLUDES/IMAGES/butn_HumanResourceManagement_act.jpg" onclick="doSubmit(7)" disabled="false" />
     <%} else {%>
        <html:image property="butHumanResourceManagement"  src="SYSADMIN/INCLUDES/IMAGES/butn_HumanResourceManagement_dis.jpg" onclick="doSubmit(7)" disabled="true" />
     <%}%>
      </div>
  <div id="divSystemAdministration" style="position:absolute; left:500px; top:220px;  z-index:2"> 
     <% if(mapParentModuleIds.containsKey("4")) {%>
         <html:image property="butSystemAdministration"   src="SYSADMIN/INCLUDES/IMAGES/butn_SystemAdministration_act.jpg" onclick="doSubmit(4)" />
     <%} else {%>
         <html:image property="butSystemAdministration"   src="SYSADMIN/INCLUDES/IMAGES/butn_SystemAdministration_dis.jpg"  />
     <%}%>
    </div>
   <div id="divInventoryManagement" style="position:absolute; left:223px;top:330px;z-index:2"> 
     <% if(mapParentModuleIds.containsKey("8")) {%>
         <html:image property="butInventoryManagement"  src="SYSADMIN/INCLUDES/IMAGES/butn_InventoryManagement_act.jpg" onclick="doSubmit(8)" disabled="false" />
      <%} else {%>
         <html:image property="butInventoryManagement"  src="SYSADMIN/INCLUDES/IMAGES/butn_InventoryManagement_dis.jpg" onclick="doSubmit(8)" disabled="true" />
      <%}%>
    </div>
  <div id="divPurchaseManagement" style="position:absolute;left:337px;top:330px;z-index:2"> 
     <% if(mapParentModuleIds.containsKey(new Integer(9))) {%>
         <html:image property="butPurchaseManagement"  src="SYSADMIN/INCLUDES/IMAGES/butn_PurchaseManagement_act.jpg" onclick="doSubmit(9)" disabled="false" />
     <%} else {%>
         <html:image property="butPurchaseManagement"  src="SYSADMIN/INCLUDES/IMAGES/butn_PurchaseManagement_dis.jpg" onclick="doSubmit(9)" disabled="true" />  
     <%}%>
  </div>
  <div id="divInventoryAccounting" style="position:absolute;left:280px;top:390px;z-index:2"> 
    <% if(mapParentModuleIds.containsKey("10")) {%>
         <html:image property="butInventoryAccounting"  src="SYSADMIN/INCLUDES/IMAGES/butn_InventoryAccounting_act.jpg" onclick="doSubmit(10)" disabled="false"/>
    <%} else {%>
         <html:image property="butInventoryAccounting"  src="SYSADMIN/INCLUDES/IMAGES/butn_InventoryAccounting_dis.jpg" onclick="doSubmit(10)" disabled="true"/>
    <%}%>
    </div>
  <div id="divExit" style="position:absolute; left:500px;top:385px;z-index:2"> 
    <html:image property="butExit" src="SYSADMIN/INCLUDES/IMAGES/butn_ExitLaunchPad.jpg" onclick="doSubmit()" disabled="false" />
  </div>
  <div id="divProblemTrackingAndMaintainance" style="position:absolute;left:280px;top:445px;z-index:2;disabled:true"> 
    <% if(mapParentModuleIds.containsKey("11")) {%>
          <html:image property="butProblemTrackingAndMaintainance" src="SYSADMIN/INCLUDES/IMAGES/butn_ProblemTrackingAndMaintainance_act.jpg" onclick="doSubmit(11)" disabled="false" />
    <%} else {%>
          <html:image property="butProblemTrackingAndMaintainance" src="SYSADMIN/INCLUDES/IMAGES/butn_ProblemTrackingAndMaintainance_dis.jpg" onclick="doSubmit(11)" disabled="true" />
    <%}%>
     </div>  
</div>
<html:hidden property="parentModuleId" />
</html:form>
</BODY>
</html:html>


<script language="javascript">
function doSubmit(ModId){
  document.forms[0].parentModuleId.value=ModId;
  document.forms[0].submit();
}
</script>