]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/web/reports/oils_rpt_builder.xhtml
added move up/down buttons to display items for basic sorting
[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         </head>
15
16         <body onload='oilsInitReportBuilder();' onunload='oilsCleanupReports();'>
17
18                 <div class='welcome_box'>
19                         <span>You are logged in as </span><b><span id='oils_rpt_user'/></b>
20                 </div>
21
22                 <div>
23                         <a class='oils_rpt_main_link' href='javascript:_l("oils_rpt.xhtml");'>Reports Home</a>
24                 </div>
25
26                 <div id='oils_rpt_tree_loading'>
27                         Loading...
28                 </div>
29
30                 <table class='hide_me' id='oils_rpt_table'>
31                         <tbody>
32                                 <tr>
33                                         <td id='oils_rpt_table_left_td' align='left'>
34
35                                                 <table id='oils_rpt_name_table'><tbody>
36                                                         <tr>
37                                                                 <td width='20%'>Template Name: </td>
38                                                                 <td><input size='32' id='oils_rpt_builder_new_name'/></td>
39                                                         </tr><tr>
40                                                                 <td>Template Description: </td>
41                                                                 <td><textarea cols='50' rows='2' id='oils_rpt_builder_new_desc'/></td>
42                                                         </tr><tr>
43                                                                 <td>Template Type: </td>
44                                                                 <td><select id='oils_rpt_builder_type_selector'/></td>
45                                                         </tr><tr>
46                                                                 <td>Save this Template: </td>
47                                                                 <td><input type='submit' value='Save Template' id='oils_rpt_builder_save_template'/></td>
48                                                         </tr>
49                                                 </tbody></table>
50
51                                                 <div id='oils_rpt_tree_div'>
52                                                 </div>
53                                         </td>
54                                         <td id='oils_rpt_table_right_td' align='right'>
55                                                 <div class='oils_rpt_info_div'>
56                                                         <div class='oils_rpt_info_item oils_rpt_info_title'>Template Display Items</div>
57                                                         <select id='oils_rpt_display_selector' class='oils_rpt_info_item oils_rpt_info_selector' multiple='multiple'/>
58                                                         <button onclick='oilsDelSelectedDisplayItems();'><u>X</u> Remove Selected</button>
59                                                         <button onclick='oilsMoveUpDisplayItems();'>Move &uarr;</button>
60                                                         <button onclick='oilsMoveDownDisplayItems();'>Move &darr;</button>
61                                                 </div>
62                                                 <div class='oils_rpt_info_div'>
63                                                         <div class='oils_rpt_info_item oils_rpt_info_title'>Template Filters</div>
64                                                         <select id='oils_rpt_filter_selector' class='oils_rpt_info_item oils_rpt_info_selector' multiple='multiple'/>
65                                                         <button onclick='oilsDelSelectedFilterItems();'><u>X</u> Remove Selected</button>
66                                                 </div>
67                                                 <div class='oils_rpt_info_div'>
68                                                         <div class='oils_rpt_info_item oils_rpt_info_title'>Report Aggregate Filters</div>
69                                                         <select id='oils_rpt_agg_filter_selector' class='oils_rpt_info_item oils_rpt_info_selector' multiple='multiple'/>
70                                                         <button onclick='oilsDelSelectedAggFilterItems();'><u>X</u> Remove Selected</button>
71                                                 </div>
72                                         </td>   
73                                 </tr>
74                         </tbody>
75                 </table>
76                 <span class='hide_me' id='oils_rpt_tree_label'>Template Types</span>
77
78
79                 <div id='oils_rpt_column_editor' class='floaty hide_me'>
80
81                         <table id='oils_rpt_editor_tab_table' class='oils_rpt_tab_table'><tbody>
82                                 <tr>
83                                         <td width='25%'><a id='oils_rpt_tform_tab' href='javascript:void(0);'>Display Items</a></td>
84                                         <td width='25%'><a id='oils_rpt_filter_tab' href='javascript:void(0);'>Filters</a></td>
85                                         <td width='25%'><a id='oils_rpt_agg_filter_tab' href='javascript:void(0);'>Aggregate Filters</a></td>
86                                         <!--
87                                         <td width='25%'><a id='oils_rpt_order_by_tab' href='javascript:void(0);'>Column Sorting</a></td>
88                                         -->
89                                 </tr>
90                         </tbody></table>
91
92                         <div style='margin-bottom: 10px;'>
93                                 <b style='padding-right: 8px;' id='oils_rpt_editor_window_label'/>
94                                 (<span id='oils_rpt_editor_window_datatype'/>)
95                         </div>
96                         <div id='oils_rpt_tform_div'>
97                                 <input size='28' id='oils_rpt_tform_label_input'/>
98                                 <div class='oils_rpt_field_editor_window'>
99                                         <div style='margin-bottom: 10px;'>Select how this field should be displayed:</div>
100                                         <div id='oils_rpt_tform_table'/>
101                                 </div>
102                                 <br/><br/>
103                                 <button id='oils_rpt_tform_submit'>Add Item</button>
104                         </div>
105
106                         <div id='oils_rpt_filter_div' class='hide_me'>
107                                 <div class='oils_rpt_field_editor_window'>
108                                         <div style='margin-bottom: 10px;'>Select what filter should be applied to this field:</div>
109                                         <div>
110                                                 <table><tbody><tr>
111                                                         <td>Choose a Transform: </td>
112                                                         <td>
113                                                                 <div id='oils_rpt_filter_tform_table'/>
114                                                         </td>
115                                                 </tr>
116                                                 <tr>    
117                                                         <td>Choose a Filter: </td>
118                                                         <td>
119                                                                 <div id='oils_rpt_filter_op_table'/>
120                                                         </td>
121                                                 </tr></tbody></table>
122                                         </div>
123
124                                 </div>
125                                 <button id='oils_rpt_filter_submit'>Create Filter</button>
126                         </div>
127
128                         <div id='oils_rpt_agg_filter_div' class='hide_me'>
129                                 <div class='oils_rpt_field_editor_window'>
130                                         <div style='margin-bottom: 10px;'>
131                                                 Select what aggregate filter should be applied to this field:
132                                         </div>
133                                         <div>
134                                                 <table><tbody><tr>
135                                                         <td>Choose a Transform: </td>
136                                                         <td>
137                                                                 <div id='oils_rpt_agg_filter_tform_table'/>
138                                                         </td>
139                                                 </tr>
140                                                 <tr>    
141                                                         <td>Choose a Filter: </td>
142                                                         <td>
143                                                                 <div id='oils_rpt_agg_filter_op_table'/>
144                                                         </td>
145                                                 </tr></tbody></table>
146                                         </div>
147                                 </div>
148                                 <button id='oils_rpt_agg_filter_submit'>Create Aggregate Filter</button>
149                         </div>
150
151
152
153                         <div id='oils_rpt_order_by_div' class='hide_me'>
154                                 <div class='oils_rpt_field_editor_window'>
155                                         <div style='margin-bottom: 10px;'>
156                                                 Select how the columns should be sorted
157                                         </div>
158                                         <div>
159                                                 <table><tbody>
160                                                         <tr>
161                                                         <td>Choose a column: </td>
162                                                         <td>
163                                                                 <select id='oils_rpt_order_by_selector'/>
164                                                         </td>
165                                                 </tr>
166                                                 <tr>    
167                                                         <td>Choose the direction the sorting should occur: </td>
168                                                         <td>
169                                                                 <select id='oils_rpt_order_by_dir'>
170                                                                         <option value='ascending' selected='selected'>Ascending</option>
171                                                                         <option value='descending'>Descending</option>
172                                                                 </select>
173                                                         </td>
174                                                 </tr></tbody></table>
175                                         </div>
176                                 </div>
177                                 <button id='oils_rpt_order_by_submit'>Add Sort</button>
178                         </div>
179
180
181
182                         <div id='oils_rpt_column_editor_close_div'>
183                                 <button id='oils_rpt_column_editor_close_button'>Close Window</button>
184                         </div>
185                 </div>
186
187
188                 <span class='hide_me' id='oils_rpt_confirm_new_report'>
189                         This will destroy the report you are currently constructing.  
190                         Are you sure you wish to do this?
191                 </span>
192
193         </body>
194 </html>
195
196