set_filenames( array('tplDumpSelectTables' => 'tpl/dump/selectTables.tpl') ); $dbo->selectDb($dump['db_actual']); $tables=$dbo->getTableStatus(); $i=0; foreach ($tables as $tableName => $row) { $klasse = ($i % 2) ? 1 : ''; $tableSize = byteOutput($row['Data_length'] + $row['Index_length']); $tableType = $row['Engine']; $nrOfRecords = String::formatNumber($row['Rows']); if (substr($row['Comment'], 0, 4) == 'VIEW' && $row['Engine'] == '') { $tableType = 'View'; $tableSize = '-'; $nrOfRecords = '-'; } $tplDumpSelectTables->assign_block_vars( 'ROW', array( 'CLASS' => 'dbrow' . $klasse, 'ID' => $i, 'NR' => $i + 1, 'TABLENAME' => $tableName, 'TABLETYPE' => $tableType, 'RECORDS' => $nrOfRecords, 'SIZE' => $tableSize, 'LAST_UPDATE' => $row['Update_time'] ) ); $i++; } $tplDumpSelectTables->assign_vars( array( 'PAGETITLE' => $lang['L_TABLESELECTION'], 'SESSION_ID' => session_id(), 'DATABASE' => $config['db_actual'], 'ICON_OK' => $icon['ok'], 'ICON_DELETE' => $icon['delete'], 'ICON_DB' => $icon['db'], 'L_NO_MSD_BACKUP' => $lang['L_NOT_SUPPORTED'] ) ); }