Ignore:
Timestamp:
Nov 24, 2009, 6:01:08 PM (14 years ago)
Author:
george
Message:
  • Přidáno: Kontrolér pro přidávání nových hodnot.
  • Opraveno: Informace o použité jednotce načítat z tabulky MeasureMethod.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Application/CustomOutput.php

    r42 r45  
    88  var $Unload = '';
    99  var $Document;
    10   var $Title;
     10  var $Title = '';
     11  var $FullPage = true;
    1112
    1213  function Header()
     
    4142  function Show($Content)
    4243  {
    43     $this->Document = new XHTMLDocument();
    44     $BodyParam = '';
    45     if($this->Load != '') $BodyParam .= ' onload="'.$this->Load.'"';
    46     if($this->Unload != '') $BodyParam .= ' onunload="'.$this->Unload.'"';
    47     $this->Document->Encoding = $this->Config['System']['Charset'];
    48     $this->Document->Formated = $this->Config['System']['FormatHTML'];
    49     $Style = new XMLTag('link');
    50     $Style->Attributes = array('rel' => 'stylesheet', 'href' => 'Application/Style/'.$this->Config['System']['Style'].'/Style.css',
    51       'type' => 'text/css', 'media' => 'all');
    52     $this->Document->HeadTag->SubElements[] = $Style;
    53     $JavaScript = new XMLTag('script');
    54     $JavaScript->Attributes = array('type' => 'text/javascript', 'src' => 'Application/Style/'.$this->Config['System']['Style'].'/Global.js');
    55     $JavaScript->ShringEmpty = false;
    56     $this->Document->HeadTag->SubElements[] = $JavaScript;
    57     $JavaScript = new XMLTag('script');
    58     $JavaScript->Attributes = array('type' => 'text/javascript', 'src' => 'Base/Style/jquery.js');
    59     $JavaScript->ShringEmpty = false;
    60     $this->Document->HeadTag->SubElements[] = $JavaScript;
    61     $this->Document->TitleTag->SubElements = $this->Config['System']['Title'].' - '.$this->Title;
    62     $this->Document->BodyTag->SubElements = array($this->Header(), $Content, $this->Footer());
    63     echo($this->Document->GetOutput());
     44    if($this->FullPage)
     45    {
     46      $this->Document = new XHTMLDocument();
     47      $BodyParam = '';
     48      if($this->Load != '') $BodyParam .= ' onload="'.$this->Load.'"';
     49      if($this->Unload != '') $BodyParam .= ' onunload="'.$this->Unload.'"';
     50      $this->Document->Encoding = $this->Config['System']['Charset'];
     51      $this->Document->Formated = $this->Config['System']['FormatHTML'];
     52      $Style = new XMLTag('link');
     53      $Style->Attributes = array('rel' => 'stylesheet', 'href' => 'Application/Style/'.$this->Config['System']['Style'].'/Style.css',
     54        'type' => 'text/css', 'media' => 'all');
     55      $this->Document->HeadTag->SubElements[] = $Style;
     56      $JavaScript = new XMLTag('script');
     57      $JavaScript->Attributes = array('type' => 'text/javascript', 'src' => 'Application/Style/'.$this->Config['System']['Style'].'/Global.js');
     58      $JavaScript->ShringEmpty = false;
     59      $this->Document->HeadTag->SubElements[] = $JavaScript;
     60      $JavaScript = new XMLTag('script');
     61      $JavaScript->Attributes = array('type' => 'text/javascript', 'src' => 'Base/Style/jquery.js');
     62      $JavaScript->ShringEmpty = false;
     63      $this->Document->HeadTag->SubElements[] = $JavaScript;
     64      $this->Document->TitleTag->SubElements = $this->Config['System']['Title'].' - '.$this->Title;
     65      $this->Document->BodyTag->SubElements = array($this->Header(), $Content, $this->Footer());
     66      echo($this->Document->GetOutput());
     67    } else echo($Content);
    6468  }
    6569
Note: See TracChangeset for help on using the changeset viewer.