| 4 |
## $Id$ |
## $Id$ |
| 5 |
## ----------------------------------------------------------------------------- |
## ----------------------------------------------------------------------------- |
| 6 |
## $Log$ |
## $Log$ |
| 7 |
|
## Revision 1.2 2004/03/04 23:10:18 udo |
| 8 |
|
## added hidden elements to container |
| 9 |
|
## |
| 10 |
## Revision 1.1 2003/11/22 18:40:09 udo |
## Revision 1.1 2003/11/22 18:40:09 udo |
| 11 |
## initial commit |
## initial commit |
| 12 |
## |
## |
| 61 |
// init data record entries |
// init data record entries |
| 62 |
$this->init_elements(); |
$this->init_elements(); |
| 63 |
// add form container |
// add form container |
| 64 |
$this->get_form_container(); |
|
| 65 |
|
|
| 66 |
|
//$this->get_form_container(); |
| 67 |
|
|
| 68 |
|
$container = container(); |
| 69 |
|
// form open |
| 70 |
|
$container->add(form_open("item_fv", $_SERVER['PHP_SELF'], 'POST')); |
| 71 |
|
//hidden items |
| 72 |
|
if(is_array($this->_hidden_elements)) { |
| 73 |
|
foreach($this->_hidden_elements as $label => $value) { |
| 74 |
|
$container->add(form_hidden($label, $value)); |
| 75 |
|
} |
| 76 |
|
} |
| 77 |
|
|
| 78 |
|
|
| 79 |
|
|
| 80 |
$table = html_table( $this->get_width(), 0, |
$table = html_table( $this->get_width(), 0, |
| 81 |
$this->get_cellspacing(), |
$this->get_cellspacing(), |
| 92 |
//now go thru the rows of data |
//now go thru the rows of data |
| 93 |
//and add them |
//and add them |
| 94 |
|
|
| 95 |
// modified this for expanded view. udo |
// modified this for expanded view |
| 96 |
foreach( $this->data as $row ) { |
foreach( $this->data as $row ) { |
| 97 |
|
|
| 98 |
if ((count($row) == 1) && is_object($row[0]) && (is_a($row[0], "TRtag") || |
if ((count($row) == 1) && is_object($row[0]) && (is_a($row[0], "TRtag") || |
| 124 |
$table->add_row( $tr ); |
$table->add_row( $tr ); |
| 125 |
} |
} |
| 126 |
} |
} |
| 127 |
return $table->render($indent_level, $output_debug); |
$container->add($table); |
| 128 |
|
// submit button |
| 129 |
|
$container->add(form_submit('ecdfe', "edit")); |
| 130 |
|
|
| 131 |
|
// close form |
| 132 |
|
$container->add(form_close()); |
| 133 |
|
|
| 134 |
|
return $container->render($indent_level, $output_debug); |
| 135 |
|
// return $table->render($indent_level, $output_debug); |
| 136 |
|
|
| 137 |
} |
} |
| 138 |
|
|
| 139 |
|
|