1 |
<? |
<? |
2 |
/* |
/* |
3 |
## ----------------------------------------------------------------------------- |
## ------------------------------------------------------------------------- |
4 |
## $Id$ |
## $Id$ |
5 |
## ----------------------------------------------------------------------------- |
## ------------------------------------------------------------------------- |
6 |
## $Log$ |
## $Log$ |
7 |
|
## Revision 1.10 2003/04/18 18:40:02 jonen |
8 |
|
## + fixed bugs at 'actionbar_cell' relating to html-form and js |
9 |
|
## |
10 |
|
## Revision 1.9 2003/04/11 00:44:46 joko |
11 |
|
## minor update: shortened seperators |
12 |
|
## |
13 |
|
## Revision 1.8 2003/04/09 07:54:42 joko |
14 |
|
## cleaned up decoding part |
15 |
|
## |
16 |
## Revision 1.7 2003/04/09 00:37:53 jonen |
## Revision 1.7 2003/04/09 00:37:53 jonen |
17 |
## + added actionbar |
## + added actionbar |
18 |
## + some changes according to request vars |
## + some changes according to request vars |
44 |
## Revision 1.1 2003/03/01 22:57:40 cvsmax |
## Revision 1.1 2003/03/01 22:57:40 cvsmax |
45 |
## + inital commit |
## + inital commit |
46 |
## |
## |
47 |
## |
## ------------------------------------------------------------------------- |
|
## ----------------------------------------------------------------------------- |
|
48 |
*/ |
*/ |
49 |
|
|
50 |
|
|
51 |
/** |
/** |
52 |
* Need to make sure we have the DefaultGUIDataList object |
* Need to make sure we have the DefaultGUIDataList object |
53 |
*/ |
*/ |
242 |
$hidden = $this->_hidden_elements; |
$hidden = $this->_hidden_elements; |
243 |
$options = $this->_options['decode_args']; |
$options = $this->_options['decode_args']; |
244 |
|
|
245 |
// 1. if item is match by expression we will replace it with an link object |
// a) Iterate through the attributes of the item and replace each |
246 |
if ($utils->decode_item_expr($obj, $hidden, $options)) { |
// value with an appropriate link object if it has a certain format. |
247 |
$obj = $utils->decode_item_expr($obj, $hidden, $options); |
if ($utils->decode_item_expr($obj, $hidden, $options)) { |
248 |
} |
|
249 |
|
// b) Otherwise: If item is an Array we will replace it with a selection form object. |
250 |
// 2. if item is an Array we will replace it with an selection form object |
} else { |
251 |
elseif ( $utils->decode_item_array($obj, $hidden, $options) ) { |
$utils->decode_item_array($obj, $hidden, $options); |
|
$obj = $utils->decode_item_array($obj, $hidden, $options); |
|
252 |
} |
} |
253 |
|
|
254 |
} |
} |
351 |
|
|
352 |
if($action_name && is_array($action_list)) { |
if($action_name && is_array($action_list)) { |
353 |
$action_form = container("Select action", _HTML_SPACE, |
$action_form = container("Select action", _HTML_SPACE, |
|
form_open("data_list_action", $_SERVER['PHP_SELF'], 'POST'), |
|
354 |
form_select($action_name, $action_list), |
form_select($action_name, $action_list), |
355 |
form_submit("submit","OK" ) |
form_submit("ok","OK" ) |
356 |
); |
); |
|
$url_vars = $this->_get_current_url_vars(); |
|
|
foreach($url_vars as $label => $value) { |
|
|
$action_form->add(form_hidden($label, $value)); |
|
|
} |
|
|
$action_form->add(form_close()); |
|
357 |
return $action_form; |
return $action_form; |
358 |
} else { |
} else { |
359 |
return _HTML_SPACE; |
return _HTML_SPACE; |