table_fields_definitions.phtml
5.01 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
128
129
130
131
132
133
<table id="table_columns" class="noclick">
<caption class="tblHeaders">
<?php echo __('Structure'); ?>
<?php echo PMA_Util::showMySQLDocu('CREATE_TABLE'); ?>
</caption>
<tr>
<th>
<?php echo __('Name'); ?>
</th>
<th>
<?php echo __('Type') . PMA_Util::showMySQLDocu('data-types'); ?>
</th>
<th>
<?php echo __('Length/Values') . PMA_Util::showHint(
__(
'If column type is "enum" or "set", please enter the values using'
. ' this format: \'a\',\'b\',\'c\'…<br />If you ever need to put'
. ' a backslash ("\") or a single quote ("\'") amongst those'
. ' values, precede it with a backslash (for example \'\\\\xyz\''
. ' or \'a\\\'b\').'
)
); ?>
</th>
<th>
<?php echo __('Default') . PMA_Util::showHint(
__(
'For default values, please enter just a single value,'
. ' without backslash escaping or quotes, using this format: a'
)
); ?>
</th>
<th>
<?php echo __('Collation'); ?>
</th>
<th>
<?php echo __('Attributes'); ?>
</th>
<th>
<?php echo __('Null'); ?>
</th>
<!-- Only for 'Edit' Column(s) -->
<?php if (isset($_REQUEST['change_column'])
&& ! empty($_REQUEST['change_column'])
): ?>
<th>
<?php echo __('Adjust privileges') . PMA_Util::showDocu('faq', 'faq6-39'); ?>
</th>
<?php endif; ?>
<?php
// We could remove this 'if' and let the key information be shown and
// editable. However, for this to work, structure.lib.php must be modified
// to use the key fields, as tbl_addfield does.
if (!$is_backup): ?>
<th>
<?php echo __('Index'); ?>
</th>
<?php endif; ?>
<th>
<abbr title="AUTO_INCREMENT">A_I</abbr>
</th>
<th>
<?php echo __('Comments'); ?>
</th>
<?php if (PMA_Util::isVirtualColumnsSupported()): ?>
<th>
<?php echo __('Virtuality'); ?>
</th>
<?php endif; ?>
<?php if (isset($fields_meta)): ?>
<th>
<?php echo __('Move column'); ?>
</th>
<?php endif; ?>
<?php if ($mimework && $GLOBALS['cfg']['BrowseMIME']): ?>
<th>
<?php echo __('MIME type'); ?>
</th>
<th>
<a href="transformation_overview.php<?php echo PMA_URL_getCommon(); ?>#transformation"
title="<?php echo __('List of available transformations and their options'); ?>"
target="_blank">
<?php echo __('Browser display transformation'); ?>
</a>
</th>
<th>
<?php echo __('Browser display transformation options'); ?>
<?php echo PMA_Util::showHint(
__(
'Please enter the values for transformation options using this'
. ' format: \'a\', 100, b,\'c\'…<br />If you ever need to put'
. ' a backslash ("\") or a single quote ("\'") amongst those'
. ' values, precede it with a backslash (for example \'\\\\xyz\''
. ' or \'a\\\'b\').'
)
); ?>
</th>
<th>
<a href="transformation_overview.php<?php echo PMA_URL_getCommon(); ?>#input_transformation"
title="<?php echo __('List of available transformations and their options'); ?>"
target="_blank">
<?php echo __('Input transformation'); ?>
</a>
</th>
<th>
<?php echo __('Input transformation options'); ?>
<?php echo PMA_Util::showHint(
__(
'Please enter the values for transformation options using this'
. ' format: \'a\', 100, b,\'c\'…<br />If you ever need to put'
. ' a backslash ("\") or a single quote ("\'") amongst those'
. ' values, precede it with a backslash (for example \'\\\\xyz\''
. ' or \'a\\\'b\').'
)
); ?>
</th>
<?php endif; ?>
</tr>
<?php $odd_row = true;?>
<?php foreach($content_cells as $content_row): ?>
<tr class="<?php echo ($odd_row ? 'odd' : 'even'); ?>">
<?php $odd_row = !$odd_row; ?>
<?php echo PMA\Template::get('columns_definitions/column_attributes')
->render($content_row); ?>
</tr>
<?php endforeach; ?>
</table>
<br />