]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/xul/staff_client/chrome/content/circ/offline.xul
scrollbars and remove incorrect (well, "all") instructions
[Evergreen.git] / Open-ILS / xul / staff_client / chrome / content / circ / offline.xul
1 <?xml version="1.0"?>
2 <!-- Application: Evergreen Staff Client -->
3 <!-- Screen: Example Template for remote xul -->
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
10 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
11 <!-- LOCALIZATION -->
12 <!DOCTYPE window SYSTEM "chrome://open_ils_staff_client/locale/lang.dtd">
13
14 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
15 <!-- OVERLAYS -->
16 <?xul-overlay href="chrome://open_ils_staff_client/content/OpenILS/util_overlay_offline.xul"?>
17
18 <window id="offline_win" sizemode="maximized"
19         onload="try { my_init(); } catch(E) { alert(E); }"
20         xmlns:html="http://www.w3.org/1999/xhtml"
21         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
22
23         <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
24         <!-- BEHAVIOR -->
25         <script type="text/javascript">
26                 var myPackageDir = 'open_ils_staff_client'; var IAMXUL = true; var g = {};
27         </script>
28         <scripts id="openils_util_scripts"/>
29
30         <script type="text/javascript" src="chrome://open_ils_staff_client/content/main/JSAN.js"/>
31         <script>
32         <![CDATA[
33                 function my_init() {
34                         try {
35                                 netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
36                                 if (typeof JSAN == 'undefined') { throw( "The JSAN library object is missing."); }
37                                 JSAN.errorLevel = "die"; // none, warn, or die
38                                 JSAN.addRepository('..');
39                                 JSAN.use('util.error'); g.error = new util.error();
40                                 g.error.sdump('D_TRACE','my_init() for offline.xul');
41
42                                 if (typeof window.xulG == 'object' && typeof window.xulG.set_tab_name == 'function') {
43                                         try { window.xulG.set_tab_name('Standalone'); } catch(E) { alert(E); }
44                                 }
45
46                                 g.cgi = new CGI();
47
48                                 JSAN.use('circ.offline'); g.offline = new circ.offline();
49
50                                 g.offline.init();
51
52
53                                 JSAN.use('util.date');
54                                 
55                                 function update_clock() {
56                                         var today = util.date.formatted_date(new Date(),"%F %H:%M:%s");
57                                         document.getElementById('today').setAttribute('label',today);
58                                         setTimeout(update_clock,1);
59                                 }
60
61                                 update_clock();
62
63                         } catch(E) {
64                                 var err_msg = "!! This software has encountered an error.  Please tell your friendly " +
65                                         "system administrator or software developer the following:\ncirc/offline.xul\n" + E + '\n';
66                                 try { g.error.sdump('D_ERROR',err_msg); } catch(E) { dump(err_msg); }
67                                 alert(err_msg);
68                         }
69                 }
70
71         ]]>
72         </script>
73
74         <groupbox flex="1" class="my_overflow">
75                 <caption label="Evergreen Offline"/>
76                 <hbox id="nav">
77                         <button id="today" onclick="alert('Not Yet Implemented');" tooltiptext="Estimated Server Time - Click to adjust"/>
78                         <spacer flex="1"/>
79                         <button id="cmd_checkout" label="Check Out" accesskey="C"/>
80                         <button id="cmd_renew" label="Renew" accesskey="r"/>
81                         <button id="cmd_in_house_use" label="In House Use" accesskey="h"/>
82                         <button id="cmd_checkin" label="Check In" accesskey="i"/>
83                         <button id="cmd_register_patron" label="Register Patron" accesskey="p"/>
84                         <button id="cmd_print_last_receipt" label="Last Receipt" accesskey="l"/>
85                         <button id="cmd_exit" label="Exit" accesskey="x"/>
86                 </hbox>
87                 <deck id="main" style="border: solid thin red; background-color: #FFAAAA;" flex="1">
88                         <vbox flex="1">
89                         </vbox>
90                 </deck>
91         </groupbox>
92
93 </window>
94