--- nfo/php/libs/com.newsblob.phphtmllib/examples/widget8.php 2003/02/22 21:07:23 1.2
+++ 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.2 2003/02/22 21:07:23 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");
@@ -61,7 +63,7 @@
$form->add( form_active_radio("assradio", array("foo"=>1, "bar"=>2), 2, FALSE ) );
$form->add( html_br(2),
- form_active_radio("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.