]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/xul/staff_client/external/template.xul
list clipboard, and added it to copy status
[Evergreen.git] / Open-ILS / xul / staff_client / external / template.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 <?xml-stylesheet href="/xul/server/skin/global.css" type="text/css"?>
10
11 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
12 <!-- LOCALIZATION -->
13 <!DOCTYPE window PUBLIC "" ""[
14         <!--#include virtual="/opac/locale/en-US/lang.dtd"-->
15 ]>
16
17 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
18 <!-- OVERLAYS -->
19 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
20
21 <window id="example_template_win" 
22         onload="try { my_init(); } catch(E) { alert(E); }"
23         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
24
25         <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
26         <!-- BEHAVIOR -->
27         <script type="text/javascript">
28                 var myPackageDir = 'open_ils_staff_client'; var IAMXUL = true; var g = {};
29         </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 example_template.xul');
43
44                                 g.cgi = new CGI();
45                                 var session = g.cgi.param('session');
46
47                                 JSAN.use('example.template'); g.template = new example.template();
48
49                                 g.template.init( 
50                                         { 
51                                                 'session' : session,
52                                         } 
53                                 );
54
55                                 if (typeof window.xulG == 'object' && typeof window.xulG.set_tab_name == 'function') {
56                                         try { window.xulG.set_tab_name('Template'); } catch(E) { alert(E); }
57                                 }
58
59                         } catch(E) {
60                                 try { g.error.standard_unexpected_error_alert('example/template.xul',E); } catch(F) { alert(E); }
61                         }
62                 }
63
64         ]]>
65         </script>
66
67         <commandset id="example_template_cmds">
68                 <command id="cmd_broken" />
69         </commandset>
70
71         <browser id="template_browser" flex="1"/>
72
73 </window>
74