table_header.phtml
5.51 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<?php
$cnt = 0; // Let's count the columns...
if ($db_is_system_schema) {
$action_colspan = 3;
} else {
$action_colspan = 6;
}
if ($GLOBALS['cfg']['NumFavoriteTables'] > 0) {
$action_colspan++;
}
?>
<form method="post" action="db_structure.php" name="tablesForm" id="tablesForm">
<?php echo PMA_URL_getHiddenInputs($db); ?>
<table class="data">
<thead>
<tr>
<th class="print_ignore"></th>
<th><?php echo PMA\Template::get('database/structure/sortable_header')->render(
array(
'title' => __('Table'),
'sort' => 'table',
'initial_sort_order' => 'ASC'
)
); ?></th>
<?php if ($replication): ?>
<th><?php echo __('Replication'); ?></th>
<?php endif; ?>
<th colspan="<?php echo $action_colspan; ?>" class="print_ignore">
<?php echo __('Action'); ?>
</th>
<!-- larger values are more interesting so default sort order is DESC-->
<th>
<?php echo PMA\Template::get('database/structure/sortable_header')->render(
array(
'title' => __('Rows'),
'sort' => 'records',
'initial_sort_order' => 'DESC'
)
); ?>
<?php echo PMA_Util::showHint(PMA_sanitize(
__('May be approximate. Click on the number to get the exact'
. ' count. See [doc@faq3-11]FAQ 3.11[/doc].'))); ?>
</th>
<?php if (!($GLOBALS['cfg']['PropertiesNumColumns'] > 1)): ?>
<th><?php echo PMA\Template::get('database/structure/sortable_header')->render(
array(
'title' => __('Type'),
'sort' => 'type',
'initial_sort_order' => 'ASC'
)
); $cnt++; ?></th>
<th><?php echo PMA\Template::get('database/structure/sortable_header')->render(
array(
'title' => __('Collation'),
'sort' => 'collation',
'initial_sort_order' => 'ASC'
)
); $cnt++; ?></th>
<?php endif; ?>
<?php if ($GLOBALS['is_show_stats']): ?>
<!-- larger values are more interesting so default sort order is DESC -->
<th><?php echo PMA\Template::get('database/structure/sortable_header')->render(
array(
'title' => __('Size'),
'sort' => 'size',
'initial_sort_order' => 'DESC'
)
); $cnt++; ?></th>
<!-- larger values are more interesting so default sort order is DESC -->
<th><?php echo PMA\Template::get('database/structure/sortable_header')->render(
array(
'title' => __('Overhead'),
'sort' => 'overhead',
'initial_sort_order' => 'DESC'
)
); $cnt++; ?></th>
<?php endif; ?>
<?php if ($GLOBALS['cfg']['ShowDbStructureComment']): ?>
<th><?php echo PMA\Template::get('database/structure/sortable_header')->render(
array(
'title' => __('Comment'),
'sort' => 'comment',
'initial_sort_order' => 'ASC'
)
); $cnt++; ?></th>
<?php endif; ?>
<?php if ($GLOBALS['cfg']['ShowDbStructureCreation']): ?>
<!-- newer values are more interesting so default sort order is DESC -->
<th><?php echo PMA\Template::get('database/structure/sortable_header')->render(
array(
'title' => __('Creation'),
'sort' => 'creation',
'initial_sort_order' => 'DESC'
)
); $cnt++; ?></th>
<?php endif; ?>
<?php if ($GLOBALS['cfg']['ShowDbStructureLastUpdate']): ?>
<!-- newer values are more interesting so default sort order is DESC -->
<th><?php echo PMA\Template::get('database/structure/sortable_header')->render(
array(
'title' => __('Last update'),
'sort' => 'last_update',
'initial_sort_order' => 'DESC'
)
); $cnt++; ?></th>
<?php endif; ?>
<?php if ($GLOBALS['cfg']['ShowDbStructureLastCheck']): ?>
<!-- newer values are more interesting so default sort order is DESC -->
<th><?php echo PMA\Template::get('database/structure/sortable_header')->render(
array(
'title' => __('Last check'),
'sort' => 'last_check',
'initial_sort_order' => 'DESC'
)
); $cnt++; ?></th>
<?php endif; ?>
</tr>
</thead>
<tbody>
<?php $GLOBALS['colspan_for_structure'] = $cnt + $action_colspan + 3; ?>