]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/web/reports/xul/base.xul
correcting the calendar JS url
[working/Evergreen.git] / Open-ILS / web / reports / xul / base.xul
1 <?xml version="1.0"?>
2 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
3 <?xml-stylesheet href="reporter.css" type="text/css"?>
4 <?xml-stylesheet href="calendar/calendar-brown.css" type="text/css" ?>
5
6 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns:xhtml="http://www.w3.org/1999/xhtml" onload="loadIDL()">
7
8 <script src="utilities.js" type="application/x-javascript; e4x=1"/>
9 <script src="/opac/common/js/JSON.js" type="application/x-javascript; e4x=1"/>
10 <script src="/opac/common/js/md5.js" type="application/x-javascript; e4x=1"/>
11 <script src="xulbuilder.js" type="application/x-javascript; e4x=1"/>
12 <script src="source-setup.js" type="application/x-javascript; e4x=1"/>
13 <script src="source-browse.js" type="application/x-javascript; e4x=1"/>
14 <script src="template-config.js" type="application/x-javascript; e4x=1"/>
15 <script src="transforms.js" type="application/x-javascript; e4x=1"/>
16 <script src="operators.js" type="application/x-javascript; e4x=1"/>
17
18 <script type="application/x-javascript; e4x=1" src="/opac/common/js/jscalendar/calendar.js"/>
19 <script type="application/x-javascript; e4x=1" src="/opac/common/js/jscalendar/lang/calendar-en.js"/>
20 <script type="application/x-javascript; e4x=1" src="/opac/common/js/jscalendar/calendar-setup.js"/>
21
22 <groupbox flex="1">
23         <caption label="Database Source Browser"/>
24         <hbox flex="1">
25                 <hbox flex="1">
26                         <vbox flex="1">
27                                 <menulist label="Sources" popup="source-menu"/>
28                                 <tree
29                                         id="idl-browse-tree"
30                                         flex="2"
31                                         onclick="sourceTreeHandler(event)"
32                                         ondblclick="sourceTreeHandlerDblClick(event)"
33                                 >
34                                         <treecols>
35                                                 <treecol primary="true" label="Source Name" flex="1"/>
36                                         </treecols>
37                                         <treechildren id="sources-treetop" alternatingbackground="true" />
38                                 </tree>
39                         </vbox>
40                 </hbox>
41
42                 <splitter id="rtp-browse-splitter" collapse="before" persist="state hidden"><grippy/></splitter>
43
44                 <hbox flex="2">
45                         <vbox flex="1">
46                                 <hbox>
47                                         <label control="path-label" value="Source Specifier:"/>
48                                         <textbox id="path-label" flex="1"/>
49                                 </hbox>
50                                 <hbox flex="1">
51                                         <hbox flex="3">
52                                                 <vbox flex="1">
53                                                         <tree
54                                                                 id="class-view"
55                                                                 flex="3"
56                                                                 onclick="detailTreeHandler()"
57                                                                 ondblclick="addReportAtoms()"
58                                                                 enableColumnDrag="true"
59                                                         >
60                                                                 <treecols>
61                                                                         <treecol label="Field Name" flex="1"/>
62                                                                         <treecol label="Data Type" flex="0"/>
63                                                                 </treecols>
64                                                                 <treechildren id="class-treetop" alternatingbackground="true" />
65                                                         </tree>
66                                                 </vbox>
67                                         </hbox>
68
69                                         <splitter><grippy/></splitter>
70
71                                         <hbox flex="2">
72                                                 <vbox flex="1">
73                                                         <tree
74                                                                 id="trans-view"
75                                                                 flex="1"
76                                                                 seltype="single"
77                                                                 onclick="transformSelectHandler()"
78                                                                 ondblclick="addReportAtoms()"
79                                                                 enableColumnDrag="true"
80                                                         >
81                                                                 <treecols>
82                                                                         <treecol label="Field Transform" flex="1"/>
83                                                                         <treecol label="Params" flex="0" hidden="true"/>
84                                                                         <treecol label="Applicable Datatypes" flex="1" hidden="true"/>
85                                                                         <treecol label="Output Type" flex="1" />
86                                                                 </treecols>
87                                                                 <treechildren id="trans-treetop" alternatingbackground="true" />
88                                                         </tree>
89                                                 </vbox>
90                                         </hbox>
91                                 </hbox>
92                                 <hbox>
93                                         <spacer flex="1"/>
94                                         <button label="Add Selected Fields" id="source-add" oncommand="addReportAtoms()"/>
95                                 </hbox>
96                         </vbox>
97                 </hbox>
98         </hbox>
99 </groupbox>
100
101 <splitter style="margin:3px" id="rtp-browse-build-splitter" collapse="before" persist="state hidden"><grippy/></splitter>
102
103
104 <groupbox flex="1" orient="horizontal">
105         <caption label="Template Configuration"/>
106
107         <hbox flex="1">
108                 <vbox flex="1">
109                         <hbox>
110                         <vbox>
111                                 <label control="template-name" value="Name:" style="height:2em"/>
112                                 <label control="template-description" value="Description:"/>
113                         </vbox>
114                         <vbox flex="1">
115                                 <textbox id="template-name" flex="1"/>
116                                 <textbox id="template-description" multiline="true" flex="1" style="max-height:3em"/>
117                         </vbox>
118                         <vbox pack="end">
119                                 <button onclick="save_template();" label="Save"/>
120                         </vbox>
121                         </hbox>
122
123                         <hbox flex="1">
124                                 <tabbox flex="2" id="used-source-fields-tabbox">
125                                         <tabs>
126                                                 <tab
127                                                         id="dis_tab"
128                                                         label="Displayed Fields"
129                                                         onclick="transformSelectHandler(true);"
130                                                 />
131                                                 <tab
132                                                         id="filter_tab"
133                                                         label="Base Filters"
134                                                         onclick="transformSelectHandler(true);"
135                                                 />
136                                                 <tab
137                                                         id="aggfilter_tab"
138                                                         label="Aggregate Filters"
139                                                         disabled="true"
140                                                         onclick="transformSelectHandler(true);"
141                                                 />
142                                                 <!--
143                                                 <tab
144                                                         id="order_tab"
145                                                         label="Field Order"
146                                                         onclick="transformSelectHandler(true);"
147                                                 />
148                                                 -->
149                                         </tabs>
150
151                                         <tabpanels flex="1">
152                                                 <tabpanel id="dis_tabpanel" orient="vertical">
153                                                         <vbox flex="1">
154                                                                 <hbox flex="1">
155                                                                         <tree
156                                                                                 id="dis-col-view"
157                                                                                 flex="1"
158                                                                                 seltype="single"
159                                                                                 ondblclick="alterColumnLabel()"
160                                                                                 onselect="populateTransformContext()"
161                                                                                 enableColumnDrag="true"
162                                                                         >
163                                                                                 <treecols>
164                                                                                         <treecol label="Display Name" flex="3"/>
165                                                                                         <treecol label="Field Name" hidden="true" flex="1"/>
166                                                                                         <treecol label="Data Type" flex="1"/>
167                                                                                         <treecol label="Field Transform" flex="1"/>
168                                                                                         <treecol label="Field Transform Type" hidden="true" flex="1"/>
169                                                                                 </treecols>
170                                                                                 <treechildren id="dis-col-treetop" alternatingbackground="true" />
171                                                                         </tree>
172                                                                 </hbox>
173                                                                 <hbox pack="center">
174                                                                         <button label="Alter Display Header" oncommand="alterColumnLabel()"/>
175                                                                         <button type="menu" label="Change Transform">
176                                                                                 <menupopup id='dis_tab_trans_menu'/>
177                                                                         </button>
178                                                                         <spacer flex="1"/>
179                                                                         <button label="Move Up" oncommand="changeDisplayOrder('u')"/>
180                                                                         <button label="Move Down" oncommand="changeDisplayOrder('d')"/>
181                                                                         <spacer flex="1"/>
182                                                                         <button label="Remove Selected Fields" oncommand="removeReportAtom()"/>
183                                                                 </hbox>
184                                                         </vbox>
185                                                 </tabpanel>
186
187                                                 <tabpanel id="filter_tabpanel" orient="vertical">
188                                                         <vbox flex="1">
189                                                                 <hbox flex="1">
190                                                                         <tree
191                                                                                 id="filter-col-view"
192                                                                                 flex="1"
193                                                                                 seltype="single"
194                                                                                 onselect="populateTransformContext();populateOperatorContext();changeTemplateFilterValue();"
195                                                                                 enableColumnDrag="true"
196                                                                         >
197                                                                                 <treecols>
198                                                                                         <treecol label="Filter Field" flex="2"/>
199                                                                                         <treecol label="Field Name" hidden="true" flex="1"/>
200                                                                                         <treecol label="Data Type" hidden="true" flex="1"/>
201                                                                                         <treecol label="Field Transform" flex="1"/>
202                                                                                         <treecol label="Field Transform Type" hidden="true" flex="1"/>
203                                                                                         <treecol label="Operator" flex="1"/>
204                                                                                         <treecol label="Value" flex="1"/>
205                                                                                 </treecols>
206                                                                                 <treechildren id="filter-col-treetop" alternatingbackground="true" />
207                                                                         </tree>
208                                                                 </hbox>
209                                                                 <hbox pack="center">
210                                                                         <button type="menu" label="Change Transform">
211                                                                                 <menupopup id='filter_tab_trans_menu'/>
212                                                                         </button>
213                                                                         <button type="menu" label="Change Operator">
214                                                                                 <menupopup id='filter_tab_op_menu'/>
215                                                                         </button>
216                                                                         <button label="Change value" command="filter_tab_value_action"/>
217                                                                         <button label="Remove value" oncommand="removeTemplateFilterValue()"/>
218                                                                         <spacer flex="1"/>
219                                                                         <button label="Remove Selected Fields" oncommand="removeReportAtom()"/>
220                                                                 </hbox>
221                                                         </vbox>
222                                                 </tabpanel>
223
224                                                 <tabpanel id="aggfilter_tabpanel" orient="vertical">
225                                                         <vbox flex="1">
226                                                                 <hbox flex="1">
227                                                                         <tree
228                                                                                 id="aggfilter-col-view"
229                                                                                 flex="1"
230                                                                                 seltype="single"
231                                                                                 onselect="populateTransformContext();populateOperatorContext();changeTemplateFilterValue();"
232                                                                                 enableColumnDrag="true"
233                                                                         >
234                                                                                 <treecols>
235                                                                                         <treecol label="Filter Field" flex="2"/>
236                                                                                         <treecol label="Field Name" hidden="true" flex="1"/>
237                                                                                         <treecol label="Data Type" hidden="true" flex="1"/>
238                                                                                         <treecol label="Field Transform" flex="1"/>
239                                                                                         <treecol label="Field Transform Type" hidden="true" flex="1"/>
240                                                                                         <treecol label="Operator" flex="1"/>
241                                                                                         <treecol label="Value" flex="1"/>
242                                                                                 </treecols>
243                                                                                 <treechildren id="aggfilter-col-treetop" alternatingbackground="true" />
244                                                                         </tree>
245                                                                 </hbox>
246                                                                 <hbox pack="center">
247                                                                         <button type="menu" label="Change Transform">
248                                                                                 <menupopup id='aggfilter_tab_trans_menu'/>
249                                                                         </button>
250                                                                         <button type="menu" label="Change Operator">
251                                                                                 <menupopup id='aggfilter_tab_op_menu'/>
252                                                                         </button>
253                                                                         <button label="Change value" command="aggfilter_tab_value_action"/>
254                                                                         <button label="Remove value" oncommand="removeTemplateFilterValue()"/>
255                                                                         <spacer flex="1"/>
256                                                                         <button label="Remove Selected Fields" oncommand="removeReportAtom()"/>
257                                                                 </hbox>
258                                                         </vbox>
259                                                 </tabpanel>
260                                         </tabpanels>
261                                 </tabbox>
262                         </hbox>
263                 </vbox>
264         </hbox>
265
266         <splitter id="rtp-build-splitter" collapse="after" persist="state hidden"><grippy/></splitter>
267
268         <hbox flex="3">
269                 <tree
270                         id="used-sources"
271                         flex="1"
272                         onclick="renderSources(true)"
273                         ondblclick="changeTemplateFilterValue()"
274                         enableColumnDrag="true"
275                 >
276                         <treecols>
277                                 <treecol label="Source Specifier" flex="2"/>
278                                 <treecol label="Table Name" flex="1" hidden="true"/>
279                                 <treecol label="SQL Alias" flex="1" hidden="true"/>
280                                 <treecol label="Relationship" flex="1" hidden="true"/>
281                         </treecols>
282                         <treechildren id="used-sources-treetop" alternatingbackground="true" />
283                 </tree>
284         </hbox>
285
286 </groupbox>
287
288 <commandset>
289         <command id='filter_tab_value_action'/>
290         <command id='aggfilter_tab_value_action'/>
291 </commandset>
292
293 <popupset>
294         <popup id="source-menu" position="after_start"/>
295         <popup
296                 id="calendar-widget"
297                 position="before_start"
298         />
299 </popupset>
300
301 </window>
302