Edit D:\app\Administrator\product\11.2.0\dbhome_1\oc4j\j2ee\oc4j_applications\applications\em\em\sdk\homeInclude.jspf
<%@ page import='java.util.Map' %> <%@ page import='java.util.List' %> <%@ page import='java.util.Iterator' %> <%@ taglib uri="http://xmlns.oracle.com/oem/jsp/tag" prefix="oem" %> <homeuix:renderingContext id="renderingContext"><homeoem:setURLEncoder id="renderingContext"/> <homeuix:bundle name="sdkMsg" class="oracle.sysman.emSDK.eml.SDKUIMsg"/> <homeuix:dataScope currentDataBinding="viewModel@servletRequest" > <homeuix:document> <%@ include file="/enablePPR.jspf" %> <%@ include file="/oemTitle.jspf" %> <homeuix:body> <homeuix:pageLayout> <%@ include file="/oemGlobal.jspf" %> <homeuix:messages> <homeuix:messageBox messageType="confirmation" messageBinding="updateSucceededMessage@servletRequest" renderedBinding="updateResult@servletRequest"> </homeuix:messageBox> </homeuix:messages> <homeuix:header textBinding="targetDisplayName"> <homeuix:tableLayout width="100%" renderedBinding="showPageLevelTimestamp" > <homeuix:rowLayout hAlign="right"> <homeuix:cellFormat> <homeuix:rowLayout> <homeuix:styledText styleClass="OraTipText" textBinding="PAGE_REFRESHED_TIME@sdkMsg"/> <homeuix:spacer width="4"/> <homeuix:styledText styleClass="OraTipLabel" textBinding="lastUpdateTime"/> <homeuix:spacer width="4"/> <homeuix:button textBinding="REFRESH@sdkMsg" destinationBinding="refreshLink" shortDescBinding="REFRESH@sdkMsg"/> </homeuix:rowLayout> </homeuix:cellFormat> </homeuix:rowLayout> </homeuix:tableLayout> <homeuix:contents> <homeuix:ref refID="topTabBar" /> <homeuix:stackLayout> <% if(request.getAttribute("postHeaderPlugin") != null) { %> <homeuix:ref refID="postHeaderPlugin" /> <% } %> <homeuix:tableLayout width="100%"> <homeuix:rowLayout vAlign="top"> <homeuix:cellFormat width="50%"> <homeuix:header textBinding="GENERAL@sdkMsg"> <homeuix:borderLayout> <homeuix:tableLayout width="100%" hAlign="left" > <homeuix:rowLayout> <homeuix:cellFormat vAlign="top" hAlign="left" > <homeuix:tableLayout hAlign="left" > <%-- unfortunately, the only way to do iterate over a list is to either use a JSTL tag, create a custom tag, or use this code. If it will be a while before we start using JSTL, we should put this in a custom iterator --%> <% java.util.List metricsList = (java.util.List)request.getAttribute("generalMetrics"); if (metricsList != null) { for (java.util.Iterator i=metricsList.iterator(); i.hasNext(); ) { java.util.Map map = (Map)i.next(); String name = (String)map.get("name"); String value = (String)map.get("value"); String link = (String)map.get("link"); String style = (String)map.get("style"); Boolean buttonVisible = (Boolean)map.get("buttonVisible"); String buttonLabel = (String)map.get("buttonLabel"); String buttonLink = (String)map.get("buttonLink"); Boolean ohmetrickey = (Boolean)map.get("ohexists"); Boolean isStopBlackout = (Boolean)map.get("isStopBlackout"); Boolean isCreateBlackout = (Boolean)map.get("isCreateBlackout"); String blackoutsLinkDest = (String)map.get("blackoutsLinkDest"); if (link == null) { %> <homeuix:rowLayout> <homeuix:cellFormat hAlign="right"> <homeuix:styledText text="<%=name%>" styleClass="OraPromptText"/> </homeuix:cellFormat> <homeuix:spacer width="8"/> <homeuix:cellFormat wrappingDisabled="true"> <homeuix:flowLayout> <homeuix:styledText styleClass="<%=style%>" text="<%=value%>" /> <homeuix:spacer width="5" /> <homeuix:button rendered="<%=buttonVisible%>" text="<%=buttonLabel%>" destination="<%=buttonLink%>" /> <%-- Begin Blackouts Links --%> <homeuix:spacer width="5"/> <oem:license> <homeuix:button textBinding="END_BLACKOUT@sdkMsg" shortDescBinding="END_BLACKOUT@sdkMsg" destination="<%=blackoutsLinkDest%>" rendered="<%=isStopBlackout%>"/> </oem:license> <oem:license> <homeuix:button textBinding="CREATE_BLACKOUT@sdkMsg" shortDescBinding="CREATE_BLACKOUT@sdkMsg" destination="<%=blackoutsLinkDest%>" rendered="<%=isCreateBlackout%>"/> </oem:license> <%-- End Blackouts Links --%> </homeuix:flowLayout> </homeuix:cellFormat> </homeuix:rowLayout> <% } else { %> <homeuix:rowLayout> <homeuix:cellFormat hAlign="right"> <homeuix:styledText text="<%=name%>" styleClass="OraPromptText"/> </homeuix:cellFormat> <homeuix:spacer width="8"/> <homeuix:cellFormat wrappingDisabled="true"> <homeuix:flowLayout> <oem:license> <homeuix:link text="<%=value%>" destination="<%=link%>" /> </oem:license> <%if (ohmetrickey != null && ohmetrickey.booleanValue() ) { %> <homeuix:spacer width="5" /> <homeuix:image renderedBinding="hasAdvisory@servletRequest" source="/em/images/warning.gif" shortDescBinding="PATCHADV_WARNING@hostBundle@servletRequest"/> <% } %> <homeuix:spacer width="5" /> <homeuix:button rendered="<%=buttonVisible%>" text="<%=buttonLabel%>" destination="<%=buttonLink%>" /> </homeuix:flowLayout> </homeuix:cellFormat> </homeuix:rowLayout> <% } } } %> </homeuix:tableLayout> </homeuix:cellFormat> </homeuix:rowLayout> </homeuix:tableLayout> <homeuix:left> <homeuix:image sourceBinding="statusImage" shortDescBinding="statusImageDesc@servletRequest"/> </homeuix:left> </homeuix:borderLayout> </homeuix:header> </homeuix:cellFormat> <homeuix:cellFormat width="50%"> <homeuix:ref refID="homePlugin" /> </homeuix:cellFormat> </homeuix:rowLayout> </homeuix:tableLayout> <% java.lang.Object otherPlugin = request.getAttribute("homeOtherPlugin"); if (otherPlugin != null) { %> <homeuix:tableLayout width="100%"> <homeuix:rowLayout vAlign="top"> <homeuix:cellFormat width="100%"> <homeuix:ref refID="homeOtherPlugin" /> </homeuix:cellFormat> </homeuix:rowLayout> </homeuix:tableLayout> <% } %> <homeuix:ref refID="AlertsTables" /> <%-- New Policies section integration --%> <uix:include nodeBinding="policyNode@servletRequest"/> <%-- New Security section integration --%> <uix:include nodeBinding="secPolicyNode@servletRequest"/> <%-- Configuration links (will be null unless plug-in installed) --%> <uix:include nodeBinding="configNode@servletRequest"/> <% java.util.List relatedLinks = (java.util.List)request.getAttribute("relatedLinks"); if (relatedLinks != null && relatedLinks.size() > 0) { int len = relatedLinks.size(); %> <homeuix:tableLayout width="100%"> <homeuix:rowLayout vAlign="top"> <homeuix:cellFormat width="100%"> <homeuix:header textBinding="RELATED_LINKS@sdkMsg"> <homeuix:tableLayout width="100%"> <homeuix:rowLayout width="100%" vAlign="top"> <homeuix:cellFormat width="33%"> <homeuix:stackLayout> <% for (int i = 0; i < len ; i++) { if (i%3 != 0) continue; java.util.Map map = (java.util.Map) relatedLinks.get(i); String name = (String)map.get("name"); String desc = (String)map.get("desc"); String link = (String)map.get("link"); %> <homeoem:license> <homeuix:link text="<%=name%>" shortDesc="<%=desc%>" destination="<%=link%>" /> </homeoem:license> <% } // end for %> </homeuix:stackLayout> </homeuix:cellFormat> <homeuix:spacer width="20" /> <homeuix:cellFormat width="33%"> <homeuix:stackLayout> <% for (int i = 0; i < len ; i++) { if (i%3 != 1) continue; java.util.Map map = (java.util.Map) relatedLinks.get(i); String name = (String)map.get("name"); String desc = (String)map.get("desc"); String link = (String)map.get("link"); %> <homeoem:license> <homeuix:link text="<%=name%>" shortDesc="<%=desc%>" destination="<%=link%>" /> </homeoem:license> <% } // end for %> </homeuix:stackLayout> </homeuix:cellFormat> <homeuix:spacer width="20" /> <homeuix:cellFormat width="33%"> <homeuix:stackLayout> <% for (int i = 0; i < len; i++) { if (i%3 != 2) continue; java.util.Map map = (java.util.Map) relatedLinks.get(i); String name = (String)map.get("name"); String desc = (String)map.get("desc"); String link = (String)map.get("link"); %> <homeoem:license> <homeuix:link text="<%=name%>" shortDesc="<%=desc%>" destination="<%=link%>" /> </homeoem:license> <% } // end for %> </homeuix:stackLayout> </homeuix:cellFormat> </homeuix:rowLayout> </homeuix:tableLayout> </homeuix:header> </homeuix:cellFormat> </homeuix:rowLayout> </homeuix:tableLayout> <% } // end if(relatedLinks != null) %> <homeuix:spacer height="10" /> </homeuix:stackLayout> <homeuix:ref refID="bottomTabBar" /> </homeuix:contents> </homeuix:header> </homeuix:pageLayout> </homeuix:body> </homeuix:document> </homeuix:dataScope> </homeuix:renderingContext>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de