result.html

 1   <div class="content-box">
 2     <h2> #i18n{form.result.title}:'${form.title}'</h2>
 3   	 	<form action="jsp/admin/plugins/form/Result.jsp" method="post" name="" id=""  >
 4   		 <div class="highlight-box">
 5   			<input name="id_form" value="${form.idForm}" type="hidden" />
 6   	 			 	<p>
 7   						<label class="text-label" for="fist_response_date_filter">#i18n{form.result.labelValidationDate}</label>
 8   						<input type="text" name="fist_response_date_filter" id="fist_response_date_filter" size="10" value="<#if fist_response_date_filter?has_content>${fist_response_date_filter?date}</#if>" />
 9   	
 10   						#i18n{form.result.labelAnd}
 11   						
 12   						<input type="text" name="last_response_date_filter" id="last_response_date_filter" size="10" value="<#if last_response_date_filter?has_content>${last_response_date_filter?if_exists?date}</#if>" />
 13   							<input type="submit" class="button" value="#i18n{form.result.buttonSearch}" />
 14   						</p>
 15   				
 16   		 </div>
 17   		  <div class="highlight-box">
 18   	    		<h2>#i18n{form.result.titleStatistic}</h2>
 19   	
 20   	    <p><span style="margin-left:50px;"><label class="text-label" for="">#i18n{form.result.labelNumberResponse} </label></span> 
 21   	       <span style="font-weight:bold;color:#000;">${number_response}</span> 
 22   	    </p>
 23   	    <p><span style="margin-left:50px;"><label class="text-label" for="">#i18n{form.result.labelFistResponseDate}</label></span> 
 24   	    	<#if fist_response_date?exists>
 25   	    		<span style="font-weight:bold;color:#000;">${fist_response_date?date}</span> 
 26   	   		 <#else>
 27   	   		 	<span style="font-weight:bold;color:#000;">-</span> 
 28   	   		 </#if>
 29   	    </p>
 30   	    <p>
 31   	       <span style="margin-left:50px;">
 32   	       	<label class="text-label" for="">#i18n{form.result.labelLastResponseDate}</label>
 33   	       </span> 
 34   	       <#if last_response_date?exists>
 35   	          <span style="font-weight:bold;color:#000;">${last_response_date?date}</span>
 36   	        <#else>
 37   	        	  <span style="font-weight:bold;color:#000;">-</span>
 38   	        </#if>  
 39   	       </p>
 40   	    <p>
 41   	    	<label class="text-label">#i18n{form.result.labelGraph}</label>
 42   	    	<input type="radio" name="times_unit" value="0" <#if times_unit=="0">checked</#if>>#i18n{form.result.radioButtonDay}
 43   	    	<input type="radio" name="times_unit" value="1" <#if times_unit=="1">checked</#if>>#i18n{form.result.radioButtonWeek}
 44   	    	<input type="radio" name="times_unit" value="2" <#if times_unit=="2">checked</#if>>#i18n{form.result.radioButtonMonth}
 45   	    </p> 
 46   	           <#if fist_response_date_filter?exists&&last_response_date_filter?exists>
 47   	          		<img src="jsp/admin/plugins/form/DoGenerateGraph.jsp?id_form=${form.idForm}&times_unit=${times_unit}&fist_response_date_filter=${fist_response_date_filter?date?if_exists}&last_response_date_filter=${last_response_date_filter?date?if_exists}"/>
 48         		   <#elseif  fist_response_date_filter?exists > 
 49         		   		<img src="jsp/admin/plugins/form/DoGenerateGraph.jsp?id_form=${form.idForm}&times_unit=${times_unit}&fist_response_date_filter=${fist_response_date_filter?date?if_exists}"/>
 50         		  <#elseif last_response_date_filter?exists>
 51         				 <img src="jsp/admin/plugins/form/DoGenerateGraph.jsp?id_form=${form.idForm}&times_unit=${times_unit}&last_response_date_filter=${last_response_date_filter?date?if_exists}"/>
 52         			<#else>
 53         				<img src="jsp/admin/plugins/form/DoGenerateGraph.jsp?id_form=${form.idForm}&times_unit=${times_unit}"/>
 54         			</#if>
 55   	  </div>
 56     </form>
 57   	 <div class="highlight-box">
 58      		<h2>#i18n{form.result.titleDataSave}</h2>
 59       	 <form action="jsp/admin/plugins/form/DoExportResult.jsp" method="post" name="" id=""  >
 60   		   	 <input name="id_form" value="${form.idForm}" type="hidden" />
 61   			<#if fistResponseDateFilter?exists>
 62   				<input name="fist_response_date_filter" value="${fist_response_date_filter?date?if_exists}" type="hidden" />	
 63   			</#if>	
 64   			<#if lastResponseDateFilter?exists>
 65   				<input name="last_response_date_filter" value="${last_response_date_filter?date?if_exists}" type="hidden" />	
 66   			</#if>	
 67       	 	<p>
 68   	   		   <label for="">#i18n{form.result.labelExportResult} : </label>	
 69    			 <@combo name="id_export_format"  items=export_format_list default_value=-1 />
 70   			<input value="#i18n{form.result.buttonExportResult}" class="button"  type="submit">
 71   			<input type="submit" value="#i18n{form.result.buttonCancel}" class="button" name="cancel" />
 72             </p>
 73           </form>
 74         </div>
 75      </div>
 76        
 77   <@getDatePickerRange idFieldFrom="fist_response_date_filter" idFieldTo="last_response_date_filter" language=locale />
 78