2
<script type="text/javascript">
6
<h3>$i18n.getString( "generate_data_mart" )</h3>
8
<form id="exportForm" name="exportForm" method="post" action="export.action">
10
<input type="hidden" id="exportId" name="exportId" value="$!id">
15
<col style="width:325px">
16
<col style="width:80px">
17
<col style="width:325px">
23
<th>$i18n.getString( "available_dataelements" )</th>
25
<th>$i18n.getString( "selected_dataelements" )</th>
29
<select id="dataElementGroupId" name="dataElementGroupId" style="min-width:325px" onchange="getDataElements()">
30
<option value="$ALL">[ $i18n.getString( "select_dataelementgroup_all" ) ]</option>
31
#foreach ( $group in $dataElementGroups )
32
<option value="$group.id">$group.name</option>
35
<select multiple size="6" id="availableDataElements" name="availableDataElements" style="min-width:325px" ondblclick="moveSelectedById( 'availableDataElements', 'selectedDataElements' )">
36
#foreach ( $element in $dataElements )
37
<option value="$element.id">$element.name</option>
42
<input type="button" value=">" title="$i18n.getString('move_selected')" style="width:40px" onclick="moveSelectedById( 'availableDataElements', 'selectedDataElements' )"><br>
43
<input type="button" value="<" title="$i18n.getString('remove_selected')" style="width:40px" onclick="moveSelectedById( 'selectedDataElements', 'availableDataElements' )"><br>
44
<input type="button" value=">>" title="$i18n.getString('move_all')" style="width:40px" onclick="moveAllById( 'availableDataElements', 'selectedDataElements' )"><br>
45
<input type="button" value="<<" title="$i18n.getString('remove_all')" style="width:40px" onclick="moveAllById( 'selectedDataElements', 'availableDataElements' )">
48
<select multiple id="selectedDataElements" name="selectedDataElements" style="min-width:325px; height:96px" ondblclick="moveSelectedById( 'selectedDataElements', 'availableDataElements' )">
49
#foreach( $element in $selectedDataElements )
50
<option value="$element.id">$element.name</option>
56
<td colspan="3" height="5px"></td>
62
<th>$i18n.getString( "available_indicators" )</th>
64
<th>$i18n.getString( "selected_indicators" )</th>
68
<select id="indicatorGroupId" name="indicatorGroupId" style="min-width:325px" onchange="getIndicators()">
69
<option value="$ALL">[ $i18n.getString( "select_indicatorgroup_all" ) ]</option>
70
#foreach ( $group in $indicatorGroups )
71
<option value="$group.id">$group.name</option>
74
<select multiple size="6" id="availableIndicators" name="availableIndicators" style="min-width:325px" ondblclick="moveSelectedById( 'availableIndicators', 'selectedIndicators' )">
75
#foreach ( $indicator in $indicators )
76
<option value="$indicator.id">$indicator.name</option>
81
<input type="button" value=">" title="$i18n.getString('move_selected')" style="width:40px" onclick="moveSelectedById( 'availableIndicators', 'selectedIndicators' )"><br>
82
<input type="button" value="<" title="$i18n.getString('remove_selected')" style="width:40px" onclick="moveSelectedById( 'selectedIndicators', 'availableIndicators' )"><br>
83
<input type="button" value=">>" title="$i18n.getString('move_all')" style="width:40px" onclick="moveAllById( 'availableIndicators', 'selectedIndicators' )"><br>
84
<input type="button" value="<<" title="$i18n.getString('remove_all')" style="width:40px" onclick="moveAllById( 'selectedIndicators', 'availableIndicators' )">
87
<select multiple id="selectedIndicators" name="selectedIndicators" style="min-width:325px; height:96px" ondblclick="moveSelectedById( 'selectedIndicators', 'availableIndicators' )">
88
#foreach ( $indicator in $selectedIndicators )
89
<option value="$indicator.id">$indicator.name</option>
95
<td colspan="3" height="5px"></td>
98
<!-- OrganisationUnits -->
101
<th>$i18n.getString( "available_organisationunits" )</th>
103
<th>$i18n.getString( "selected_organisationunits" )</th>
107
<select id="organisationUnitLevel" name="organisationUnitLevel" style="min-width:325px" onchange="getOrganisationUnits()">
108
<option value="$ALL">[ $i18n.getString( "select_organisationunit_level_all" ) ]</option>
109
#foreach ( $level in $levels )
110
<option value="$level.level">$level.name</option>
113
<select multiple size="6" id="availableOrganisationUnits" name="availableOrganisationUnits" style="min-width:325px" ondblclick="moveSelectedById( 'availableOrganisationUnits', 'selectedOrganisationUnits' )">
114
#foreach ( $unit in $organisationUnits )
115
<option value="$unit.id">$encoder.htmlEncode( $unit.name )</option>
120
<input type="button" value=">" title="$i18n.getString('move_selected')" style="width:40px" onclick="moveSelectedById( 'availableOrganisationUnits', 'selectedOrganisationUnits' )"><br>
121
<input type="button" value="<" title="$i18n.getString('remove_selected')" style="width:40px" onclick="moveSelectedById( 'selectedOrganisationUnits', 'availableOrganisationUnits' )"><br>
122
<input type="button" value=">>" title="$i18n.getString('move_all')" style="width:40px" onclick="moveAllById( 'availableOrganisationUnits', 'selectedOrganisationUnits' )"><br>
123
<input type="button" value="<<" title="$i18n.getString('remove_all')" style="width:40px" onclick="moveAllById( 'selectedOrganisationUnits', 'availableOrganisationUnits' )"><br>
124
<input type="button" value=">>>" title="$i18n.getString('move_children')" style="width:40px" onclick="getOrganisationUnitChildren()">
127
<select multiple id="selectedOrganisationUnits" name="selectedOrganisationUnits" style="min-width:325px; height:96px" ondblclick="moveSelectedById( 'selectedOrganisationUnits', 'availableOrganisationUnits' )">
128
#foreach ( $unit in $selectedOrganisationUnits )
129
<option value="$unit.id">$unit.name</option>
135
<td colspan="3" height="5px"></td>
141
<th>$i18n.getString( "available_periods" )</th>
143
<th>$i18n.getString( "selected_periods" )</th>
147
<select id="periodTypeId" name="periodTypeId" style="min-width:325px" onchange="getPeriods()">
148
<option value="null">[ $i18n.getString( "select_period_type_all" ) ]</option>
149
#foreach ( $type in $periodTypes )
150
<option value="$type.name">$type.name</option>
153
<select multiple size="6" id="availablePeriods" name="availablePeriods" style="min-width:325px" ondblclick="moveSelectedById( 'availablePeriods', 'selectedPeriods' )">
154
#foreach ( $period in $periods )
155
<option value="$period.id">$period.name</option>
160
<input type="button" value=">" title="$i18n.getString('move_selected')" style="width:40px" onclick="moveSelectedById( 'availablePeriods', 'selectedPeriods' )"><br>
161
<input type="button" value="<" title="$i18n.getString('remove_selected')" style="width:40px" onclick="moveSelectedById( 'selectedPeriods', 'availablePeriods' )"><br>
162
<input type="button" value=">>" title="$i18n.getString('move_all')" style="width:40px" onclick="moveAllById( 'availablePeriods', 'selectedPeriods' )"><br>
163
<input type="button" value="<<" title="$i18n.getString('remove_all')" style="width:40px" onclick="moveAllById( 'selectedPeriods', 'availablePeriods' )">
166
<select multiple id="selectedPeriods" name="selectedPeriods" style="min-width:325px; height:96px" ondblclick="moveSelectedById( 'selectedPeriods', 'availablePeriods' )">
167
#foreach ( $period in $selectedPeriods )
168
<option value="$period.id">$period.name</option>
174
<td colspan="3" height="5px"></td>
180
<th>$i18n.getString( "name" )</th>
181
<td colspan="2"></td>
184
<td><input type="text" id="exportName" name="exportName" style="min-width:325px" value="$!name"></td>
185
<td colspan="2"></td>
191
<td><input type="button" value='$i18n.getString( "export" )' onclick="exportValues()" style="width:25%"><input
192
type="button" value='$i18n.getString( "cancel" )' onclick="cancelExport()" style="width:25%"><input
193
type="button" value='$i18n.getString( "save" )' onclick="saveExport()" style="width:25%"><input
194
type="button" value='$i18n.getString( "back" )' onclick="javascript:window.location.href='getDataMartExports.action'" style="width:25%"></ttd>
203
<span id="message"></span>
205
<script type="text/javascript">
206
var i18n_hours = '$encoder.jsEscape( $i18n.getString( "hours" ), "'" )';
207
var i18n_minutes = '$encoder.jsEscape( $i18n.getString( "minutes" ), "'" )';
208
var i18n_seconds = '$encoder.jsEscape( $i18n.getString( "seconds" ), "'" )';
209
var i18n_estimated_time = '$encoder.jsEscape( $i18n.getString( "estimated_time" ), "'" )';
210
var i18n_select_min_datatype = '$encoder.jsEscape( $i18n.getString( "select_min_datatype" ), "'" )';
211
var i18n_select_min_level = '$encoder.jsEscape( $i18n.getString( "select_min_level" ), "'" )';
212
var i18n_select_min_period = '$encoder.jsEscape( $i18n.getString( "select_min_period" ), "'" )';
213
var i18n_nr_of_comb = '$encoder.jsEscape( $i18n.getString( "nr_of_comb" ), "'" )';
214
var i18n_completed = '$encoder.jsEscape( $i18n.getString( "completed" ), "'" )';
215
var i18n_export_process_started = '$encoder.jsEscape( $i18n.getString( "export_process_started" ), "'" )';
216
var i18n_export_saved = '$encoder.jsEscape( $i18n.getString( "export_saved" ), "'" )';
217
var i18n_must_select_at_least_one_dataelement_or_indicator = '$encoder.jsEscape( $i18n.getString( "must_select_at_least_one_dataelement_or_indicator" ), "'" )';
218
var i18n_must_select_at_least_one_organisation_unit = '$encoder.jsEscape( $i18n.getString( "must_select_at_least_one_organisation_unit" ), "'" )';
219
var i18n_must_select_at_least_one_period = '$encoder.jsEscape( $i18n.getString( "must_select_at_least_one_period" ), "'" )';