/[cvs]/nfo/php/libs/com.newsblob.phphtmllib/widgets/TreeNav.inc
ViewVC logotype

Diff of /nfo/php/libs/com.newsblob.phphtmllib/widgets/TreeNav.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by jonen, Thu Jan 30 03:29:44 2003 UTC revision 1.3 by jonen, Mon Feb 3 15:58:25 2003 UTC
# Line 48  class TreeNav extends BaseWidget { Line 48  class TreeNav extends BaseWidget {
48         array_push($this->data, array( "type"=>"blank" ));         array_push($this->data, array( "type"=>"blank" ));
49    }    }
50    
51    function push_text( $text, $selected=FALSE ) {    function push_text( $text,  $selected=FALSE ) {
52        array_push($this->data, array( "type"=>"text", "text"=>$text,          array_push($this->data, array( "type"=>"text", "text"=>$text,
53                                       "selected" => $selected ));                                       "selected" => $selected ));
54    }    }
55    
# Line 71  class TreeNav extends BaseWidget { Line 71  class TreeNav extends BaseWidget {
71    
72        $td = new TDtag;        $td = new TDtag;
73        $td->newline_after_opentag = FALSE;        $td->newline_after_opentag = FALSE;
74        $img =  html_img("/phphtmllib/widgets/images/arrow.gif", 9, 9);        $img =  html_img("img/widgets/arrow.gif", 9, 9);
75        $img->set_tag_attributes( array("vspace"=>5, "hspace"=>3));        $img->set_tag_attributes( array("vspace"=>5, "hspace"=>3));
76        $img->indent_flag = FALSE;        $img->indent_flag = FALSE;
77        $img->newline_after_opentag = FALSE;        $img->newline_after_opentag = FALSE;
# Line 106  class TreeNav extends BaseWidget { Line 106  class TreeNav extends BaseWidget {
106                            "class" => "treenavspacer");                            "class" => "treenavspacer");
107        $td = new TDtag( $attributes );        $td = new TDtag( $attributes );
108        $td->newline_after_opentag = FALSE;        $td->newline_after_opentag = FALSE;
109        $img =  html_img("/phphtmllib/widgets/images/spacer.gif", 1, 1);        $img =  html_img("img/widgets/spacer.gif", 1, 1);
110        $img->indent_flag = FALSE;        $img->indent_flag = FALSE;
111        $img->newline_after_opentag = FALSE;        $img->newline_after_opentag = FALSE;
112        $td->push( $img );        $td->push( $img );
# Line 129  class TreeNav extends BaseWidget { Line 129  class TreeNav extends BaseWidget {
129    
130        foreach( $this->data as $nav) {        foreach( $this->data as $nav) {
131            $img_td = $this->build_img_td();            $img_td = $this->build_img_td();
132            $link_td = $this->build_link_td( $nav );            $link_td = $this->build_link_td( $nav);
133    
134            $table->push_row( $img_td, $link_td, " ");            $table->push_row( $img_td, $link_td, " ");
135    
136            $spacer_td = $this->build_spacer_td();            $spacer_td = $this->build_spacer_td();
137            $table->push_row( $spacer_td );            $table->push_row( $spacer_td );
138        }         }
   
139        return $table;        return $table;
140    }    }
141    
142    
   
143    /**    /**
144     * function that will render the widget.     * function that will render the widget.
145     *     *

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.3

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed