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

« back to all changes in this revision

Viewing changes to local/vn/dhis-web-hue-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="hue_bieu_CoverSignature">$i18n.getString( "hue_bieu_CoverSignature" )</option>
 
27
                <option value="Hue_bieu_1">$i18n.getString( "hue_bieu_1" )</option>
 
28
                <option value="Hue_bieu_2">$i18n.getString( "hue_bieu_2" )</option>
 
29
                <option value="Hue_bieu_3">$i18n.getString( "hue_bieu_3" )</option>
 
30
                <option value="Hue_bieu_4">$i18n.getString( "hue_bieu_4" )</option>
 
31
                <option value="Hue_bieu_5">$i18n.getString( "hue_bieu_5" )</option>
 
32
                <option value="Hue_bieu_7">$i18n.getString( "hue_bieu_7" )</option>
 
33
                <option value="Hue_bieu_9">$i18n.getString( "hue_bieu_9" )</option>
 
34
                <option value="Hue_bieu_10">$i18n.getString( "hue_bieu_10" )</option>
 
35
                <option value="Hue_bieu_11">$i18n.getString( "hue_bieu_11" )</option>
 
36
                <option value="Hue_bieu_12">$i18n.getString( "hue_bieu_12" )</option>
 
37
                <option value="Hue_bieu_13">$i18n.getString( "hue_bieu_13" )</option>
 
38
                <option value="Hue_bieu_14">$i18n.getString( "hue_bieu_14" )</option>
 
39
                #foreach ( $design in $designs )
 
40
                  <option value="$design"
 
41
                  #if ( $report == $design ) selected="selected"#end
 
42
                  >$encoder.htmlEncode( $design )</option>
 
43
        #end
 
44
          </select>
 
45
        </td>
 
46
        <td></td>
 
47
  </tr>
 
48
  
 
49
  <tr>
 
50
        <td><label for="startDate">$i18n.getString('start_date') ($i18n.getString( "format.date.label" ))</label></td>
 
51
        <td><input type="text" id="startDate" name="startDate" value="$!startDate" style="width:230px"></td>    
 
52
        <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>
 
53
  </tr>
 
54
  
 
55
  <tr>
 
56
        <td><label for="endDate">$i18n.getString('end_date') ($i18n.getString( "format.date.label" ))</label></td>
 
57
        <td><input type="text" id="endDate" name="endDate" value="$!endDate" style="width:230px"></td>
 
58
        <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>
 
59
  </tr>
 
60
  
 
61
  <script type="text/javascript">
 
62
    Calendar.setup({
 
63
        inputField     :    "startDate",      // id of the input field
 
64
        ifFormat       :    "$i18n.getString("format.date.label")",       // format of the input field
 
65
        button         :    "getStartDate"   // trigger for the calendar (button ID)
 
66
    });
 
67
        
 
68
        Calendar.setup({
 
69
        inputField     :    "endDate",      // id of the input field
 
70
        ifFormat       :    "$i18n.getString("format.date.label")",       // format of the input field
 
71
        button         :    "getEndDate"   // trigger for the calendar (button ID)
 
72
    });
 
73
  </script>
 
74
  
 
75
  <tr>
 
76
        <td></td>
 
77
        <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>
 
78
        <td></td>
 
79
  </tr>
 
80
  
 
81
  <tr>
 
82
        <td colspan="3" height="40"></td>
 
83
  </tr>
 
84
 
 
85
</table>
 
86
 
 
87
</form>
 
88
 
 
89
<span id="message"#if ( $message ) style="display:block"#end>$!message</span>