]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/xul/staff_client/server/patron/bills.xul
some i18n goodness and fixes. And an extra column for patron lists, and including...
[Evergreen.git] / Open-ILS / xul / staff_client / server / patron / bills.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/circ.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 <?xul-overlay href="/xul/server/patron/bills_overlay.xul"?>
22
23 <window id="bills_win" 
24         onload="try { my_init(); font_helper(); } catch(E) { alert(E); }"
25         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
26
27         <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
28         <!-- BEHAVIOR -->
29         <script type="text/javascript">var myPackageDir = 'open_ils_staff_client'; var IAMXUL = true; var g = {};</script>
30         <scripts id="openils_util_scripts"/>
31
32         <script type="text/javascript" src="/xul/server/main/JSAN.js"/>
33         <script>
34         <![CDATA[
35                 function my_init() {
36                         try {
37                                 netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
38                                 if (typeof JSAN == 'undefined') { throw( "The JSAN library object is missing."); }
39                                 JSAN.errorLevel = "die"; // none, warn, or die
40                                 JSAN.addRepository('/xul/server/');
41                                 JSAN.use('util.error'); g.error = new util.error();
42                                 g.error.sdump('D_TRACE','my_init() for bills.xul');
43
44                                 JSAN.use('patron.bills'); g.bills = new patron.bills();
45                                 g.bills.init( 
46                                         { 
47                                                 'patron_id' : xul_param('patron_id'), 
48                                         } 
49                                 );
50                                 window.refresh = function(p) { g.bills.refresh(p); }
51
52                                 document.getElementById('bill_payment_amount').focus();
53         
54                         } catch(E) {
55                                 var err_msg = "!! This software has encountered an error.  Please tell your friendly " +
56                                         "system administrator or software developer the following:\n" + E + '\n';
57                                 try { g.error.sdump('D_ERROR',err_msg); } catch(E) { dump(err_msg); }
58                                 alert(err_msg);
59                         }
60                 }
61
62                 function default_focus() {
63                         try {
64                                 document.getElementById('bill_payment_amount').focus();
65                         } catch(E) {
66                                 try { g.error.sdump('D_ERROR','bill default_focus: ' + js2JSON(E)); } catch(F) { dump(E); }
67                         }
68                 }
69         ]]>
70         </script>
71
72         <commandset id="bills_cmds">
73                 <command id="cmd_bill_wizard" />
74                 <command id="cmd_bill_history" />
75                 <command id="cmd_bill_apply_payment" />
76                 <command id="cmd_change_to_credit" />
77                 <command id="cmd_uncheck_all" />
78                 <command id="cmd_check_all" />
79                 <command id="cmd_print_bills" />
80                 <command id="cmd_alternate_view" />
81         </commandset>
82
83     <messagecatalog id="commonStrings" src="/xul/server/locale/<!--#echo var='locale'-->/common.properties"/>
84
85         <box id="bills_main" />
86
87 </window>
88