<%-- $Id: TabComponent.jsp,v 1.35.4.15.2.17 2006/05/26 11:21:31 jeyaprakash 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="bannerbox" cellpadding="0" height="10%">

	<tr height="50%"> 
    <td width="125" rowspan="2" valign=middle>
    <img src="/webclient/common/images/<c:out value="${selectedskin}"/>/logo1.gif">
    </td>


    <td colspan="2" height="27" nowrap valign=top align="right" >
    <table border=0 cellspacing=0 cellpadding=2>
    <tr height="27" >
    <td valign=middle>
    <a href="javascript:openWindow('/ChangePassword.do','ChangePassword','450','280')" class="whiteText">
           <fmt:message key='webclient.common.changepassword.link.name'/></a>
       </td>
    <td valign=middle> <span class="whiteText"> | </span>   </td>
    <td valign=middle>
    <a href="javascript:openWindow('/skinSelection.do','SkinSelection','380','220')" class="whiteText">
           <fmt:message key='webclient.common.skinselection.personalise'/></a>
     </td>
     <td valign=middle> <span class="whiteText"> | </span>   </td>
    <td valign=middle>
    <a href="/help/index.html" target="_blank" class="whiteText">
           <fmt:message key='webclient.common.helplink'/></a>
     </td>  
    <td valign=middle> <span class="whiteText"> | </span>   </td>

    <td nowrap > <a class="whiteText" href="/Logout.do" >
    <fmt:message key='webclient.logout.link.name'/></a> </td>  <td nowrap > 
    <a class="whiteText" href="/Logout.do" target="_top"> [ <c:out value="${userName}"/> ]</a> 
    </td>  

    </tr>
    </table>
    </td>
        
	</tr>

	<tr height="50%">  

    <td height="100%" valign="bottom">

    <table border=0 cellspacing="0" cellpadding="2" height="100%" width="600">
    <tr> 

    <c:forEach var="nodeId" items="${Tabs}" varStatus="loopstatus">
    <c:choose>
    <c:when test="${ nodeId == selectedTab }">
    <td class="menuOnBg" nowrap valign="middle" align="center">
    <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="tabTextSel">
    <c:out value="${tabProps[nodeId]}"/></td>
    <td>&nbsp;&nbsp;</td>
    </c:when>

    <c:otherwise>
    <td nowrap class="menuOffBg" valign="middle" align="center">
		<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>&nbsp;&nbsp;</td>
        </c:otherwise>
        </c:choose>
        </c:forEach>
        </tr>
		
		</table>


	</td>
	
	<td align="left" height="100%">
	
		<table align="right" border="0" cellspacing="0" cellpadding="0" height="100%" width="100%">

		<tr>

		<td nowrap align="right"> <%--
    <span class="whiteText">  <c:out value="${userName}"/>    </span>
    <a class="whiteText" href="/Logout.do" target="_top"> [ <fmt:message key='webclient.logout.link.name'/> ] </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> <%-- <span class="whiteText"> | </span> --%>
		        <a href="javascript:void(null)" onClick="feedbackWindow('<c:out value="${requestedURL}"/>')" class="whiteText"> Feedback</a>  
                    </c:if>
		        		</td>
        	</tr>
		</table>

	</td>

	</tr>

</table>
