2 <!-- Application: Evergreen Staff Client -->
3 <!-- Screen: Example Template for remote xul -->
5 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
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"?>
10 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
12 <!DOCTYPE window SYSTEM "chrome://open_ils_staff_client/locale/lang.dtd">
14 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
16 <?xul-overlay href="chrome://open_ils_staff_client/content/OpenILS/util_overlay_offline.xul"?>
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">
23 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
25 <script type="text/javascript">
26 var myPackageDir = 'open_ils_staff_client'; var IAMXUL = true; var g = {};
28 <scripts id="openils_util_scripts"/>
30 <script type="text/javascript" src="chrome://open_ils_staff_client/content/main/JSAN.js"/>
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');
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); }
48 JSAN.use('circ.offline'); g.offline = new circ.offline();
53 JSAN.use('util.date');
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);
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); }
74 <groupbox flex="1" class="my_overflow">
75 <caption label="Evergreen Offline"/>
77 <button id="today" onclick="alert('Not Yet Implemented');" tooltiptext="Estimated Server Time - Click to adjust"/>
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"/>
87 <deck id="main" style="border: solid thin red; background-color: #FFAAAA;" flex="1">