--- /dev/null
+<?php
+
+
+// $db->query("SELECT f.*, m.userid, m.email FROM foo AS f LEFT JOIN members AS m WHERE ??? ORDER BY m.userid ASC GROUP BY m.userid LIMIT 10, 100");
+$db ->select(array('f' => '*', 'm' => array('userid', 'email')))
+ ->from(array(TABLE_PREFIX . 'foo' => 'f'))
+ ->join('left', 'members', 'm')
+ ->where(array(
+
+ ))
+ ->orderBy('userid', 'asc', 'm')
+ ->groupBy('userid', 'm')
+ ->limit(10, 100);
+
+
+// $db->query("SELECT * FROM users WHERE userid = 4");
+$simple = $db->select('*')->from('users')->where(array('userid' => 4));
+
+// $db->query("INSERT INTO posts (userid, email) VALUES (4, 'robert@sesek.com')");
+$insert = $db->insert(TABLE_PREFIX . 'posts', array(
+ 'userid' => 4,
+ 'email' => 'robert@sesek.com'
+));
+
+?>
--- /dev/null
+<?php
+
+error_reporting(E_ALL);
+
+define('ISSO_MT_START', microtime());
+define('ISSO', getcwd());
+
+require_once ISSO . '/App.php';
+require_once ISSO . '/Printer.php';
+require_once ISSO . '/Functions.php';
+
+$xml = <<<XML
+<navigation>
+
+ <tabs>
+ <tab key="tab1" target="tab1.php">This is Tab One</tab>
+ <tab key="tab2" target="tab2.php">Tab 2</tab>
+ <tab key="tab3" target="tab3.php">3</tab>
+ </tabs>
+
+ <links>
+ <link target="toplink1.php">Top Link 1</link>
+ <link target="toplink2.php">Top Link 2</link>
+ </links>
+
+ <sections>
+ <section key="beginning" name="Beginning Section">
+ <link key="first" target="firstlink.php">First Link</link>
+ <link key="second" target="secondlink.php">Second Link</link>
+ </section>
+
+ <section key="ending" name="Last Section">
+ <link key="third" target="thirdlink.php">Third Link</link>
+ </section>
+
+ <section inherits="beginning,ending" key="combined" name="Combined View">
+ <link key="fifth" target="fifthlink.php">This is the fifth link</link>
+ </section>
+ </sections>
+
+</navigation>
+
+XML;
+
+$navigator = new BSPrinterNavigation($xml);
+
+$navigator->addFocus('tab2');
+$navigator->addSection('combined');
+
+BSApp::set_debug(true);
+BSPrinter::set_stylesheet('printer.css.php');
+BSPrinter::set_realm('Printer Test');
+
+BSPrinterRootPage::make('Title')->setNavigator($navigator)
+ ->paint();
+
+?>