]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/web/reports/oils_rpt_builder.xhtml
Lay the groundwork for Dojo i18n of dynamic strings
[Evergreen.git] / Open-ILS / web / reports / oils_rpt_builder.xhtml
1 <?xml version='1.0'?>
2
3 <!DOCTYPE html PUBLIC 
4         "-//W3C//DTD XHTML 1.0 Transitional//EN" 
5         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" [
6         <!ENTITY nbsp " ">
7 ]>
8
9 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xi="http://www.w3.org/2001/XInclude">
10
11         <head>
12                 <title>Evergreen: Report Builder</title>
13                 <!--#include virtual="oils_rpt_common.xhtml"-->
14                 <script type="text/javascript">
15                 <![CDATA[
16                         dojo.addOnLoad(oilsInitReportBuilder);
17                         dojo.addOnUnload(oilsCleanupReports);
18                 ]]>
19                 </script>
20
21         </head>
22
23         <body>
24
25                 <div class='welcome_box'>
26                         <span>You are logged in as </span><b><span id='oils_rpt_user'/></b>
27                 </div>
28
29                 <div>
30                         <a class='oils_rpt_main_link' href='javascript:_l("oils_rpt.xhtml");'>Reports Home</a>
31                         <span id='oils_rpt_builder_cloning' class='hide_me' style='padding-left: 10px;'>
32                                 (<b>Cloning template "<span id='oils_rpt_build_cloning_name'/>"</b>)
33                         </span>
34                 </div>
35
36                 <div id='oils_rpt_tree_loading'>
37                         Loading...
38                 </div>
39
40                 <table class='hide_me' id='oils_rpt_table'>
41                         <tbody>
42                                 <tr>
43                                         <td id='oils_rpt_table_left_td' align='left'>
44
45                                                 <table id='oils_rpt_name_table'><tbody>
46                                                         <tr>
47                                                                 <td width='20%'>Template Name: </td>
48                                                                 <td><input size='32' id='oils_rpt_builder_new_name'/></td>
49                                                         </tr><tr>
50                                                                 <td>Template Description: </td>
51                                                                 <td><textarea cols='50' rows='2' id='oils_rpt_builder_new_desc'/></td>
52                                                         </tr><tr>
53                                                                 <td>Template Type: </td>
54                                                                 <td><select id='oils_rpt_builder_type_selector'/></td>
55                                                         </tr><tr>
56                                                                 <td>Save this Template: </td>
57                                                                 <td><input type='submit' value='Save Template' id='oils_rpt_builder_save_template'/></td>
58                                                         </tr>
59                                                 </tbody></table>
60
61
62                                                 <div id='oils_rpt_tree_div'>
63                                                 </div>
64
65                                                 <br/>
66                                                 <div>
67                                                         <b>**</b>
68                                                         <span style='padding-left: 6px;'>
69                                                                 Indicates that when filtering on the item, a list of named choices will be generated.
70                                                         </span>
71                                                 </div>
72
73                                         </td>
74                                         <td id='oils_rpt_table_right_td' align='right'>
75                                                 <div class='oils_rpt_info_div'>
76                                                         <div class='oils_rpt_info_item oils_rpt_info_title'>Template Display Items</div>
77                                                         <select id='oils_rpt_display_selector' class='oils_rpt_info_item oils_rpt_info_selector' multiple='multiple'/>
78                                                         <button onclick='oilsDelSelectedDisplayItems();'><u>X</u> Remove Selected</button>
79                                                         <button onclick='oilsMoveUpDisplayItems();'>Move &uarr;</button>
80                                                         <button onclick='oilsMoveDownDisplayItems();'>Move &darr;</button>
81                                                 </div>
82                                                 <div class='oils_rpt_info_div'>
83                                                         <div class='oils_rpt_info_item oils_rpt_info_title'>Template Filters</div>
84                                                         <select id='oils_rpt_filter_selector' class='oils_rpt_info_item oils_rpt_info_selector' multiple='multiple'/>
85                                                         <button onclick='oilsDelSelectedFilterItems();'><u>X</u> Remove Selected</button>
86                                                 </div>
87                                                 <div class='oils_rpt_info_div'>
88                                                         <div class='oils_rpt_info_item oils_rpt_info_title'>Report Aggregate Filters</div>
89                                                         <select id='oils_rpt_agg_filter_selector' class='oils_rpt_info_item oils_rpt_info_selector' multiple='multiple'/>
90                                                         <button onclick='oilsDelSelectedAggFilterItems();'><u>X</u> Remove Selected</button>
91                                                 </div>
92                                                 <div class='oils_rpt_info_div'>
93                                                         <span style='color:red;font-weight:bold;'>Hint: </span> Double-click on an item to see the item details.
94                                                 </div>
95                                         </td>   
96                                 </tr>
97                         </tbody>
98                 </table>
99                 <span class='hide_me' id='oils_rpt_tree_label'>Template Types</span>
100
101
102                 <div id='oils_rpt_column_editor' class='floaty hide_me'>
103
104                         <table id='oils_rpt_editor_tab_table' class='oils_rpt_tab_table'><tbody>
105                                 <tr>
106                                         <td width='25%' class='oils_rpt_tab_picker_selected'><a id='oils_rpt_tform_tab' href='javascript:void(0);'>Display Items</a></td>
107                                         <td width='25%'><a id='oils_rpt_filter_tab' href='javascript:void(0);'>Filters</a></td>
108                                         <td width='25%'><a id='oils_rpt_agg_filter_tab' href='javascript:void(0);'>Aggregate Filters</a></td>
109                                         <!--
110                                         <td width='25%'><a id='oils_rpt_order_by_tab' href='javascript:void(0);'>Column Sorting</a></td>
111                                         -->
112                                 </tr>
113                         </tbody></table>
114
115                         <div style='margin-bottom: 10px;'>
116                                 <b style='padding-right: 8px;' id='oils_rpt_editor_window_label'/>
117                                 (<span id='oils_rpt_editor_window_datatype'/>)
118                         </div>
119                         <div id='oils_rpt_tform_div'>
120                                 <input size='42' id='oils_rpt_tform_label_input'/>
121                                 <div class='oils_rpt_field_editor_window'>
122                                         <div style='margin-bottom: 10px;'>Select how this field should be displayed:</div>
123                                         <div id='oils_rpt_tform_table'/>
124                                 </div>
125                                 <br/><br/>
126                                 <button id='oils_rpt_tform_submit'>Add Item</button>
127                         </div>
128
129                         <div id='oils_rpt_filter_div' class='hide_me'>
130                                 <div class='oils_rpt_field_editor_window'>
131                                         <div style='margin-bottom: 10px;'>Select what filter should be applied to this field:</div>
132                                         <div>
133                                                 <table><tbody><tr>
134                                                         <td>Choose a Transform: </td>
135                                                         <td>
136                                                                 <div id='oils_rpt_filter_tform_table'/>
137                                                         </td>
138                                                 </tr>
139                                                 <tr>    
140                                                         <td>Choose a Filter: </td>
141                                                         <td>
142                                                                 <div id='oils_rpt_filter_op_table'/>
143                                                         </td>
144                                                 </tr></tbody></table>
145                                         </div>
146
147                                 </div>
148                                 <button id='oils_rpt_filter_submit'>Create Filter</button>
149                         </div>
150
151                         <div id='oils_rpt_agg_filter_div' class='hide_me'>
152                                 <div class='oils_rpt_field_editor_window'>
153                                         <div style='margin-bottom: 10px;'>
154                                                 Select what aggregate filter should be applied to this field:
155                                         </div>
156                                         <div>
157                                                 <table><tbody><tr>
158                                                         <td>Choose a Transform: </td>
159                                                         <td>
160                                                                 <div id='oils_rpt_agg_filter_tform_table'/>
161                                                         </td>
162                                                 </tr>
163                                                 <tr>    
164                                                         <td>Choose a Filter: </td>
165                                                         <td>
166                                                                 <div id='oils_rpt_agg_filter_op_table'/>
167                                                         </td>
168                                                 </tr></tbody></table>
169                                         </div>
170                                 </div>
171                                 <button id='oils_rpt_agg_filter_submit'>Create Aggregate Filter</button>
172                         </div>
173
174
175
176                         <div id='oils_rpt_order_by_div' class='hide_me'>
177                                 <div class='oils_rpt_field_editor_window'>
178                                         <div style='margin-bottom: 10px;'>
179                                                 Select how the columns should be sorted
180                                         </div>
181                                         <div>
182                                                 <table><tbody>
183                                                         <tr>
184                                                         <td>Choose a column: </td>
185                                                         <td>
186                                                                 <select id='oils_rpt_order_by_selector'/>
187                                                         </td>
188                                                 </tr>
189                                                 <tr>    
190                                                         <td>Choose the direction the sorting should occur: </td>
191                                                         <td>
192                                                                 <select id='oils_rpt_order_by_dir'>
193                                                                         <option value='ascending' selected='selected'>Ascending</option>
194                                                                         <option value='descending'>Descending</option>
195                                                                 </select>
196                                                         </td>
197                                                 </tr></tbody></table>
198                                         </div>
199                                 </div>
200                                 <button id='oils_rpt_order_by_submit'>Add Sort</button>
201                         </div>
202
203
204
205                         <div id='oils_rpt_column_editor_close_div'>
206                                 <button id='oils_rpt_column_editor_close_button'>Close Window</button>
207                         </div>
208                 </div>
209
210
211                 <span class='hide_me' id='oils_rpt_confirm_new_report'>
212                         This will destroy the report you are currently constructing.  
213                         Are you sure you wish to do this?
214                 </span>
215
216         </body>
217 </html>
218
219