Mentions légales du service

Skip to content
Snippets Groups Projects
Commit e1be0f5f authored by Guillaume Thomazon's avatar Guillaume Thomazon
Browse files

Add footer menu

parent 62a3b984
Branches
Tags
No related merge requests found
...@@ -102,7 +102,6 @@ public class ChannelManagerBean implements Serializable { ...@@ -102,7 +102,6 @@ public class ChannelManagerBean implements Serializable {
this.responderPort = responderPort; this.responderPort = responderPort;
} }
@SuppressWarnings("rawtypes")
public String startChannel() { public String startChannel() {
if (identity.hasRole("admin_role")) { if (identity.hasRole("admin_role")) {
ConnectionConfig connectionConfig = new ConnectionConfigSimple(getProxyPort(), getResponderIP(), ConnectionConfig connectionConfig = new ConnectionConfigSimple(getProxyPort(), getResponderIP(),
...@@ -155,5 +154,13 @@ public class ChannelManagerBean implements Serializable { ...@@ -155,5 +154,13 @@ public class ChannelManagerBean implements Serializable {
} }
} }
public boolean channelListIsEmpty(){
List<Proxy<?, ?>> lp = proxyBean.getListOfProxies();
if (lp== null || lp.isEmpty()){
return true;
}
return false;
}
} }
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
</s:div> </s:div>
<s:div rendered="#{s:hasRole('admin_role')}"> <s:div rendered="#{s:hasRole('admin_role')}">
<h:panelGrid columns="2"> <h:panelGrid columns="2" rendered="#{channelManagerBean.channelListIsEmpty()==false}">
<a4j:htmlCommandLink <a4j:htmlCommandLink
action="#{channelManagerBean.stopAllChannels()}" action="#{channelManagerBean.stopAllChannels()}"
......
gazelle-proxy-war/src/main/webapp/img/close.gif

159 B

<s:div xmlns="http://www.w3.org/1999/xhtml" <s:div xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html" xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core" xmlns:f="http://java.sun.com/jsf/core"
xmlns:s="http://jboss.com/products/seam/taglib" xmlns:s="http://jboss.com/products/seam/taglib"
xmlns:rich="http://richfaces.org/rich" xmlns:a4j="http://richfaces.org/a4j"
styleClass="footer" xmlns:rich="http://richfaces.org/rich" styleClass="footer" id="footer">
id="footer">
<h:outputFormat value="#{messages['general.footer']}"> <div id="siteInfo" style="background: #EEEEEE;">
<f:param value="${version}"/> <rich:toolBar id="footerMenuToolBar">
</h:outputFormat> <rich:toolBarGroup id="footerLeftToolBarGroup" location="left"
styleClass="form">
<a id="footerMenuAboutLink"
href="javascript:Richfaces.showModalPanel('about',{width:450, top:200})">About</a>
<h:outputText id="footerMenuAboutOutputText" value="|"></h:outputText>
<a id="footerMenuContactUsLink"
href="javascript:Richfaces.showModalPanel('contactUs',{width:450, top:200})">Contact
us</a>
<h:outputText id="footerMenuContactUsOutputText" value="|"
rendered="#{not empty applicationPreferenceManager.getApplicationIssueTrackerUrl()}"></h:outputText>
<a4j:commandLink id="issueTrackeCommandLinkId"
value="#{messages['gazelle.common.IssueTracker']}"
rendered="#{not empty applicationPreferenceManager.getApplicationIssueTrackerUrl()}"
onclick="Richfaces.showModalPanel('issueTracker',{width:450, top:200});" />
<h:outputText id="separatorOutputText" value="|" />
<h:outputText id="copyrightOutputText"
value="Copyright ${build.year} IHE International" />
</rich:toolBarGroup>
<rich:toolBarGroup id="footerRightToolBarGroup" location="right">
<s:div id="footerRightDiv">
<h:form id="locale" action="#{localeSelector.select}">
<s:token allowMultiplePosts="true" />
<h:selectOneMenu value="#{localeSelector.localeString}">
<f:selectItems value="#{localeSelector.supportedLocales}" />
<a4j:support event="onchange"
action="#{userManagerExtraBean.goHome()}" />
</h:selectOneMenu>
</h:form>
</s:div>
</rich:toolBarGroup>
</rich:toolBar>
</div>
<!-- ******************************************* -->
<!-- Modal Panel : About the Proxy -->
<!-- ******************************************* -->
<rich:modalPanel id="about" minHeight="150" minWidth="450" height="300"
width="500" zindex="2000">
<f:facet name="header">
<h:outputText value="About proxy" />
</f:facet>
<f:facet name="controls">
<h:graphicImage alt="close" value="/img/close.gif"
style="cursor:pointer" onclick="Richfaces.hideModalPanel('about')" />
</f:facet>
<h1>
<h:outputText value="Gazelle Proxy" />
</h1>
<h2>
<h:outputText value="IHE - Integrating the Heathcare Enterprise" />
</h2>
<h3>
<i>
<h:outputText value="Changing the way healthcare connects" />
</i>
</h3>
<a href="http://www.ihe.net">
<h:outputText value="www.ihe.net" />
</a>
<p>
<h:outputText value="Proxy version : " />
<h:outputText id="versionDetails" value="${version}" />
</p>
<p>
<h:outputText value="Release date : " />
<h:outputText value="${build.date.full}" />
</p>
<p>
<h:outputText value="Developed for IHE by : " />
<a href="http://www.inria.fr/" target="_blank">
<h:outputText value="INRIA" />
</a>
<h:outputText value="and" />
<a href="http://erl.wustl.edu/" target="_blank">
<h:outputText value="MIR" />
</a>
<h:outputText value="(Saint Louis USA)." />
</p>
<p>
<h:outputText value="Thanks to use this application." />
</p>
<p align="right">
<a href="javascript:Richfaces.hideModalPanel('about')"> <h:outputText
value="Close" />
</a>
</p>
</rich:modalPanel>
<!-- ******************************************* -->
<!-- END :Modal Panel : About the proxy -->
<!-- ******************************************* -->
<!-- ******************************************* -->
<!-- Modal Panel : Contact Us -->
<!-- ******************************************* -->
<rich:modalPanel id="contactUs" minHeight="200" minWidth="400"
height="200" width="420" zindex="2000">
<f:facet name="header">
<h:outputText value="Contact Us..." />
</f:facet>
<f:facet name="controls">
<h:graphicImage alt="close}" value="/img/close.gif"
style="cursor:pointer"
onclick="Richfaces.hideModalPanel('contactUs')" />
</f:facet>
<h1>
<h:outputText value="Gazelle Proxy" />
</h1>
<h2>
<h:outputText value="IHE - Integrating the Heathcare Enterprise" />
</h2>
<h3>
<i>
<h:outputText value="Changing the way healthcare connects" />
</i>
</h3>
<a href="http://www.ihe.net">
<h:outputText value="www.ihe.net" />
</a>
<p></p>
<p>
<h:outputText value="Please email questions to : IHE EU Manager (" />
<a href="mailto:eric.poiseau@inria.fr}">
<h:outputText value="Eric Poiseau" />
</a>
<h:outputText value="), and he will guide you through the process." />
</p>
<p>
<a href="javascript:Richfaces.hideModalPanel('contactUs')">
<h:outputText value="Close" />
</a>
</p>
</rich:modalPanel>
<!-- ******************************************* -->
<!-- END :Modal Panel : Contact Us -->
<!-- ******************************************* -->
</s:div> </s:div>
\ No newline at end of file
...@@ -30,7 +30,9 @@ ...@@ -30,7 +30,9 @@
</s:decorate> </s:decorate>
<ui:insert name="body" /> <ui:insert name="body" />
</div> </div>
<div class="footer"></div> <div class="footer">
<ui:include src="footer.xhtml" />
</div>
</body> </body>
</html> </html>
</f:view> </f:view>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment