2 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
3 <?xml-stylesheet href="chrome://open_ils_staff_client/skin/global.css" type="text/css"?>
5 <!-- Overlays for this XUL file -->
6 <?xul-overlay href="chrome://open_ils_staff_client/content/OpenILS/util_overlay.xul"?>
7 <?xul-overlay href="chrome://open_ils_staff_client/content/admin/survey_overlay.xul"?>
9 <!-- This DTD declaration needs to be fixed for Mozilla locales -->
10 <!DOCTYPE wizard SYSTEM "chrome://open_ils_staff_client/locale/lang.dtd">
11 <wizard id="survey_add" title="&staff.survey.wizard.title;"
12 orient="vertical" style="overflow: auto" width="800" height="600"
13 onload="try{ my_init(); } catch(E) { alert(E); }"
14 onwizardfinish="save_survey();"
15 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
17 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
19 <script>dump('survey_wizard.xul loading\n');</script>
20 <script type="text/javascript">var myPackageDir = 'open_ils_staff_client'; var IAMXUL = true; var g = {};</script>
21 <scripts id="openils_util_scripts"/>
23 <script type="text/javascript" src="chrome://open_ils_staff_client/content/main/lang.js"/>
24 <script type="text/javascript" src="chrome://open_ils_staff_client/content/main/JSAN.js"/>
25 <script type="text/javascript" src="chrome://open_ils_staff_client/content/admin/survey.js" />
26 <script type="text/javascript">
30 netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
31 if (typeof JSAN == 'undefined') { throw( "The JSAN library object is missing."); }
32 JSAN.errorLevel = "die"; // none, warn, or die
33 JSAN.addRepository('..');
34 JSAN.use('util.error'); g.error = new util.error();
35 g.error.sdump('D_TRACE','my_init() for survey_wizard.xul');
39 g.session = g.cgi.param('session');
41 JSAN.use('OpenILS.data'); g.OpenILS = {};
42 g.OpenILS.data = new OpenILS.data(); g.OpenILS.data.init({'via':'stash'});
44 JSAN.use('util.network');
45 g.network = new util.network();
47 survey_init(); // legacy init
48 document.getElementById('survey_add').canAdvance = false;
51 var err_msg = "!! This software has encountered an error. Please tell your friendly " +
52 "system administrator or software developer the following:\nsurvey_wizard.xul\n" + E + '\n';
53 try { g.error.sdump('D_ERROR',err_msg); } catch(E) { dump(err_msg); }
60 <!-- Layout to be filled in by overlays and javascript -->
61 <wizardpage id="page1"/>
62 <wizardpage id="page2"/>
64 <script>dump('survey_wizard.xul loaded\n');</script>