Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 319 lines (282 sloc) 10.137 kb
ca8a9a8 Marc Delisle new
lem9 authored
1 <?php
817e790 synced/fixed vim line
Sebastian Mendel authored
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
374abd5 fixed/added page level docblock
Sebastian Mendel authored
3 /**
4 *
ebeb0c3 Michal Čihař Adding @package, first part.
nijel authored
5 * @package phpMyAdmin
374abd5 fixed/added page level docblock
Sebastian Mendel authored
6 */
b7b7b05 Marc Delisle Loic cleanup
lem9 authored
7
ca8a9a8 Marc Delisle new
lem9 authored
8 /**
9 * Gets the variables sent or posted to this script, then displays headers
10 */
adb3916 coding standard: no braces around include
Sebastian Mendel authored
11 require_once './libraries/common.inc.php';
fcf387b common.lib.php should REALLY REALLY and ALWAYS be the first include
Sebastian Mendel authored
12
ca8a9a8 Marc Delisle new
lem9 authored
13 if (!isset($selected_tbl)) {
adb3916 coding standard: no braces around include
Sebastian Mendel authored
14 require_once './libraries/header.inc.php';
ca8a9a8 Marc Delisle new
lem9 authored
15 }
16
b7b7b05 Marc Delisle Loic cleanup
lem9 authored
17
ca8a9a8 Marc Delisle new
lem9 authored
18 /**
19 * Gets the relations settings
20 */
ee767e2 Michal Čihař No need to explicitely include relation.lib its anyway included in commo...
nijel authored
21 $cfgRelation = PMA_getRelationsParam();
22
adb3916 coding standard: no braces around include
Sebastian Mendel authored
23 require_once './libraries/transformations.lib.php';
2a3bd1c RFE #700307 - Display DB comments / MIME-types where appropriate.
Garvin Hicking authored
24
b7b7b05 Marc Delisle Loic cleanup
lem9 authored
25
5c87b95 Marc Delisle path disclosure
lem9 authored
26 /**
27 * Check parameters
28 */
29 PMA_checkParameters(array('db'));
b7b7b05 Marc Delisle Loic cleanup
lem9 authored
30
ca8a9a8 Marc Delisle new
lem9 authored
31 /**
32 * Defines the url to return to in case of error in a sql statement
33 */
008734f do NEVER unset $table or $db;
Sebastian Mendel authored
34 if (strlen($table)) {
ad06b4a Michal Čihař Rename tbl_* files to drop useless _properties part.
nijel authored
35 $err_url = 'tbl_sql.php?' . PMA_generate_common_url($db, $table);
ca8a9a8 Marc Delisle new
lem9 authored
36 } else {
cac4247 Michal Čihař Rename db_* files to drop useless _details part.
nijel authored
37 $err_url = 'db_sql.php?' . PMA_generate_common_url($db);
ca8a9a8 Marc Delisle new
lem9 authored
38 }
b7b7b05 Marc Delisle Loic cleanup
lem9 authored
39
2a3bd1c RFE #700307 - Display DB comments / MIME-types where appropriate.
Garvin Hicking authored
40 if ($cfgRelation['commwork']) {
640bece make use of PMA_getDbComment()
Sebastian Mendel authored
41 $comment = PMA_getDbComment($db);
2a3bd1c RFE #700307 - Display DB comments / MIME-types where appropriate.
Garvin Hicking authored
42
43 /**
44 * Displays DB comment
45 */
640bece make use of PMA_getDbComment()
Sebastian Mendel authored
46 if ($comment) {
2a3bd1c RFE #700307 - Display DB comments / MIME-types where appropriate.
Garvin Hicking authored
47 ?>
f55823f Marc Delisle strings to gettext, first batch
lem9 authored
48 <p> <?php echo __('Database comment: '); ?>
640bece make use of PMA_getDbComment()
Sebastian Mendel authored
49 <i><?php echo htmlspecialchars($comment); ?></i></p>
2a3bd1c RFE #700307 - Display DB comments / MIME-types where appropriate.
Garvin Hicking authored
50 <?php
51 } // end if
52 }
b7b7b05 Marc Delisle Loic cleanup
lem9 authored
53
ca8a9a8 Marc Delisle new
lem9 authored
54 /**
b7b7b05 Marc Delisle Loic cleanup
lem9 authored
55 * Selects the database and gets tables names
ca8a9a8 Marc Delisle new
lem9 authored
56 */
2915b5c Alexander M. Turek Added MySQLi library; Removed calls to old mysql_wrappers library.
derrabus authored
57 PMA_DBI_select_db($db);
0ae8842 (not complete) PEAR coding standard
Sebastian Mendel authored
58 $rowset = PMA_DBI_query('SHOW TABLES FROM ' . PMA_backquote($db) . ';', null, PMA_DBI_QUERY_STORE);
5c87b95 Marc Delisle path disclosure
lem9 authored
59
b7b7b05 Marc Delisle Loic cleanup
lem9 authored
60 $count = 0;
2915b5c Alexander M. Turek Added MySQLi library; Removed calls to old mysql_wrappers library.
derrabus authored
61 while ($row = PMA_DBI_fetch_assoc($rowset)) {
c2b46ac Final batch of PHP3-Compatibility fixes. Please test. :-)
Garvin Hicking authored
62 $myfieldname = 'Tables_in_' . htmlspecialchars($db);
b7b7b05 Marc Delisle Loic cleanup
lem9 authored
63 $table = $row[$myfieldname];
e1fd395 removed MySQL < 5 code
Sebastian Mendel authored
64 $comments = PMA_getComments($db, $table);
01d7338 Alexander M. Turek bug #632515
derrabus authored
65
1b187c9 Michal Čihař rfe #1105678 [interface] Drop page-break-before as it is useless for sma...
nijel authored
66 echo '<div>' . "\n";
32cc65c Bug #942359 - Data dictionary had wrong <div>- count. Replace h1 wi...
Garvin Hicking authored
67
e7d6cab Michal Čihař Missing escaping
nijel authored
68 echo '<h2>' . htmlspecialchars($table) . '</h2>' . "\n";
01d7338 Alexander M. Turek bug #632515
derrabus authored
69
b7b7b05 Marc Delisle Loic cleanup
lem9 authored
70 /**
71 * Gets table informations
72 */
a059b08 use PMA_Table::sGetStatusInfo() for table information retrieval
Sebastian Mendel authored
73 $show_comment = PMA_Table::sGetStatusInfo($db, $table, 'TABLE_COMMENT');
01d7338 Alexander M. Turek bug #632515
derrabus authored
74
b7b7b05 Marc Delisle Loic cleanup
lem9 authored
75 /**
76 * Gets table keys and retains them
77 */
ab1eb33 Marc Delisle bug 1034299 error in SHOW KEYS for data dict
lem9 authored
78
79 PMA_DBI_select_db($db);
2915b5c Alexander M. Turek Added MySQLi library; Removed calls to old mysql_wrappers library.
derrabus authored
80 $result = PMA_DBI_query('SHOW KEYS FROM ' . PMA_backquote($table) . ';');
ca8a9a8 Marc Delisle new
lem9 authored
81 $primary = '';
82 $indexes = array();
83 $lastIndex = '';
84 $indexes_info = array();
85 $indexes_data = array();
86 $pk_array = array(); // will be use to emphasis prim. keys in the table
b7b7b05 Marc Delisle Loic cleanup
lem9 authored
87 // view
2915b5c Alexander M. Turek Added MySQLi library; Removed calls to old mysql_wrappers library.
derrabus authored
88 while ($row = PMA_DBI_fetch_assoc($result)) {
b7b7b05 Marc Delisle Loic cleanup
lem9 authored
89 // Backups the list of primary keys
ca8a9a8 Marc Delisle new
lem9 authored
90 if ($row['Key_name'] == 'PRIMARY') {
b7b7b05 Marc Delisle Loic cleanup
lem9 authored
91 $primary .= $row['Column_name'] . ', ';
ca8a9a8 Marc Delisle new
lem9 authored
92 $pk_array[$row['Column_name']] = 1;
93 }
b7b7b05 Marc Delisle Loic cleanup
lem9 authored
94 // Retains keys informations
cfeb306 coding standard: no spaces inside braces
Sebastian Mendel authored
95 if ($row['Key_name'] != $lastIndex){
ca8a9a8 Marc Delisle new
lem9 authored
96 $indexes[] = $row['Key_name'];
97 $lastIndex = $row['Key_name'];
98 }
99 $indexes_info[$row['Key_name']]['Sequences'][] = $row['Seq_in_index'];
100 $indexes_info[$row['Key_name']]['Non_unique'] = $row['Non_unique'];
101 if (isset($row['Cardinality'])) {
102 $indexes_info[$row['Key_name']]['Cardinality'] = $row['Cardinality'];
103 }
b7b7b05 Marc Delisle Loic cleanup
lem9 authored
104 // I don't know what does following column mean....
105 // $indexes_info[$row['Key_name']]['Packed'] = $row['Packed'];
e763ea3 Alexander M. Turek coding standards
derrabus authored
106
c2b46ac Final batch of PHP3-Compatibility fixes. Please test. :-)
Garvin Hicking authored
107 $indexes_info[$row['Key_name']]['Comment'] = $row['Comment'];
01d7338 Alexander M. Turek bug #632515
derrabus authored
108
ca8a9a8 Marc Delisle new
lem9 authored
109 $indexes_data[$row['Key_name']][$row['Seq_in_index']]['Column_name'] = $row['Column_name'];
110 if (isset($row['Sub_part'])) {
111 $indexes_data[$row['Key_name']][$row['Seq_in_index']]['Sub_part'] = $row['Sub_part'];
112 }
01d7338 Alexander M. Turek bug #632515
derrabus authored
113
ca8a9a8 Marc Delisle new
lem9 authored
114 } // end while
115 if ($result) {
b0cc4db Marc Delisle use PMA_DBI function
lem9 authored
116 PMA_DBI_free_result($result);
ca8a9a8 Marc Delisle new
lem9 authored
117 }
01d7338 Alexander M. Turek bug #632515
derrabus authored
118
119
b7b7b05 Marc Delisle Loic cleanup
lem9 authored
120 /**
caa9844 Marc Delisle conform to relational terminology regarding columns and rows
lem9 authored
121 * Gets columns properties
b7b7b05 Marc Delisle Loic cleanup
lem9 authored
122 */
caa9844 Marc Delisle conform to relational terminology regarding columns and rows
lem9 authored
123 $result = PMA_DBI_query('SHOW COLUMNS FROM ' . PMA_backquote($table) . ';', null, PMA_DBI_QUERY_STORE);
28a5d04 Marc Delisle PMA_DBI_num_rows
lem9 authored
124 $fields_cnt = PMA_DBI_num_rows($result);
9957659 Marc Delisle TIMESTAMP and NULL bugs
lem9 authored
125
c7672b5 MySQL bug #20910 fixed in 5.0.25 (http://bugs.mysql.com/20910)
Sebastian Mendel authored
126 if (PMA_MYSQL_INT_VERSION < 50025) {
127 // We need this to correctly learn if a TIMESTAMP is NOT NULL, since
128 // SHOW FULL FIELDS or INFORMATION_SCHEMA incorrectly says NULL
129 // and SHOW CREATE TABLE says NOT NULL
130 // http://bugs.mysql.com/20910.
131
132 $show_create_table = PMA_DBI_fetch_value(
133 'SHOW CREATE TABLE ' . PMA_backquote($db) . '.' . PMA_backquote($table),
134 0, 1);
135 $analyzed_sql = PMA_SQP_analyze(PMA_SQP_parse($show_create_table));
136 }
9957659 Marc Delisle TIMESTAMP and NULL bugs
lem9 authored
137
b7b7b05 Marc Delisle Loic cleanup
lem9 authored
138 // Check if we can use Relations (Mike Beck)
ca8a9a8 Marc Delisle new
lem9 authored
139 if (!empty($cfgRelation['relation'])) {
b7b7b05 Marc Delisle Loic cleanup
lem9 authored
140 // Find which tables are related with the current one and write it in
141 // an array
ca8a9a8 Marc Delisle new
lem9 authored
142 $res_rel = PMA_getForeigners($db, $table);
01d7338 Alexander M. Turek bug #632515
derrabus authored
143
ca8a9a8 Marc Delisle new
lem9 authored
144 if (count($res_rel) > 0) {
145 $have_rel = TRUE;
146 } else {
147 $have_rel = FALSE;
148 }
0ae8842 (not complete) PEAR coding standard
Sebastian Mendel authored
149 } else {
ca8a9a8 Marc Delisle new
lem9 authored
150 $have_rel = FALSE;
151 } // end if
01d7338 Alexander M. Turek bug #632515
derrabus authored
152
153
b7b7b05 Marc Delisle Loic cleanup
lem9 authored
154 /**
155 * Displays the comments of the table if MySQL >= 3.23
156 */
ca8a9a8 Marc Delisle new
lem9 authored
157 if (!empty($show_comment)) {
f55823f Marc Delisle strings to gettext, first batch
lem9 authored
158 echo __('Table comments') . ': ' . htmlspecialchars($show_comment) . '<br /><br />';
ca8a9a8 Marc Delisle new
lem9 authored
159 }
01d7338 Alexander M. Turek bug #632515
derrabus authored
160
b7b7b05 Marc Delisle Loic cleanup
lem9 authored
161 /**
162 * Displays the table structure
163 */
1eadc0a use @todo tag for todo items, to show up in generated documentation
Sebastian Mendel authored
164 ?>
01d7338 Alexander M. Turek bug #632515
derrabus authored
165
e033b3f - replaced $cfg['Bgcolor*'] with classes
Sebastian Mendel authored
166 <table width="100%" class="print">
caa9844 Marc Delisle conform to relational terminology regarding columns and rows
lem9 authored
167 <tr><th width="50"><?php echo __('Column'); ?></th>
f55823f Marc Delisle strings to gettext, first batch
lem9 authored
168 <th width="80"><?php echo __('Type'); ?></th>
169 <?php /* <th width="50"><?php echo __('Attributes'); ?></th>*/ ?>
170 <th width="40"><?php echo __('Null'); ?></th>
171 <th width="70"><?php echo __('Default'); ?></th>
172 <?php /* <th width="50"><?php echo __('Extra'); ?></th>*/ ?>
b7b7b05 Marc Delisle Loic cleanup
lem9 authored
173 <?php
174 if ($have_rel) {
f55823f Marc Delisle strings to gettext, first batch
lem9 authored
175 echo ' <th>' . __('Links to') . '</th>' . "\n";
b7b7b05 Marc Delisle Loic cleanup
lem9 authored
176 }
f55823f Marc Delisle strings to gettext, first batch
lem9 authored
177 echo ' <th>' . __('Comments') . '</th>' . "\n";
2a3bd1c RFE #700307 - Display DB comments / MIME-types where appropriate.
Garvin Hicking authored
178 if ($cfgRelation['mimework']) {
179 echo ' <th>MIME</th>' . "\n";
180 }
b7b7b05 Marc Delisle Loic cleanup
lem9 authored
181 ?>
182 </tr>
183 <?php
e033b3f - replaced $cfg['Bgcolor*'] with classes
Sebastian Mendel authored
184 $odd_row = true;
2915b5c Alexander M. Turek Added MySQLi library; Removed calls to old mysql_wrappers library.
derrabus authored
185 while ($row = PMA_DBI_fetch_assoc($result)) {
b7b7b05 Marc Delisle Loic cleanup
lem9 authored
186
c7672b5 MySQL bug #20910 fixed in 5.0.25 (http://bugs.mysql.com/20910)
Sebastian Mendel authored
187 if ($row['Null'] == '') {
188 $row['Null'] = 'NO';
189 }
b7b7b05 Marc Delisle Loic cleanup
lem9 authored
190 $type = $row['Type'];
819324e Marc Delisle remove author names, as discussed at the 2010 developer meeting and acco...
lem9 authored
191 // reformat mysql query output
192 // set or enum types: slashes single quotes inside options
c2b46ac Final batch of PHP3-Compatibility fixes. Please test. :-)
Garvin Hicking authored
193 if (preg_match('@^(set|enum)\((.+)\)$@i', $type, $tmp)) {
75f80e4 bug 857186 - regex delimiter
Garvin Hicking authored
194 $tmp[2] = substr(preg_replace('@([^,])\'\'@', '\\1\\\'', ',' . $tmp[2]), 1);
b7b7b05 Marc Delisle Loic cleanup
lem9 authored
195 $type = $tmp[1] . '(' . str_replace(',', ', ', $tmp[2]) . ')';
196 $type_nowrap = '';
cac9bb9 Michal Čihař Fixed bug #667682 ("UNSIGNED" option in SET or ENUM).
nijel authored
197
198 $binary = 0;
199 $unsigned = 0;
200 $zerofill = 0;
b7b7b05 Marc Delisle Loic cleanup
lem9 authored
201 } else {
c2b46ac Final batch of PHP3-Compatibility fixes. Please test. :-)
Garvin Hicking authored
202 $binary = stristr($row['Type'], 'binary');
203 $unsigned = stristr($row['Type'], 'unsigned');
204 $zerofill = stristr($row['Type'], 'zerofill');
b7b7b05 Marc Delisle Loic cleanup
lem9 authored
205 $type_nowrap = ' nowrap="nowrap"';
c2b46ac Final batch of PHP3-Compatibility fixes. Please test. :-)
Garvin Hicking authored
206 $type = preg_replace('@BINARY@i', '', $type);
207 $type = preg_replace('@ZEROFILL@i', '', $type);
208 $type = preg_replace('@UNSIGNED@i', '', $type);
cac9bb9 Michal Čihař Fixed bug #667682 ("UNSIGNED" option in SET or ENUM).
nijel authored
209 if (empty($type)) {
e033b3f - replaced $cfg['Bgcolor*'] with classes
Sebastian Mendel authored
210 $type = ' ';
cac9bb9 Michal Čihař Fixed bug #667682 ("UNSIGNED" option in SET or ENUM).
nijel authored
211 }
b7b7b05 Marc Delisle Loic cleanup
lem9 authored
212 }
f55823f Marc Delisle strings to gettext, first batch
lem9 authored
213 $attribute = ' ';
b7b7b05 Marc Delisle Loic cleanup
lem9 authored
214 if ($binary) {
f55823f Marc Delisle strings to gettext, first batch
lem9 authored
215 $attribute = 'BINARY';
b7b7b05 Marc Delisle Loic cleanup
lem9 authored
216 }
217 if ($unsigned) {
f55823f Marc Delisle strings to gettext, first batch
lem9 authored
218 $attribute = 'UNSIGNED';
b7b7b05 Marc Delisle Loic cleanup
lem9 authored
219 }
220 if ($zerofill) {
f55823f Marc Delisle strings to gettext, first batch
lem9 authored
221 $attribute = 'UNSIGNED ZEROFILL';
b7b7b05 Marc Delisle Loic cleanup
lem9 authored
222 }
223 if (!isset($row['Default'])) {
c7672b5 MySQL bug #20910 fixed in 5.0.25 (http://bugs.mysql.com/20910)
Sebastian Mendel authored
224 if ($row['Null'] != 'NO') {
b7b7b05 Marc Delisle Loic cleanup
lem9 authored
225 $row['Default'] = '<i>NULL</i>';
226 }
227 } else {
228 $row['Default'] = htmlspecialchars($row['Default']);
229 }
da6e51d Michal Čihař Do not escape field here, it is used as index to vairous arrays
nijel authored
230 $field_name = $row['Field'];
9957659 Marc Delisle TIMESTAMP and NULL bugs
lem9 authored
231
c7672b5 MySQL bug #20910 fixed in 5.0.25 (http://bugs.mysql.com/20910)
Sebastian Mendel authored
232 if (PMA_MYSQL_INT_VERSION < 50025
233 && ! empty($analyzed_sql[0]['create_table_fields'][$field_name]['type'])
234 && $analyzed_sql[0]['create_table_fields'][$field_name]['type'] == 'TIMESTAMP'
235 && $analyzed_sql[0]['create_table_fields'][$field_name]['timestamp_not_null']) {
236 // here, we have a TIMESTAMP that SHOW FULL FIELDS reports as having the
237 // NULL attribute, but SHOW CREATE TABLE says the contrary. Believe
238 // the latter.
239 /**
240 * @todo merge this logic with the one in tbl_structure.php
241 * or move it in a function similar to PMA_DBI_get_columns_full()
242 * but based on SHOW CREATE TABLE because information_schema
243 * cannot be trusted in this case (MySQL bug)
244 */
245 $row['Null'] = 'NO';
9957659 Marc Delisle TIMESTAMP and NULL bugs
lem9 authored
246 }
1eadc0a use @todo tag for todo items, to show up in generated documentation
Sebastian Mendel authored
247 ?>
e033b3f - replaced $cfg['Bgcolor*'] with classes
Sebastian Mendel authored
248 <tr class="<?php echo $odd_row ? 'odd' : 'even'; $odd_row = ! $odd_row; ?>">
249 <td nowrap="nowrap">
b7b7b05 Marc Delisle Loic cleanup
lem9 authored
250 <?php
251 if (isset($pk_array[$row['Field']])) {
8cec4ac Michal Čihař Revert "Revert "More of missing escaping""
nijel authored
252 echo '<u>' . htmlspecialchars($field_name) . '</u>';
b7b7b05 Marc Delisle Loic cleanup
lem9 authored
253 } else {
8cec4ac Michal Čihař Revert "Revert "More of missing escaping""
nijel authored
254 echo htmlspecialchars($field_name);
b7b7b05 Marc Delisle Loic cleanup
lem9 authored
255 }
1eadc0a use @todo tag for todo items, to show up in generated documentation
Sebastian Mendel authored
256 ?>
b7b7b05 Marc Delisle Loic cleanup
lem9 authored
257 </td>
e033b3f - replaced $cfg['Bgcolor*'] with classes
Sebastian Mendel authored
258 <td<?php echo $type_nowrap; ?> xml:lang="en" dir="ltr"><?php echo $type; ?></td>
f55823f Marc Delisle strings to gettext, first batch
lem9 authored
259 <?php /* <td<?php echo $type_nowrap; ?>><?php echo $attribute; ?></td>*/ ?>
260 <td><?php echo (($row['Null'] == 'NO') ? __('No') : __('Yes')); ?></td>
0ae8842 (not complete) PEAR coding standard
Sebastian Mendel authored
261 <td nowrap="nowrap"><?php if (isset($row['Default'])) { echo $row['Default']; } ?></td>
e033b3f - replaced $cfg['Bgcolor*'] with classes
Sebastian Mendel authored
262 <?php /* <td<?php echo $type_nowrap; ?>><?php echo $row['Extra']; ?></td>*/ ?>
b7b7b05 Marc Delisle Loic cleanup
lem9 authored
263 <?php
264 if ($have_rel) {
e033b3f - replaced $cfg['Bgcolor*'] with classes
Sebastian Mendel authored
265 echo ' <td>';
b7b7b05 Marc Delisle Loic cleanup
lem9 authored
266 if (isset($res_rel[$field_name])) {
267 echo htmlspecialchars($res_rel[$field_name]['foreign_table'] . ' -> ' . $res_rel[$field_name]['foreign_field']);
268 }
e033b3f - replaced $cfg['Bgcolor*'] with classes
Sebastian Mendel authored
269 echo '</td>' . "\n";
b7b7b05 Marc Delisle Loic cleanup
lem9 authored
270 }
e1fd395 removed MySQL < 5 code
Sebastian Mendel authored
271 echo ' <td>';
272 if (isset($comments[$field_name])) {
273 echo htmlspecialchars($comments[$field_name]);
b7b7b05 Marc Delisle Loic cleanup
lem9 authored
274 }
e1fd395 removed MySQL < 5 code
Sebastian Mendel authored
275 echo '</td>' . "\n";
2a3bd1c RFE #700307 - Display DB comments / MIME-types where appropriate.
Garvin Hicking authored
276 if ($cfgRelation['mimework']) {
277 $mime_map = PMA_getMIME($db, $table, true);
fdff6ab Alexander M. Turek bug #712055
derrabus authored
278
e033b3f - replaced $cfg['Bgcolor*'] with classes
Sebastian Mendel authored
279 echo ' <td>';
2a3bd1c RFE #700307 - Display DB comments / MIME-types where appropriate.
Garvin Hicking authored
280 if (isset($mime_map[$field_name])) {
281 echo htmlspecialchars(str_replace('_', '/', $mime_map[$field_name]['mimetype']));
282 }
e033b3f - replaced $cfg['Bgcolor*'] with classes
Sebastian Mendel authored
283 echo '</td>' . "\n";
2a3bd1c RFE #700307 - Display DB comments / MIME-types where appropriate.
Garvin Hicking authored
284 }
b7b7b05 Marc Delisle Loic cleanup
lem9 authored
285 ?>
286 </tr>
287 <?php
288 } // end while
cfeb306 coding standard: no spaces inside braces
Sebastian Mendel authored
289 PMA_DBI_free_result($result);
e033b3f - replaced $cfg['Bgcolor*'] with classes
Sebastian Mendel authored
290 $count++;
1eadc0a use @todo tag for todo items, to show up in generated documentation
Sebastian Mendel authored
291 ?>
b7b7b05 Marc Delisle Loic cleanup
lem9 authored
292 </table>
e033b3f - replaced $cfg['Bgcolor*'] with classes
Sebastian Mendel authored
293 </div>
b7b7b05 Marc Delisle Loic cleanup
lem9 authored
294 <?php
295 } //ends main while
01d7338 Alexander M. Turek bug #632515
derrabus authored
296
ca8a9a8 Marc Delisle new
lem9 authored
297 /**
298 * Displays the footer
299 */
1eadc0a use @todo tag for todo items, to show up in generated documentation
Sebastian Mendel authored
300 ?>
d0ac1f2 XHTML standard: no language attribute in <script>
Sebastian Mendel authored
301 <script type="text/javascript">
e033b3f - replaced $cfg['Bgcolor*'] with classes
Sebastian Mendel authored
302 //<![CDATA[
ca8a9a8 Marc Delisle new
lem9 authored
303 function printPage()
304 {
8d9c387 Marc Delisle bug 863713
lem9 authored
305 document.getElementById('print').style.visibility = 'hidden';
01d7338 Alexander M. Turek bug #632515
derrabus authored
306 // Do print the page
307 if (typeof(window.print) != 'undefined') {
308 window.print();
309 }
8d9c387 Marc Delisle bug 863713
lem9 authored
310 document.getElementById('print').style.visibility = '';
ca8a9a8 Marc Delisle new
lem9 authored
311 }
e033b3f - replaced $cfg['Bgcolor*'] with classes
Sebastian Mendel authored
312 //]]>
ca8a9a8 Marc Delisle new
lem9 authored
313 </script>
b7b7b05 Marc Delisle Loic cleanup
lem9 authored
314 <?php
f55823f Marc Delisle strings to gettext, first batch
lem9 authored
315 echo '<br /><br /><input type="button" id="print" value="' . __('Print') . '" onclick="printPage()" />';
b7b7b05 Marc Delisle Loic cleanup
lem9 authored
316
d291827 Michal Čihař No need to require_once footer
nijel authored
317 require './libraries/footer.inc.php';
37d50c1 Alexander M. Turek Huge set of optimizations, please test!
derrabus authored
318 ?>
Something went wrong with that request. Please try again.