summaryrefslogtreecommitdiffstats
blob: 94d287e3c99b0af94517210fa4296cf13dcacbd7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<f:view xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ice="http://www.icesoft.com/icefaces/component"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:fn="http://java.sun.com/jsp/jstl/functions"
	xmlns:pc="http://www.sungard.de/carnot/web/portal-plugin/portalcommon">

	<ice:outputDeclaration doctypeRoot="HTML"
		doctypePublic="-//W3C//DTD HTML 4.01 Transitional//EN"
		doctypeSystem="http://www.w3.org/TR/html4/loose.dtd" />

	<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>

<ice:outputStyle href="/plugins/common/css/nirvanaRime.css" />
<ice:outputStyle href="/plugins/common/css/nirvanaRime-override.css" />
<ice:outputStyle href="/plugins/common/css/nirvanaPortal.css" />
<ice:outputStyle href="/plugins/common/css/portalComponentStyle.css" />

<c:forEach items="#{ippPortalApp.skinFiles}" var="skinFile">
	<ice:outputStyle href="#{skinFile}" />
</c:forEach>

<script>
	function windowLoaded()
	{
		var iFrameId = #{ippPortalUi.perspectiveMenuIframeHandler.iframeId};
		if (iFrameId != '')
		{
			var advanceArgs = #{ippPortalUi.perspectiveMenuIframeHandler.popupArgs};
			advanceArgs.width = document.documentElement.scrollWidth;
			advanceArgs.height = document.documentElement.scrollHeight+0.5;

			var firefox = false;
			if (parent.BridgeUtils)
			{
				firefox = parent.BridgeUtils.Util.isFF();
			}
			else
			{
				firefox = parent.ippPortalMain.InfinityBpm.Core.isFF();
			}
			
				advanceArgs.anchorYAdjustment = advanceArgs.anchorYAdjustment - 24;
	
				if (parent.BridgeUtils)
				{
					parent.BridgeUtils.FrameManager.resizeAndReposition(iFrameId, advanceArgs);
				}
				else
				{
					parent.ippPortalMain.InfinityBpm.ProcessPortal.resizeAndRepositionContentFrame(iFrameId, advanceArgs);
				}
		}
	}
	
	function closePerspective(perspectiveId)
	{
		document.getElementById("perspectiveMenuPopup:perspectiveMenuCloseFlag").value = perspectiveId;
		window.iceSubmitPartial(document.getElementById("perspectiveMenuPopup"), document
				.getElementById("perspectiveMenuPopup:perspectiveMenuCloseFlag"));
		window.setTimeout(function() {parent.EventHub.events.publish("PERSPECTIVE_CHANGED");parent.BridgeUtils.View.syncLaunchPanels();},200);
	}

</script>
</head>
<body style="width: 100%; height: 100%;"
	onLoad="if(windowLoaded){windowLoaded()}">
	<ice:form id="perspectiveMenuPopup">
		<ice:panelGroup>
		<ice:panelGrid columns="1" style="white-space: nowrap;vertical-align: top;border:none;" cellspacing="0" cellpadding="0" styleClass="topMenu">
				<c:forEach items="#{ippPortalUi.perspectiveItems}" var="perspective">
				<ice:panelGroup styleClass="iceMnuItm" style="border-top: none; border-bottom: 1px solid #666666;">
						<ice:commandLink title="#{perspective.title}"
							onclick="closePerspective('#{perspective.id}');">
							<f:param name="perspectiveId" value="#{perspective.id}" />
							<ice:panelGroup style="padding-left:20px;padding-right:10px;">
								<ice:outputText value="#{perspective.value}" />
							</ice:panelGroup>
						</ice:commandLink>
					</ice:panelGroup>
				</c:forEach>
				<ice:inputHidden id="perspectiveMenuCloseFlag" value=""
		  			valueChangeListener="#{ippPortalUi.perspectiveChangeActionListener}"
					partialSubmit="true" immediate="true" />
			</ice:panelGrid>
		</ice:panelGroup>
	</ice:form>
</body>
	</html>
</f:view>