Changeset 529 for trunk/Common/Page.php


Ignore:
Timestamp:
Apr 23, 2013, 7:12:53 PM (11 years ago)
Author:
chronos
Message:
  • Přidáno: Výběr relací mezi tabulkami pomocí zobrazení samostatného okna s výběrovou tabulkou ve správě dat.
  • Přidáno: Možnost generovat jen základní HTML část stránky bez hlavičky a patičky.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Common/Page.php

    r525 r529  
    99  var $ShowRuntimeInfo = false;
    1010  var $ClearPage = false;
     11  var $BasicHTML = false;
    1112  var $ParentClass = '';
    1213  var $ShortTitle;
     
    6465    '<script type="text/javascript" src="'.$this->System->Link('/style/').$this->System->Config['Web']['Style'].'/global.js"></script>'.
    6566    '<title>'.$this->System->Config['Web']['Title'].' - '.$Path.'</title>
    66     </head><body'.$BodyParam.'>
    67     <div id="Title">'.$Title.'</div>
    68     <div class="Navigation"><span class="MenuItem"><strong>Navigace :: </strong> '.$Navigation.'</span><div class="MenuItem2">';
    69     if($this->System->Config['Web']['UserSupport'] == 1)
     67    </head><body'.$BodyParam.'>';
     68    if($this->BasicHTML == false)
    7069    {
    71       if($this->System->User->User['Id'] == null)
    72         $Output .= '<a href="'.$this->System->Link('/?Action=LoginForm').'">Přihlášení</a> <a href="'.$this->System->Link('/?Action=UserRegister').'">Registrace</a>';
    73         else $Output .= $this->System->User->User['Name'].' <a href="'.$this->System->Link('/?Action=Logout').'">Odhlásit</a>';
    74    } else $Output .= '&nbsp;';
    75 // <a href="'.$this->System->Config['Web']['RootFolder'].'/?Action=UserOptions">Nastavení</a>';
    76     $Output .= '</div></div>';
     70      $Output .= '<div id="Title">'.$Title.'</div>
     71      <div class="Navigation"><span class="MenuItem"><strong>Navigace :: </strong> '.$Navigation.'</span><div class="MenuItem2">';
     72      if($this->System->Config['Web']['UserSupport'] == 1)
     73      {
     74        if($this->System->User->User['Id'] == null)
     75          $Output .= '<a href="'.$this->System->Link('/?Action=LoginForm').'">Přihlášení</a> <a href="'.$this->System->Link('/?Action=UserRegister').'">Registrace</a>';
     76          else $Output .= $this->System->User->User['Name'].' <a href="'.$this->System->Link('/?Action=Logout').'">Odhlásit</a>';
     77     } else $Output .= '&nbsp;';
     78//   <a href="'.$this->System->Config['Web']['RootFolder'].'/?Action=UserOptions">Nastavení</a>';
     79      $Output .= '</div></div>';
     80    }
    7781    return($Output);
    7882  }
     
    8286    global $ScriptTimeStart;
    8387    $Time = round(GetMicrotime() - $ScriptTimeStart, 2);
    84     $Output = '<div id="Footer">
    85    <i>| Správa webu: '.$this->System->Config['Web']['Admin'].' | e-mail: '.$this->System->Config['Web']['AdminEmail'].' |';
    86     if($this->ShowRuntimeInfo == true) $Output .= ' Doba generování: '.$Time.' s / '.ini_get('max_execution_time').' s | Použitá paměť: '.HumanSize(memory_get_peak_usage(FALSE)).' / '.ini_get('memory_limit').'B |';
    87     $Output .= '</i></div></body></html>';
     88    $Output = '';
     89    if($this->BasicHTML == false)
     90    {
     91      $Output .= '<div id="Footer">
     92     <i>| Správa webu: '.$this->System->Config['Web']['Admin'].' | e-mail: '.$this->System->Config['Web']['AdminEmail'].' |';
     93      if($this->ShowRuntimeInfo == true) $Output .= ' Doba generování: '.$Time.' s / '.ini_get('max_execution_time').' s | Použitá paměť: '.HumanSize(memory_get_peak_usage(FALSE)).' / '.ini_get('memory_limit').'B |';
     94      $Output .= '</i></div>';
     95    }
     96    $Output .= '</body></html>';
    8897    return($Output);
    8998  }
Note: See TracChangeset for help on using the changeset viewer.