1 |
<?php |
2 |
|
3 |
/** |
4 |
* This example illustrates the use of the |
5 |
* InfoTable widget. |
6 |
* |
7 |
* |
8 |
* $Id: widget2.php,v 1.5 2003/07/28 17:02:03 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 - InfoTable", |
26 |
XHTML_TRANSITIONAL); |
27 |
|
28 |
//enable output debugging. |
29 |
if (isset($_GET['debug'])) { |
30 |
$page->set_text_debug( TRUE ); |
31 |
} |
32 |
$page->add_css_link( "/css/defaulttheme.php" ); |
33 |
|
34 |
|
35 |
//create the InfoTable Object |
36 |
//create the widget with a |
37 |
//title of "Some lame title" |
38 |
//overall width of 300 pixels ( u can use % as well ) |
39 |
$infotable = new InfoTable("Some lame title", "300"); |
40 |
|
41 |
$infotable->add_row("this is a","test"); |
42 |
$infotable->add_row("this is a test", " "); |
43 |
$infotable->add_row("this is a","test"); |
44 |
$infotable->add_row("this is a test", " "); |
45 |
|
46 |
$page->add( $infotable ); |
47 |
|
48 |
print $page->render(); |
49 |
?> |