Mercurial > hg > LGServices
diff src/main/webapp/componentes/template.jsp @ 95:b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
author | Calvin Yeh <cyeh@mpipw-berlin.mpg.com> |
---|---|
date | Mon, 03 Jul 2017 23:48:53 +0200 |
parents | 824b808a7481 |
children | 3706405e9673 |
line wrap: on
line diff
--- a/src/main/webapp/componentes/template.jsp Mon Jul 03 23:43:44 2017 +0200 +++ b/src/main/webapp/componentes/template.jsp Mon Jul 03 23:48:53 2017 +0200 @@ -1,33 +1,33 @@ <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> <jsp:useBean id="sessionBean" class="de.mpiwg.web.jsp.SessionBean" scope="session" /> - -<% if(sessionBean.getMsgList() != null && !sessionBean.getMsgList().isEmpty()) { %> + +<% if(sessionBean.getMsgList() != null && !sessionBean.getMsgList().isEmpty()) { %> <script> $(function() { $( "#msgDialog" ).dialog(); - }); - </script> - + }); + </script> + <div id="msgDialog" title="Message"> <table> <% for(String msg : sessionBean.getMsgList()) { %> <tr><td><label><%=msg %></label></td></tr> <% } %> - </table> + </table> </div> <% sessionBean.resetMsgList(); %> <% } %> - + <script> $(document).ready(function() { $("#loading").hide(); }); - </script> - - + </script> + + <div id="loading">Loading...</div> - + <div id="header"> <div id="logo"> <h1><a href="#"><label class="titelPage">Local Gazetteers Services</label></a></h1> @@ -35,13 +35,13 @@ </div> <div id="login"> <div id="loginContent"> - + <form name="loginForm" action="<%=sessionBean.getApplicationBean().getRootServer()%>/proxy.jsp" method="post" class="contentForm"> - <input name="bean" type="hidden" value="loginBean" /> - + <input name="bean" type="hidden" value="loginBean" /> + <% if(sessionBean.getUser() == null) { %> <table> <tr> @@ -52,7 +52,7 @@ <td> <button value="Submit" onclick="setAction('login', 'loginForm');">Submit</button> </td> - + </tr> </table> <% } else { %> @@ -66,21 +66,18 @@ </table> <% } %> </form> - + </div> </div> - + <div class="menu"> <a href="<%=sessionBean.getApplicationBean().getRootServer()%>/pages/topicList.jsp">Topics</a> <a href="<%=sessionBean.getApplicationBean().getRootServer()%>/pages/home.jsp">Tasks</a> - <!-- + <!-- <a href="<%=sessionBean.getApplicationBean().getRootServer()%>/pages/createFile.jsp" class="current">Create File</a> --> <a href="<%=sessionBean.getApplicationBean().getRootServer()%>/pages/search.jsp">Sections</a> <a href="<%=sessionBean.getApplicationBean().getRootServer()%>/pages/fullTextSearch.jsp">Full Text Search</a> <a href="<%=sessionBean.getApplicationBean().getRootServer()%>/pages/books.jsp">Books</a> - - </div> - - + </div>