From d7f0a276aa05367ee1efcbd63157d9eb721c4ffb Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 4 Jan 2009 19:17:52 -0800 Subject: [PATCH] Add some files for posterity * docs/BSDbAbstracter.php * docs/printertest.php --- docs/BSDbAbstracter.php | 25 ++++++++++++++++++ docs/printertest.php | 57 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 82 insertions(+) create mode 100644 docs/BSDbAbstracter.php create mode 100644 docs/printertest.php diff --git a/docs/BSDbAbstracter.php b/docs/BSDbAbstracter.php new file mode 100644 index 0000000..c40c995 --- /dev/null +++ b/docs/BSDbAbstracter.php @@ -0,0 +1,25 @@ +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' +)); + +?> diff --git a/docs/printertest.php b/docs/printertest.php new file mode 100644 index 0000000..c0c63a8 --- /dev/null +++ b/docs/printertest.php @@ -0,0 +1,57 @@ + + + + This is Tab One + Tab 2 + 3 + + + + Top Link 1 + Top Link 2 + + + +
+ First Link + Second Link +
+ +
+ Third Link +
+ +
+ This is the fifth link +
+
+ + + +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(); + +?> -- 2.43.5