Fixed bug #16049: Loading mask doesn't disappear on hitting Esc/cancel loading
[Packages/TYPO3.CMS.git] / typo3 / class.show_rechis.inc
index 0ffa5d8..33f17b7 100644 (file)
@@ -2,8 +2,8 @@
 /***************************************************************
 *  Copyright notice
 *
-*  (c) 1999-2009 Kasper Skaarhoj (kasperYYYY@typo3.com)
-*  (c) 2006-2009 Sebastian Kurfuerst (sebastian@garbage-group.de)
+*  (c) 1999-2009 Kasper Skårhøj (kasperYYYY@typo3.com)
+*  (c) 2006-2009 Sebastian Kurfürst (sebastian@garbage-group.de)
 *  All rights reserved
 *
 *  This script is part of the TYPO3 project. The TYPO3 project is
  * $Id$
  * XHTML Compliant
  *
- * @author     Sebastian Kurfuerst <sebastian@garbage-group.de>
+ * @author     Sebastian Kurfürst <sebastian@garbage-group.de>
  */
 
 
 /**
  * Class for the record history display script (show_rechis.php)
  *
- * @author     Sebastian Kurfuerst <sebastian@garbage-group.de>
+ * @author     Sebastian Kurfürst <sebastian@garbage-group.de>
  * @package TYPO3
  * @subpackage core
  */
@@ -65,7 +65,7 @@ class recordHistory {
        function recordHistory()        {
                        // GPvars:
                $this->element = t3lib_div::_GP('element');
-               $this->returnUrl = t3lib_div::_GP('returnUrl');
+               $this->returnUrl = t3lib_div::sanitizeLocalUrl(t3lib_div::_GP('returnUrl'));
                $this->lastSyslogId = t3lib_div::_GP('diff');
                $this->rollbackFields = t3lib_div::_GP('rollbackFields');
                        // resolve sh_uid if set
@@ -324,7 +324,7 @@ class recordHistory {
                        // get link to page history if the element history is shown
                $elParts = explode(':',$this->element);
                if ($elParts[0] != 'pages')     {
-                       $content .= '<b>'.$LANG->getLL('elementHistory',1).'</b><br />';
+                       $content .= '<strong>'.$LANG->getLL('elementHistory',1).'</strong><br />';
                        $pid = t3lib_BEfunc::getRecordRaw($elParts[0],'uid='.intval($elParts[1]));
                        $content .= $this->linkPage($LANG->getLL('elementHistory_link',1),array('element' => 'pages:'.$pid['pid']));
                }
@@ -346,7 +346,7 @@ class recordHistory {
                $lines=array();
 
                        // Initialize:
-               $lines[] = '<tr class="bgColor5 c-head">
+               $lines[] = '<tr class="t3-row-header">
                                <td> </td>
                                <td>'.$LANG->getLL('time',1).'</td>
                                <td>'.$LANG->getLL('age',1).'</td>
@@ -388,8 +388,8 @@ class recordHistory {
                                $expirationWarning = 1;
 
                                $lines[] = '
-                               <tr class="bgColor4-20">
-                                       <td colspan="7"><b>'.$LANG->getLL('consistenceWarning',1).'</b></td>
+                               <tr class="c-headLine">
+                                       <td colspan="7"><strong>'.$LANG->getLL('consistenceWarning',1).'</strong></td>
                                </tr>';
                        }
 
@@ -405,7 +405,7 @@ class recordHistory {
                        $singleLine = array();
 
                                // diff link
-                       $image = t3lib_iconWorks::getSpriteIcon('actions-go-forward', array('title' => $LANG->getLL('sumUpChanges', TRUE)));
+                       $image = t3lib_iconWorks::getSpriteIcon('actions-view-go-forward', array('title' => $LANG->getLL('sumUpChanges', TRUE)));
                        $singleLine[] = '<span>'.$this->linkPage($image,array('diff' => $sysLogUid)).'</span>'; // remove first link
 
                        $singleLine[] = htmlspecialchars(t3lib_BEfunc::datetime($entry['tstamp']));     // add time
@@ -443,11 +443,10 @@ class recordHistory {
                                $singleLine[] = '';
                        }
 
-                       $bgColorClass = $entry['snapshot'] ? 'bgColor2' : 'bgColor4-20';
                                // put line together
                        $lines[] = '
-                               <tr class="'.$bgColorClass.'">
-                                       <td>'.implode('</td><td>',$singleLine).'</td>
+                               <tr class="db_list_normal">
+                                       <td>' . implode('</td><td>', $singleLine) . '</td>
                                </tr>';
                }
 
@@ -456,8 +455,8 @@ class recordHistory {
                        <!--
                                History (list):
                        -->
-                       <table border="0" cellpadding="2" cellspacing="2" id="typo3-history">
-                               '.implode('',$lines).'
+                       <table class="typo3-dblist" border="0" cellpadding="0" cellspacing="0" id="typo3-history">
+                               ' . implode('', $lines) . '
                        </table>';
 
                if ($this->lastSyslogId)        {
@@ -501,10 +500,10 @@ class recordHistory {
                                $elParts = explode(':',$key);
                                        // turn around diff because it should be a "rollback preview"
                                if ($diff['insertsDeletes'][$key] == 1) {       // insert
-                                       $record .= '<b>'.$LANG->getLL('delete',1).'</b>';
+                                       $record .= '<strong>'.$LANG->getLL('delete',1).'</strong>';
                                        $record .= '<br />';
                                } elseif ($diff['insertsDeletes'][$key] == -1)  {
-                                       $record .= '<b>'.$LANG->getLL('insert',1).'</b>';
+                                       $record .= '<strong>'.$LANG->getLL('insert',1).'</strong>';
                                        $record .= '<br />';
                                }
                                        // build up temporary diff array