--- nfo/php/libs/com.newsblob.phphtmllib/examples/widget6.php 2003/01/30 03:29:43 1.1.1.1
+++ nfo/php/libs/com.newsblob.phphtmllib/examples/widget6.php 2004/05/06 16:27:17 1.4
@@ -12,7 +12,7 @@
* types of DB objects. One from a PEAR::DB object,
* and another from a ADODB object.
*
- * $Id: widget6.php,v 1.1.1.1 2003/01/30 03:29:43 jonen Exp $
+ * $Id: widget6.php,v 1.4 2004/05/06 16:27:17 jonen Exp $
*
* @author Walter A. Boring IV
* @package phpHtmlLib
@@ -190,17 +190,21 @@
XHTML_TRANSITIONAL);
//enable output debugging.
-$page->set_text_debug( $_GET["debug"] );
+if (isset($_GET['debug'])) {
+ $page->set_text_debug( TRUE );
+}
//add the css
$page->add_head_css( new DefaultGUIDataListCSS );
//build the PEAR list and sort by ip_address by default
$pearlist = new pearmysqllist("PEAR::MySQL List", 600, "ip_address", TRUE);
+$pearlist->set_align("right");
//build the ADODB list using the same exact table in the DB
//and sort by version by default
$adodblist = new adodbmysqllist("ADODB::MySQL List", 600, "version", TRUE);
+$adodblist->set_align("left");
$page->add( $pearlist, html_br(2), $adodblist );