| 1 | jonen | 1.1 | <?php | 
| 2 |  |  |  | 
| 3 |  |  | /** | 
| 4 |  |  | * This example illustrates the use of the | 
| 5 |  |  | * VerticalCSSNavTable widget. | 
| 6 |  |  | * | 
| 7 |  |  | * | 
| 8 |  |  | * $Id: widget4.php,v 1.3 2002/09/26 21:03:43 hemna Exp $ | 
| 9 |  |  | * | 
| 10 |  |  | * @author Walter A. Boring IV <waboring@buildabetterweb.com> | 
| 11 |  |  | * @package phpHtmlLib | 
| 12 |  |  | * @subpackage widget-examples | 
| 13 |  |  | * @version 2.0 | 
| 14 |  |  | * | 
| 15 |  |  | */ | 
| 16 |  |  |  | 
| 17 |  |  | /** | 
| 18 |  |  | * Include the phphtmllib libraries | 
| 19 |  |  | * | 
| 20 |  |  | */ | 
| 21 |  |  | include_once("includes.inc"); | 
| 22 |  |  |  | 
| 23 |  |  |  | 
| 24 |  |  | //create the page object | 
| 25 |  |  | $page = new HTMLPageClass("phpHtmlLib Widgets - VerticalCSSNavTable", | 
| 26 |  |  | XHTML_TRANSITIONAL); | 
| 27 |  |  |  | 
| 28 |  |  | //enable output debugging. | 
| 29 |  |  | $page->set_text_debug( $_GET["debug"] ); | 
| 30 |  |  |  | 
| 31 |  |  | //add the css | 
| 32 |  |  | $page->add_css_link( "/css/defaulttheme.php" ); | 
| 33 |  |  |  | 
| 34 |  |  | //create the VerticalCSSNavTable Object | 
| 35 |  |  | //create the widget with | 
| 36 |  |  | //Title of 'VerticalCSSNavTable' and | 
| 37 |  |  | //subtitle of 'Widget' | 
| 38 |  |  | //overall width of 400 pixels ( u can use % as well ) | 
| 39 |  |  | $cssnavtable = new VerticalCSSNavTable("VerticalCSSNavTable", "Widget", 400); | 
| 40 |  |  | $cssnavtable->add("#", "Some Link", "This is title text"); | 
| 41 |  |  | $cssnavtable->add("#", "Another"); | 
| 42 |  |  | $cssnavtable->add("#", "Another", "This is title text"); | 
| 43 |  |  |  | 
| 44 |  |  | $page->add( $cssnavtable ); | 
| 45 |  |  |  | 
| 46 |  |  | print $page->render(); | 
| 47 |  |  | ?> |