show_create.phtml
1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<div class="show_create_results">
<h2><?php echo __('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)): ?>
<?php
echo PMA\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)): ?>
<?php
echo PMA\Template::get('database/structure/show_create_row')->render(
array(
'db' => $db,
'title' => __('Views'),
'raw_title' => 'View',
'db_objects' => $views
)
);
?>
<?php endif; ?>
</div>