--- nfo/php/libs/org.netfrag.patches/phphtmllib/widgets/ExpandEditDataItem.php 2003/11/22 18:40:09 1.1 +++ nfo/php/libs/org.netfrag.patches/phphtmllib/widgets/ExpandEditDataItem.php 2004/03/04 23:10:18 1.2 @@ -1,9 +1,12 @@ init_elements(); // add form container - $this->get_form_container(); + + + //$this->get_form_container(); + + $container = container(); + // form open + $container->add(form_open("item_fv", $_SERVER['PHP_SELF'], 'POST')); + //hidden items + if(is_array($this->_hidden_elements)) { + foreach($this->_hidden_elements as $label => $value) { + $container->add(form_hidden($label, $value)); + } + } + + $table = html_table( $this->get_width(), 0, $this->get_cellspacing(), @@ -75,7 +92,7 @@ //now go thru the rows of data //and add them - // modified this for expanded view. udo + // modified this for expanded view foreach( $this->data as $row ) { if ((count($row) == 1) && is_object($row[0]) && (is_a($row[0], "TRtag") || @@ -107,7 +124,16 @@ $table->add_row( $tr ); } } - return $table->render($indent_level, $output_debug); + $container->add($table); + // submit button + $container->add(form_submit('ecdfe', "edit")); + + // close form + $container->add(form_close()); + + return $container->render($indent_level, $output_debug); +// return $table->render($indent_level, $output_debug); + }