49 |
} |
} |
50 |
|
|
51 |
function push_text( $text, $selected=FALSE ) { |
function push_text( $text, $selected=FALSE ) { |
|
if (is_array($text)) { |
|
|
foreach($text as $value) { |
|
|
$this->push_text($value); |
|
|
} |
|
|
} |
|
|
else { |
|
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 |
|
|
56 |
/** |
/** |
71 |
|
|
72 |
$td = new TDtag; |
$td = new TDtag; |
73 |
$td->newline_after_opentag = FALSE; |
$td->newline_after_opentag = FALSE; |
74 |
$img = html_img("img/widgets/arrow.gif", 9, 9); |
$img = html_img("/phphtmllib/widgets/images/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; |
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("img/widgets/spacer.gif", 1, 1); |
$img = html_img("/phphtmllib/widgets/images/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 ); |
127 |
"class" => "treenavinnertable"); |
"class" => "treenavinnertable"); |
128 |
$table = new TABLEtag( $attributes ); |
$table = new TABLEtag( $attributes ); |
129 |
|
|
130 |
$this->build_entries($this->data, $table); |
foreach( $this->data as $nav) { |
|
|
|
|
return $table; |
|
|
} |
|
|
|
|
|
function build_entries($entries = '', &$table) { |
|
|
if(!is_array($entries)) { $entries = $this->data; } |
|
|
foreach( $entries as $nav) { |
|
|
if(is_array($nav)) { |
|
|
$this->build_entries($nav, $table); |
|
|
} |
|
|
else { |
|
|
print $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 |
|
|
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 |
|
|
140 |
|
return $table; |
141 |
} |
} |
142 |
|
|
143 |
|
|
144 |
|
|
145 |
/** |
/** |
146 |
* function that will render the widget. |
* function that will render the widget. |
147 |
* |
* |