Initial commit
This commit is contained in:
35
#pma/templates/database/structure/show_create.phtml
Normal file
35
#pma/templates/database/structure/show_create.phtml
Normal file
@@ -0,0 +1,35 @@
|
||||
<div class="show_create_results">
|
||||
<h2><?= __('Showing create queries'); ?></h2>
|
||||
<?php
|
||||
$views = array();
|
||||
$tables = array();
|
||||
foreach ($db_objects as $object) {
|
||||
if ($GLOBALS['dbi']->getTable($db, $object)->isView()) {
|
||||
$views [] = $object;
|
||||
} else {
|
||||
$tables [] = $object;
|
||||
}
|
||||
}
|
||||
?>
|
||||
<?php if (! empty($tables)): ?>
|
||||
<?= PMA\libraries\Template::get('database/structure/show_create_row')->render(
|
||||
array(
|
||||
'db' => $db,
|
||||
'title' => __('Tables'),
|
||||
'raw_title' => 'Table',
|
||||
'db_objects' => $tables
|
||||
)
|
||||
) ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (! empty($views)): ?>
|
||||
<?= PMA\libraries\Template::get('database/structure/show_create_row')->render(
|
||||
array(
|
||||
'db' => $db,
|
||||
'title' => __('Views'),
|
||||
'raw_title' => 'View',
|
||||
'db_objects' => $views
|
||||
)
|
||||
) ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
Reference in New Issue
Block a user