header.jsp 2.55 KB
<%@ page language="java" %>
<%@ taglib uri="keep/tags/KeepTags.tld" prefix="KEEP" %>
<%@ page import="pt.keep.metarepository.core.configuration.*" %>
<%@ page import="pt.keep.metarepository.core.localization.*" %>
<% String lang = LocalizationFetcher.getLocaleString(request,response); %>
<%
String url = request.getRequestURL().toString();
String query="";
for(Object param : request.getParameterMap().keySet()){
	if(!((String)param).equals("locale")){
		query="&amp;"+(String)param+"="+request.getParameter((String)param)+query;
	}
}
String menu1 = "mnu1";
String menu2 = "mnu2";
String menu3 = "mnu3";
String menu4 = "mnu4";
if (url.contains("/search.jsp")) menu2 += "-sel";
else if (url.contains("/directory.jsp")) menu3 += "-sel";
else if (url.contains("/help.jsp")) menu4 += "-sel";
%>
		<div id="top" class="floatBox">
			<div id="logo">
				<a href="<KEEP:url url='/' />" name="topo"><img src="_img/logotipo_rcaap2.png" width="380" height="122" alt="<KEEP:lang lang='<%=lang %>' key='webui.header.rcaap.logo.label' />" /></a>
			</div>
			<span class="topLinks">
				<span><a href="<%=url %>?locale=<KEEP:otherLanguage lang='<%=lang %>' /><%=query %>" title="<KEEP:langLabel lang='<%=lang %>' />"><KEEP:langLabel lang='<%=lang %>' /></a></span> 
				<a href="mailto:<KEEP:property defaultValue='' key='general.info.mail'/>" title="<KEEP:lang lang='<%=lang %>' key='webui.header.contact.us.label' />"><KEEP:lang lang='<%=lang %>' key='webui.header.contact.us' /></a>
			</span>
			<ul id="menu" class="floatLeft">
				<li class="<%=menu1 %>"><a href="<KEEP:url url='/' />" title="<KEEP:lang lang='<%=lang %>' key='webui.header.home.label' />"><KEEP:lang lang='<%=lang %>' key='webui.header.home' /></a></li>
				<li class="<%=menu2 %>"><a href="<KEEP:url url='/search.jsp' />" title="<KEEP:lang lang='<%=lang %>' key='webui.header.advanced.label' />"><KEEP:lang lang='<%=lang %>' key='webui.header.advanced' /></a></li>
				<li class="<%=menu3 %>"><a href="<KEEP:url url='/directory.jsp' />" title="<KEEP:lang lang='<%=lang %>' key='webui.header.browse.rcaap.label' />"><KEEP:lang lang='<%=lang %>' key='webui.header.browse.rcaap' /></a></li>
				<li class="<%=menu4 %>"><a href="<KEEP:url url='/help.jsp' />" title="<KEEP:lang lang='<%=lang %>' key='webui.header.how.to.use.label' />"><KEEP:lang lang='<%=lang %>' key='webui.header.how.to.use' /></a></li>
			</ul>
			<span class="rssLinkBox">
				<a href="<KEEP:url url="" /><%=Constants.RSS_LINK %>" title="<KEEP:lang lang='<%=lang %>' key='webui.header.rss.label' />"><KEEP:lang lang='<%=lang %>' key='webui.header.rss' /></a>
			</span>
		</div>