= Template::get('table/structure/move_columns_dialog')->render(); ?>
= Util::linkOrButton(
$edit_view_url,
Util::getIcon('b_edit.png', __('Edit view'), true)
); ?>
= Template::get('table/structure/optional_action_links')->render(
array(
'url_query' => $url_query,
'tbl_is_view' => $tbl_is_view,
'db_is_system_schema' => $db_is_system_schema
)
); ?>
= Template::get('table/structure/add_column')->render(
array('columns_list' => $columns_list)
); ?>
= PMA_getHtmlForDisplayIndexes(); ?>
getMethod() == 'RANGE'
|| $firstPartition->getMethod() == 'RANGE COLUMNS'
|| $firstPartition->getMethod() == 'LIST'
|| $firstPartition->getMethod() == 'LIST COLUMNS';
$subParitions = $firstPartition->getSubPartitions();
$hasSubPartitions = $firstPartition->hasSubPartitions();
if ($hasSubPartitions) {
$firstSubPartition = $subParitions[0];
}
$actionIcons = array(
'ANALYZE' => Util::getIcon('b_search.png', __('Analyze')),
'CHECK' => Util::getIcon('eye.png', __('Check')),
'OPTIMIZE' => Util::getIcon('normalize.png', __('Optimize')),
'REBUILD' => Util::getIcon('s_tbl.png', __('Rebuild')),
'REPAIR' => Util::getIcon('b_tblops.png', __('Repair')),
'TRUNCATE' => Util::getIcon('b_empty.png', __('Truncate')),
);
if ($rangeOrList) {
$actionIcons['DROP'] = Util::getIcon('b_drop.png', __('Drop'));
}
echo Util::getDivForSliderEffect(
'partitions', __('Partitions')
);
$tmp_partition_description = $firstPartition->getDescription();
$removeSQL = "ALTER TABLE " . Util::backquote($table) . " REMOVE PARTITIONING";
$removeUrl = 'sql.php' . $url_query . '&sql_query=' . urlencode($removeSQL);
echo Template::get('table/structure/display_partitions')->render(
array(
'db' => $db,
'table' => $table,
'url_query' => $url_query,
'partitions' => $partitions,
'partitionMethod' => $firstPartition->getMethod(),
'partitionExpression' => $firstPartition->getExpression(),
'hasDescription' => ! empty($tmp_partition_description),
'hasSubPartitions' => $hasSubPartitions,
'subPartitionMethod' => $hasSubPartitions ? $firstSubPartition->getMethod() : null,
'subPartitionExpression' => $hasSubPartitions ? $firstSubPartition->getExpression() : null,
'actionIcons' => $actionIcons,
'rangeOrList' => $rangeOrList,
'removeUrl' => $removeUrl,
)
);
else:
echo Template::get('table/structure/display_partitions')->render(
array(
'db' => $db,
'table' => $table,
)
);
endif;
?>
= $tablestats; ?>