~mortenoh/+junk/dhis2-detailed-import-export

« back to all changes in this revision

Viewing changes to local/vn/dhis-web-hcmc-reporttool/src/main/webapp/dhis-web-reporttool/generateReportForm.vm

  • Committer: larshelge at gmail
  • Date: 2009-03-03 16:46:36 UTC
  • Revision ID: larshelge@gmail.com-20090303164636-2sjlrquo7ib1gf7r
Initial check-in

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
<h3>$i18n.getString('view_report')</h3>
 
3
        
 
4
<form id="reportForm" name="reportForm" action="" method="post">        
 
5
 
 
6
<table width="430">
 
7
 
 
8
  <colgroup>
 
9
        <col width="170">
 
10
        <col width="230">
 
11
        <col width="30">
 
12
  </colgroup>   
 
13
 
 
14
  <tr>
 
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>
 
18
        <td></td>
 
19
  </tr>
 
20
  
 
21
  <tr>
 
22
        <td><label for="report">$i18n.getString( "design" )</label></td>
 
23
        <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>
 
35
        #end
 
36
          </select>
 
37
        </td>
 
38
        <td></td>
 
39
  </tr>
 
40
  
 
41
  <tr>
 
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>
 
45
  </tr>
 
46
  
 
47
  <tr>
 
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>
 
51
  </tr>
 
52
  
 
53
  <script type="text/javascript">
 
54
    Calendar.setup({
 
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)
 
58
    });
 
59
        
 
60
        Calendar.setup({
 
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)
 
64
    });
 
65
  </script>
 
66
  
 
67
  <tr>
 
68
        <td></td>
 
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>
 
70
        <td></td>
 
71
  </tr>
 
72
  
 
73
  <tr>
 
74
        <td colspan="3" height="40"></td>
 
75
  </tr>
 
76
 
 
77
</table>
 
78
 
 
79
</form>
 
80
 
 
81
<span id="message"#if ( $message ) style="display:block"#end>$!message</span>