1 | <p class="alert alert-warning" i18n:domain="waeup.kofa" |
---|
2 | i18n:translate="student_export_warning"> |
---|
3 | <strong>NOTICE:</strong> |
---|
4 | Student data exports are very computation intensive. |
---|
5 | Depending on the filter selected and the portal traffic load, exports may take |
---|
6 | longer than 15 minutes. You are advised to export data outside high-traffic |
---|
7 | time periods. |
---|
8 | </p> |
---|
9 | |
---|
10 | <br /> |
---|
11 | |
---|
12 | <form i18n:domain="waeup.kofa" method="POST"> |
---|
13 | <label for="mode" i18n:translate=""> |
---|
14 | Exporter (Data Type) |
---|
15 | </label> |
---|
16 | <select id="exporter" name="exporter" class="form-control half" onclick="test()"> |
---|
17 | <option tal:repeat="item view/exporters" |
---|
18 | tal:attributes="value python:item[1]"> |
---|
19 | <span tal:replace="python: item[0]">Students</span> |
---|
20 | </option> |
---|
21 | </select> |
---|
22 | <br /> |
---|
23 | <label for="session" i18n:translate=""> |
---|
24 | Current Session |
---|
25 | </label> |
---|
26 | <select name="session" class="form-control half"> |
---|
27 | <option tal:repeat="item view/sessions" |
---|
28 | tal:attributes="value python:item[1]"> |
---|
29 | <span tal:replace="python: item[0]">2012/2013</span> |
---|
30 | </option> |
---|
31 | </select> |
---|
32 | <br /> |
---|
33 | <label for="level" i18n:translate=""> |
---|
34 | Current Level |
---|
35 | </label> |
---|
36 | <select name="level" class="form-control half"> |
---|
37 | <option tal:repeat="item view/levels" |
---|
38 | tal:attributes="value python:item[1]"> |
---|
39 | <span tal:replace="python: item[0]">200</span> |
---|
40 | </option> |
---|
41 | </select> |
---|
42 | <br /> |
---|
43 | <label for="mode" i18n:translate=""> |
---|
44 | Current Study Mode |
---|
45 | </label> |
---|
46 | <select name="mode" class="form-control half"> |
---|
47 | <option tal:repeat="item view/modes" |
---|
48 | tal:attributes="value python:item[1]"> |
---|
49 | <span tal:replace="python: item[0]">ug_ft</span> |
---|
50 | </option> |
---|
51 | </select> |
---|
52 | |
---|
53 | <span id="payment_dates" style="display: none;"> |
---|
54 | <br /> |
---|
55 | <label for="mode" i18n:translate=""> |
---|
56 | Payment Date |
---|
57 | </label> |
---|
58 | <br /> |
---|
59 | from |
---|
60 | <input class="datepicker-le-year datepicker-short textType" |
---|
61 | id="payments_start" |
---|
62 | name="payments_start" type="text" value="" /> |
---|
63 | to <input class="datepicker-le-year datepicker-short textType" |
---|
64 | id="payments_end" |
---|
65 | name="payments_end" type="text" value="" /> |
---|
66 | <br /> |
---|
67 | </span> |
---|
68 | |
---|
69 | <span id="paycat" style="display: none;"> |
---|
70 | <br /> |
---|
71 | <label for="paycat" i18n:translate=""> |
---|
72 | Payment Categories |
---|
73 | </label> |
---|
74 | <select name="paycat" class="form-control half"> |
---|
75 | <option tal:repeat="item view/paycats" |
---|
76 | tal:attributes="value python:item[1]"> |
---|
77 | <span tal:replace="python: item[0]">schoolfee</span> |
---|
78 | </option> |
---|
79 | </select> |
---|
80 | <br /> |
---|
81 | </span> |
---|
82 | |
---|
83 | <span id="paysession" style="display: none;"> |
---|
84 | <br /> |
---|
85 | <label for="paysession" i18n:translate=""> |
---|
86 | Payment Session |
---|
87 | </label> |
---|
88 | <select name="paysession" class="form-control half"> |
---|
89 | <option tal:repeat="item view/sessions" |
---|
90 | tal:attributes="value python:item[1]"> |
---|
91 | <span tal:replace="python: item[0]">2018/2019</span> |
---|
92 | </option> |
---|
93 | </select> |
---|
94 | <br /> |
---|
95 | </span> |
---|
96 | |
---|
97 | <span id="level_session" style="display: none;"> |
---|
98 | <br /> |
---|
99 | <label for="level_session" i18n:translate=""> |
---|
100 | Level Session |
---|
101 | </label> |
---|
102 | <select name="level_session" class="form-control half"> |
---|
103 | <option tal:repeat="item view/sessions" |
---|
104 | tal:attributes="value python:item[1]"> |
---|
105 | <span tal:replace="python: item[0]">2018/2019</span> |
---|
106 | </option> |
---|
107 | </select> |
---|
108 | <br /> |
---|
109 | </span> |
---|
110 | |
---|
111 | <span id="ct_data" style="display: none;"> |
---|
112 | <br /> |
---|
113 | <label for="mode" i18n:translate=""> |
---|
114 | Course Ticket Level |
---|
115 | </label> |
---|
116 | <select name="ct_level" class="form-control half"> |
---|
117 | <option tal:repeat="item view/levels" |
---|
118 | tal:attributes="value python:item[1]"> |
---|
119 | <span tal:replace="python: item[0]">200</span> |
---|
120 | </option> |
---|
121 | </select> |
---|
122 | <br /> |
---|
123 | <label for="mode" i18n:translate=""> |
---|
124 | Course Ticket Session |
---|
125 | </label> |
---|
126 | <select name="ct_session" class="form-control half"> |
---|
127 | <option tal:repeat="item view/sessions" |
---|
128 | tal:attributes="value python:item[1]"> |
---|
129 | <span tal:replace="python: item[0]">2012/2013</span> |
---|
130 | </option> |
---|
131 | </select> |
---|
132 | <br /> |
---|
133 | <label for="semester" i18n:translate=""> |
---|
134 | Course Ticket Semester |
---|
135 | </label> |
---|
136 | <select name="ct_semester" class="form-control half"> |
---|
137 | <option tal:repeat="item view/semesters" |
---|
138 | tal:attributes="value python:item[1]"> |
---|
139 | <span tal:replace="python: item[0]">1st Semester</span> |
---|
140 | </option> |
---|
141 | </select> |
---|
142 | <br /> |
---|
143 | </span> |
---|
144 | |
---|
145 | <br /> |
---|
146 | |
---|
147 | <input type="submit" name="START" i18n:translate="" |
---|
148 | value="Create CSV file" |
---|
149 | class="btn btn-primary" /> |
---|
150 | </form> |
---|
151 | |
---|
152 | <script type="text/javascript"> |
---|
153 | function test() { |
---|
154 | if (document.getElementById('exporter').value == 'bursary' || |
---|
155 | document.getElementById('exporter').value == 'studentpayments' || |
---|
156 | document.getElementById('exporter').value == 'accommodationpayments' || |
---|
157 | document.getElementById('exporter').value == 'trimmedpayments' || |
---|
158 | document.getElementById('exporter').value == 'unpaidpayments') { |
---|
159 | document.getElementById('payment_dates').style.display = 'block'; |
---|
160 | document.getElementById('paycat').style.display = 'block'; |
---|
161 | document.getElementById('paysession').style.display = 'block'; |
---|
162 | document.getElementById('ct_data').style.display = 'none'; |
---|
163 | document.getElementById('level_session').style.display = 'none'; |
---|
164 | |
---|
165 | } else if (document.getElementById('exporter').value == 'coursetickets') { |
---|
166 | document.getElementById('ct_data').style.display = 'block'; |
---|
167 | document.getElementById('payment_dates').style.display = 'none'; |
---|
168 | document.getElementById('paycat').style.display = 'none'; |
---|
169 | document.getElementById('paysession').style.display = 'none'; |
---|
170 | document.getElementById('level_session').style.display = 'none'; |
---|
171 | |
---|
172 | } else if (document.getElementById('exporter').value == 'studentstudylevels' || |
---|
173 | document.getElementById('exporter').value == 'levelreportdata') { |
---|
174 | document.getElementById('ct_data').style.display = 'none'; |
---|
175 | document.getElementById('payment_dates').style.display = 'none'; |
---|
176 | document.getElementById('paycat').style.display = 'none'; |
---|
177 | document.getElementById('paysession').style.display = 'none'; |
---|
178 | document.getElementById('level_session').style.display = 'block'; |
---|
179 | |
---|
180 | } else { |
---|
181 | document.getElementById('ct_data').style.display = 'none'; |
---|
182 | document.getElementById('payment_dates').style.display = 'none'; |
---|
183 | document.getElementById('paycat').style.display = 'none'; |
---|
184 | document.getElementById('paysession').style.display = 'none'; |
---|
185 | document.getElementById('level_session').style.display = 'none'; |
---|
186 | } |
---|
187 | } |
---|
188 | </script> |
---|
189 | |
---|