diff gnv/src/main/webapp/WEB-INF/jsp/index.jsp @ 16:4ef6e4e9ef15

Intergate the new Pageinfrastructure into the old Layout gnv/trunk@99 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Wed, 16 Sep 2009 14:02:29 +0000
parents 4ebe57b170d3
children d7e5a929fc34
line wrap: on
line diff
--- a/gnv/src/main/webapp/WEB-INF/jsp/index.jsp	Wed Sep 16 13:57:42 2009 +0000
+++ b/gnv/src/main/webapp/WEB-INF/jsp/index.jsp	Wed Sep 16 14:02:29 2009 +0000
@@ -3,40 +3,41 @@
 <%@page import="de.intevation.gnv.artifactdatabase.objects.ArtifactObject"%>
 <%@page import="de.intevation.gnv.action.sessionmodel.SessionModel"%>
 <%@page import="de.intevation.gnv.action.sessionmodel.SessionModelFactory"%>
-<%@page import="java.util.Iterator"%><html>
+<%@page import="java.util.Iterator"%>
 <%Object ui = request.getAttribute("ui");
   String action = (ui == null ? "selectArtifactFactory.do" : "next.do");
 %>
-<body>
-<form action="<%=action%>" method="post">
-
-<%
-  
-  SessionModel sm = SessionModelFactory.getInstance().getSessionModel(request);
-  Collection<ArtifactObject> artifactFactories = sm.getArtifactFactories();
-  if (artifactFactories != null && ui == null){
-%>
-<select name="artifactFactory">
-<%
-      Iterator<ArtifactObject> it = artifactFactories.iterator();
-      while (it.hasNext()){
-          ArtifactObject ao = it.next();
-      
-%>
-    
-      <option value="<%=ao.getId()%>" <%=(ao.isSelected() ? "selected=\"selected\"" : "")%> ><%=ao.getName()%></option>
-<%
-      }
-%>
-    </select>
-<%
-}
-%>
-
-    
-    <%=ui != null ? ui.toString() : "" %>
-    
-    <input type="submit" value="Auswählen" />
-</form>
-</body>
-</html>
+<div id="basefilter">
+	<form id="fisSelectionForm" action="<%=action%>" method="post">
+	   <fieldset>
+	
+	<%
+	  
+	  SessionModel sm = SessionModelFactory.getInstance().getSessionModel(request);
+	  Collection<ArtifactObject> artifactFactories = sm.getArtifactFactories();
+	  if (artifactFactories != null && ui == null){
+	%>
+	       <select name="artifactFactory">
+	<%
+	      Iterator<ArtifactObject> it = artifactFactories.iterator();
+	      while (it.hasNext()){
+	          ArtifactObject ao = it.next();
+	      
+	%>
+	    
+	           <option value="<%=ao.getId()%>" <%=(ao.isSelected() ? "selected=\"selected\"" : "")%> ><%=ao.getName()%></option>
+	<%
+	      }
+	%>
+	       </select>
+	<%
+	}
+	%>
+	
+	    
+	    <%=ui != null ? ui.toString() : "" %>
+	    
+	       <input type="submit" value="Auswählen" />
+	    </fieldset>
+	</form>
+</div>
\ No newline at end of file

http://dive4elements.wald.intevation.org