Add some files for posterity
[isso.git] / docs / printertest.php
1 <?php
2
3 error_reporting(E_ALL);
4
5 define('ISSO_MT_START', microtime());
6 define('ISSO', getcwd());
7
8 require_once ISSO . '/App.php';
9 require_once ISSO . '/Printer.php';
10 require_once ISSO . '/Functions.php';
11
12 $xml = <<<XML
13 <navigation>
14
15 <tabs>
16 <tab key="tab1" target="tab1.php">This is Tab One</tab>
17 <tab key="tab2" target="tab2.php">Tab 2</tab>
18 <tab key="tab3" target="tab3.php">3</tab>
19 </tabs>
20
21 <links>
22 <link target="toplink1.php">Top Link 1</link>
23 <link target="toplink2.php">Top Link 2</link>
24 </links>
25
26 <sections>
27 <section key="beginning" name="Beginning Section">
28 <link key="first" target="firstlink.php">First Link</link>
29 <link key="second" target="secondlink.php">Second Link</link>
30 </section>
31
32 <section key="ending" name="Last Section">
33 <link key="third" target="thirdlink.php">Third Link</link>
34 </section>
35
36 <section inherits="beginning,ending" key="combined" name="Combined View">
37 <link key="fifth" target="fifthlink.php">This is the fifth link</link>
38 </section>
39 </sections>
40
41 </navigation>
42
43 XML;
44
45 $navigator = new BSPrinterNavigation($xml);
46
47 $navigator->addFocus('tab2');
48 $navigator->addSection('combined');
49
50 BSApp::set_debug(true);
51 BSPrinter::set_stylesheet('printer.css.php');
52 BSPrinter::set_realm('Printer Test');
53
54 BSPrinterRootPage::make('Title')->setNavigator($navigator)
55 ->paint();
56
57 ?>