Documentation TYPO3 par Ameos

show_rechis.php

00001 <?php
00002 /***************************************************************
00003 *  Copyright notice
00004 *
00005 *  (c) 1999-2004 Kasper Skaarhoj (kasperYYYY@typo3.com)
00006 *  All rights reserved
00007 *
00008 *  This script is part of the TYPO3 project. The TYPO3 project is
00009 *  free software; you can redistribute it and/or modify
00010 *  it under the terms of the GNU General Public License as published by
00011 *  the Free Software Foundation; either version 2 of the License, or
00012 *  (at your option) any later version.
00013 *
00014 *  The GNU General Public License can be found at
00015 *  http://www.gnu.org/copyleft/gpl.html.
00016 *  A copy is found in the textfile GPL.txt and important notices to the license
00017 *  from the author is found in LICENSE.txt distributed with these scripts.
00018 *
00019 *
00020 *  This script is distributed in the hope that it will be useful,
00021 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00022 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00023 *  GNU General Public License for more details.
00024 *
00025 *  This copyright notice MUST APPEAR in all copies of the script!
00026 ***************************************************************/
00052 $BACK_PATH='';
00053 require ($BACK_PATH.'init.php');
00054 require ($BACK_PATH.'template.php');
00055 require_once (PATH_t3lib.'class.t3lib_diff.php');
00056 require_once (PATH_t3lib.'class.t3lib_tcemain.php');
00057 $LANG->includeLLFile('EXT:lang/locallang_show_rechis.xml');
00058 require ('class.show_rechis.inc');
00059 
00060 
00061 
00062 
00063 
00064 
00065 
00066 
00067 
00076 class SC_show_rechis {
00077 
00078                 // Internal:
00079         var $content;
00080         var $doc;
00081 
00087         function init() {
00088                 global $LANG;
00089 
00090                         // Create internal template object:
00091                 $this->doc = t3lib_div::makeInstance('mediumDoc');
00092                 $this->doc->docType = 'xhtml_trans';
00093 
00094                         // Start the page header:
00095                 $this->content.=$this->doc->startPage($LANG->getLL('title'));
00096                 $this->content.=$this->doc->header($LANG->getLL('title'));
00097                 $this->content.=$this->doc->spacer(5);
00098         }
00099 
00105         function main() {
00106                 global $LANG;
00107 
00108                         // Start history object
00109                 $historyObj = t3lib_div::makeInstance('recordHistory');
00110 
00111                         // Get content:
00112                 $this->content.= $historyObj->main();
00113 
00114                         // Return link:
00115                 if ($historyObj->returnUrl)     {
00116                         $link = '<a href="'.htmlspecialchars($historyObj->returnUrl).'" class="typo3-goBack"><img'.t3lib_iconWorks::skinImg('','gfx/goback.gif','width="14" height="14"').' alt="" />'.$LANG->getLL('returnLink',1).'</a>';
00117                         $this->content.= $this->doc->section($LANG->getLL('return'),$link,0,1);
00118                 }
00119         }
00120 
00126         function printContent() {
00127                 $this->content.=$this->doc->spacer(8);
00128                 $this->content.=$this->doc->endPage();
00129                 echo $this->content;
00130         }
00131 }
00132 
00133 // Include extension?
00134 if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/show_rechis.php'])   {
00135         include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/show_rechis.php']);
00136 }
00137 
00138 
00139 
00140 
00141 
00142 
00143 
00144 
00145 
00146 
00147 
00148 
00149 // Make instance:
00150 $SOBE = t3lib_div::makeInstance('SC_show_rechis');
00151 $SOBE->init();
00152 $SOBE->main();
00153 $SOBE->printContent();
00154 ?>


Généré par L'expert TYPO3 avec  doxygen 1.4.6