comparison gnv/src/main/webapp/WEB-INF/jsp/includes/display_histogram_options_inc.jsp @ 575:a634d5ee961d

Added checkboxes for selecting the field which is used to adjust the number of bins in histogram charts. gnv/trunk@707 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 24 Feb 2010 14:38:36 +0000
parents bd67164cf28b
children 2f3d885fed09
comparison
equal deleted inserted replaced
574:800874dc0b29 575:a634d5ee961d
57 <form id="outputOptionsForm" method="post" action="<%=response.encodeURL("changeOptions.do?target="+target)%>"> 57 <form id="outputOptionsForm" method="post" action="<%=response.encodeURL("changeOptions.do?target="+target)%>">
58 <table> 58 <table>
59 <%if (outputMode != null && outputMode.getOutputParameters() != null && !outputMode.getOutputParameters().isEmpty()){ 59 <%if (outputMode != null && outputMode.getOutputParameters() != null && !outputMode.getOutputParameters().isEmpty()){
60 Iterator<OutputParameter> it = outputMode.getOutputParameters().iterator(); 60 Iterator<OutputParameter> it = outputMode.getOutputParameters().iterator();
61 while (it.hasNext()){ 61 while (it.hasNext()){
62 OutputParameter om = it.next(); %> 62 OutputParameter om = it.next();
63 String diaOpts = null;
64 if (diagrammOptions != null) {
65 diaOpts = request.getParameter("bintype");
66 }%>
63 <tr> 67 <tr>
68 <td>
69 <%if (om.getName().equals("bincount")) {
70 String check = "";
71 if (diaOpts != null && diaOpts.equalsIgnoreCase("binwidth")) {
72 check = "";
73 }
74 else {
75 check = "checked=\"checked\"";
76 }%>
77 <input type="checkbox" <%= check %> name="bintype" value="bincount" id="checkCount" onClick="toggleBinType('checkWidth')">&nbsp;</input>
78 <%}%>
79 <%if (om.getName().equals("binwidth")) {
80 String check = "";
81 if (diaOpts != null && diaOpts.equalsIgnoreCase("binwidth")) {
82 check = "checked=\"checked\"";
83 }
84 else if (diaOpts == null) {
85 check = "";
86 }%>
87 <input type="checkbox" <%= check %> name="bintype" value="binwidth" id="checkWidth" onClick="toggleBinType('checkCount')">&nbsp;</input>
88 <%}%>
89 </td>
64 <td> 90 <td>
65 <bean-el:message key="<%=om.getName()%>"/> 91 <bean-el:message key="<%=om.getName()%>"/>
66 </td> 92 </td>
67 <td> 93 <td>
68 <%if (om.getType().equalsIgnoreCase("boolean")){ 94 <%if (om.getType().equalsIgnoreCase("boolean")){

http://dive4elements.wald.intevation.org