2
<h3>$i18n.getString('view_report')</h3>
4
<form id="reportForm" name="reportForm" action="" method="post">
15
<td><label for="reportType">$i18n.getString( "report_type" )</label></td>
16
<td><input type="radio" id="reportType" name="reportType" value="0" onclick="listDesigns()"#if ( $reportType == 0 ) checked#end> $i18n.getString( "generic_standard" )<br>
17
<input type="radio" id="reportType" name="reportType" value="1" onclick="listDesigns()"#if ( $reportType == 1 ) checked#end> $i18n.getString( "organisation_unit_spesific" )</td>
22
<td><label for="report">$i18n.getString( "design" )</label></td>
24
<select id="report" name="report" style="width:230px">
25
<option value="">[ $i18n.getString( "select_design" ) ]</option>>
26
<option value="hcm_quan_huyen">$i18n.getString( "hcmc_mother_program_district" )</option>
27
<option value="hcm_benh_vien">$i18n.getString( "hcmc_mother_program_hospital" )</option>
28
<option value="hcm_nhi_thang">$i18n.getString( "hcmc_monthly_child_program" )</option>
29
<option value="hcm_nhi_quy">$i18n.getString( "hcmc_quaterly_child_program" )</option>
30
<option value="hcm_nhi_nam">$i18n.getString( "hcmc_yearly_child_program" )</option>
31
#foreach ( $design in $designs )
32
<option value="$design"
33
#if ( $report == $design ) selected="selected"#end
34
>$encoder.htmlEncode( $design )</option>
42
<td><label for="startDate">$i18n.getString('start_date') ($i18n.getString( "format.date.label" ))</label></td>
43
<td><input type="text" id="startDate" name="startDate" value="$!startDate" style="width:230px"></td>
44
<td><img src="../images/calendar_icon.gif" width="16" height="16" id="getStartDate" cursor: pointer;" title="$i18n.getString( "date_selector" )" onmouseover="this.style.background='orange';" onmouseout="this.style.background=''"></td>
48
<td><label for="endDate">$i18n.getString('end_date') ($i18n.getString( "format.date.label" ))</label></td>
49
<td><input type="text" id="endDate" name="endDate" value="$!endDate" style="width:230px"></td>
50
<td><img src="../images/calendar_icon.gif" width="16" height="16" id="getEndDate" cursor: pointer;" title="$i18n.getString( "date_selector" )" onmouseover="this.style.background='orange';" onmouseout="this.style.background=''"></td>
53
<script type="text/javascript">
55
inputField : "startDate", // id of the input field
56
ifFormat : "$i18n.getString("format.date.label")", // format of the input field
57
button : "getStartDate" // trigger for the calendar (button ID)
61
inputField : "endDate", // id of the input field
62
ifFormat : "$i18n.getString("format.date.label")", // format of the input field
63
button : "getEndDate" // trigger for the calendar (button ID)
69
<td><input type="button" value="$i18n.getString( "preview" )" style="width:115px" onclick="previewReport()"><input type="button" value="$i18n.getString( "generate" )" style="width:115px" onclick="generateReport()"></td>
74
<td colspan="3" height="40"></td>
81
<span id="message"#if ( $message ) style="display:block"#end>$!message</span>