is*() methods now return boolean values;
[phpmyadmin.git] / db_structure.php
blob23fe15d156a790f3780b8ad47f2925f2a24660ce
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
5 * @version $Id$
6 * @package phpMyAdmin
7 */
9 /**
12 require_once './libraries/common.inc.php';
13 require_once './libraries/Table.class.php';
15 $GLOBALS['js_include'][] = 'mootools.js';
17 /**
18 * Prepares the tables list if the user where not redirected to this script
19 * because there is no table in the database ($is_info is true)
21 if (empty($is_info)) {
22 // Drops/deletes/etc. multiple tables if required
23 if ((!empty($submit_mult) && isset($selected_tbl))
24 || isset($mult_btn)) {
25 $action = 'db_structure.php';
26 $err_url = 'db_structure.php?'. PMA_generate_common_url($db);
27 require './libraries/mult_submits.inc.php';
28 if (empty($message)) {
29 $message = PMA_Message::success();
32 require './libraries/db_common.inc.php';
33 $url_query .= '&amp;goto=db_structure.php';
35 // Gets the database structure
36 $sub_part = '_structure';
37 require './libraries/db_info.inc.php';
40 // 1. No tables
41 if ($num_tables == 0) {
42 echo '<p>' . $strNoTablesFound . '</p>' . "\n";
44 if (empty($db_is_information_schema)) {
45 require './libraries/display_create_table.lib.php';
46 } // end if (Create Table dialog)
48 /**
49 * Displays the footer
51 require_once './libraries/footer.inc.php';
52 exit;
55 // else
56 // 2. Shows table informations - staybyte - 11 June 2001
58 require_once './libraries/bookmark.lib.php';
60 require_once './libraries/mysql_charsets.lib.php';
61 $db_collation = PMA_getDbCollation($db);
63 // Display function
64 /**
65 * void PMA_TableHeader([bool $db_is_information_schema = false])
66 * display table header (<table><thead>...</thead><tbody>)
68 * @uses PMA_showHint()
69 * @uses $GLOBALS['cfg']['PropertiesNumColumns']
70 * @uses $GLOBALS['is_show_stats']
71 * @uses $GLOBALS['strTable']
72 * @uses $GLOBALS['strAction']
73 * @uses $GLOBALS['strRecords']
74 * @uses $GLOBALS['strApproximateCount']
75 * @uses $GLOBALS['strType']
76 * @uses $GLOBALS['strCollation']
77 * @uses $GLOBALS['strSize']
78 * @uses $GLOBALS['strOverhead']
79 * @uses $GLOBALS['structure_tbl_col_cnt']
80 * @param boolean $db_is_information_schema
82 function PMA_TableHeader($db_is_information_schema = false)
84 $cnt = 0; // Let's count the columns...
86 if ($db_is_information_schema) {
87 $action_colspan = 3;
88 } else {
89 $action_colspan = 6;
92 echo '<table class="data" style="float: left;">' . "\n"
93 .'<thead>' . "\n"
94 .'<tr><td></td>' . "\n"
95 .' <th>' . $GLOBALS['strTable'] . '</th>' . "\n"
96 .' <th colspan="' . $action_colspan . '">' . "\n"
97 .' ' . $GLOBALS['strAction'] . "\n"
98 .' </th>'
99 .' <th>' . $GLOBALS['strRecords']
100 .PMA_showHint(PMA_sanitize($GLOBALS['strApproximateCount'])) . "\n"
101 .' </th>' . "\n";
102 if (!($GLOBALS['cfg']['PropertiesNumColumns'] > 1)) {
103 echo ' <th>' . $GLOBALS['strType'] . '</th>' . "\n";
104 $cnt++;
105 echo ' <th>' . $GLOBALS['strCollation'] . '</th>' . "\n";
106 $cnt++;
108 if ($GLOBALS['is_show_stats']) {
109 echo ' <th>' . $GLOBALS['strSize'] . '</th>' . "\n"
110 . ' <th>' . $GLOBALS['strOverhead'] . '</th>' . "\n";
111 $cnt += 2;
113 echo '</tr>' . "\n";
114 echo '</thead>' . "\n";
115 echo '<tbody>' . "\n";
116 $GLOBALS['structure_tbl_col_cnt'] = $cnt + $action_colspan + 3;
117 } // end function PMA_TableHeader()
119 $titles = array();
120 if (true == $cfg['PropertiesIconic']) {
121 $titles['Browse'] = '<img class="icon" width="16" height="16" src="' .$pmaThemeImage . 'b_browse.png" alt="' . $strBrowse . '" title="' . $strBrowse . '" />';
122 $titles['NoBrowse'] = '<img class="icon" width="16" height="16" src="' .$pmaThemeImage . 'bd_browse.png" alt="' . $strBrowse . '" title="' . $strBrowse . '" />';
123 $titles['Search'] = '<img class="icon" width="16" height="16" src="' .$pmaThemeImage . 'b_select.png" alt="' . $strSearch . '" title="' . $strSearch . '" />';
124 $titles['NoSearch'] = '<img class="icon" width="16" height="16" src="' .$pmaThemeImage . 'bd_select.png" alt="' . $strSearch . '" title="' . $strSearch . '" />';
125 $titles['Insert'] = '<img class="icon" width="16" height="16" src="' .$pmaThemeImage . 'b_insrow.png" alt="' . $strInsert . '" title="' . $strInsert . '" />';
126 $titles['NoInsert'] = '<img class="icon" width="16" height="16" src="' .$pmaThemeImage . 'bd_insrow.png" alt="' . $strInsert . '" title="' . $strInsert . '" />';
127 $titles['Structure'] = '<img class="icon" width="16" height="16" src="' .$pmaThemeImage . 'b_props.png" alt="' . $strStructure . '" title="' . $strStructure . '" />';
128 $titles['Drop'] = '<img class="icon" width="16" height="16" src="' .$pmaThemeImage . 'b_drop.png" alt="' . $strDrop . '" title="' . $strDrop . '" />';
129 $titles['NoDrop'] = '<img class="icon" width="16" height="16" src="' .$pmaThemeImage . 'bd_drop.png" alt="' . $strDrop . '" title="' . $strDrop . '" />';
130 $titles['Empty'] = '<img class="icon" width="16" height="16" src="' .$pmaThemeImage . 'b_empty.png" alt="' . $strEmpty . '" title="' . $strEmpty . '" />';
131 $titles['NoEmpty'] = '<img class="icon" width="16" height="16" src="' .$pmaThemeImage . 'bd_empty.png" alt="' . $strEmpty . '" title="' . $strEmpty . '" />';
133 if ('both' === $cfg['PropertiesIconic']) {
134 $titles['Browse'] .= $strBrowse;
135 $titles['Search'] .= $strSearch;
136 $titles['NoBrowse'] .= $strBrowse;
137 $titles['NoSearch'] .= $strSearch;
138 $titles['Insert'] .= $strInsert;
139 $titles['NoInsert'] .= $strInsert;
140 $titles['Structure'] .= $strStructure;
141 $titles['Drop'] .= $strDrop;
142 $titles['NoDrop'] .= $strDrop;
143 $titles['Empty'] .= $strEmpty;
144 $titles['NoEmpty'] .= $strEmpty;
146 } else {
147 $titles['Browse'] = $strBrowse;
148 $titles['Search'] = $strSearch;
149 $titles['NoBrowse'] = $strBrowse;
150 $titles['NoSearch'] = $strSearch;
151 $titles['Insert'] = $strInsert;
152 $titles['NoInsert'] = $strInsert;
153 $titles['Structure'] = $strStructure;
154 $titles['Drop'] = $strDrop;
155 $titles['NoDrop'] = $strDrop;
156 $titles['Empty'] = $strEmpty;
157 $titles['NoEmpty'] = $strEmpty;
161 * Displays the tables list
164 $_url_params = array(
165 'pos' => $pos,
166 'db' => $db);
168 PMA_listNavigator($total_num_tables, $pos, $_url_params, 'db_structure.php', 'frame_content', $GLOBALS['cfg']['MaxTableList']);
171 <form method="post" action="db_structure.php" name="tablesForm" id="tablesForm">
172 <?php
173 echo PMA_generate_common_hidden_inputs($db);
175 PMA_TableHeader($db_is_information_schema);
177 $i = $sum_entries = 0;
178 $sum_size = (double) 0;
179 $overhead_size = (double) 0;
180 $overhead_check = '';
181 $checked = !empty($checkall) ? ' checked="checked"' : '';
182 $num_columns = $cfg['PropertiesNumColumns'] > 1 ? ceil($num_tables / $cfg['PropertiesNumColumns']) + 1 : 0;
183 $row_count = 0;
186 $hidden_fields = array();
187 $odd_row = true;
188 $sum_row_count_pre = '';
190 // added by rajk - for blobstreaming
191 $PMA_Config = $_SESSION['PMA_Config'];
193 if (!empty($PMA_Config))
194 $session_bs_tables = $PMA_Config->get('BLOBSTREAMING_TABLES'); // list of blobstreaming tables
196 $tableReductionCount = 0; // the amount to reduce the table count by
198 foreach ($tables as $keyname => $each_table) {
199 if (isset($session_bs_tables))
201 // compare table name against blobstreaming tables
202 foreach ($session_bs_tables as $table_key=>$table_val)
203 // if the table is a blobstreaming table, reduce table count and skip outer foreach loop
204 if ($table_key == $keyname)
206 $tableReductionCount++;
207 continue 2;
211 // loic1: Patch from Joshua Nye <josh at boxcarmedia.com> to get valid
212 // statistics whatever is the table type
214 $table_is_view = false;
215 $table_encoded = urlencode($each_table['TABLE_NAME']);
216 // Sets parameters for links
217 $tbl_url_query = $url_query . '&amp;table=' . $table_encoded;
218 // do not list the previous table's size info for a view
219 $formatted_size = '-';
220 $unit = '';
222 switch ( $each_table['ENGINE']) {
223 // MyISAM, ISAM or Heap table: Row count, data size and index size
224 // are accurate.
225 case 'MyISAM' :
226 case 'ISAM' :
227 case 'HEAP' :
228 case 'MEMORY' :
229 if ($is_show_stats) {
230 $tblsize = doubleval($each_table['Data_length']) + doubleval($each_table['Index_length']);
231 $sum_size += $tblsize;
232 list($formatted_size, $unit) = PMA_formatByteDown($tblsize, 3, ($tblsize > 0) ? 1 : 0);
233 if (isset($each_table['Data_free']) && $each_table['Data_free'] > 0) {
234 list($formatted_overhead, $overhead_unit) = PMA_formatByteDown($each_table['Data_free'], 3, ($each_table['Data_free'] > 0) ? 1 : 0);
235 $overhead_size += $each_table['Data_free'];
238 break;
239 case 'InnoDB' :
240 // InnoDB table: Row count is not accurate but data and index
241 // sizes are.
243 if ($each_table['TABLE_ROWS'] < $GLOBALS['cfg']['MaxExactCount']) {
244 $each_table['COUNTED'] = true;
245 $each_table['TABLE_ROWS'] = PMA_Table::countRecords($db,
246 $each_table['TABLE_NAME'], $return = true, $force_exact = true,
247 $is_view = false);
248 } else {
249 $each_table['COUNTED'] = false;
252 if ($is_show_stats) {
253 $tblsize = $each_table['Data_length'] + $each_table['Index_length'];
254 $sum_size += $tblsize;
255 list($formatted_size, $unit) = PMA_formatByteDown($tblsize, 3, ($tblsize > 0) ? 1 : 0);
257 //$display_rows = ' - ';
258 break;
259 case 'MRG_MyISAM' :
260 case 'BerkeleyDB' :
261 // Merge or BerkleyDB table: Only row count is accurate.
262 if ($is_show_stats) {
263 $formatted_size = ' - ';
264 $unit = '';
266 break;
267 // for a view, the ENGINE is null
268 case null :
269 case 'SYSTEM VIEW' :
270 // countRecords() takes care of $cfg['MaxExactCountViews']
271 $each_table['TABLE_ROWS'] = PMA_Table::countRecords($db,
272 $each_table['TABLE_NAME'], $return = true, $force_exact = true,
273 $is_view = true);
274 $table_is_view = true;
275 break;
276 default :
277 // Unknown table type.
278 if ($is_show_stats) {
279 $formatted_size = 'unknown';
280 $unit = '';
282 } // end switch
283 $sum_entries += $each_table['TABLE_ROWS'];
285 if (isset($each_table['Collation'])) {
286 $collation = '<dfn title="'
287 . PMA_getCollationDescr($each_table['Collation']) . '">'
288 . $each_table['Collation'] . '</dfn>';
289 } else {
290 $collation = '---';
293 if ($is_show_stats) {
294 if (isset($formatted_overhead)) {
295 $overhead = '<a href="tbl_structure.php?'
296 . $tbl_url_query . '#showusage">' . $formatted_overhead
297 . ' ' . $overhead_unit . '</a>' . "\n";
298 unset($formatted_overhead);
299 $overhead_check .=
300 "document.getElementById('checkbox_tbl_" . ($i + 1) . "').checked = true;";
301 } else {
302 $overhead = '-';
304 } // end if
306 $alias = (!empty($tooltip_aliasname) && isset($tooltip_aliasname[$each_table['TABLE_NAME']]))
307 ? str_replace(' ', '&nbsp;', htmlspecialchars($tooltip_truename[$each_table['TABLE_NAME']]))
308 : str_replace(' ', '&nbsp;', htmlspecialchars($each_table['TABLE_NAME']));
309 $truename = (!empty($tooltip_truename) && isset($tooltip_truename[$each_table['TABLE_NAME']]))
310 ? str_replace(' ', '&nbsp;', htmlspecialchars($tooltip_truename[$each_table['TABLE_NAME']]))
311 : str_replace(' ', '&nbsp;', htmlspecialchars($each_table['TABLE_NAME']));
313 $i++;
315 $row_count++;
316 if ($table_is_view) {
317 $hidden_fields[] = '<input type="hidden" name="views[]" value="' . $each_table['TABLE_NAME'] . '" />';
320 if ($each_table['TABLE_ROWS'] > 0) {
321 $browse_table = '<a href="sql.php?' . $tbl_url_query . '&amp;pos=0">' . $titles['Browse'] . '</a>';
322 $search_table = '<a href="tbl_select.php?' . $tbl_url_query . '">' . $titles['Search'] . '</a>';
323 } else {
324 $browse_table = $titles['NoBrowse'];
325 $search_table = $titles['NoSearch'];
328 if (! $db_is_information_schema) {
329 if (! empty($each_table['TABLE_ROWS'])) {
330 $empty_table = '<a href="sql.php?' . $tbl_url_query
331 . '&amp;sql_query=';
332 $empty_table .= urlencode('TRUNCATE ' . PMA_backquote($each_table['TABLE_NAME']))
333 . '&amp;zero_rows='
334 . urlencode(sprintf($strTableHasBeenEmptied, htmlspecialchars($each_table['TABLE_NAME'])))
335 . '" onclick="return confirmLink(this, \'TRUNCATE ';
336 $empty_table .= PMA_jsFormat($each_table['TABLE_NAME']) . '\')">' . $titles['Empty'] . '</a>';
337 } else {
338 $empty_table = $titles['NoEmpty'];
340 $drop_query = 'DROP '
341 . ($table_is_view ? 'VIEW' : 'TABLE')
342 . ' ' . PMA_backquote($each_table['TABLE_NAME']);
343 $drop_message = sprintf(
344 $table_is_view ? $strViewHasBeenDropped : $strTableHasBeenDropped,
345 str_replace(' ', '&nbsp;', htmlspecialchars($each_table['TABLE_NAME'])));
348 if ($num_columns > 0 && $num_tables > $num_columns
349 && (($row_count % $num_columns) == 0)) {
350 $row_count = 1;
351 $odd_row = true;
353 </tr>
354 </tbody>
355 </table>
356 <?php
357 PMA_TableHeader();
360 <tr class="<?php echo $odd_row ? 'odd' : 'even'; $odd_row = ! $odd_row; ?>">
361 <td align="center">
362 <input type="checkbox" name="selected_tbl[]"
363 value="<?php echo $each_table['TABLE_NAME']; ?>"
364 id="checkbox_tbl_<?php echo $i; ?>"<?php echo $checked; ?> /></td>
365 <th><label for="checkbox_tbl_<?php echo $i; ?>"
366 title="<?php echo $alias; ?>"><?php echo $truename; ?></label>
367 </th>
368 <td align="center"><?php echo $browse_table; ?></td>
369 <td align="center">
370 <a href="tbl_structure.php?<?php echo $tbl_url_query; ?>">
371 <?php echo $titles['Structure']; ?></a></td>
372 <td align="center"><?php echo $search_table; ?></td>
373 <?php if (! $db_is_information_schema) { ?>
374 <td align="center">
375 <a href="tbl_change.php?<?php echo $tbl_url_query; ?>">
376 <?php echo $titles['Insert']; ?></a></td>
377 <td align="center"><?php echo $empty_table; ?></td>
378 <td align="center">
379 <a href="sql.php?<?php echo $tbl_url_query;
380 ?>&amp;reload=1&amp;purge=1&amp;sql_query=<?php
381 echo urlencode($drop_query); ?>&amp;zero_rows=<?php
382 echo urlencode($drop_message); ?>"
383 onclick="return confirmLink(this, '<?php echo PMA_jsFormat($drop_query, false); ?>')">
384 <?php echo $titles['Drop']; ?></a></td>
385 <?php } // end if (! $db_is_information_schema)
387 // there is a null value in the ENGINE
388 // - when the table needs to be repaired, or
389 // - when it's a view
390 // so ensure that we'll display "in use" below for a table
391 // that needs to be repaired
392 if (isset($each_table['TABLE_ROWS']) && ($each_table['ENGINE'] != null || $table_is_view)) {
393 if ($table_is_view) {
394 $row_count_pre = '~';
395 $sum_row_count_pre = '~';
396 $show_superscript = PMA_showHint(PMA_sanitize(sprintf($strViewHasAtLeast, '[a@./Documentation.html#cfg_MaxExactCountViews@_blank]', '[/a]')));
397 } elseif($each_table['ENGINE'] == 'InnoDB' && (! $each_table['COUNTED'])) {
398 // InnoDB table: we did not get an accurate row count
399 $row_count_pre = '~';
400 $sum_row_count_pre = '~';
401 $show_superscript = '';
402 } else {
403 $row_count_pre = '';
404 $show_superscript = '';
407 <td class="value"><?php echo $row_count_pre . PMA_formatNumber($each_table['TABLE_ROWS'], 0) . $show_superscript; ?></td>
408 <?php if (!($cfg['PropertiesNumColumns'] > 1)) { ?>
409 <td nowrap="nowrap"><?php echo ($table_is_view ? $strView : $each_table['ENGINE']); ?></td>
410 <?php if (isset($collation)) { ?>
411 <td nowrap="nowrap"><?php echo $collation ?></td>
412 <?php } ?>
413 <?php } ?>
415 <?php if ($is_show_stats) { ?>
416 <td class="value"><a
417 href="tbl_structure.php?<?php echo $tbl_url_query; ?>#showusage"
418 ><?php echo $formatted_size . ' ' . $unit; ?></a></td>
419 <td class="value"><?php echo $overhead; ?></td>
420 <?php } // end if ?>
421 <?php } elseif ($table_is_view) { ?>
422 <td class="value">-</td>
423 <td><?php echo $strView; ?></td>
424 <td>---</td>
425 <?php if ($is_show_stats) { ?>
426 <td class="value">-</td>
427 <td class="value">-</td>
428 <?php } ?>
429 <?php } else { ?>
430 <td colspan="<?php echo ($structure_tbl_col_cnt - ($db_is_information_schema ? 5 : 8)) ?>"
431 align="center">
432 <?php echo $strInUse; ?></td>
433 <?php } // end if (isset($each_table['TABLE_ROWS'])) else ?>
434 </tr>
435 <?php
436 } // end foreach
438 // Show Summary
439 if ($is_show_stats) {
440 list($sum_formatted, $unit) = PMA_formatByteDown($sum_size, 3, 1);
441 list($overhead_formatted, $overhead_unit) =
442 PMA_formatByteDown($overhead_size, 3, 1);
445 </tbody>
446 <tbody>
447 <tr><td></td>
448 <th align="center" nowrap="nowrap">
449 <?php
450 // for blobstreaming - if the number of tables is 0, set tableReductionCount to 0
451 // (we don't want negative numbers here) - rajk
452 if ($num_tables == 0)
453 $tableReductionCount = 0;
455 echo sprintf($strTables, PMA_formatNumber($num_tables - $tableReductionCount, 0));
457 </th>
458 <th colspan="<?php echo ($db_is_information_schema ? 3 : 6) ?>" align="center">
459 <?php echo $strSum; ?></th>
460 <th class="value"><?php echo $sum_row_count_pre . PMA_formatNumber($sum_entries, 0); ?></th>
461 <?php
462 if (!($cfg['PropertiesNumColumns'] > 1)) {
463 $default_engine = PMA_DBI_get_default_engine();
464 echo ' <th align="center">' . "\n"
465 . ' <dfn title="'
466 . sprintf($strDefaultEngine, $default_engine) . '">' .$default_engine . '</dfn></th>' . "\n";
467 // we got a case where $db_collation was empty
468 echo ' <th align="center">' . "\n";
469 if (! empty($db_collation)) {
470 echo ' <dfn title="'
471 . PMA_getCollationDescr($db_collation) . ' (' . $strDefault . ')">' . $db_collation
472 . '</dfn>';
474 echo '</th>';
477 if ($is_show_stats) {
479 <th class="value"><?php echo $sum_formatted . ' ' . $unit; ?></th>
480 <th class="value"><?php echo $overhead_formatted . ' ' . $overhead_unit; ?></th>
481 <?php
484 </tr>
485 </tbody>
486 </table>
488 <div class="clearfloat">
489 <?php
490 // Check all tables url
491 $checkall_url = 'db_structure.php?' . PMA_generate_common_url($db);
493 <img class="selectallarrow" src="<?php echo $pmaThemeImage .'arrow_'.$text_dir.'.png'; ?>"
494 width="38" height="22" alt="<?php echo $strWithChecked; ?>" />
495 <a href="<?php echo $checkall_url; ?>&amp;checkall=1"
496 onclick="if (markAllRows('tablesForm')) return false;">
497 <?php echo $strCheckAll; ?></a>
499 <a href="<?php echo $checkall_url; ?>"
500 onclick="if (unMarkAllRows('tablesForm')) return false;">
501 <?php echo $strUncheckAll; ?></a>
502 <?php if ($overhead_check != '') { ?>
504 <a href="#" onclick="unMarkAllRows('tablesForm');
505 <?php echo $overhead_check; ?> return false;">
506 <?php echo $strCheckOverhead; ?></a>
507 <?php } ?>
509 <select name="submit_mult" onchange="this.form.submit();" style="margin: 0 3em 0 3em;">
510 <?php
511 echo ' <option value="' . $strWithChecked . '" selected="selected">'
512 . $strWithChecked . '</option>' . "\n";
513 echo ' <option value="' . $strEmpty . '" >'
514 . $strEmpty . '</option>' . "\n";
515 echo ' <option value="' . $strDrop . '" >'
516 . $strDrop . '</option>' . "\n";
517 echo ' <option value="' . $strPrintView . '" >'
518 . $strPrintView . '</option>' . "\n";
519 echo ' <option value="' . $strCheckTable . '" >'
520 . $strCheckTable . '</option>' . "\n";
521 echo ' <option value="' . $strOptimizeTable . '" >'
522 . $strOptimizeTable . '</option>' . "\n";
523 echo ' <option value="' . $strRepairTable . '" >'
524 . $strRepairTable . '</option>' . "\n";
525 echo ' <option value="' . $strAnalyzeTable . '" >'
526 . $strAnalyzeTable . '</option>' . "\n";
528 </select>
529 <script type="text/javascript">
530 <!--
531 // Fake js to allow the use of the <noscript> tag
532 //-->
533 </script>
534 <noscript>
535 <input type="submit" value="<?php echo $strGo; ?>" />
536 </noscript>
537 <?php echo implode("\n", $hidden_fields) . "\n"; ?>
538 </div>
539 </form>
540 <?php
541 // display again the table list navigator
542 PMA_listNavigator($total_num_tables, $pos, $_url_params, 'db_structure.php', 'frame_content', $GLOBALS['cfg']['MaxTableList']);
544 <hr />
546 <?php
547 // Routines
548 require './libraries/db_routines.inc.php';
550 // Events
551 if (PMA_MYSQL_INT_VERSION > 50100) {
552 require './libraries/db_events.inc.php';
556 * Work on the database
557 * redesigned 2004-05-08 by mkkeck
559 /* DATABASE WORK */
560 /* Printable view of a table */
561 echo '<p>';
562 echo '<a href="db_printview.php?' . $url_query . '">';
563 if ($cfg['PropertiesIconic']) {
564 echo '<img class="icon" src="' . $pmaThemeImage
565 .'b_print.png" width="16" height="16" alt="" />';
567 echo $strPrintView . '</a> ';
569 echo '<a href="./db_datadict.php?' . $url_query . '">';
570 if ($cfg['PropertiesIconic']) {
571 echo '<img class="icon" src="' . $pmaThemeImage
572 .'b_tblanalyse.png" width="16" height="16" alt="" />';
574 echo $strDataDict . '</a>';
575 echo '</p>';
577 if (empty($db_is_information_schema)) {
578 require './libraries/display_create_table.lib.php';
579 } // end if (Create Table dialog)
582 * Displays the footer
584 require_once './libraries/footer.inc.php';