Changeset 45 for trunk/Application/CustomOutput.php
- Timestamp:
- Nov 24, 2009, 6:01:08 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Application/CustomOutput.php
r42 r45 8 8 var $Unload = ''; 9 9 var $Document; 10 var $Title; 10 var $Title = ''; 11 var $FullPage = true; 11 12 12 13 function Header() … … 41 42 function Show($Content) 42 43 { 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); 64 68 } 65 69
Note:
See TracChangeset
for help on using the changeset viewer.