4 |
## $Id$ |
## $Id$ |
5 |
## ----------------------------------------------------------------------------- |
## ----------------------------------------------------------------------------- |
6 |
## $Log$ |
## $Log$ |
7 |
|
## Revision 1.2 2003/04/06 01:33:45 jonen |
8 |
|
## + purged code |
9 |
|
## |
10 |
## Revision 1.1 2003/04/04 00:50:44 jonen |
## Revision 1.1 2003/04/04 00:50:44 jonen |
11 |
## + initial commit |
## + initial commit |
12 |
## |
## |
28 |
$this->_gui_object = new EditDataItem($this->_args['caption'], $this->_args['options'] ); |
$this->_gui_object = new EditDataItem($this->_args['caption'], $this->_args['options'] ); |
29 |
} |
} |
30 |
} |
} |
31 |
|
|
|
/* |
|
|
function view_DataItem() { |
|
|
$initial_locator = php::mkComponent( 'DataSource::Locator', array( adapter_type => 'phpHtmlLib' ) ); |
|
|
$proxy = php::mkComponent('DataSource::Generic', $initial_locator, $this->_args['options']['data_locator_meta']); |
|
|
$source = $proxy->get_adapter(); |
|
|
$source->do_query(); |
|
|
$result = $source->_result; |
|
|
//print Dumper($source->_result); |
|
|
|
|
|
$table = new InfoTable($this->_args['caption'], $width="100%", "center"); |
|
|
if (is_array($result)) { |
|
|
foreach($result as $key => $value) { |
|
|
if(!$value) { $value = " "; } |
|
|
$table->add_row(span_font10bold($key), $value); |
|
|
} |
|
|
} |
|
|
// build submit form |
|
|
$container = container( |
|
|
form_open($this->_args['caption'], $_SERVER['PHP_SELF'], 'POST'), |
|
|
form_submit('ecitem', "edit"), |
|
|
form_close() |
|
|
); |
|
|
//$table->add_row(div_build_spacergif_tag(), $container); |
|
|
$table->add_row(" ", $container); |
|
|
return $table; |
|
|
} |
|
|
*/ |
|
|
|
|
32 |
|
|
33 |
} |
} |
34 |
|
|