Advertisement
Guest User

Untitled

a guest
Mar 30th, 2015
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. <h3> Uitwerking</h3>
  2. <%
  3. //-----------------alles----------------------
  4. autolijst all = new autolijst();
  5. ArrayList<Auto> autolijst = all.getLijst();
  6.  
  7. //---------------niewe selectie---------------
  8. autolijst selectie = new autolijst();
  9.  
  10.  
  11.  
  12. %>
  13. <div class="opdrachten" id="zelftoets">
  14. <h2>Toets</h2>
  15.  
  16.  
  17. <label>Kies Merk</label>
  18. <form action="#" method="get">
  19. <select name = "selectie" id="merk">
  20. <option value="alle">alles</option>
  21. <%for(Auto auto : autolijst){%>
  22. <option value="<%=auto.getMerk()%>"><%=auto.getMerk()%></option>
  23. <%} %>
  24. </select>
  25.  
  26. <br>
  27. <label>Minimum prijs</label>
  28. <input type="text" name="minprijs">
  29. <label>Maximum prijs</label>
  30. <input type="text" name="maxprijs"><br>
  31. <input type="submit" name="filterKnop" value="OK">
  32. </form>
  33.  
  34. <div id="autoselectie">
  35.  
  36.  
  37.  
  38. <%
  39. if (request.getParameter ("filterKnop") != null) {
  40. for(Auto auto : all.getFilter(request.getParameter("selectie"))) {%>
  41. <div class="autokader">
  42. <img src="<%=auto.getFoto()%>" alt="<%=auto.getMerk()%> <%= auto.getType()%>">
  43. <p class="merktype"><%=auto.getMerk()%> <%= auto.getType()%></p>
  44. <p class="prijs">&euro; <%=auto.getPrijsFormat() %></p>
  45. </div>
  46. <%} } %>
  47. </div>
  48.  
  49.  
  50. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement