2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * the navigation frame - displays server, db and table selection tree
7 * @uses $GLOBALS['pma']->databases
8 * @uses $GLOBALS['server']
10 * @uses $GLOBALS['table']
11 * @uses $GLOBALS['available_languages']
12 * @uses $GLOBALS['lang']
13 * @uses $GLOBALS['text_dir']
14 * @uses $GLOBALS['charset']
15 * @uses $GLOBALS['pmaThemeImage']
16 * @uses $GLOBALS['cfg']['LeftFrameLight']
17 * @uses $GLOBALS['cfg']['ShowTooltip']
18 * @uses $GLOBALS['cfg']['ShowTooltipAliasDB']
19 * @uses $GLOBALS['cfg']['DefaultTabDatabase']
20 * @uses $GLOBALS['cfgRelation']['commwork']) {
21 * @uses PMA_List_Database::getSingleItem()
22 * @uses PMA_List_Database::getHtmlSelectGrouped()
23 * @uses PMA_List_Database::getGroupedDetails()
24 * @uses PMA_generate_common_url()
25 * @uses PMA_generate_common_hidden_inputs()
26 * @uses PMA_getDbComment();
27 * @uses PMA_getTableCount()
28 * @uses PMA_getTableList()
29 * @uses PMA_getRelationsParam()
30 * @uses PMA_outBufferPre()
32 * @uses session_write_close()
35 * @uses htmlspecialchars()
39 * Gets a core script and starts output buffering work
41 require_once './libraries/common.inc.php';
44 * finish and cleanup navigation.php script execution, only to be used in navigation.php
46 * @uses $GLOBALS['controllink'] to close it
47 * @uses $GLOBALS['userlink'] to close it
50 function PMA_exitNavigationFrame()
52 echo '</body></html>';
56 require_once './libraries/common.lib.php';
57 require_once './libraries/RecentTable.class.php';
60 * Check if it is an ajax request to reload the recent tables list.
62 if ($GLOBALS['is_ajax_request'] && $_REQUEST['recent_table']) {
63 PMA_ajaxResponse('', true, array('options' => RecentTable
::getInstance()->getHtmlSelectOption()) );
66 // keep the offset of the db list in session before closing it
67 if (! isset($_SESSION['tmp_user_values']['navi_limit_offset'])) {
68 $_SESSION['tmp_user_values']['navi_limit_offset'] = 0;
70 if (! isset($_SESSION['tmp_user_values']['table_limit_offset']) ||
$_SESSION['tmp_user_values']['table_limit_offset_db'] != $db) {
71 $_SESSION['tmp_user_values']['table_limit_offset'] = 0;
72 $_SESSION['tmp_user_values']['table_limit_offset_db'] = $db;
74 if (isset($_REQUEST['pos'])) {
75 if (isset($_REQUEST['tpos'])) {
76 $_SESSION['tmp_user_values']['table_limit_offset'] = (int) $_REQUEST['pos'];
79 $_SESSION['tmp_user_values']['navi_limit_offset'] = (int) $_REQUEST['pos'];
82 $pos = $_SESSION['tmp_user_values']['navi_limit_offset'];
83 $tpos = $_SESSION['tmp_user_values']['table_limit_offset'];
84 // free the session file, for the other frames to be loaded
85 // but only if debugging is not enabled
86 if (empty($_SESSION['debug'])) {
87 session_write_close();
91 * the output compression library
93 require_once './libraries/ob.lib.php';
98 * selects the database if there is only one on current server
100 if ($GLOBALS['server'] && ! strlen($GLOBALS['db'])) {
101 $GLOBALS['db'] = $GLOBALS['pma']->databases
->getSingleItem();
104 $db_start = $GLOBALS['db'];
107 * the relation settings
109 $cfgRelation = PMA_getRelationsParam();
112 * For re-usability, moved http-headers to a seperate file.
113 * It can now be included by libraries/header.inc.php, querywindow.php.
115 require_once './libraries/header_http.inc.php';
120 // xml declaration moves IE into quirks mode, making much trouble with CSS
121 /* echo '<?xml version="1.0" encoding="' . $GLOBALS['charset'] . '"?>'; */
123 <!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
124 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
125 <html xmlns
="http://www.w3.org/1999/xhtml"
126 xml
:lang
="<?php echo $available_languages[$lang][1]; ?>"
127 lang
="<?php echo $available_languages[$lang][1]; ?>"
128 dir
="<?php echo $GLOBALS['text_dir']; ?>">
131 <link rel
="icon" href
="./favicon.ico" type
="image/x-icon" />
132 <link rel
="shortcut icon" href
="./favicon.ico" type
="image/x-icon" />
133 <title
>phpMyAdmin
</title
>
134 <meta http
-equiv
="Content-Type"
135 content
="text/html; charset=<?php echo $GLOBALS['charset']; ?>" />
136 <base target
="frame_content" />
137 <link rel
="stylesheet" type
="text/css"
138 href
="phpmyadmin.css.php?<?php echo PMA_generate_common_url('', ''); ?>&js_frame=left&nocache=<?php echo $GLOBALS['PMA_Config']->getThemeUniqueValue(); ?>" />
139 <script src
="./js/jquery/jquery-1.6.1.js" type
="text/javascript"></script
>
140 <script type
="text/javascript" src
="js/navigation.js"></script
>
141 <script type
="text/javascript" src
="js/functions.js"></script
>
142 <script type
="text/javascript">
144 var image_minus
= '<?php echo $GLOBALS['pmaThemeImage
']; ?>b_minus.png';
145 var image_plus
= '<?php echo $GLOBALS['pmaThemeImage
']; ?>b_plus.png';
147 // INIT PMA_setFrameSize
149 var onLoadHandler
= window
.onload
;
150 var resizeHandler
= window
.onresize
;
151 window
.document
.onresize
= resizeHandler
;
152 window
.onload
= function() {
153 if (onloadCnt
== 0) {
154 if (typeof(onLoadHandler
) == "function") {
157 if (typeof(PMA_setFrameSize
) != 'undefined' && typeof(PMA_setFrameSize
) == 'function') {
163 window
.onresize
= function() {
164 if (typeof(resizeHandler
) == "function") {
167 if (typeof(PMA_saveFrameSize
) != 'undefined' && typeof(PMA_saveFrameSize
) == 'function') {
175 * remove horizontal scroll bar bug in IE 6 by forcing a vertical scroll bar
179 <style type
="text/css">
189 <body id
="body_leftFrame">
191 require './libraries/navigation_header.inc.php';
193 // display recently used tables
194 if ($GLOBALS['cfg']['LeftRecentTable'] > 0) {
195 echo '<div id="recentTableList">';
196 echo RecentTable
::getInstance()->getHtmlSelect();
200 if (! $GLOBALS['server']) {
201 // no server selected
202 PMA_exitNavigationFrame();
203 } elseif (! count($GLOBALS['pma']->databases
)) {
204 // no database available, so we break here
205 echo '<p>' . __('No databases') . '</p>';
206 PMA_exitNavigationFrame();
207 } elseif ($GLOBALS['cfg']['LeftFrameLight'] && count($GLOBALS['pma']->databases
) > 1) {
208 $list = $cfg['DisplayDatabasesList'];
209 if ($list === 'auto') {
210 if (empty($GLOBALS['db'])) {
217 // more than one database available and LeftFrameLight is true
218 // display db selectbox
220 // Light mode -> beginning of the select combo for databases
221 // Note: When javascript is active, the frameset will be changed from
222 // within navigation.php. With no JS (<noscript>) the whole frameset will
223 // be rebuilt with the new target frame.
226 <div id
="databaseList">
227 <form method
="post" action
="index.php" target
="_parent" id
="left">
229 echo PMA_generate_common_hidden_inputs() . "\n";
230 echo $GLOBALS['pma']->databases
->getHtmlSelectGrouped(true, $_SESSION['tmp_user_values']['navi_limit_offset'], $GLOBALS['cfg']['MaxDbList']) . "\n";
231 echo '<noscript>' . "\n"
232 .'<input type="submit" name="Go" value="' . __('Go') . '" />' . "\n"
233 .'</noscript>' . "\n"
237 echo $GLOBALS['pma']->databases
->getHtmlListGrouped(true, $_SESSION['tmp_user_values']['navi_limit_offset'], $GLOBALS['cfg']['MaxDbList']) . "\n";
239 $_url_params = array('pos' => $pos);
240 PMA_listNavigator(count($GLOBALS['pma']->databases
), $pos, $_url_params, 'navigation.php', 'frame_navigation', $GLOBALS['cfg']['MaxDbList']);
244 <div id
="left_tableList">
246 // Don't display expansible/collapsible database info if:
247 // 1. $GLOBALS['server'] == 0 (no server selected)
248 // This is the case when there are multiple servers and
249 // '$GLOBALS['cfg']['ServerDefault'] = 0' is set. In that case, we want the welcome
250 // screen to appear with no database info displayed.
251 // 2. there is only one database available (ie either only one database exists
252 // or $GLOBALS['cfg']['Servers']['only_db'] is defined and is not an array)
253 // In this case, the database should not be collapsible/expandable
255 $img_plus = '<img class="icon" id="el%dImg" src="' . $pmaThemeImage . 'b_plus.png"'
257 $img_minus = '<img class="icon" id="el%dImg" src="' . $pmaThemeImage . 'b_minus.png"'
260 $href_left = '<a onclick="if (toggle(\'%d\')) return false;"'
261 .' href="navigation.php?%s" target="_self">';
263 $element_counter = 0;
266 if ($GLOBALS['cfg']['LeftFrameLight'] && strlen($GLOBALS['db'])) {
267 $table_list = PMA_getTableList($GLOBALS['db'], null, $tpos, $cfg['MaxTableList']);
268 $table_count = PMA_getTableCount($GLOBALS['db']);
270 // show selected databasename as link to DefaultTabDatabase-page
271 // with table count in ()
272 $common_url_query = PMA_generate_common_url($GLOBALS['db']);
276 if ($GLOBALS['cfg']['ShowTooltip']
277 && $GLOBALS['cfgRelation']['commwork']) {
278 $_db_tooltip = PMA_getDbComment($GLOBALS['db']);
280 $db_tooltip = $_db_tooltip;
284 $disp_name = $GLOBALS['db'];
285 if ($db_tooltip && $GLOBALS['cfg']['ShowTooltipAliasDB']) {
286 $disp_name = $db_tooltip;
287 $disp_name_cut = $db_tooltip;
288 $db_tooltip = $GLOBALS['db'];
291 if ($table_count >= $GLOBALS['cfg']['LeftDisplayTableFilterMinimum']) {
293 <span id
="NavFilter">
294 <span id
="clear_fast_filter" title
="<?php echo __('Clear'); ?>">X
</span
>
295 <input type
="text" name
="fast_filter" id
="fast_filter" title
="<?php echo __('Filter'); ?>" value
="<?php echo __('filter tables by name'); ?>" />
301 * This helps reducing the navi panel size; in the right panel,
302 * user can find a navigator to page thru all tables.
305 if (! empty($table_list)) {
306 // upper table list paginator
307 if (count($table_list) <= $GLOBALS['cfg']['MaxTableList'] && $table_count > $GLOBALS['cfg']['MaxTableList']) {
308 $_url_params = array(
311 'db' => $GLOBALS['db']
313 PMA_listNavigator($table_count, $tpos, $_url_params, 'navigation.php', 'frame_navigation', $GLOBALS['cfg']['MaxTableList']);
315 PMA_displayTableList($table_list, true, '', $GLOBALS['db']);
316 // lower table list paginator
317 if (count($table_list) <= $GLOBALS['cfg']['MaxTableList'] && $table_count > $GLOBALS['cfg']['MaxTableList']) {
318 PMA_listNavigator($table_count, $tpos, $_url_params, 'navigation.php', 'frame_navigation', $GLOBALS['cfg']['MaxTableList']);
321 echo __('No tables found in database.');
324 if (strtolower($db) != 'information_schema' && (!PMA_DRIZZLE ||
strtolower($db) != 'data_dictionary')) {
325 echo '<ul id="newtable"><li><a target="frame_content" href="tbl_create.php' . PMA_generate_common_url(array('db' => $GLOBALS['db'])) . '">'
326 .'<img class="icon" src="' . $GLOBALS['pmaThemeImage'] . 'b_snewtbl.png" id="icon_newtable" alt="' . _pgettext('short form', 'Create table') . '" />'
327 . _pgettext('short form', 'Create table') . '</a></li></ul>';
329 } elseif ($GLOBALS['cfg']['LeftFrameLight']) {
330 /* No need to tell user to select database if we're showing complete list */
332 echo '<p>' . __('Please select a database') . '</p>';
335 echo '<div id="databaseList">' . "\n";
336 $_url_params = array('pos' => $pos);
337 PMA_listNavigator(count($GLOBALS['pma']->databases
), $pos, $_url_params, 'navigation.php', 'frame_navigation', $GLOBALS['cfg']['MaxDbList']);
338 echo '</div>' . "\n";
340 $common_url_query = PMA_generate_common_url();
341 PMA_displayDbList($GLOBALS['pma']->databases
->getGroupedDetails($_SESSION['tmp_user_values']['navi_limit_offset'],$GLOBALS['cfg']['MaxDbList']), $_SESSION['tmp_user_values']['navi_limit_offset'],$GLOBALS['cfg']['MaxDbList']);
345 * displays collapsable db list
347 * @uses $_REQUEST['dbgroup']
348 * @uses $GLOBALS['cfg']['DefaultTabDatabase']
352 * @uses htmlspecialchars()
353 * @uses PMA_generate_common_url()
354 * @uses PMA_getTableList()
355 * @uses PMA_displayTableList()
356 * @global integer $element_counter
357 * @global string $img_minus
358 * @global string $img_plus
359 * @global string $href_left
360 * @global string $db_start
361 * @global string $common_url_query
362 * @param array $ext_dblist extended db list
363 * @param integer $offset
364 * @param integer $count
366 function PMA_displayDbList($ext_dblist, $offset, $count) {
367 global $element_counter, $img_minus, $img_plus, $href_left,
368 $db_start, $common_url_query;
370 // get table list, for all databases
371 // doing this in one step takes advantage of a single query with information_schema!
372 $tables_full = PMA_DBI_get_tables_full($GLOBALS['pma']->databases
->getLimitedItems($offset, $count));
375 echo '<ul id="leftdatabaselist">';
376 $close_db_group = false;
377 foreach ($ext_dblist as $group => $db_group) {
378 if (count($GLOBALS['pma']->databases
) > 1) {
379 if ($close_db_group) {
383 $close_db_group = false;
385 if (count($db_group) > 1) {
386 $close_db_group = true;
387 $url_dbgroup = '&dbgroup=' . urlencode($group);
388 $common_url_query = PMA_generate_common_url() . $url_dbgroup;
390 echo '<li class="dbgroup">';
391 if ((! empty($_REQUEST['dbgroup']) && $_REQUEST['dbgroup'] == $group)
392 ||
$db_start == $group ||
strpos($db_start, $group) === 0) {
393 // display + only if this db(group) is not preselected
394 printf($href_left, $element_counter, PMA_generate_common_url());
395 printf($img_minus, $element_counter);
397 printf($href_left, $element_counter, $common_url_query);
398 printf($img_plus, $element_counter);
400 echo '</a> ' . $group . "\n";
401 if ((! empty($_REQUEST['dbgroup']) && $_REQUEST['dbgroup'] == $group)
402 ||
$db_start == $group ||
strpos($db_start, $group) === 0) {
403 echo '<ul id="subel' . $element_counter . '">' . "\n";
405 echo '<ul id="subel' . $element_counter . '"'
406 .' style="display: none">' . "\n";
410 foreach ($db_group as $db) {
411 $common_url_query = PMA_generate_common_url($db['name']) . $url_dbgroup;
414 // Displays the database name
417 if (count($GLOBALS['pma']->databases
) > 1) {
418 // only with more than one db we need collapse ...
419 if ($db_start != $db['name'] ||
$db['num_tables'] < 1) {
420 // display + only if this db is not preselected
421 // or table count is 0
422 printf($href_left, $element_counter, $common_url_query);
423 printf($img_plus, $element_counter);
425 printf($href_left, $element_counter,
426 PMA_generate_common_url() . $url_dbgroup);
427 printf($img_minus, $element_counter);
431 // ... and we need to refresh both frames on db selection
434 id
="<?php echo htmlspecialchars($db['name']); ?>"
435 href
="index.php?<?php echo $common_url_query; ?>"
437 title
="<?php echo htmlspecialchars($db['comment']); ?>"
439 if (! toggle('<?php echo $element_counter; ?>', true))
440 window.parent.goTo('./navigation.php?<?php echo $common_url_query; ?>');
441 window.parent.goTo('./<?php echo $GLOBALS['cfg']['DefaultTabDatabase']
442 . '?' . $common_url_query; ?>', 'main');
445 // Might be unset if CountTables directive is false
446 if (isset($db['num_tables'])) {
447 if ($GLOBALS['text_dir'] === 'rtl') {
448 echo ' <bdo dir="ltr">(' . $db['num_tables'] . ')</bdo> ';
451 echo htmlspecialchars($db['disp_name']);
452 if (isset($db['num_tables'])) {
453 if ($GLOBALS['text_dir'] === 'ltr') {
454 echo ' <bdo dir="ltr">(' . $db['num_tables'] . ')</bdo> ';
461 // with only 1 db available we dont need to refresh navi frame
462 // on db selection, only phpmain
464 <a href
="<?php echo $GLOBALS['cfg']['DefaultTabDatabase']
465 . '?' . $common_url_query; ?>"
466 id
="<?php echo htmlspecialchars($db['name']); ?>"
467 title
="<?php echo htmlspecialchars($db['comment']); ?>">
469 if (isset($db['num_tables'])) {
470 if ($GLOBALS['text_dir'] === 'rtl') {
471 echo ' <bdo dir="ltr">(' . $db['num_tables'] . ')</bdo> ';
474 echo htmlspecialchars($db['disp_name']);
475 if (isset($db['num_tables'])) {
476 if ($GLOBALS['text_dir'] === 'ltr') {
477 echo ' <bdo dir="ltr">(' . $db['num_tables'] . ')</bdo> ';
484 if (($GLOBALS['cfg']['Server']['CountTables'] === false) ||
$db['num_tables']) {
485 if (isset($tables_full[$db['name']])) {
486 $tables = PMA_getTableList($db['name'], $tables_full[$db['name']]);
487 } elseif (isset($tables_full[strtolower($db['name'])])) {
488 // on windows with lower_case_table_names = 1
490 // with SHOW DATABASES or information_schema.SCHEMATA: `Test`
491 // but information_schema.TABLES gives `test`
493 // sf.net/tracker/?func=detail&aid=1436171&group_id=23067&atid=377408
494 $tables = PMA_getTableList($db['name'], $tables_full[strtolower($db['name'])]);
496 $tables = PMA_getTableList($db['name']);
499 (bool) (count($GLOBALS['pma']->databases
) === 1 ||
$db_start == $db['name']);
500 PMA_displayTableList($tables, $child_visible, '', $db['name']);
501 } elseif ($GLOBALS['cfg']['LeftFrameLight']) {
502 // no tables and LeftFrameLight:
503 // display message no tables in selected db
504 echo '<p>' . __('Please select a database') . '</p>' . "\n";
508 } // end foreach group
510 if ($close_db_group) {
514 $close_db_group = false;
521 * display unordered list of tables
522 * calls itself recursively if table in given list
530 * @uses htmlspecialchars()
533 * @uses PMA_displayTableList()
534 * @uses $_REQUEST['tbl_group']
535 * @uses $GLOBALS['common_url_query']
536 * @uses $GLOBALS['table']
537 * @uses $GLOBALS['pmaThemeImage']
538 * @uses $GLOBALS['cfg']['LeftFrameTableSeparator']
539 * @uses $GLOBALS['cfg']['DefaultTabDatabase']
540 * @uses $GLOBALS['cfg']['DefaultTabTable']
541 * @global integer the element counter
542 * @global string html code for '-' image
543 * @global string html code for '+' image
544 * @global string html code for self link
545 * @param array $tables array of tables/tablegroups
546 * @param boolean $visible whether the list is visible or not
547 * @param string $tab_group_full full tab group name
548 * @param string $table_db db of this table
550 function PMA_displayTableList($tables, $visible = false,
551 $tab_group_full = '', $table_db = '')
553 if (! is_array($tables) ||
count($tables) === 0) {
557 global $element_counter, $img_minus, $img_plus, $href_left;
558 $sep = $GLOBALS['cfg']['LeftFrameTableSeparator'];
561 echo '<ul id="subel' . $element_counter . '">';
563 echo '<ul id="subel' . $element_counter . '" style="display: none">';
565 foreach ($tables as $group => $table) {
566 // only allow grouping if the group has more than 1 table
567 if (isset($table['is' . $sep . 'group']) && $table['tab' . $sep . 'count'] > 1) {
568 $common_url_query = $GLOBALS['common_url_query']
569 . '&tbl_group=' . urlencode($tab_group_full . $group);
574 && ((isset($_REQUEST['tbl_group'])
575 && (strpos($_REQUEST['tbl_group'], $group) === 0
576 ||
strpos($_REQUEST['tbl_group'], $sep . $group) !== false))
577 ||
strpos($GLOBALS['table'], $group) === 0)) {
578 printf($href_left, $element_counter,
579 $GLOBALS['common_url_query'] . '&tbl_group=' . $tab_group_full);
580 printf($img_minus, $element_counter);
582 printf($href_left, $element_counter, $common_url_query);
583 printf($img_plus, $element_counter);
587 <a href
="index.php?<?php echo $common_url_query; ?>"
590 if (! toggle('<?php echo $element_counter; ?>', true))
591 window.parent.goTo('./navigation.php?<?php echo $common_url_query; ?>');
592 window.parent.goTo('./<?php echo $GLOBALS['cfg']['DefaultTabDatabase']
593 . '?' . $common_url_query; ?>', 'main');
596 if ($GLOBALS['text_dir'] === 'rtl') {
597 echo ' <bdo dir="ltr">(' . $table['tab' . $sep . 'count'] . ')</bdo> ';
599 echo htmlspecialchars(substr($group, 0, strlen($group) - strlen($sep)));
600 if ($GLOBALS['text_dir'] === 'ltr') {
601 echo ' <bdo dir="ltr">(' . $table['tab' . $sep . 'count'] . ')</bdo> ';
607 unset($table['is' . $sep . 'group']);
608 unset($table['tab' . $sep . 'group']);
609 unset($table['tab' . $sep . 'count']);
612 ((isset($_REQUEST['tbl_group'])
613 && (strpos($_REQUEST['tbl_group'], $group) === 0
614 ||
strpos($_REQUEST['tbl_group'], $sep . $group) !== false))
615 ||
strpos($GLOBALS['table'], $group) === 0)) {
616 PMA_displayTableList($table, true,
617 $tab_group_full . $group, $table_db);
619 PMA_displayTableList($table, false, '', $table_db);
622 } elseif (is_array($table)) {
623 // the table was not grouped because it is the only one with its prefix
624 while (isset($table['is' . $sep . 'group'])) {
625 // get the array with the actual table information
626 foreach ($table as $value) {
627 if(is_array($value)) {
632 $link_title = PMA_getTitleForTarget($GLOBALS['cfg']['LeftDefaultTabTable']);
633 // quick access icon next to each table name
635 echo '<a class="tableicon" title="'
636 . htmlspecialchars($link_title)
637 . ': ' . htmlspecialchars($table['Comment'])
638 .' (' . PMA_formatNumber($table['Rows'], 0) . ' ' . __('Rows') . ')"'
639 .' id="quick_' . htmlspecialchars($table_db . '.' . $table['Name']) . '"'
640 .' href="' . $GLOBALS['cfg']['LeftDefaultTabTable'] . '?'
641 . $GLOBALS['common_url_query']
642 .'&table=' . urlencode($table['Name'])
643 .'&goto=' . $GLOBALS['cfg']['LeftDefaultTabTable']
645 .'<img class="icon"';
646 if ('VIEW' === strtoupper($table['Comment'])) {
647 echo ' src="' . $GLOBALS['pmaThemeImage'] . 's_views.png"';
649 echo ' src="' . $GLOBALS['pmaThemeImage'] . 'b_sbrowse.png"';
651 echo ' id="icon_' . htmlspecialchars($table_db . '.' . $table['Name']) . '"'
652 .' alt="' . htmlspecialchars($link_title) . '" /></a>' . "\n";
654 // link for the table name itself
655 $href = $GLOBALS['cfg']['DefaultTabTable'] . '?'
656 .$GLOBALS['common_url_query'] . '&table='
657 .urlencode($table['Name']) . '&pos=0';
658 echo '<a href="' . $href
659 . '" title="' . htmlspecialchars(PMA_getTitleForTarget($GLOBALS['cfg']['DefaultTabTable']) . ': ' . $table['Comment']
660 .' (' . PMA_formatNumber($table['Rows'], 0) . ' ' . __('Rows')) . ')"'
661 .' id="' . htmlspecialchars($table_db . '.' . $table['Name']) . '">'
662 // preserve spaces in table name
663 . str_replace(' ', ' ', htmlspecialchars($table['disp_name'])) . '</a>';
670 echo '</div>' . "\n";
672 PMA_exitNavigationFrame();