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

« back to all changes in this revision

Viewing changes to local/in/dhis-web-dashboard/src/main/webapp/dhis-web-dashboard/surveyAnalysisFront.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
<html>
 
3
            <head>
 
4
                        <title>Survey Analyser</title>
 
5
                        
 
6
                        <script>
 
7
                            // Global Variables
 
8
                            var selriRadioButton = "indicatorsRadio";
 
9
                            var selCategory = "";
 
10
                            var selFacility = "";
 
11
                            
 
12
                            // OrganisationUnit ids and its Names
 
13
                                    var orgUnits = new HashTable();
 
14
                                    #foreach($orgUnit in $organisationUnits)
 
15
                                        var orgUnitId = ""+$orgUnit.getId();
 
16
                                        orgUnits.put(orgUnitId,"$orgUnit.getShortName()");
 
17
                                    #end                                    
 
18
                                </script>
 
19
            </head>
 
20
            <body>
 
21
                <h1>$i18n.getString( "sa_survey_analyser" )</h1>
 
22
                <hr />          
 
23
                <form id="ChartGenerationForm" name="ChartGenerationForm" action="generateSurveyData.action" method="post" onsubmit="return formValidations()" target="chartWindow1">   
 
24
                                        <table align="center" style=" border-collapse: collapse; margin-top: 0;" cellpadding="0" cellspacing="0" width="730" border=0>
 
25
                                <colgroup>
 
26
                                <col width="325">
 
27
                                  <col width="80">
 
28
                                   <col width="325">
 
29
                      </colgroup>
 
30
                                <tr>
 
31
                                        <td class="NormalB">$i18n.getString( "ga_filter_by_degroup" )<br>
 
32
                                                    <select id="dataElementGroupId" name="dataElementGroupId" style="width:325px" onchange="getDataElements()">
 
33
                            <option value="$ALL">[ Select DataElementGroup / All ]</option>                             
 
34
                                                        #foreach ( $group in $dataElementGroups )
 
35
                                                                    <option value="$group.id" title="$group.name">$group.name</option>
 
36
                                                            #end
 
37
                                        </select>
 
38
                    </td>   
 
39
                                        <td class="NormalB">&nbsp;</td>
 
40
                                        <td class="NormalB">&nbsp;</td>
 
41
                                        </tr>
 
42
                                        <tr>
 
43
                                        <td class="NormalB">&nbsp;</td>   
 
44
                                        <td class="NormalB">&nbsp;</td>
 
45
                                        <td class="NormalB">&nbsp;</td>
 
46
                                        </tr>
 
47
                                        <tr>
 
48
                                        <td class="NormalB">$i18n.getString( "ga_available_delist" )<br>
 
49
                                                        <select multiple size="5" id="availableDataElements" name="availableDataElements" style="width:325px; height:100px" ondblclick="moveSelectedById( 'availableDataElements', 'selectedDataElements' )">
 
50
                                                            #foreach ( $element in $dataElements )
 
51
                                                            <option value="$element.id" title="$element.name">$element.name</option>
 
52
                                                        #end
 
53
                                                        </select>
 
54
                                                    </td>
 
55
                                        <td class="NormalB" align="center">
 
56
                                            <br />
 
57
                                                                                                           <input type="button" value="&gt;" style="width:40px" onclick="moveSelectedById( 'availableDataElements', 'selectedDataElements' )"><br>
 
58
                                                <input type="button" value="&lt;" style="width:40px" onclick="moveSelectedById( 'selectedDataElements', 'availableDataElements' )"><br>
 
59
                                                <input type="button" value="&gt;&gt;" style="width:40px" onclick="moveAllById( 'availableDataElements', 'selectedDataElements' )"><br>
 
60
                                                <input type="button" value="&lt;&lt;" style="width:40px" onclick="moveAllById( 'selectedDataElements', 'availableDataElements' )">              
 
61
                                        </td>
 
62
                                        <td class="NormalB">
 
63
                                            $i18n.getString( "ga_selected_delist" )<br />
 
64
                                                    <select multiple id="selectedDataElements" name="selectedDataElements" style="width:325px; height:100px" ondblclick="moveSelectedById( 'selectedDataElements', 'availableDataElements' )">
 
65
                                                        </select>
 
66
                                        </td>
 
67
                                      </tr>
 
68
                                      <tr>
 
69
                                        <td class="NormalB">&nbsp;<br/></td>   
 
70
                                        <td class="NormalB">&nbsp;<br/></td>
 
71
                                        <td class="NormalB">&nbsp;<br/></td>
 
72
                                        </tr>
 
73
                                        <tr>
 
74
                                        <td class="NormalB">$i18n.getString( "ga_filter_by_indicatorgroup" )<br>
 
75
                                                    <select id="indicatorGroupId" name="indicatorGroupId" style="width:325px" onchange="getIndicators()">
 
76
                                                        <option value="$ALL">[ Select IndicatorGroup / All ]</option>
 
77
                                                        #foreach ( $group in $indicatorGroups )
 
78
                                                                        <option value="$group.id">$group.name</option>
 
79
                                                        #end
 
80
                                                </select>
 
81
                    </td>   
 
82
                                        <td class="NormalB">&nbsp;</td>
 
83
                                        <td class="NormalB">&nbsp;</td>
 
84
                                        </tr>
 
85
                <tr>
 
86
                                        <td class="NormalB">&nbsp;</td>   
 
87
                                        <td class="NormalB">&nbsp;</td>
 
88
                                        <td class="NormalB">&nbsp;</td>
 
89
                                        </tr>
 
90
                                        <tr>
 
91
                                        <td class="NormalB">$i18n.getString( "ga_available_indicatorlist" )<br>
 
92
                                                        <select multiple size="5" id="availableIndicators" name="availableIndicators" style="width:325px; height:100px" ondblclick="moveSelectedById( 'availableIndicators', 'selectedIndicators' )">
 
93
                                                            #foreach ( $indicator in $indicators )
 
94
                                                            <option value="$indicator.id">$indicator.name</option>
 
95
                                                        #end
 
96
                                                </select>
 
97
                                                    </td>
 
98
                                        <td class="NormalB" align="center">
 
99
                                            <br />
 
100
                                                                                                           <input type="button" value="&gt;" style="width:40px" onclick="moveSelectedById( 'availableIndicators', 'selectedIndicators' )"><br>
 
101
                                                <input type="button" value="&lt;" style="width:40px" onclick="moveSelectedById( 'selectedIndicators', 'availableIndicators' )"><br>             
 
102
                                                <input type="button" value="&gt;&gt;" style="width:40px" onclick="moveAllById( 'availableIndicators', 'selectedIndicators' )"><br>
 
103
                                                <input type="button" value="&lt;&lt;" style="width:40px" onclick="moveAllById( 'selectedIndicators', 'availableIndicators' )">          
 
104
                                        </td>
 
105
                                        <td class="NormalB">
 
106
                                            $i18n.getString( "ga_selected_indicatorlist" ) <br />
 
107
                                                <select multiple id="selectedIndicators" name="selectedIndicators" style="width:325px; height:100px" ondblclick="moveSelectedById( 'selectedIndicators', 'availableIndicators' )">
 
108
                                                </select>
 
109
                                        </td>
 
110
                                      </tr>
 
111
                                      <tr>
 
112
                                        <td class="NormalB">&nbsp;</td>   
 
113
                                        <td class="NormalB">&nbsp;</td>
 
114
                                        <td class="NormalB">&nbsp;</td>
 
115
                                        </tr>
 
116
                                        <tr>
 
117
                                        <td class="NormalB">
 
118
                                            $i18n.getString( "ga_orgunit" )<br>                                                 
 
119
                                                                <select name="orgUnitListCB" id="orgUnitListCB" multiple style="width: 325px;height: 100px">
 
120
                                                                </select>                                                                                               
 
121
                                        </td>   
 
122
                                        <td class="NormalB" align="center">
 
123
                                            <input type="button" name="remOUButton" id="remOUButton" value=" > " onclick="remOUFunction()" />
 
124
                                        </td>
 
125
                                        <td class="NormalB" align="center">
 
126
                                            <table>                                             
 
127
                                                <tr>
 
128
                                                    <td class="NormalB">
 
129
                                                        $i18n.getString( "ga_from" )<br>
 
130
                                                                            <select id="sDateLB" name="sDateLB">                                                                                                
 
131
                                                                                                    #foreach($period in $monthlyPeriods)
 
132
                                                                                                              <option value="$period.id">$simpleDateFormat.format($period.startDate)</option>
 
133
                                                                                                    #end
 
134
                                                                                          </select>     
 
135
                                                    </td>
 
136
                                                    <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
 
137
                                                    <td align="right" class="NormalB">
 
138
                                                        $i18n.getString( "ga_to" )<br>
 
139
                                                                                      <select id="eDateLB" name="eDateLB">
 
140
                                                                                                    #foreach($period in $monthlyPeriods)
 
141
                                                                                                              <option value="$period.id">$simpleDateFormat.format($period.endDate)</option>
 
142
                                                                                                    #end                                                                                
 
143
                                                                                          </select>                     
 
144
                                                                                      </td>
 
145
                                                </tr>
 
146
                                                <tr>
 
147
                                                    <td>&nbsp;</td>
 
148
                                                    <td>&nbsp;</td>
 
149
                                                    <td>&nbsp;</td>
 
150
                                                </tr>
 
151
                                                <tr>
 
152
                                                    <td class="NormalB">
 
153
                                                        Facility By<br>
 
154
                                                    <select id="facilityLB" name="facilityLB" onchange="facilityChangeFunction(event)">
 
155
                                                                <option value="children">Children</option>
 
156
                                                                <option value="random">Selected</option>
 
157
                                    </select>                                                                 
 
158
                                                                            </td>
 
159
                                                                            <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
 
160
                                                    <td align="right">
 
161
                                                        <br />
 
162
                                                              <input type="submit" name="ViewChart" value="$i18n.getString( 'ga_viewchart' )" style="width: 120; height: 25; font-family:Arial; font-weight:bold; color:#000000">
 
163
                                                                                                                      </td>
 
164
                                                </tr>                            
 
165
                            <input type="hidden" name="selectedButton" id="selectedButton">
 
166
                        </table>    
 
167
                                        </td>
 
168
                                        </tr>
 
169
            </table>                                                    
 
170
        </form>
 
171
    </body>
 
172
</html>            
 
 
b'\\ No newline at end of file'