/[cvs]/nfo/php/libs/org.netfrag.app/WebExplorer/AbstractExplorer.php
ViewVC logotype

Diff of /nfo/php/libs/org.netfrag.app/WebExplorer/AbstractExplorer.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.28 by jonen, Tue Aug 31 14:15:49 2004 UTC revision 1.29 by jonen, Thu Aug 11 14:11:28 2005 UTC
# Line 4  Line 4 
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)
# Line 500  class WebExplorer_AbstractExplorer { Line 503  class WebExplorer_AbstractExplorer {
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',
# Line 517  class WebExplorer_AbstractExplorer { Line 532  class WebExplorer_AbstractExplorer {
532                                 ),                                 ),
533                               ),                               ),
534                       );                       );
535              }
536          }          }
537                    
538          $args = array(          $args = array(
# Line 540  class WebExplorer_AbstractExplorer { Line 556  class WebExplorer_AbstractExplorer {
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") {
# Line 741  class WebExplorer_AbstractExplorer { Line 761  class WebExplorer_AbstractExplorer {
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>";

Legend:
Removed from v.1.28  
changed lines
  Added in v.1.29

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed