--- nfo/php/libs/com.newsblob.phphtmllib/examples/widget8.php 2003/01/30 03:29:43 1.1.1.1 +++ nfo/php/libs/com.newsblob.phphtmllib/examples/widget8.php 2004/05/06 16:27:17 1.4 @@ -6,7 +6,7 @@ * and have the browser switch between the tabs * without a request to the server. * - * $Id: widget8.php,v 1.1.1.1 2003/01/30 03:29:43 jonen Exp $ + * $Id: widget8.php,v 1.4 2004/05/06 16:27:17 jonen Exp $ * * @author Walter A. Boring IV * @package phpHtmlLib @@ -27,7 +27,9 @@ XHTML_TRANSITIONAL); //enable output debugging. -$page->set_text_debug( $_GET["debug"] ); +if (isset($_GET['debug'])) { + $page->set_text_debug( TRUE ); +} //use the default theme $page->add_css_link( "/phphtmllib/css/defaulttheme.php" ); @@ -35,7 +37,7 @@ //build the active tab widget //with a width of 500 pixels wide //and a height (MUST BE SET) of 200px tall. -$tab = new ActiveTab(500, "220px"); +$tab = new ActiveTab(500, "300px"); //build a NavTable widget $navtable = new NavTable("NavTable", "Widget", "200"); @@ -54,14 +56,14 @@ //build a form for one of the tabs $formname = "fooform"; $form = html_form($formname, "#"); -$form->add( form_active_checkbox($formname,"foo", "some foo text", "ass"),html_br() ); -$form->add( form_active_checkbox($formname,"bar", "some bar text", "bar"),html_br() ); -$form->add( form_active_checkbox($formname,"blah", "some blah text", "blah"), html_br() ); +$form->add( form_active_checkbox("foo", "some foo text", "ass"),html_br() ); +$form->add( form_active_checkbox("bar", "some bar text", "bar"),html_br() ); +$form->add( form_active_checkbox("blah", "some blah text", "blah"), html_br() ); $form->add( html_br(2) ); -$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 ) ); $form->add( html_br(2), - 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 )); //now add the tabs and their content.