Project

General

Profile

Feature #20733 ยป 11499.diff

Administrator Admin, 2009-07-07 21:02

View differences:

typo3/sysext/install/mod/class.tx_install.php (Arbeitskopie)
$content = '';
switch($type) {
case 'get_form':
$content = '';
$content.= '';
$content.= '<div style="float:right;">
<a href="#bottom" onclick="$(\'updateform\').select(\'input[type=checkbox]\').invoke(\'setValue\', true);">select all</a> /
<a href="#bottom" onclick="$(\'updateform\').select(\'input[type=checkbox]\').invoke(\'setValue\', false);">de-select all</a>
</div> ';
$content.= $this->generateUpdateDatabaseForm_checkboxes($arr_update['clear_table'],'Clear tables (use with care!)',false,true);
$content.= $this->generateUpdateDatabaseForm_checkboxes($arr_update['add'],'Add fields');
......
$content.= $this->generateUpdateDatabaseForm_checkboxes($arr_remove['change_table'],'Removing tables (rename with prefix)',$this->setAllCheckBoxesByDefault,1,$arr_remove['tables_count'],1);
$content.= $this->generateUpdateDatabaseForm_checkboxes($arr_remove['drop_table'],'Drop tables (really!)',$this->setAllCheckBoxesByDefault,0,$arr_remove['tables_count'],1);
$content = $this->getUpdateDbFormWrap($action_type, $content);
break;
default:
......
* @return [type] ...
*/
function getUpdateDbFormWrap($action_type, $content, $label='Write to database') {
$form = '<form action="'.$this->action.'#bottom" method="post"><input type="hidden" name="TYPO3_INSTALL[database_type]" value="'.htmlspecialchars($action_type).'">'.$content.'<br /><input type="submit" value="'.$label.'">';
$form = '<form action="'.$this->action.'#bottom" method="post" id="updateform"><input type="hidden" name="TYPO3_INSTALL[database_type]" value="'.htmlspecialchars($action_type).'">'.$content.'<br /><input type="submit" value="'.$label.'">';
return $form;
}
......
<script language="javascript" type="text/javascript">alert(unescape(\'' . t3lib_div::rawUrlEncodeJS($this->JSmessage) . '\'));</script>
':'').'
<script type="text/javascript" src="../contrib/prototype/prototype.js"></script>
</head>
<body>'.$this->contentBeforeTable.'
<div align="center">';
    (1-1/1)