Project

General

Profile

Bug #22648 » 14384.diff

Administrator Admin, 2010-05-13 17:15

View differences:

typo3/sysext/install/mod/class.tx_install.php (Arbeitskopie)
<dd>
' . TYPO3_db_host . '
</dd>
<dt>
Database:
</dt>
<dd>
' . TYPO3_db . ' (' . count($whichTables) . ' tables)
</dd>
</dl>
', -1, 1);
$this->message($headCode, 'Database', '
<p>
<strong>' . TYPO3_db . '</strong> is selected as database.
<br />
Has <strong>' . count($whichTables) . '</strong> tables.
</p>
', -1, 1);
// Menu
$sql_files = array_merge(
t3lib_div::getFilesInDir(PATH_typo3conf,'sql',1,1),
......
$menuMarkers = array(
'action' => $this->action,
'updateRequiredTables' => 'Update required tables',
'compare' => 'COMPARE',
'noticeCmpFileCurrent' => ($action_type == 'cmpFile|CURRENT_TABLES' ? ' class="notice"' : ''),
'compare' => 'Compare',
'dumpStaticData' => 'Dump static data',
'import' => 'IMPORT',
'noticeImportCurrent' => ($action_type == 'import|CURRENT_STATIC' ? ' class="notice"' : ''),
'noticeCmpTca' => ($action_type == "cmpTCA|" ? ' class="notice"' : ''),
'import' => 'Import',
'moreOptions' => 'Further options',
'compareWithTca' => 'Compare with $TCA',
'noticeAdminUser' => ($action_type == "adminUser|" ? ' class="notice"' : ''),
'createAdminUser' => 'Create "admin" user',
'noticeUc' => ($action_type == "UC|" ? ' class="notice"' : ''),
'resetUserPreferences' => 'Reset user preferences',
'noticeCache' => ($action_type == "cache|" ? ' class="notice"' : ''),
'clearTables' => 'Clear tables'
);
// Get the subpart for extra SQL
......
'noticeImport' => ($action_type == 'import|' . $file ? ' class="notice"' : ''),
'specs' => $spec1 . $spec2,
'noticeView' => ($action_type == 'view|' . $file ? ' class="notice"' : ''),
'view' => 'VIEW'
'view' => 'View'
);
// Fill the markers in the subpart
$extraSqlFiles[] = t3lib_parsehtml::substituteMarkerArray(
......
if ($directJump) {
if (!$action_type) {
$this->message($headCode, 'Menu', '
$this->message($headCode, 'Database operations', '
<script language="javascript" type="text/javascript">
window.location.href = "' . $directJump . '";
</script>',
typo3/sysext/install/Resources/Private/Templates/CheckTheDatabaseMenu.html (Arbeitskopie)
</head>
<body>
<!-- ###MENU### begin -->
<table id="t3-install-databasemenu" cellpadding="2" cellspacing="2">
<tr>
<td>
###UPDATEREQUIREDTABLES###
</td>
<td ###NOTICECMPFILECURRENT###>
<a href="###ACTION###&amp;TYPO3_INSTALL[database_type]=cmpFile|CURRENT_TABLES#t3-install-bottom">
###COMPARE###
</a>
</td>
<td>
&nbsp;
</td>
<td>
&nbsp;
</td>
</tr>
<tr>
<td>
###DUMPSTATICDATA###
</td>
<td>
&nbsp;
</td>
<td ###NOTICEIMPORTCURRENT###>
<a href="###ACTION###&amp;TYPO3_INSTALL[database_type]=import|CURRENT_STATIC#t3-install-bottom">
###IMPORT###
</a>
</td>
<td>
&nbsp;
</td>
</tr>
<tr>
<td colspan="4">
&nbsp;
</td>
</tr>
<div id="t3-install-db-compare-operations">
<h4>###UPDATEREQUIREDTABLES###</h4>
<a href="###ACTION###&amp;TYPO3_INSTALL[database_type]=cmpFile|CURRENT_TABLES#t3-install-bottom" class="t3-install-button">
###COMPARE###
<span class="t3-install-form-button-icon-positive">&nbsp;</span>
</a>
<h4>###DUMPSTATICDATA###</h4>
<a href="###ACTION###&amp;TYPO3_INSTALL[database_type]=import|CURRENT_STATIC#t3-install-bottom" class="t3-install-button">
###IMPORT###
<span class="t3-install-form-button-icon-positive">&nbsp;</span>
</a>
<!-- ###EXTRASQL### begin -->
<tr>
<td>
###FILESHORTNAME### (###FILESIZE###)
</td>
<td ###NOTICECMPFILE###>
<a href="###ACTION###&amp;TYPO3_INSTALL[database_type]=cmpFile|###FILE####t3-install-bottom">
###COMPARE###
</a>
</td>
<td ###NOTICEIMPORT###>
<a href="###ACTION###&amp;TYPO3_INSTALL[database_type]=import|###FILE####t3-install-bottom">
###IMPORT######SPECS###
</a>
</td>
<td ###NOTICEVIEW###>
<a href="###ACTION###&amp;TYPO3_INSTALL[database_type]=view|###FILE####t3-install-bottom">
###VIEW######SPECS###
</a>
</td>
</tr>
<h4>###FILESHORTNAME### (###FILESIZE###)</h4>
<a href="###ACTION###&amp;TYPO3_INSTALL[database_type]=cmpFile|###FILE####t3-install-bottom" class="t3-install-button">
###COMPARE###
<span class="t3-install-form-button-icon-positive">&nbsp;</span>
</a>
<a href="###ACTION###&amp;TYPO3_INSTALL[database_type]=import|###FILE####t3-install-bottom" class="t3-install-button">
###IMPORT######SPECS###
<span class="t3-install-form-button-icon-positive">&nbsp;</span>
</a>
<a href="###ACTION###&amp;TYPO3_INSTALL[database_type]=view|###FILE####t3-install-bottom" class="t3-install-button">
###VIEW######SPECS###
<span class="t3-install-form-button-icon-positive">&nbsp;</span>
</a>
<!-- ###EXTRASQL### end -->
<tr>
<td>
&nbsp;
</td>
<td colspan="3" ###NOTICECMPTCA###>
<a href="###ACTION###&amp;TYPO3_INSTALL[database_type]=cmpTCA|#t3-install-bottom">
###COMPAREWITHTCA###
</a>
</td>
</tr>
<tr>
<td>
&nbsp;
</td>
<td colspan="3" ###NOTICEADMINUSER###>
<a href="###ACTION###&amp;TYPO3_INSTALL[database_type]=adminUser|#t3-install-bottom">
###CREATEADMINUSER###
</a>
</td>
</tr>
<tr>
<td>
&nbsp;
</td>
<td colspan="3" ###NOTICEUC###>
<a href="###ACTION###&amp;TYPO3_INSTALL[database_type]=UC|#t3-install-bottom">
###RESETUSERPREFERENCES###
</a>
</td>
</tr>
<tr>
<td>
&nbsp;
</td>
<td colspan="3" ###NOTICECACHE###>
<a href="###ACTION###&amp;TYPO3_INSTALL[database_type]=cache|#t3-install-bottom">
###CLEARTABLES###
</a>
</td>
</tr>
</table>
</div>
<h4>###MOREOPTIONS###</h4>
<p>
<a href="###ACTION###&amp;TYPO3_INSTALL[database_type]=cmpTCA|#t3-install-bottom" class="t3-install-button">
###COMPAREWITHTCA###
<span class="t3-install-form-button-icon-positive">&nbsp;</span>
</a>
<a href="###ACTION###&amp;TYPO3_INSTALL[database_type]=adminUser|#t3-install-bottom" class="t3-install-button">
###CREATEADMINUSER###
<span class="t3-install-form-button-icon-positive">&nbsp;</span>
</a>
</p>
<p>
<a href="###ACTION###&amp;TYPO3_INSTALL[database_type]=UC|#t3-install-bottom" class="t3-install-button">
###RESETUSERPREFERENCES###
<span class="t3-install-form-button-icon-negative">&nbsp;</span>
</a>
<a href="###ACTION###&amp;TYPO3_INSTALL[database_type]=cache|#t3-install-bottom" class="t3-install-button">
###CLEARTABLES###
<span class="t3-install-form-button-icon-negative">&nbsp;</span>
</a>
</p>
<a id="t3-install-bottom"></a>
<!-- ###MENU### end -->
</body>
typo3/sysext/install/Resources/Public/Stylesheets/general.css (Arbeitskopie)
@CHARSET "UTF-8";
@charset "UTF-8";
/* Font size 62.8% = 1em = 10px */
body {
......
font-size: 1.2em;
}
button {
button,
a.t3-install-button {
color: #606060;
font-size: 1.1em;
padding: 0.3em 0.6em;
......
cursor: pointer;
}
button:hover {
button:hover,
a.t3-install-button:hover {
background-color: #ededed;
background-image: url('../Images/button-background-hover.jpg');
}
button span {
a.t3-install-button:active {
position: relative;
top: 1px;
}
button span,
a.t3-install-button span {
background-repeat: no-repeat;
display: inline-block;
width: 16px;
......
float: none;
}
button span.t3-install-form-button-icon-negative {
button span.t3-install-form-button-icon-negative,
a.t3-install-button span.t3-install-form-button-icon-negative {
background-image: url('../../../../../gfx/error.png');
}
button span.t3-install-form-button-icon-positive {
button span.t3-install-form-button-icon-positive,
a.t3-install-button span.t3-install-form-button-icon-positive {
background-image: url('../../../../../gfx/ok.png');
}
a.t3-install-button {
display: inline-block;
text-decoration: none;
}
#t3-install-db-compare-operations a.t3-install-button {
width: 85px;
}
#t3-install-db-compare-operations a.t3-install-button span {
float: right;
}
.t3-install-hidden {
display: none;
}
(1-1/3)