Mercurial > hg > LGServer
comparison src/main/webapp/templates/publicTemplate.xhtml @ 0:7682c04c63a8
First commit of the source code!
| author | "jurzua <jurzua@mpiwg-berlin.mpg.de>" |
|---|---|
| date | Tue, 10 Mar 2015 14:50:41 +0100 |
| parents | |
| children | 1f56cf4f80d4 |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:7682c04c63a8 |
|---|---|
| 1 <?xml version='1.0' encoding='UTF-8' ?> | |
| 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
| 3 <html xmlns="http://www.w3.org/1999/xhtml" | |
| 4 xmlns:ui="http://java.sun.com/jsf/facelets" | |
| 5 xmlns:f="http://java.sun.com/jsf/core" | |
| 6 xmlns:h="http://java.sun.com/jsf/html" | |
| 7 xmlns:icecore="http://www.icefaces.org/icefaces/core" | |
| 8 xmlns:ace="http://www.icefaces.org/icefaces/components" | |
| 9 xmlns:ice="http://www.icesoft.com/icefaces/component"> | |
| 10 | |
| 11 | |
| 12 <h:head> | |
| 13 <title>Local Monographs Service</title> | |
| 14 <ice:outputStyle href="#{appBean.rootServer}/resources/css/style.css" /> | |
| 15 <script type="text/javascript" src="#{appBean.rootServer}/resources/js/general.js"/> | |
| 16 </h:head> | |
| 17 | |
| 18 <h:body> | |
| 19 | |
| 20 <h:form id="formDialog"> | |
| 21 <ace:themeSelect value="cupertino"/> | |
| 22 | |
| 23 <ace:dialog id="dialog" | |
| 24 header="Message" | |
| 25 closable="false" | |
| 26 visible="#{!empty sessionBean.msgList}" | |
| 27 modal="true" | |
| 28 draggable="false"> | |
| 29 <h:panelGrid columns="1"> | |
| 30 <ace:dataTable value="#{sessionBean.msgList}" var="msg"> | |
| 31 <ace:column> | |
| 32 <h:outputText value="#{msg}" /> | |
| 33 </ace:column> | |
| 34 </ace:dataTable> | |
| 35 <h:commandButton value="Close" | |
| 36 actionListener="#{sessionBean.listenerCloseMsgPopup}" | |
| 37 style="margin-left: auto;margin-right: auto; width:100%;" | |
| 38 onclick="window.location.reload();"> | |
| 39 </h:commandButton> | |
| 40 </h:panelGrid> | |
| 41 </ace:dialog> | |
| 42 </h:form> | |
| 43 | |
| 44 <div id="header"> | |
| 45 <div id="logo"> | |
| 46 <h1><a href="#"><ice:outputLabel value="Local Gazetter Server"/></a></h1> | |
| 47 </div> | |
| 48 </div> | |
| 49 | |
| 50 <div id="login"> | |
| 51 <div id="loginContent"> | |
| 52 | |
| 53 <ice:form id="loginForm"> | |
| 54 | |
| 55 <h:panelGrid columns="5" rendered="#{sessionBean.user == null}"> | |
| 56 <h:outputLink value="#{appBean.dvnRootServer}/faces/login/AddAccountPage.xhtml">Create Account</h:outputLink> | |
| 57 <ice:outputLabel value="Login"/> | |
| 58 <ice:inputText value="#{sessionBean.userName}"/> | |
| 59 <ice:inputSecret value="#{sessionBean.password}" | |
| 60 actionListener="#{sessionBean.listenerLogin}"/> | |
| 61 <ice:commandButton value="Submit" | |
| 62 actionListener="#{sessionBean.listenerLogin}"> | |
| 63 </ice:commandButton> | |
| 64 </h:panelGrid> | |
| 65 | |
| 66 <h:panelGrid columns="3" rendered="#{sessionBean.user != null}"> | |
| 67 <h:outputText value="Logged in as: #{sessionBean.user.userName}"/> | |
| 68 <h:outputText value=" | "/> | |
| 69 <h:commandLink value="logout" actionListener="#{sessionBean.listenerLogout}"/> | |
| 70 </h:panelGrid> | |
| 71 </ice:form> | |
| 72 | |
| 73 </div> | |
| 74 </div> | |
| 75 | |
| 76 <h:form> | |
| 77 <ace:menuBar autoSubmenuDisplay="true" style="margin: 0 auto; width: 80%;"> | |
| 78 <ace:menuItem value="Home" | |
| 79 url="#{appBean.rootServer}/home/mainPage.xhtml"/> | |
| 80 <ace:menuItem value="Manage Branch" | |
| 81 url="#{appBean.rootServer}/home/branchEditor.xhtml" /> | |
| 82 <ace:menuItem value="Create File" | |
| 83 url="#{appBean.rootServer}/home/createNewFile.xhtml" /> | |
| 84 <ace:menuItem value="Search Section" | |
| 85 url="#{appBean.rootServer}/home/searchPage.xhtml" /> | |
| 86 </ace:menuBar> | |
| 87 </h:form> | |
| 88 | |
| 89 <div id="page"> | |
| 90 <h:panelGrid rendered="#{sessionBean.user != null}" style="width:100%"> | |
| 91 <ui:insert name="content"/> | |
| 92 </h:panelGrid> | |
| 93 <h:panelGrid rendered="#{sessionBean.user == null}" style="width:100%"> | |
| 94 <h:outputLabel value="You must login!"/> | |
| 95 </h:panelGrid> | |
| 96 | |
| 97 </div> | |
| 98 </h:body> | |
| 99 </html> |
