--- nfo/php/libs/com.newsblob.phphtmllib/widgets/TreeNav.inc 2003/01/30 03:29:44 1.1.1.1 +++ nfo/php/libs/com.newsblob.phphtmllib/widgets/TreeNav.inc 2003/02/03 15:58:25 1.3 @@ -2,7 +2,7 @@ /** * This contains the TreeNav widget * - * $Id: TreeNav.inc,v 1.1.1.1 2003/01/30 03:29:44 jonen Exp $ + * $Id: TreeNav.inc,v 1.3 2003/02/03 15:58:25 jonen Exp $ * * @author Walter A. Boring IV * @package phpHtmlLib @@ -48,8 +48,8 @@ array_push($this->data, array( "type"=>"blank" )); } - function push_text( $text, $selected=FALSE ) { - array_push($this->data, array( "type"=>"text", "text"=>$text, + function push_text( $text, $selected=FALSE ) { + array_push($this->data, array( "type"=>"text", "text"=>$text, "selected" => $selected )); } @@ -71,7 +71,7 @@ $td = new TDtag; $td->newline_after_opentag = FALSE; - $img = html_img("/phphtmllib/widgets/images/arrow.gif", 9, 9); + $img = html_img("img/widgets/arrow.gif", 9, 9); $img->set_tag_attributes( array("vspace"=>5, "hspace"=>3)); $img->indent_flag = FALSE; $img->newline_after_opentag = FALSE; @@ -106,7 +106,7 @@ "class" => "treenavspacer"); $td = new TDtag( $attributes ); $td->newline_after_opentag = FALSE; - $img = html_img("/phphtmllib/widgets/images/spacer.gif", 1, 1); + $img = html_img("img/widgets/spacer.gif", 1, 1); $img->indent_flag = FALSE; $img->newline_after_opentag = FALSE; $td->push( $img ); @@ -129,19 +129,17 @@ foreach( $this->data as $nav) { $img_td = $this->build_img_td(); - $link_td = $this->build_link_td( $nav ); + $link_td = $this->build_link_td( $nav); $table->push_row( $img_td, $link_td, " "); $spacer_td = $this->build_spacer_td(); $table->push_row( $spacer_td ); - } - + } return $table; } - /** * function that will render the widget. *