<%-- $Id: TabComponent.jsp,v 1.35.4.15 2004/05/12 11:41:09 ragoubady Exp $ --%>

<%@page contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
<%@include file="/webclient/common/jspf/feedbackValidation.jspf" %>
<%@include file="/webclient/common/jspf/commonIncludes.jspf" %>

<SCRIPT LANGUAGE="JavaScript1.2" SRC="/webclient/common/js/LoadPageScript.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript1.2" SRC="/webclient/common/js/treeSelection.js"></SCRIPT>

<table width="99%" border=0 cellspacing="0" class="tabsBg" cellpadding="0">

	<tr height="37"> 
	        <td width="125" rowspan="2" valign=top><img src="/webclient/common/images/<c:out value="${selectedskin}"/>/logo1.gif"></td>
	        <td colspan="2" align="right" class="textSmall">
		<fmt:message key='webclient.common.user.name'><fmt:param value="${userName}"/></fmt:message>&nbsp;&nbsp;[ <a href="/Logout.do" target="_top"><fmt:message key='webclient.logout.link.name'/></a> ]
	        </td>
	</tr>

	<tr height="23">
      
        <td>
        
	        <table border=0 cellspacing="0" cellpadding="0">
		         
		<tr> 
	              <c:forEach var="nodeId" items="${Tabs}" varStatus="loopstatus">
	              <c:choose>
	              <c:when test="${ nodeId == selectedTab }">
		<td  height="23" width="14" class="tabSelectedBeg">&nbsp;</td>
		
		<td class="tabSelectedBg"><span class="tabTextSel"><c:out value="${tabProps[nodeId]}"/></span></td>
		
		<td width="14" class="tabSelectedEnd">&nbsp;</td>
	                </c:when>
	                <c:otherwise>
		<td width="14" class="tabUnselectedBeg">&nbsp;</td>
		
		<td nowrap class="tabUnselectedBg">

		<c:url var="link" value="${tabIdVsselectedURL[nodeId]}">
		   <c:param name="selectedTab" value="${nodeId}"/>
		   <c:param name="viewId" value="${selectedIds[nodeId]}"/>
		   <c:param name="displayName" value="${tabIdVsselectedNames[nodeId]}"/>
		</c:url>
			  <a href='<c:out value="${link}"/>' class="tabTextUnsel" nowrap><c:out value="${tabProps[nodeId]}"/></a>
		</td>
              
		<td width="14" class="tabUnselectedEnd">&nbsp;</td>
			</c:otherwise>
		      </c:choose>
		    </c:forEach>
		</tr>
		
		</table>
	</td>
	
	<td align="left" width="25%" >
	
		<table align="right" border="0" cellspacing="0" cellpadding="2">
		
		<tr>
		<td>
		<a href="javascript:openWindow('/fault/accPanel.do','AlarmSummary','450','370')"><img src="/webclient/common/images/alarmsummary.gif" border="0"></a>
		</td>
		<td>
		<a href="javascript:openWindow('/fault/accPanel.do','AlarmSummary','450','370')" class="textSmall"><fmt:message key='webclient.fault.alarm.accpanel.piechart.title'/></a>&nbsp;&nbsp;&nbsp;
		</td>
		<td>
            		<a href="javascript:openWindow('/skinSelection.do','SkinSelection','380','220')" class="textSmall"> <fmt:message key='webclient.common.skinselection.personalise'/></a><span class="textSmall"> | </span>
            		<a href="/help/index.html" target="_blank" class=textSmall><fmt:message key='webclient.common.helplink'/></a>
		        <c:if test="${initParam.useInstantFeedback == 'true'}">
		        <c:url var="requestedURL" value="${pageContext.request.requestURL}">
		        <c:param name="parameters" value="[${pageContext.request.queryString}]"/>
		        </c:url>
		        <a href="javascript:void(null)" onClick="feedbackWindow('<c:out value="${requestedURL}"/>')" class="textSmall"> Feedback</a> <span class="textSmall"> | </span> 
		        </c:if>
		        		</td>
        	</tr>
		</table>
	</td>
	</tr>
</table>
