4 |
## $Id$ |
## $Id$ |
5 |
## ----------------------------------------------------------------------------- |
## ----------------------------------------------------------------------------- |
6 |
## $Log$ |
## $Log$ |
7 |
|
## Revision 1.29 2005/08/11 14:11:28 jonen |
8 |
|
## + changes relating to new web-interface for TerminalOwner |
9 |
|
## |
10 |
## Revision 1.28 2004/08/31 14:15:49 jonen |
## Revision 1.28 2004/08/31 14:15:49 jonen |
11 |
## + added function to clear 'ecom' state |
## + added function to clear 'ecom' state |
12 |
## (specially needed to refresh the 'content' block) |
## (specially needed to refresh the 'content' block) |
503 |
), |
), |
504 |
); |
); |
505 |
} else { |
} else { |
506 |
$actionbar = array( |
if(is_array($_SESSION[user]) && $_SESSION[user][loggedIn]) { |
507 |
|
$actionbar = array( |
508 |
|
'name' => "ecdfa", |
509 |
|
'list' => array( |
510 |
|
"View" => 'view', |
511 |
|
"Edit" => 'edit', |
512 |
|
), |
513 |
|
'selected' => 'view', |
514 |
|
'buttons' => array( |
515 |
|
), |
516 |
|
); |
517 |
|
} else { |
518 |
|
$actionbar = array( |
519 |
'name' => "ecdfa", |
'name' => "ecdfa", |
520 |
'list' => array( |
'list' => array( |
521 |
"View" => 'view', |
"View" => 'view', |
532 |
), |
), |
533 |
), |
), |
534 |
); |
); |
535 |
|
} |
536 |
} |
} |
537 |
|
|
538 |
$args = array( |
$args = array( |
556 |
$args['options']['data_locator_meta']['parent'][guid] = $val['ecom_data_meta']; |
$args['options']['data_locator_meta']['parent'][guid] = $val['ecom_data_meta']; |
557 |
$args['options']['data_locator_meta']['parent'][nodename] = $val['ecom_data_meta_x']; |
$args['options']['data_locator_meta']['parent'][nodename] = $val['ecom_data_meta_x']; |
558 |
} |
} |
559 |
|
if(is_array($_SESSION[user]) && $_SESSION[user][loggedIn]) { |
560 |
|
$args['options']['data_locator_meta']['owner'][guid] = $_SESSION[user][guid]; |
561 |
|
$args['options']['data_locator_meta']['owner']['class'] = $_SESSION[user]['class']; |
562 |
|
} |
563 |
|
|
564 |
// switch abstract type |
// switch abstract type |
565 |
} elseif ($val['ecom_abstract_type'] == "item") { |
} elseif ($val['ecom_abstract_type'] == "item") { |
761 |
|
|
762 |
} |
} |
763 |
|
|
764 |
|
if(is_array($_SESSION[user]) && $_SESSION[user][loggedIn]) { |
765 |
|
$args['options']['userclass'] = $_SESSION[user]['class']; |
766 |
|
} |
767 |
|
|
768 |
// NEW[2003-04-18]: add hidden items to args |
// NEW[2003-04-18]: add hidden items to args |
769 |
$args['hidden_elements'] = $this->_get_hidden_items($label); |
$args['hidden_elements'] = $this->_get_hidden_items($label); |
770 |
//print "args_hidden: " .Dumper($args['hidden_elements']). "<br>"; |
//print "args_hidden: " .Dumper($args['hidden_elements']). "<br>"; |