2 /***************************************************************
5 * (c) 1999-2005 Kasper Skaarhoj (kasperYYYY@typo3.com)
8 * This script is part of the TYPO3 project. The TYPO3 project is
9 * free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * The GNU General Public License can be found at
15 * http://www.gnu.org/copyleft/gpl.html.
16 * A copy is found in the textfile GPL.txt and important notices to the license
17 * from the author is found in LICENSE.txt distributed with these scripts.
20 * This script is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
25 * This copyright notice MUST APPEAR in all copies of the script!
26 ***************************************************************/
28 * Shows information about a database or file item
31 * Revised for TYPO3 3.6 November/2003 by Kasper Skaarhoj
34 * @author Kasper Skaarhoj <kasperYYYY@typo3.com>
37 * [CLASS/FUNCTION INDEX of SCRIPT]
41 * 76: class SC_show_rechis
43 * 105: function main()
44 * 131: function printContent()
47 * (This index is automatically created/updated by the extension "extdeveval")
53 require ($BACK_PATH.'init.php');
54 require ($BACK_PATH.'template.php');
55 require_once (PATH_t3lib
.'class.t3lib_diff.php');
56 require_once (PATH_t3lib
.'class.t3lib_tcemain.php');
57 $LANG->includeLLFile('EXT:lang/locallang_show_rechis.xml');
58 require_once ('class.show_rechis.inc');
69 * Script Class for showing the history module of TYPO3s backend
71 * @author Kasper Skaarhoj <kasperYYYY@typo3.com>
74 * @see class.show_rechis.inc
76 class SC_show_rechis
{
83 * Initialize the module output
90 // Create internal template object:
91 $this->doc
= t3lib_div
::makeInstance('mediumDoc');
92 $this->doc
->docType
= 'xhtml_trans';
94 // Start the page header:
95 $this->content
.=$this->doc
->startPage($LANG->getLL('title'));
96 $this->content
.=$this->doc
->header($LANG->getLL('title'));
97 $this->content
.=$this->doc
->spacer(5);
101 * Generate module output
108 // Start history object
109 $historyObj = t3lib_div
::makeInstance('recordHistory');
112 if ($historyObj->returnUrl
) {
113 $this->content
.= '<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>';
117 $this->content
.= $historyObj->main();
120 if ($historyObj->returnUrl
) {
121 $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>';
122 $this->content
.= $this->doc
->section($LANG->getLL('return'),$link,0,1);
127 * Outputting the accumulated content to screen
131 function printContent() {
132 $this->content
.=$this->doc
->spacer(8);
133 $this->content
.= $this->doc
->endPage();
134 $this->content
= $this->doc
->insertStylesAndJS($this->content
);
139 // Include extension?
140 if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE
]['XCLASS']['typo3/show_rechis.php']) {
141 include_once($TYPO3_CONF_VARS[TYPO3_MODE
]['XCLASS']['typo3/show_rechis.php']);
156 $SOBE = t3lib_div
::makeInstance('SC_show_rechis');
159 $SOBE->printContent();