]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/xul/staff_client/server/admin/offline_manage_xacts.xul
clearing the cache since it started to interfere with the offline cgi scripts. tweak...
[Evergreen.git] / Open-ILS / xul / staff_client / server / admin / offline_manage_xacts.xul
1 <?xml version="1.0"?>
2 <!-- Application: Evergreen Staff Client -->
3 <!-- Screen: Patron Display -->
4
5 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
6 <!-- STYLESHEETS -->
7 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
8 <?xml-stylesheet href="chrome://open_ils_staff_client/skin/global.css" type="text/css"?>
9 <?xml-stylesheet href="/xul/server/skin/global.css" type="text/css"?>
10 <?xml-stylesheet href="/xul/server/skin/admin_offline_manage_xacts.css" type="text/css"?>
11
12 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
13 <!-- LOCALIZATION -->
14 <!DOCTYPE window PUBLIC "" ""[
15         <!--#include virtual="/opac/locale/en-US/lang.dtd"-->
16 ]>
17
18 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
19 <!-- OVERLAYS -->
20 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
21
22 <window id="admin_offline_manage_xacts_win" 
23         onload="try { my_init(); } catch(E) { alert(E); }"
24         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
25
26         <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
27         <!-- BEHAVIOR -->
28         <script type="text/javascript">var myPackageDir = 'open_ils_staff_client'; var IAMXUL = true; var g = {};</script>
29         <scripts id="openils_util_scripts"/>
30
31         <script type="text/javascript" src="/xul/server/main/JSAN.js"/>
32         <script>
33         <![CDATA[
34                 function my_init() {
35                         try {
36                                 netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
37                                 if (typeof JSAN == 'undefined') { throw( "The JSAN library object is missing."); }
38                                 JSAN.errorLevel = "die"; // none, warn, or die
39                                 JSAN.addRepository('/xul/server/');
40                                 JSAN.use('util.error'); g.error = new util.error();
41                                 g.error.sdump('D_TRACE','my_init() for admin_offline_manage_xacts.xul');
42
43                                 g.cgi = new CGI();
44
45                                 JSAN.use('admin.offline_manage_xacts'); g.admin = new admin.offline_manage_xacts();
46                                 g.admin.init({});
47
48                         } catch(E) {
49                                 var err_msg = "!! This software has encountered an error.  Please tell your friendly " +
50                                         "system administrator or software developer the following:\n" 
51                                         + 'admin/offline_manage_xacts.xul\n' + E + '\n';
52                                 try { g.error.sdump('D_ERROR',err_msg); } catch(E) { dump(err_msg); }
53                                 alert(err_msg);
54                         }
55                 }
56
57         ]]>
58         </script>
59
60         <vbox id="admin_offline_manage_xacts_main" flex="1">
61
62                 <groupbox flex="1">
63                         <caption label="Offline Sessions"/>
64                         <hbox>
65                                 <button id="refresh" label="Refresh" accesskey="R"/>
66                                 <button id="create" label="Create" disabled="true"/>
67                                 <button id="execute" label="Process" disabled="true"/>
68                                 <spacer flex="1"/>
69                                 <button id="upload" label="Upload" disabled="true"/>
70                         </hbox>
71                         <tree id="session_tree" enableColumnDrag="true" seltype="single" flex="1"/>
72                 </groupbox>
73                         <splitter><grippy/></splitter>
74                 <deck flex="1" id="deck">
75                         <label value=" "/>
76                         <groupbox flex="1">
77                                 <caption id="status_caption" label="Uploaded Transaction Files"/>
78                                 <description style="background-color: lightgreen">
79                                 The transactions from the following workstations have been uploaded, but not processed.  When all expected workstations are present here, use the Process button above.
80                                 </description>
81                                 <tree id="script_tree" enableColumnDrag="true" seltype="single" flex="1"/>
82                         </groupbox>
83                         <groupbox flex="1">
84                                 <caption id="errors_caption" label="Exceptions"/>
85                                 <description style="background-color: orange">
86                                 All transactions from this session have been processed.  The errors, if any, are listed below.
87                                 </description>
88                                 <vbox flex="1">
89                                         <hbox>
90                                                 <spacer flex="1"/>
91                                                 <button id='retrieve_item' label="Retrieve Item" disabled="true"/>
92                                                 <button id='retrieve_patron' label="Retrieve Patron" disabled="true"/>
93                                                 <button id='retrieve_details' label="Details" disabled="true"/>
94                                         </hbox>
95                                         <tree id="error_tree" enableColumnDrag="true" seltype="multiple" flex="1"/>
96                                 </vbox>
97                         </groupbox>
98                         <groupbox flex="1">
99                                 <caption id="errors_caption" label="The session is now processing.  Hit Refresh to check its status."/>
100                         </groupbox>
101                 </deck>
102                 <hbox id="iframe_placeholder" hidden="false" flex="0"/>
103
104         </vbox>
105
106 </window>
107