| 27 |
XHTML_TRANSITIONAL); |
XHTML_TRANSITIONAL); |
| 28 |
|
|
| 29 |
//enable output debugging. |
//enable output debugging. |
| 30 |
$page->set_text_debug( $_GET["debug"] ); |
if (isset($_GET['debug'])) { |
| 31 |
|
$page->set_text_debug( TRUE ); |
| 32 |
|
} |
| 33 |
//use the default theme |
//use the default theme |
| 34 |
$page->add_css_link( "/phphtmllib/css/defaulttheme.php" ); |
$page->add_css_link( "/phphtmllib/css/defaulttheme.php" ); |
| 35 |
|
|
| 37 |
//build the active tab widget |
//build the active tab widget |
| 38 |
//with a width of 500 pixels wide |
//with a width of 500 pixels wide |
| 39 |
//and a height (MUST BE SET) of 200px tall. |
//and a height (MUST BE SET) of 200px tall. |
| 40 |
$tab = new ActiveTab(500, "220px"); |
$tab = new ActiveTab(500, "300px"); |
| 41 |
|
|
| 42 |
//build a NavTable widget |
//build a NavTable widget |
| 43 |
$navtable = new NavTable("NavTable", "Widget", "200"); |
$navtable = new NavTable("NavTable", "Widget", "200"); |
| 56 |
//build a form for one of the tabs |
//build a form for one of the tabs |
| 57 |
$formname = "fooform"; |
$formname = "fooform"; |
| 58 |
$form = html_form($formname, "#"); |
$form = html_form($formname, "#"); |
| 59 |
$form->add( form_active_checkbox($formname,"foo", "some foo text", "ass"),html_br() ); |
$form->add( form_active_checkbox("foo", "some foo text", "ass"),html_br() ); |
| 60 |
$form->add( form_active_checkbox($formname,"bar", "some bar text", "bar"),html_br() ); |
$form->add( form_active_checkbox("bar", "some bar text", "bar"),html_br() ); |
| 61 |
$form->add( form_active_checkbox($formname,"blah", "some blah text", "blah"), html_br() ); |
$form->add( form_active_checkbox("blah", "some blah text", "blah"), html_br() ); |
| 62 |
$form->add( html_br(2) ); |
$form->add( html_br(2) ); |
| 63 |
|
|
| 64 |
$form->add( form_active_radio($formname, "assradio", array("foo"=>1, "bar"=>2), 2, FALSE ) ); |
$form->add( form_active_radio("assradio", array("foo"=>1, "bar"=>2), 2, FALSE ) ); |
| 65 |
$form->add( html_br(2), |
$form->add( html_br(2), |
| 66 |
form_active_radio($formname, "assradio2", array("foo"=>1, "bar"=>2, "testing"=> 3), 2 ) ); |
form_active_radio("assradio2", array("foo"=>1, "bar"=>2, "testing"=> 3), 2 )); |
| 67 |
|
|
| 68 |
|
|
| 69 |
//now add the tabs and their content. |
//now add the tabs and their content. |