]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/web/reports/oils_rpt_editor.xhtml
</link> is not valid HTML
[working/Evergreen.git] / Open-ILS / web / reports / oils_rpt_editor.xhtml
1 <div id='oils_rpt_editor_div'>
2         <table width='100%' id='oils_rpt_editor_table'>
3                 <tbody>
4                         <tr>
5                                 <th>&reports.oils_rpt_editor.template_name;</th>
6                                 <td><span id='oils_rpt_report_editor_template_name'/></td>
7                         </tr>
8                         <tr>
9                                 <th>&reports.oils_rpt_editor.template_creator;</th>
10                                 <td><span id='oils_rpt_report_editor_template_creator'/></td>
11                         </tr>
12                         <tr>
13                                 <th>&reports.oils_rpt_editor.template_description;</th>
14                                 <td><span id='oils_rpt_report_editor_template_description'/></td>
15                         </tr>
16
17                         <tr>
18                                 <th>&reports.oils_rpt_editor.report_name;</th>
19                                 <script type="text/javascript">
20                                         var oils_rpt_report_editor_name_func = function(obj) {
21                                                 if(obj.value) removeCSSClass(obj, OILS_RPT_INVALID_DATA);
22                                                 else addCSSClass(obj, OILS_RPT_INVALID_DATA);
23                                         }
24                                 </script>
25                                 <td>
26                                         <input type='text' id='oils_rpt_report_editor_name' class='oils_rpt_invalid_input'
27                                                 onkeyup='oils_rpt_report_editor_name_func(this);' 
28                                                 onchange='oils_rpt_report_editor_name_func(this);'/>
29                                 </td>
30                         </tr>
31                         <tr>
32                                 <th>&reports.oils_rpt_editor.report_description;</th>
33                                 <td><textarea cols='45' rows='2' id='oils_rpt_report_editor_desc'/></td>
34                         </tr>
35                         <tr>
36                                 <th>&reports.oils_rpt_editor.report_columns;</th>
37                                 <td><b id='oils_rpt_report_editor_cols'/></td>
38                         </tr>
39                         <tr class='hide_me' id='oils_rpt_editor_pivot_label_row'>
40                                 <th>&reports.oils_rpt_editor.pivot_label_column;</th>
41                                 <td>
42                     <select id='oils_rpt_editor_pivot_label'>
43                         <option selected='selected' value=''> -- &reports.oils_rpt_editor.select_option; -- </option>
44                     </select>
45                 </td>
46                         </tr>
47                         <tr class='hide_me' id='oils_rpt_editor_pivot_data_row'>
48                                 <th>&reports.oils_rpt_editor.pivot_data_column;</th>
49                                 <td>
50                     <select id='oils_rpt_editor_pivot_data'>
51                     </select>
52                 </td>
53                         </tr>
54
55                         <!--
56                         <tr><td colspan='2'><hr/></td></tr>
57                         -->
58                         <tr>
59                                 <th>&reports.oils_rpt_editor.store_report_definition;</th>
60                                 <td>
61                                         <div style='margin-bottom: 7px;'>
62                                                 <span>&reports.oils_rpt_editor.selected_folder;</span>
63                                                 <b id='oils_rpt_report_editor_selected_folder'/>
64                                         </div>
65                                         <span id='oils_rpt_report_editor_dest_folder'/>
66                                 </td>
67                         </tr>
68                         <!--
69                         <tr><td colspan='2'><hr/></td></tr>
70                         -->
71                         <tr>
72                                 <td colspan='2' style='padding: 10px;'>
73                                         <!--#include virtual="oils_rpt_param_editor.xhtml"-->
74                                 </td>
75                         </tr>
76                         <!--
77                         <tr><td colspan='2'><hr/></td></tr>
78                         -->
79                         <!--
80                         <tr>
81                                 <th colspan='2'>Output Options</th>
82                         </tr>
83                         -->
84                         <tr>
85                                 <td colspan='2'>
86                                         <div><b>&reports.oils_rpt_editor.output_options;</b></div>
87                                         <ul>
88                                                 <li><input type="checkbox" id="oils_rpt_format_excel" value="t" checked="checked"/><span>&reports.oils_rpt_editor.excel_output;</span></li>
89                                                 <li><input type="checkbox" id="oils_rpt_format_csv" value="t"/><span>&reports.oils_rpt_editor.csv_output;</span></li>
90                                                 <li>
91                                                         <input type="checkbox" id="oils_rpt_format_html" value="t" checked="checked"/>&reports.oils_rpt_editor.html_output;
92                                                         <ul>
93                                                                 <li><input type="checkbox" id="oils_rpt_format_chart_bar" value="t" checked="checked"/><span>&reports.oils_rpt_editor.bar_charts;</span></li>
94                                                                 <!--
95                                                                 <li><input type="checkbox" id="oils_rpt_format_chart_pie" value="t"/><span>Pie Charts</span></li>
96                                                                 -->
97                                                                 <li><input type="checkbox" id="oils_rpt_format_chart_line" value="t"/><span>&reports.oils_rpt_editor.line_charts;</span></li>
98                                                         </ul>
99                                                 </li>
100                                         </ul>
101
102                                 </td>
103                         </tr>
104                         <!--
105                         <tr><td colspan='2'><hr/></td></tr>
106                         -->
107                         <tr>
108                                 <th>&reports.oils_rpt_editor.recurring_report;</th>
109                                 <td>
110                                         <input type="checkbox" id="oils_rpt_recur" value="t"
111                                                 onclick='
112                                                         if(this.checked) {
113                                                                 DOM.oils_rpt_recur_count.disabled = false;
114                                                                 DOM.oils_rpt_recur_interval_type.disabled = false;
115                                                         } else {
116                                                                 DOM.oils_rpt_recur_count.disabled = true;
117                                                                 DOM.oils_rpt_recur_interval_type.disabled = true;
118                                                         }
119                                         '/>
120                                 </td>
121                         </tr>
122                         <tr>
123                                 <th>&reports.oils_rpt_editor.recurring_interval;</th>
124                                 <td>
125                                         <select id="oils_rpt_recur_count" disabled='disabled'>
126                                                 <option value='1'>1</option>
127                                                 <option value='2'>2</option>
128                                                 <option value='3'>3</option>
129                                                 <option value='4'>4</option>
130                                                 <option value='5'>5</option>
131                                                 <option value='6'>6</option>
132                                                 <option value='7'>7</option>
133                                                 <option value='8'>8</option>
134                                                 <option value='9'>9</option>
135                                                 <option value='10'>10</option>
136                                                 <option value='11'>11</option>
137                                                 <option value='12'>12</option>
138                                                 <option value='13'>13</option>
139                                                 <option value='14'>14</option>
140                                                 <option value='15'>15</option>
141                                                 <option value='16'>16</option>
142                                                 <option value='17'>17</option>
143                                                 <option value='18'>18</option>
144                                                 <option value='19'>19</option>
145                                                 <option value='20'>20</option>
146                                                 <option value='21'>21</option>
147                                                 <option value='22'>22</option>
148                                                 <option value='23'>23</option>
149                                                 <option value='24'>24</option>
150                                         </select>
151                                         <select id="oils_rpt_recur_interval_type" disabled='disabled'>
152                                                 <option value="days">&reports.oils_rpt_editor.days;</option>
153                                                 <option value="weeks">&reports.oils_rpt_editor.weeks;</option>
154                                                 <option value="months">&reports.oils_rpt_editor.months;</option>
155                                         </select>
156                                 </td>
157                         </tr>
158                         <tr>
159                                 <!-- XXX: This needs to be replaced with a radio button widget -->
160                                 <th colspan="2">
161                                         <div>
162                                                 <input type='checkbox' id='oils_rpt_report_editor_run_now' checked='checked'
163                                                         onclick='
164                                                                 if(this.checked) {
165                                                                         DOM.oils_rpt_param_editor_sched_start_date.disabled = true;
166                                                                         DOM.oils_rpt_param_editor_sched_start_hour.disabled = true;
167                                                                         dojo.attr(dojo.byId("oils_rpt_report_editor_schedule"), "checked", false);
168                                                                 } else {
169                                                                         DOM.oils_rpt_param_editor_sched_start_date.disabled = false;
170                                                                         DOM.oils_rpt_param_editor_sched_start_hour.disabled = false;
171                                                                         dojo.attr(dojo.byId("oils_rpt_report_editor_schedule"), "checked", true);
172                                                                 }
173                                                         '
174                                                 />
175                                                 <span>&reports.oils_rpt_editor.run_asap;</span>
176                                         </div>
177                                         <div>
178                                                 <input type='checkbox' id='oils_rpt_report_editor_schedule'
179                                                         onclick='
180                                                                 if(this.checked) {
181                                                                         DOM.oils_rpt_param_editor_sched_start_date.disabled = false;
182                                                                         DOM.oils_rpt_param_editor_sched_start_hour.disabled = false;
183                                                                         dojo.attr(dojo.byId("oils_rpt_report_editor_run_now"), "checked", false);
184                                                                 } else {
185                                                                         DOM.oils_rpt_param_editor_sched_start_date.disabled = true;
186                                                                         DOM.oils_rpt_param_editor_sched_start_hour.disabled = true;
187                                                                         dojo.attr(dojo.byId("oils_rpt_report_editor_run_now"), "checked", true);
188                                                                 }
189                                                         '
190                                                 />
191
192                                                 <!-- XXX: This should be replaced with a standard date/time picker for i18n purposes -->
193                                                 <input id="oils_rpt_param_editor_sched_start_date" type="text" size="10" disabled="disabled"/>
194                                                 <select id='oils_rpt_param_editor_sched_start_hour' disabled="disabled">
195                                                         <option value="00:00">&reports.oils_rpt_editor.midnight;</option>
196                                                         <option value="01:00">1 AM</option>
197                                                         <option value="02:00">2 AM</option>
198                                                         <option value="03:00">3 AM</option>
199                                                         <option value="04:00">4 AM</option>
200                                                         <option value="05:00">5 AM</option>
201                                                         <option value="06:00">6 AM</option>
202                                                         <option value="07:00">7 AM</option>
203                                                         <option value="09:00">8 AM</option>
204                                                         <option value="09:00">9 AM</option>
205                                                         <option value="10:00">10 AM</option>
206                                                         <option value="11:00">11 AM</option>
207                                                         <option value="12:00">&reports.oils_rpt_editor.noon;</option>
208                                                         <option value="13:00">1 PM</option>
209                                                         <option value="14:00">2 PM</option>
210                                                         <option value="15:00">3 PM</option>
211                                                         <option value="16:00">4 PM</option>
212                                                         <option value="17:00">5 PM</option>
213                                                         <option value="18:00">6 PM</option>
214                                                         <option value="19:00">7 PM</option>
215                                                         <option value="20:00">8 PM</option>
216                                                         <option value="21:00">9 PM</option>
217                                                         <option value="22:00">10 PM</option>
218                                                         <option value="23:00">11 PM</option>
219                                                 </select>
220                                         </div>
221                                 </th>
222                         </tr>
223                         <tr>
224                                 <th>&reports.oils_rpt_editor.sent_to_email;</th>
225                                 <td><input id="oils_rpt_param_editor_sched_email" type="text" size="25"/></td>
226                         </tr>
227                         <tr>
228                                 <th>&reports.oils_rpt_editor.storage_folder_for_output;</th>
229                                 <td>
230                                         <div style='margin-bottom: 7px;'>
231                                                 <span>&reports.oils_rpt_editor.selected_folder;</span>
232                                                 <b id='oils_rpt_output_selected_folder'/>
233                                         </div>
234                                         <span id='oils_rpt_output_dest_folder'/>
235                                 </td>
236                         </tr>
237
238                         <tr>
239                                 <td colspan='2'>
240                                         <input id='oils_rpt_report_editor_save' type='submit' value='&reports.oils_rpt_editor.save_report;'/>
241                                 </td>
242                         </tr>
243
244                 </tbody>
245         </table>
246
247         <span id='oils_rpt_empty_param' class='hide_me'>
248                 &reports.oils_rpt_editor.empty_parameter;
249         </span>
250
251     <span id='oils_rpt_report_exists' class='hide_me'>
252         &reports.oils_rpt_editor.same_name;
253     </span>
254
255 </div>