Mercurial > hg > LGServices
annotate src/main/webapp/componentes/template2.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 | |
| children | 3706405e9673 |
| rev | line source |
|---|---|
|
95
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
1 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
2 <jsp:useBean id="sessionBean" class="de.mpiwg.web.jsp.SessionBean" scope="session" /> |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
3 |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
4 <% if(sessionBean.getMsgList() != null && !sessionBean.getMsgList().isEmpty()) { %> |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
5 <script> |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
6 $(function() { |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
7 $( "#msgDialog" ).dialog(); |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
8 }); |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
9 </script> |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
10 |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
11 <div id="msgDialog" title="Message"> |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
12 <table> |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
13 <% for(String msg : sessionBean.getMsgList()) { %> |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
14 <tr><td><label><%=msg %></label></td></tr> |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
15 <% } %> |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
16 </table> |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
17 </div> |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
18 <% sessionBean.resetMsgList(); %> |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
19 <% } %> |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
20 |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
21 <script> |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
22 $(document).ready(function() { |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
23 $("#loading").hide(); |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
24 }); |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
25 |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
26 </script> |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
27 |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
28 |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
29 <div id="loading">Loading...</div> |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
30 |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
31 <div id="header"> |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
32 <div id="logo"> |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
33 <h1><a href="#"><label class="titelPage">Local Gazetteers Services</label></a></h1> |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
34 </div> |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
35 </div> |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
36 <div id="login"> |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
37 <div id="loginContent"> |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
38 |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
39 <form id="loginForm" name="loginForm" |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
40 action="<%=sessionBean.getApplicationBean().getRootServer()%>/proxy.jsp" |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
41 method="post" |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
42 class="contentForm"> |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
43 <input name="bean" type="hidden" value="loginBean" /> |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
44 |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
45 <% if(sessionBean.getUser() == null) { %> |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
46 <table style="float:right;margin-right:10px;"> |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
47 <tr> |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
48 <td><a class="createAcct" href="<%=sessionBean.getApplicationBean().getDvnRootServer() %>/dataverseuser.xhtml?editMode=CREATE" target="_blank" style="font-size: 12px;">Create Account</a></td> |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
49 <td><label>Login</label></td> |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
50 <td><input type="text" name="userName"/></td> |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
51 <td><input type="password" name="password" /></td> |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
52 <td> |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
53 <a class="submit" href="#" onclick="onLoginClick()">Submit</a> |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
54 </td> |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
55 |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
56 </tr> |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
57 </table> |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
58 <script> |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
59 $('input[name=password]').keypress(function (e) { |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
60 if(e.which == 13){ |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
61 onLoginClick(); |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
62 return false; |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
63 } |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
64 }); |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
65 </script> |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
66 <% } else { %> |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
67 <table style="float:right;margin-right:10px;"> |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
68 <tr> |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
69 <td>Logged in as: <%=sessionBean.getUser().getUserName() %></td> |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
70 <td>|</td> |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
71 <td><input type="submit" value="logout" class="link" onclick="setAction('logout', 'loginForm');"/></td> |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
72 <td><a href="<%=sessionBean.getApplicationBean().getDvnRootServer() %>" target="_blank" style="text-decoration:underline;color:rgb(85, 26, 139);">Go To LGDataverse</a></td> |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
73 </tr> |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
74 </table> |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
75 <% } %> |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
76 </form> |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
77 |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
78 </div> |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
79 </div> |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
80 |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
81 <div class="menu"> |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
82 <a href="<%=sessionBean.getApplicationBean().getRootServer()%>/pages/topicList.jsp">Topics</a> |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
83 <a href="<%=sessionBean.getApplicationBean().getRootServer()%>/pages/home.jsp">Tasks</a> |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
84 <!-- |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
85 <a href="<%=sessionBean.getApplicationBean().getRootServer()%>/pages/createFile.jsp" class="current">Create File</a> |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
86 --> |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
87 <a href="<%=sessionBean.getApplicationBean().getRootServer()%>/pages/search.jsp">Sections</a> |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
88 <a href="<%=sessionBean.getApplicationBean().getRootServer()%>/pages/fullTextSearch2.jsp">Full Text Search</a> |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
89 <a href="<%=sessionBean.getApplicationBean().getRootServer()%>/pages/books.jsp">Books</a> |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
90 |
|
b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
parents:
diff
changeset
|
91 </div> |
