2 /* vim: set expandtab sw=4 ts=4 sts=4: */
12 require_once './libraries/common.inc.php';
13 require_once './libraries/Table.class.php';
15 $GLOBALS['js_include'][] = 'mootools.js';
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);
28 // see bug #2794840; in this case, code path is:
29 // db_structure.php -> libraries/mult_submits.inc.php -> sql.php
30 // -> db_structure.php and if we got an error on the multi submit,
31 // we must display it here and not call again mult_submits.inc.php
32 if (! isset($error) ||
FALSE === $error) {
33 require './libraries/mult_submits.inc.php';
35 if (empty($message)) {
36 $message = PMA_Message
::success();
39 require './libraries/db_common.inc.php';
40 $url_query .= '&goto=db_structure.php';
42 // Gets the database structure
43 $sub_part = '_structure';
44 require './libraries/db_info.inc.php';
46 require_once './libraries/replication.inc.php';
49 require_once './libraries/bookmark.lib.php';
51 require_once './libraries/mysql_charsets.lib.php';
52 $db_collation = PMA_getDbCollation($db);
54 // in a separate file to avoid redeclaration of functions in some code paths
55 require_once './libraries/db_structure.lib.php';
58 if (true == $cfg['PropertiesIconic']) {
59 $titles['Browse'] = '<img class="icon" width="16" height="16" src="' .$pmaThemeImage . 'b_browse.png" alt="' . $strBrowse . '" title="' . $strBrowse . '" />';
60 $titles['NoBrowse'] = '<img class="icon" width="16" height="16" src="' .$pmaThemeImage . 'bd_browse.png" alt="' . $strBrowse . '" title="' . $strBrowse . '" />';
61 $titles['Search'] = '<img class="icon" width="16" height="16" src="' .$pmaThemeImage . 'b_select.png" alt="' . $strSearch . '" title="' . $strSearch . '" />';
62 $titles['NoSearch'] = '<img class="icon" width="16" height="16" src="' .$pmaThemeImage . 'bd_select.png" alt="' . $strSearch . '" title="' . $strSearch . '" />';
63 $titles['Insert'] = '<img class="icon" width="16" height="16" src="' .$pmaThemeImage . 'b_insrow.png" alt="' . $strInsert . '" title="' . $strInsert . '" />';
64 $titles['NoInsert'] = '<img class="icon" width="16" height="16" src="' .$pmaThemeImage . 'bd_insrow.png" alt="' . $strInsert . '" title="' . $strInsert . '" />';
65 $titles['Structure'] = '<img class="icon" width="16" height="16" src="' .$pmaThemeImage . 'b_props.png" alt="' . $strStructure . '" title="' . $strStructure . '" />';
66 $titles['Drop'] = '<img class="icon" width="16" height="16" src="' .$pmaThemeImage . 'b_drop.png" alt="' . $strDrop . '" title="' . $strDrop . '" />';
67 $titles['NoDrop'] = '<img class="icon" width="16" height="16" src="' .$pmaThemeImage . 'bd_drop.png" alt="' . $strDrop . '" title="' . $strDrop . '" />';
68 $titles['Empty'] = '<img class="icon" width="16" height="16" src="' .$pmaThemeImage . 'b_empty.png" alt="' . $strEmpty . '" title="' . $strEmpty . '" />';
69 $titles['NoEmpty'] = '<img class="icon" width="16" height="16" src="' .$pmaThemeImage . 'bd_empty.png" alt="' . $strEmpty . '" title="' . $strEmpty . '" />';
71 if ('both' === $cfg['PropertiesIconic']) {
72 $titles['Browse'] .= $strBrowse;
73 $titles['Search'] .= $strSearch;
74 $titles['NoBrowse'] .= $strBrowse;
75 $titles['NoSearch'] .= $strSearch;
76 $titles['Insert'] .= $strInsert;
77 $titles['NoInsert'] .= $strInsert;
78 $titles['Structure'] .= $strStructure;
79 $titles['Drop'] .= $strDrop;
80 $titles['NoDrop'] .= $strDrop;
81 $titles['Empty'] .= $strEmpty;
82 $titles['NoEmpty'] .= $strEmpty;
85 $titles['Browse'] = $strBrowse;
86 $titles['Search'] = $strSearch;
87 $titles['NoBrowse'] = $strBrowse;
88 $titles['NoSearch'] = $strSearch;
89 $titles['Insert'] = $strInsert;
90 $titles['NoInsert'] = $strInsert;
91 $titles['Structure'] = $strStructure;
92 $titles['Drop'] = $strDrop;
93 $titles['NoDrop'] = $strDrop;
94 $titles['Empty'] = $strEmpty;
95 $titles['NoEmpty'] = $strEmpty;
99 if ($num_tables == 0) {
100 echo '<p>' . $strNoTablesFound . '</p>' . "\n";
103 require './libraries/db_routines.inc.php';
106 if (PMA_MYSQL_INT_VERSION
> 50100) {
107 require './libraries/db_events.inc.php';
110 if (empty($db_is_information_schema)) {
111 require './libraries/display_create_table.lib.php';
112 } // end if (Create Table dialog)
115 * Displays the footer
117 require_once './libraries/footer.inc.php';
122 // 2. Shows table informations
125 * Displays the tables list
127 $_url_params = array(
131 // Add the sort options if they exists
132 if (isset($_REQUEST['sort'])) {
133 $_url_params['sort'] = $_REQUEST['sort'];
136 if (isset($_REQUEST['sort_order'])) {
137 $_url_params['sort_order'] = $_REQUEST['sort_order'];
140 PMA_listNavigator($total_num_tables, $pos, $_url_params, 'db_structure.php', 'frame_content', $GLOBALS['cfg']['MaxTableList']);
143 <form method
="post" action
="db_structure.php" name
="tablesForm" id
="tablesForm">
145 echo PMA_generate_common_hidden_inputs($db);
147 PMA_TableHeader($db_is_information_schema, $server_slave_status);
149 $i = $sum_entries = 0;
150 $sum_size = (double) 0;
151 $overhead_size = (double) 0;
152 $overhead_check = '';
153 $checked = !empty($checkall) ?
' checked="checked"' : '';
154 $num_columns = $cfg['PropertiesNumColumns'] > 1 ?
ceil($num_tables / $cfg['PropertiesNumColumns']) +
1 : 0;
158 $hidden_fields = array();
160 $sum_row_count_pre = '';
162 // added by rajk - for blobstreaming
163 $PMA_Config = $_SESSION['PMA_Config'];
165 if (!empty($PMA_Config))
166 $session_bs_tables = $PMA_Config->get('BLOBSTREAMING_TABLES'); // list of blobstreaming tables
168 $tableReductionCount = 0; // the amount to reduce the table count by
170 foreach ($tables as $keyname => $each_table) {
171 if (isset($session_bs_tables))
173 // compare table name against blobstreaming tables
174 foreach ($session_bs_tables as $table_key=>$table_val)
175 // if the table is a blobstreaming table, reduce table count and skip outer foreach loop
176 if ($table_key == $keyname)
178 $tableReductionCount++
;
183 // loic1: Patch from Joshua Nye <josh at boxcarmedia.com> to get valid
184 // statistics whatever is the table type
186 $table_is_view = false;
187 $table_encoded = urlencode($each_table['TABLE_NAME']);
188 // Sets parameters for links
189 $tbl_url_query = $url_query . '&table=' . $table_encoded;
190 // do not list the previous table's size info for a view
191 $formatted_size = '-';
194 switch ( $each_table['ENGINE']) {
195 // MyISAM, ISAM or Heap table: Row count, data size and index size
196 // are accurate; data size is accurate for ARCHIVE
204 if ($db_is_information_schema) {
205 $each_table['Rows'] = PMA_Table
::countRecords($db,
206 $each_table['Name']);
209 if ($is_show_stats) {
210 $tblsize = doubleval($each_table['Data_length']) +
doubleval($each_table['Index_length']);
211 $sum_size +
= $tblsize;
212 list($formatted_size, $unit) = PMA_formatByteDown($tblsize, 3, ($tblsize > 0) ?
1 : 0);
213 if (isset($each_table['Data_free']) && $each_table['Data_free'] > 0) {
214 list($formatted_overhead, $overhead_unit) = PMA_formatByteDown($each_table['Data_free'], 3, ($each_table['Data_free'] > 0) ?
1 : 0);
215 $overhead_size +
= $each_table['Data_free'];
220 // InnoDB table: Row count is not accurate but data and index
223 if ($each_table['TABLE_ROWS'] < $GLOBALS['cfg']['MaxExactCount']) {
224 $each_table['COUNTED'] = true;
225 $each_table['TABLE_ROWS'] = PMA_Table
::countRecords($db,
226 $each_table['TABLE_NAME'], $force_exact = true,
229 $each_table['COUNTED'] = false;
232 if ($is_show_stats) {
233 $tblsize = $each_table['Data_length'] +
$each_table['Index_length'];
234 $sum_size +
= $tblsize;
235 list($formatted_size, $unit) = PMA_formatByteDown($tblsize, 3, ($tblsize > 0) ?
1 : 0);
237 //$display_rows = ' - ';
239 // Mysql 5.0.x (and lower) uses MRG_MyISAM and MySQL 5.1.x (and higher) uses MRG_MYISAM
240 // Both are aliases for MERGE
245 // Merge or BerkleyDB table: Only row count is accurate.
246 if ($is_show_stats) {
247 $formatted_size = ' - ';
251 // for a view, the ENGINE is sometimes reported as null,
252 // or on some servers it's reported as "SYSTEM VIEW"
255 // if table is broken, Engine is reported as null, so one more test
256 if ($each_table['TABLE_TYPE'] == 'VIEW') {
257 // countRecords() takes care of $cfg['MaxExactCountViews']
258 $each_table['TABLE_ROWS'] = PMA_Table
::countRecords($db,
259 $each_table['TABLE_NAME'], $force_exact = true,
261 $table_is_view = true;
265 // Unknown table type.
266 if ($is_show_stats) {
267 $formatted_size = 'unknown';
272 if (! PMA_Table
::isMerge($db, $each_table['TABLE_NAME'])) {
273 $sum_entries +
= $each_table['TABLE_ROWS'];
276 if (isset($each_table['Collation'])) {
277 $collation = '<dfn title="'
278 . PMA_getCollationDescr($each_table['Collation']) . '">'
279 . $each_table['Collation'] . '</dfn>';
284 if ($is_show_stats) {
285 if (isset($formatted_overhead)) {
286 $overhead = '<a href="tbl_structure.php?'
287 . $tbl_url_query . '#showusage">' . $formatted_overhead
288 . ' ' . $overhead_unit . '</a>' . "\n";
289 unset($formatted_overhead);
291 "document.getElementById('checkbox_tbl_" . ($i +
1) . "').checked = true;";
297 $alias = (!empty($tooltip_aliasname) && isset($tooltip_aliasname[$each_table['TABLE_NAME']]))
298 ?
str_replace(' ', ' ', htmlspecialchars($tooltip_truename[$each_table['TABLE_NAME']]))
299 : str_replace(' ', ' ', htmlspecialchars($each_table['TABLE_NAME']));
300 $truename = (!empty($tooltip_truename) && isset($tooltip_truename[$each_table['TABLE_NAME']]))
301 ?
str_replace(' ', ' ', htmlspecialchars($tooltip_truename[$each_table['TABLE_NAME']]))
302 : str_replace(' ', ' ', htmlspecialchars($each_table['TABLE_NAME']));
307 if ($table_is_view) {
308 $hidden_fields[] = '<input type="hidden" name="views[]" value="' . htmlspecialchars($each_table['TABLE_NAME']) . '" />';
311 if ($each_table['TABLE_ROWS'] > 0) {
312 $browse_table = '<a href="sql.php?' . $tbl_url_query . '&pos=0">' . $titles['Browse'] . '</a>';
313 $search_table = '<a href="tbl_select.php?' . $tbl_url_query . '">' . $titles['Search'] . '</a>';
315 $browse_table = $titles['NoBrowse'];
316 $search_table = $titles['NoSearch'];
319 if (! $db_is_information_schema) {
320 if (! empty($each_table['TABLE_ROWS'])) {
321 $empty_table = '<a href="sql.php?' . $tbl_url_query
323 $empty_table .= urlencode('TRUNCATE ' . PMA_backquote($each_table['TABLE_NAME']))
325 . urlencode(sprintf($strTableHasBeenEmptied, htmlspecialchars($each_table['TABLE_NAME'])))
326 . '" onclick="return confirmLink(this, \'TRUNCATE ';
327 $empty_table .= PMA_jsFormat($each_table['TABLE_NAME']) . '\')">' . $titles['Empty'] . '</a>';
329 $empty_table = $titles['NoEmpty'];
331 $drop_query = 'DROP '
332 . ($table_is_view ?
'VIEW' : 'TABLE')
333 . ' ' . PMA_backquote($each_table['TABLE_NAME']);
334 $drop_message = sprintf(
335 $table_is_view ?
$strViewHasBeenDropped : $strTableHasBeenDropped,
336 str_replace(' ', ' ', htmlspecialchars($each_table['TABLE_NAME'])));
340 if (PMA_Tracker
::isActive()) {
341 if (PMA_Tracker
::isTracked($GLOBALS["db"], $truename)) {
342 $tracking_icon = '<a href="tbl_tracking.php?' . $url_query.'&table=' . $truename . '"><img class="icon" width="14" height="14" src="' . $pmaThemeImage . 'eye.png" alt="' . $strTrackingIsActive . '" title="' . $strTrackingIsActive . '" /></a>';
343 } elseif (PMA_Tracker
::getVersion($GLOBALS["db"], $truename) > 0) {
344 $tracking_icon = '<a href="tbl_tracking.php?' . $url_query . '&table=' . $truename . '"><img class="icon" width="14" height="14" src="' . $pmaThemeImage . 'eye_grey.png" alt="' . $strTrackingIsNotActive . '" title="' . $strTrackingIsNotActive . '" /></a>';
348 if ($num_columns > 0 && $num_tables > $num_columns
349 && (($row_count %
$num_columns) == 0)) {
357 PMA_TableHeader(false, $server_slave_status);
363 if ($server_slave_status) {
364 ////////////////////////////////////////////////////////////////
366 if ((strlen(array_search($truename, $server_slave_Do_Table)) > 0)
367 ||
(strlen(array_search($db, $server_slave_Do_DB)) > 0)
368 ||
(count($server_slave_Do_DB) == 1 && count($server_slave_Ignore_DB) == 1)
372 foreach ($server_slave_Wild_Do_Table as $table) {
373 if (($db == PMA_replication_strout($table)) && (preg_match("@^" . substr(PMA_replication_strout($table, true), 0, strlen(PMA_replication_strout($table, true)) - 1) . "@", $truename)))
376 ////////////////////////////////////////////////////////////////////
377 if ((strlen(array_search($truename, $server_slave_Ignore_Table)) > 0) ||
(strlen(array_search($db, $server_slave_Ignore_DB)) > 0)) {
380 foreach ($server_slave_Wild_Ignore_Table as $table) {
381 if (($db == PMA_replication_strout($table)) && (preg_match("@^" . substr(PMA_replication_strout($table, true), 0, strlen(PMA_replication_strout($table, true)) - 1) . "@", $truename)))
384 }/* elseif ($server_master_status) {
385 if ((strlen(array_search($db, $server_master_Do_DB))>0) || count($server_master_Do_DB)==1)
387 elseif ((strlen(array_search($db, $server_master_Ignore_DB))>0) || count($server_master_Ignore_DB)==1)
391 <tr
class="<?php echo $odd_row ? 'odd' : 'even'; $odd_row = ! $odd_row; ?>">
393 <input type
="checkbox" name
="selected_tbl[]"
394 value
="<?php echo htmlspecialchars($each_table['TABLE_NAME']); ?>"
395 id
="checkbox_tbl_<?php echo $i; ?>"<?php
echo $checked; ?
> /></td
>
396 <th
><label
for="checkbox_tbl_<?php echo $i; ?>"
397 title
="<?php echo $alias; ?>" style
="<?php echo $ignored ? ' ignored' : ''; ?>"><?php
echo $truename; ?
></label
>
398 <?php
echo (! empty($tracking_icon) ?
$tracking_icon : ''); ?
>
400 <?php
if ($server_slave_status) { ?
><td align
="center"><?php
echo $ignored ?
' <img class="icon" src="' . $pmaThemeImage . 's_cancel.png" width="16" height="16" alt="NOT REPLICATED" />' : ''. $do ?
' <img class="icon" src="' . $pmaThemeImage . 's_success.png" width="16" height="16" alt="REPLICATED" />' : ''; ?
></td
><?php
} ?
>
401 <td align
="center"><?php
echo $browse_table; ?
></td
>
403 <a href
="tbl_structure.php?<?php echo $tbl_url_query; ?>">
404 <?php
echo $titles['Structure']; ?
></a
></td
>
405 <td align
="center"><?php
echo $search_table; ?
></td
>
406 <?php
if (! $db_is_information_schema) { ?
>
408 <a href
="tbl_change.php?<?php echo $tbl_url_query; ?>">
409 <?php
echo $titles['Insert']; ?
></a
></td
>
410 <td align
="center"><?php
echo $empty_table; ?
></td
>
412 <a href
="sql.php?<?php echo $tbl_url_query;
413 ?>&reload=1&purge=1&sql_query=<?php
414 echo urlencode($drop_query); ?>&zero_rows=<?php
415 echo urlencode($drop_message); ?>"
416 onclick
="return confirmLink(this, '<?php echo PMA_jsFormat($drop_query, false); ?>')">
417 <?php
echo $titles['Drop']; ?
></a
></td
>
418 <?php
} // end if (! $db_is_information_schema)
420 // there is a null value in the ENGINE
421 // - when the table needs to be repaired, or
422 // - when it's a view
423 // so ensure that we'll display "in use" below for a table
424 // that needs to be repaired
425 if (isset($each_table['TABLE_ROWS']) && ($each_table['ENGINE'] != null ||
$table_is_view)) {
426 if ($table_is_view) {
427 if ($each_table['TABLE_ROWS'] >= $GLOBALS['cfg']['MaxExactCountViews']){
428 $row_count_pre = '~';
429 $sum_row_count_pre = '~';
430 $show_superscript = PMA_showHint(PMA_sanitize(sprintf($strViewHasAtLeast, '[a@./Documentation.html#cfg_MaxExactCountViews@_blank]', '[/a]')));
432 } elseif($each_table['ENGINE'] == 'InnoDB' && (! $each_table['COUNTED'])) {
433 // InnoDB table: we did not get an accurate row count
434 $row_count_pre = '~';
435 $sum_row_count_pre = '~';
436 $show_superscript = '';
439 $show_superscript = '';
442 <td
class="value"><?php
echo $row_count_pre . PMA_formatNumber($each_table['TABLE_ROWS'], 0) . $show_superscript; ?
></td
>
443 <?php
if (!($cfg['PropertiesNumColumns'] > 1)) { ?
>
444 <td nowrap
="nowrap"><?php
echo ($table_is_view ?
$strView : $each_table['ENGINE']); ?
></td
>
445 <?php
if (isset($collation)) { ?
>
446 <td nowrap
="nowrap"><?php
echo $collation ?
></td
>
450 <?php
if ($is_show_stats) { ?
>
452 href
="tbl_structure.php?<?php echo $tbl_url_query; ?>#showusage"
453 ><?php
echo $formatted_size . ' ' . $unit; ?
></a
></td
>
454 <td
class="value"><?php
echo $overhead; ?
></td
>
456 <?php
} elseif ($table_is_view) { ?
>
457 <td
class="value">-</td
>
458 <td
><?php
echo $strView; ?
></td
>
460 <?php
if ($is_show_stats) { ?
>
461 <td
class="value">-</td
>
462 <td
class="value">-</td
>
465 <td colspan
="<?php echo ($structure_tbl_col_cnt - ($db_is_information_schema ? 5 : 8)) ?>"
467 <?php
echo $strInUse; ?
></td
>
468 <?php
} // end if (isset($each_table['TABLE_ROWS'])) else ?>
474 if ($is_show_stats) {
475 list($sum_formatted, $unit) = PMA_formatByteDown($sum_size, 3, 1);
476 list($overhead_formatted, $overhead_unit) =
477 PMA_formatByteDown($overhead_size, 3, 1);
483 <th align
="center" nowrap
="nowrap">
485 // for blobstreaming - if the number of tables is 0, set tableReductionCount to 0
486 // (we don't want negative numbers here) - rajk
487 if ($num_tables == 0)
488 $tableReductionCount = 0;
490 echo sprintf($strTables, PMA_formatNumber($num_tables - $tableReductionCount, 0));
494 if ($server_slave_status) {
495 echo ' <th>' . $GLOBALS['strReplication'] . '</th>' . "\n";
498 <th colspan
="<?php echo ($db_is_information_schema ? 3 : 6) ?>" align
="center">
499 <?php
echo $strSum; ?
></th
>
500 <th
class="value"><?php
echo $sum_row_count_pre . PMA_formatNumber($sum_entries, 0); ?
></th
>
502 if (!($cfg['PropertiesNumColumns'] > 1)) {
503 $default_engine = PMA_DBI_get_default_engine();
504 echo ' <th align="center">' . "\n"
506 . sprintf($strDefaultEngine, $default_engine) . '">' .$default_engine . '</dfn></th>' . "\n";
507 // we got a case where $db_collation was empty
508 echo ' <th align="center">' . "\n";
509 if (! empty($db_collation)) {
511 . PMA_getCollationDescr($db_collation) . ' (' . $strDefault . ')">' . $db_collation
517 if ($is_show_stats) {
519 <th
class="value"><?php
echo $sum_formatted . ' ' . $unit; ?
></th
>
520 <th
class="value"><?php
echo $overhead_formatted . ' ' . $overhead_unit; ?
></th
>
528 <div
class="clearfloat">
530 // Check all tables url
531 $checkall_url = 'db_structure.php?' . PMA_generate_common_url($db);
533 <img
class="selectallarrow" src
="<?php echo $pmaThemeImage .'arrow_'.$text_dir.'.png'; ?>"
534 width
="38" height
="22" alt
="<?php echo $strWithChecked; ?>" />
535 <a href
="<?php echo $checkall_url; ?>&checkall=1"
536 onclick
="if (markAllRows('tablesForm')) return false;">
537 <?php
echo $strCheckAll; ?
></a
>
539 <a href
="<?php echo $checkall_url; ?>"
540 onclick
="if (unMarkAllRows('tablesForm')) return false;">
541 <?php
echo $strUncheckAll; ?
></a
>
542 <?php
if ($overhead_check != '') { ?
>
544 <a href
="#" onclick
="unMarkAllRows('tablesForm');
545 <?php echo $overhead_check; ?> return false;">
546 <?php
echo $strCheckOverhead; ?
></a
>
549 <select name
="submit_mult" onchange
="this.form.submit();" style
="margin: 0 3em 0 3em;">
551 echo ' <option value="' . $strWithChecked . '" selected="selected">'
552 . $strWithChecked . '</option>' . "\n";
553 echo ' <option value="' . $strEmpty . '" >'
554 . $strEmpty . '</option>' . "\n";
555 echo ' <option value="' . $strDrop . '" >'
556 . $strDrop . '</option>' . "\n";
557 echo ' <option value="' . $strPrintView . '" >'
558 . $strPrintView . '</option>' . "\n";
559 echo ' <option value="' . $strCheckTable . '" >'
560 . $strCheckTable . '</option>' . "\n";
561 echo ' <option value="' . $strOptimizeTable . '" >'
562 . $strOptimizeTable . '</option>' . "\n";
563 echo ' <option value="' . $strRepairTable . '" >'
564 . $strRepairTable . '</option>' . "\n";
565 echo ' <option value="' . $strAnalyzeTable . '" >'
566 . $strAnalyzeTable . '</option>' . "\n";
567 echo ' <option value="' . $strExport . '" >'
568 . $strExport . '</option>' . "\n";
571 <script type
="text/javascript">
573 // Fake js to allow the use of the <noscript> tag
577 <input type
="submit" value
="<?php echo $strGo; ?>" />
579 <?php
echo implode("\n", $hidden_fields) . "\n"; ?
>
583 // display again the table list navigator
584 PMA_listNavigator($total_num_tables, $pos, $_url_params, 'db_structure.php', 'frame_content', $GLOBALS['cfg']['MaxTableList']);
590 require './libraries/db_routines.inc.php';
593 if (PMA_MYSQL_INT_VERSION
> 50100) {
594 require './libraries/db_events.inc.php';
598 * Work on the database
599 * redesigned 2004-05-08 by mkkeck
602 /* Printable view of a table */
604 echo '<a href="db_printview.php?' . $url_query . '">';
605 if ($cfg['PropertiesIconic']) {
606 echo '<img class="icon" src="' . $pmaThemeImage
607 .'b_print.png" width="16" height="16" alt="" />';
609 echo $strPrintView . '</a> ';
611 echo '<a href="./db_datadict.php?' . $url_query . '">';
612 if ($cfg['PropertiesIconic']) {
613 echo '<img class="icon" src="' . $pmaThemeImage
614 .'b_tblanalyse.png" width="16" height="16" alt="" />';
616 echo $strDataDict . '</a>';
619 if (empty($db_is_information_schema)) {
620 require './libraries/display_create_table.lib.php';
621 } // end if (Create Table dialog)
624 * Displays the footer
626 require_once './libraries/footer.inc.php';