Changeset 22 for trunk/CustomOutput.php


Ignore:
Timestamp:
Mar 1, 2010, 9:12:44 PM (14 years ago)
Author:
george
Message:
  • Přidáno: Skript pro import ze databáze centrály.
  • Přidáno: Zprovozněno přihalšování a odhlašování uživatelů, prohlížení a změna profilu.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CustomOutput.php

    r20 r22  
    3434  {
    3535    $Output = '<div class="Navigation">';
    36     if($this->System->UserOnline->User == 1)
    37     {
    3836      // Visitor
    3937      $Output .= '<ul class="MenuItem">';
     
    4644      $Output .= '<li>'.$this->System->HTML->MakeLink($this->System->Localization->Translate('Links'), $this->System->Navigation->MakeLink('Main', 'Links')).'</li>';
    4745      $Output .= '<li>'.$this->System->HTML->MakeLink($this->System->Localization->Translate('Contact'), $this->System->Navigation->MakeLink('Main', 'Contact')).'</li>';
     46    if($this->System->UserOnline->User == $this->System->UserOnline->AnonymousUserId)
     47    {
    4848      $Output .= '</ul>';
    4949      $Output .= '<ul class="MenuItem2">';
     
    5252    } else
    5353    {
    54       $Output .= '<ul class="MenuItem">';
    55       $Output .= '<li><a href="'.$this->System->Navigation->MakeLink('Lift', 'List').'">'.$this->System->Localization->Translate('Lifts').'</a></li>';
    56       $Output .= '<li><a href="'.$this->System->Navigation->MakeLink('LiftGroup', 'List').'">'.$this->System->Localization->Translate('LiftGroups').'</a></li>';
    57       $Output .= '<li><a href="'.$this->System->Navigation->MakeLink('LiftServiceCheck', 'List').'">'.$this->System->Localization->Translate('LiftServiceChecks').'</a></li>';
    5854      $Output .= '</ul>';
    5955      $Output .= '<ul class="MenuItem2">';
     
    131127    $this->Document->HeadTag->SubElements[] = $Keywords;
    132128   
    133     $this->Document->BodyTag->SubElements = array('<div class="Title">'.$Title.'</div>',
     129    $this->Document->BodyTag->SubElements = array('<div class="TitlePanel">'.$Title.'</div>',
    134130$this->TopMenu(), $this->PageMenu(), $Content, $this->Footer());
    135     echo($this->Document->GetOutput());
     131    return($this->Document->GetOutput());
    136132  }
    137133
Note: See TracChangeset for help on using the changeset viewer.