Mercurial > dive4elements > gnv-client
comparison gnv/src/main/webapp/WEB-INF/jsp/index.jsp @ 17:d7e5a929fc34
Some Stylingimprovements done
gnv/trunk@100 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Wed, 16 Sep 2009 14:55:54 +0000 |
parents | 4ef6e4e9ef15 |
children | 87002cbd194c |
comparison
equal
deleted
inserted
replaced
16:4ef6e4e9ef15 | 17:d7e5a929fc34 |
---|---|
3 <%@page import="de.intevation.gnv.artifactdatabase.objects.ArtifactObject"%> | 3 <%@page import="de.intevation.gnv.artifactdatabase.objects.ArtifactObject"%> |
4 <%@page import="de.intevation.gnv.action.sessionmodel.SessionModel"%> | 4 <%@page import="de.intevation.gnv.action.sessionmodel.SessionModel"%> |
5 <%@page import="de.intevation.gnv.action.sessionmodel.SessionModelFactory"%> | 5 <%@page import="de.intevation.gnv.action.sessionmodel.SessionModelFactory"%> |
6 <%@page import="java.util.Iterator"%> | 6 <%@page import="java.util.Iterator"%> |
7 <%Object ui = request.getAttribute("ui"); | 7 <%Object ui = request.getAttribute("ui"); |
8 boolean furthertargets = true; | |
9 | |
10 Object furthertargetsObject = request.getAttribute("furthertargets"); | |
11 if (furthertargetsObject != null){ | |
12 furthertargets = ((Boolean)furthertargetsObject).booleanValue(); | |
13 } | |
14 Object diagramm = request.getAttribute("diagramm"); | |
8 String action = (ui == null ? "selectArtifactFactory.do" : "next.do"); | 15 String action = (ui == null ? "selectArtifactFactory.do" : "next.do"); |
9 %> | 16 %> |
10 <div id="basefilter"> | 17 <div id="basefilter"> |
11 <form id="fisSelectionForm" action="<%=action%>" method="post"> | 18 <form id="fisSelectionForm" action="<%=action%>" method="post"> |
12 <fieldset> | 19 <fieldset> |
13 | 20 |
14 <% | 21 <% |
15 | 22 |
16 SessionModel sm = SessionModelFactory.getInstance().getSessionModel(request); | 23 SessionModel sm = SessionModelFactory.getInstance().getSessionModel(request); |
17 Collection<ArtifactObject> artifactFactories = sm.getArtifactFactories(); | 24 Collection<ArtifactObject> artifactFactories = sm.getArtifactFactories(); |
18 if (artifactFactories != null && ui == null){ | 25 if (artifactFactories != null && ui == null){ |
19 %> | 26 %> |
27 <legend>FIS</legend> | |
20 <select name="artifactFactory"> | 28 <select name="artifactFactory"> |
21 <% | 29 <% |
22 Iterator<ArtifactObject> it = artifactFactories.iterator(); | 30 Iterator<ArtifactObject> it = artifactFactories.iterator(); |
23 while (it.hasNext()){ | 31 while (it.hasNext()){ |
24 ArtifactObject ao = it.next(); | 32 ArtifactObject ao = it.next(); |
35 %> | 43 %> |
36 | 44 |
37 | 45 |
38 <%=ui != null ? ui.toString() : "" %> | 46 <%=ui != null ? ui.toString() : "" %> |
39 | 47 |
40 <input type="submit" value="Auswählen" /> | 48 <input type="submit" value="<%=furthertargets ? "Auswählen" : "Zeichen"%>" /> |
41 </fieldset> | 49 </fieldset> |
42 </form> | 50 </form> |
43 </div> | 51 </div> |
52 <%if (diagramm != null){ %> | |
53 <div id="diagram"> | |
54 <%=diagramm.toString()%> | |
55 </div> | |
56 <%}%> |