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 $params = array('uniqid' => uniqid());
53 if (!empty($GLOBALS['db'])) {
54 $params['db'] = $GLOBALS['db'];
56 echo '<div id="reloadlink">' . "\n";
57 echo '<a href="navigation.php' . PMA_generate_common_url($params) . '" target="frame_navigation">';
58 if ($GLOBALS['cfg']['NavigationBarIconic']) {
59 echo '<img class="icon" src="'. $GLOBALS['pmaThemeImage'] . 's_reload.png"'
60 . ' title="' . __('Reload navigation frame') . '"'
61 . ' alt="' . __('Reload navigation frame') . '" />';
63 if ($GLOBALS['cfg']['NavigationBarIconic'] !== true) {
64 echo __('Reload navigation frame');
68 echo '</body></html>';
72 // keep the offset of the db list in session before closing it
73 if (! isset($_SESSION['tmp_user_values']['navi_limit_offset'])) {
74 $_SESSION['tmp_user_values']['navi_limit_offset'] = 0;
76 if (! isset($_SESSION['tmp_user_values']['table_limit_offset']) ||
$_SESSION['tmp_user_values']['table_limit_offset_db'] != $db) {
77 $_SESSION['tmp_user_values']['table_limit_offset'] = 0;
78 $_SESSION['tmp_user_values']['table_limit_offset_db'] = $db;
80 if (isset($_REQUEST['pos'])) {
81 if (isset($_REQUEST['tpos'])) {
82 $_SESSION['tmp_user_values']['table_limit_offset'] = (int) $_REQUEST['pos'];
85 $_SESSION['tmp_user_values']['navi_limit_offset'] = (int) $_REQUEST['pos'];
88 $pos = $_SESSION['tmp_user_values']['navi_limit_offset'];
89 $tpos = $_SESSION['tmp_user_values']['table_limit_offset'];
90 // free the session file, for the other frames to be loaded
91 // but only if debugging is not enabled
92 if (empty($_SESSION['debug'])) {
93 session_write_close();
97 * the output compression library
99 require_once './libraries/ob.lib.php';
104 * selects the database if there is only one on current server
106 if ($GLOBALS['server'] && ! strlen($GLOBALS['db'])) {
107 $GLOBALS['db'] = $GLOBALS['pma']->databases
->getSingleItem();
110 $db_start = $GLOBALS['db'];
113 * the relation settings
115 $cfgRelation = PMA_getRelationsParam();
118 * For re-usability, moved http-headers to a seperate file.
119 * It can now be included by libraries/header.inc.php, querywindow.php.
121 require_once './libraries/header_http.inc.php';
126 // xml declaration moves IE into quirks mode, making much trouble with CSS
127 /* echo '<?xml version="1.0" encoding="' . $GLOBALS['charset'] . '"?>'; */
129 <!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
130 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
131 <html xmlns
="http://www.w3.org/1999/xhtml"
132 xml
:lang
="<?php echo $available_languages[$lang][1]; ?>"
133 lang
="<?php echo $available_languages[$lang][1]; ?>"
134 dir
="<?php echo $GLOBALS['text_dir']; ?>">
137 <link rel
="icon" href
="./favicon.ico" type
="image/x-icon" />
138 <link rel
="shortcut icon" href
="./favicon.ico" type
="image/x-icon" />
139 <title
>phpMyAdmin
</title
>
140 <meta http
-equiv
="Content-Type"
141 content
="text/html; charset=<?php echo $GLOBALS['charset']; ?>" />
142 <base target
="frame_content" />
143 <link rel
="stylesheet" type
="text/css"
144 href
="phpmyadmin.css.php?<?php echo PMA_generate_common_url('', ''); ?>&js_frame=left&nocache=<?php echo $GLOBALS['PMA_Config']->getThemeUniqueValue(); ?>" />
145 <script src
="./js/jquery/jquery-1.4.2.js" type
="text/javascript"></script
>
146 <script type
="text/javascript" src
="js/navigation.js"></script
>
147 <script type
="text/javascript" src
="js/functions.js"></script
>
148 <script type
="text/javascript">
150 var image_minus
= '<?php echo $GLOBALS['pmaThemeImage
']; ?>b_minus.png';
151 var image_plus
= '<?php echo $GLOBALS['pmaThemeImage
']; ?>b_plus.png';
153 // INIT PMA_setFrameSize
155 var onLoadHandler
= window
.onload
;
156 var resizeHandler
= window
.onresize
;
157 window
.document
.onresize
= resizeHandler
;
158 window
.onload
= function() {
159 if (onloadCnt
== 0) {
160 if (typeof(onLoadHandler
) == "function") {
163 if (typeof(PMA_setFrameSize
) != 'undefined' && typeof(PMA_setFrameSize
) == 'function') {
169 window
.onresize
= function() {
170 if (typeof(resizeHandler
) == "function") {
173 if (typeof(PMA_saveFrameSize
) != 'undefined' && typeof(PMA_saveFrameSize
) == 'function') {
181 * remove horizontal scroll bar bug in IE 6 by forcing a vertical scroll bar
185 <style type
="text/css">
195 <body id
="body_leftFrame">
197 require './libraries/navigation_header.inc.php';
198 if (! $GLOBALS['server']) {
199 // no server selected
200 PMA_exitNavigationFrame();
201 } elseif (! count($GLOBALS['pma']->databases
)) {
202 // no database available, so we break here
203 echo '<p>' . __('No databases') . '</p>';
204 PMA_exitNavigationFrame();
205 } elseif ($GLOBALS['cfg']['LeftFrameLight'] && count($GLOBALS['pma']->databases
) > 1) {
206 $list = $cfg['DisplayDatabasesList'];
207 if ($list === 'auto') {
208 if (empty($GLOBALS['db'])) {
215 // more than one database available and LeftFrameLight is true
216 // display db selectbox
218 // Light mode -> beginning of the select combo for databases
219 // Note: When javascript is active, the frameset will be changed from
220 // within navigation.php. With no JS (<noscript>) the whole frameset will
221 // be rebuilt with the new target frame.
224 <div id
="databaseList">
225 <form method
="post" action
="index.php" target
="_parent" id
="left">
227 echo PMA_generate_common_hidden_inputs() . "\n";
228 echo $GLOBALS['pma']->databases
->getHtmlSelectGrouped(true, $_SESSION['tmp_user_values']['navi_limit_offset'], $GLOBALS['cfg']['MaxDbList']) . "\n";
229 echo '<noscript>' . "\n"
230 .'<input type="submit" name="Go" value="' . __('Go') . '" />' . "\n"
231 .'</noscript>' . "\n"
234 echo $GLOBALS['pma']->databases
->getHtmlListGrouped(true, $_SESSION['tmp_user_values']['navi_limit_offset'], $GLOBALS['cfg']['MaxDbList']) . "\n";
236 $_url_params = array('pos' => $pos);
237 PMA_listNavigator(count($GLOBALS['pma']->databases
), $pos, $_url_params, 'navigation.php', 'frame_navigation', $GLOBALS['cfg']['MaxDbList']);
241 <div id
="left_tableList">
243 // Don't display expansible/collapsible database info if:
244 // 1. $GLOBALS['server'] == 0 (no server selected)
245 // This is the case when there are multiple servers and
246 // '$GLOBALS['cfg']['ServerDefault'] = 0' is set. In that case, we want the welcome
247 // screen to appear with no database info displayed.
248 // 2. there is only one database available (ie either only one database exists
249 // or $GLOBALS['cfg']['Servers']['only_db'] is defined and is not an array)
250 // In this case, the database should not be collapsible/expandable
252 $img_plus = '<img class="icon" id="el%dImg" src="' . $pmaThemeImage . 'b_plus.png"'
253 .' width="9" height="9" alt="+" />';
254 $img_minus = '<img class="icon" id="el%dImg" src="' . $pmaThemeImage . 'b_minus.png"'
255 .' width="9" height="9" alt="-" />';
257 $href_left = '<a onclick="if (toggle(\'%d\')) return false;"'
258 .' href="navigation.php?%s" target="_self">';
260 $element_counter = 0;
263 if ($GLOBALS['cfg']['LeftFrameLight'] && strlen($GLOBALS['db'])) {
264 $table_list = PMA_getTableList($GLOBALS['db']);
265 $table_count = count($table_list);
267 // show selected databasename as link to DefaultTabDatabase-page
268 // with table count in ()
269 $common_url_query = PMA_generate_common_url($GLOBALS['db']);
273 if ($GLOBALS['cfg']['ShowTooltip']
274 && $GLOBALS['cfgRelation']['commwork']) {
275 $_db_tooltip = PMA_getDbComment($GLOBALS['db']);
277 $db_tooltip = $_db_tooltip;
281 $disp_name = $GLOBALS['db'];
282 if ($db_tooltip && $GLOBALS['cfg']['ShowTooltipAliasDB']) {
283 $disp_name = $db_tooltip;
284 $disp_name_cut = $db_tooltip;
285 $db_tooltip = $GLOBALS['db'];
290 <span id
="NavFilter">
291 <input type
="text" name
="fast_filter" id
="fast_filter" title
="<?php echo __('Filter'); ?>" />
292 <span id
="clear_fast_filter" title
="<?php echo __('Clear'); ?>">X
</span
>
298 * This helps reducing the navi panel size; in the right panel,
299 * user can find a navigator to page thru all tables.
302 $table_list = array_slice($table_list, $tpos, $cfg['MaxTableList']);
303 if (! empty($table_list)) {
304 // upper table list paginator
305 if (count($table_list) <= $GLOBALS['cfg']['MaxTableList'] && $table_count > $GLOBALS['cfg']['MaxTableList']) {
306 $_url_params = array(
309 'db' => $GLOBALS['db']
311 PMA_listNavigator($table_count, $tpos, $_url_params, 'navigation.php', 'frame_navigation', $GLOBALS['cfg']['MaxTableList']);
313 PMA_displayTableList($table_list, true, '', $GLOBALS['db']);
314 // lower table list paginator
315 if (count($table_list) <= $GLOBALS['cfg']['MaxTableList'] && $table_count > $GLOBALS['cfg']['MaxTableList']) {
316 PMA_listNavigator($table_count, $tpos, $_url_params, 'navigation.php', 'frame_navigation', $GLOBALS['cfg']['MaxTableList']);
319 echo __('No tables found in database.');
322 echo '<ul id="newtable"><li><a target="frame_content" href="tbl_create.php' . PMA_generate_common_url(array('db' => $GLOBALS['db'])) . '">'
323 .'<img class="icon" src="' . $GLOBALS['pmaThemeImage'] . 'b_snewtbl.png" id="icon_newtable" width="10" height="10" alt="' . _pgettext('short form', 'Create table') . '" />'
324 . _pgettext('short form', 'Create table') . '</a></li></ul>';
325 } elseif ($GLOBALS['cfg']['LeftFrameLight']) {
326 echo '<p>' . __('Please select a database') . '</p>';
328 echo '<div id="databaseList">' . "\n";
329 $_url_params = array('pos' => $pos);
330 PMA_listNavigator(count($GLOBALS['pma']->databases
), $pos, $_url_params, 'navigation.php', 'frame_navigation', $GLOBALS['cfg']['MaxDbList']);
331 echo '</div>' . "\n";
333 $common_url_query = PMA_generate_common_url();
334 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']);
338 * displays collapsable db list
340 * @uses $_REQUEST['dbgroup']
341 * @uses $GLOBALS['cfg']['DefaultTabDatabase']
345 * @uses htmlspecialchars()
346 * @uses PMA_generate_common_url()
347 * @uses PMA_getTableList()
348 * @uses PMA_displayTableList()
349 * @global integer $element_counter
350 * @global string $img_minus
351 * @global string $img_plus
352 * @global string $href_left
353 * @global string $db_start
354 * @global string $common_url_query
355 * @param array $ext_dblist extended db list
356 * @param integer $offset
357 * @param integer $count
359 function PMA_displayDbList($ext_dblist, $offset, $count) {
360 global $element_counter, $img_minus, $img_plus, $href_left,
361 $db_start, $common_url_query;
363 // get table list, for all databases
364 // doing this in one step takes advantage of a single query with information_schema!
365 $tables_full = PMA_DBI_get_tables_full($GLOBALS['pma']->databases
->getLimitedItems($offset, $count));
368 echo '<ul id="leftdatabaselist">';
369 $close_db_group = false;
370 foreach ($ext_dblist as $group => $db_group) {
371 if (count($GLOBALS['pma']->databases
) > 1) {
372 if ($close_db_group) {
376 $close_db_group = false;
378 if (count($db_group) > 1) {
379 $close_db_group = true;
380 $url_dbgroup = '&dbgroup=' . urlencode($group);
381 $common_url_query = PMA_generate_common_url() . $url_dbgroup;
383 echo '<li class="dbgroup">';
384 if ((! empty($_REQUEST['dbgroup']) && $_REQUEST['dbgroup'] == $group)
385 ||
$db_start == $group ||
strpos($db_start, $group) === 0) {
386 // display + only if this db(group) is not preselected
387 printf($href_left, $element_counter, PMA_generate_common_url());
388 printf($img_minus, $element_counter);
390 printf($href_left, $element_counter, $common_url_query);
391 printf($img_plus, $element_counter);
393 echo '</a> ' . $group . "\n";
394 if ((! empty($_REQUEST['dbgroup']) && $_REQUEST['dbgroup'] == $group)
395 ||
$db_start == $group ||
strpos($db_start, $group) === 0) {
396 echo '<ul id="subel' . $element_counter . '">' . "\n";
398 echo '<ul id="subel' . $element_counter . '"'
399 .' style="display: none">' . "\n";
403 foreach ($db_group as $db) {
404 $common_url_query = PMA_generate_common_url($db['name']) . $url_dbgroup;
407 // Displays the database name
410 if (count($GLOBALS['pma']->databases
) > 1) {
411 // only with more than one db we need collapse ...
412 if ($db_start != $db['name'] ||
$db['num_tables'] < 1) {
413 // display + only if this db is not preselected
414 // or table count is 0
415 printf($href_left, $element_counter, $common_url_query);
416 printf($img_plus, $element_counter);
418 printf($href_left, $element_counter,
419 PMA_generate_common_url() . $url_dbgroup);
420 printf($img_minus, $element_counter);
424 // ... and we need to refresh both frames on db selection
427 id
="<?php echo htmlspecialchars($db['name']); ?>"
428 href
="index.php?<?php echo $common_url_query; ?>"
430 title
="<?php echo htmlspecialchars($db['comment']); ?>"
432 if (! toggle('<?php echo $element_counter; ?>', true))
433 window.parent.goTo('./navigation.php?<?php echo $common_url_query; ?>');
434 window.parent.goTo('./<?php echo $GLOBALS['cfg']['DefaultTabDatabase']
435 . '?' . $common_url_query; ?>', 'main');
438 if ($GLOBALS['text_dir'] === 'rtl') {
439 echo ' <bdo dir="ltr">(' . $db['num_tables'] . ')</bdo> ';
441 echo htmlspecialchars($db['disp_name']);
442 if ($GLOBALS['text_dir'] === 'ltr') {
443 echo ' <bdo dir="ltr">(' . $db['num_tables'] . ')</bdo> ';
449 // with only 1 db available we dont need to refresh left frame
450 // on db selection, only phpmain
452 <a href
="<?php echo $GLOBALS['cfg']['DefaultTabDatabase']
453 . '?' . $common_url_query; ?>"
454 id
="<?php echo htmlspecialchars($db['name']); ?>"
455 title
="<?php echo htmlspecialchars($db['comment']); ?>">
457 if ($GLOBALS['text_dir'] === 'rtl') {
458 echo ' <bdo dir="ltr">(' . $db['num_tables'] . ')</bdo> ';
460 echo htmlspecialchars($db['disp_name']);
461 if ($GLOBALS['text_dir'] === 'ltr') {
462 echo ' <bdo dir="ltr">(' . $db['num_tables'] . ')</bdo> ';
468 if ($db['num_tables']) {
469 if (isset($tables_full[$db['name']])) {
470 $tables = PMA_getTableList($db['name'], $tables_full[$db['name']]);
471 } elseif (isset($tables_full[strtolower($db['name'])])) {
472 // on windows with lower_case_table_names = 1
474 // with SHOW DATABASES or information_schema.SCHEMATA: `Test`
475 // but information_schema.TABLES gives `test`
477 // sf.net/tracker/?func=detail&aid=1436171&group_id=23067&atid=377408
478 $tables = PMA_getTableList($db['name'], $tables_full[strtolower($db['name'])]);
480 $tables = PMA_getTableList($db['name']);
483 (bool) (count($GLOBALS['pma']->databases
) === 1 ||
$db_start == $db['name']);
484 PMA_displayTableList($tables, $child_visible, '', $db['name']);
485 } elseif ($GLOBALS['cfg']['LeftFrameLight']) {
486 // no tables and LeftFrameLight:
487 // display message no tables in selected db
488 echo '<p>' . __('Please select a database') . '</p>' . "\n";
492 } // end foreach group
494 if ($close_db_group) {
498 $close_db_group = false;
505 * display unordered list of tables
506 * calls itself recursively if table in given list
514 * @uses htmlspecialchars()
517 * @uses PMA_displayTableList()
518 * @uses $_REQUEST['tbl_group']
519 * @uses $GLOBALS['common_url_query']
520 * @uses $GLOBALS['table']
521 * @uses $GLOBALS['pmaThemeImage']
522 * @uses $GLOBALS['cfg']['LeftFrameTableSeparator']
523 * @uses $GLOBALS['cfg']['DefaultTabDatabase']
524 * @uses $GLOBALS['cfg']['DefaultTabTable']
525 * @global integer the element counter
526 * @global string html code for '-' image
527 * @global string html code for '+' image
528 * @global string html code for self link
529 * @param array $tables array of tables/tablegroups
530 * @param boolean $visible whether the list is visible or not
531 * @param string $tab_group_full full tab group name
532 * @param string $table_db db of this table
534 function PMA_displayTableList($tables, $visible = false,
535 $tab_group_full = '', $table_db = '')
537 if (! is_array($tables) ||
count($tables) === 0) {
541 global $element_counter, $img_minus, $img_plus, $href_left;
542 $sep = $GLOBALS['cfg']['LeftFrameTableSeparator'];
545 echo '<ul id="subel' . $element_counter . '">';
547 echo '<ul id="subel' . $element_counter . '" style="display: none">';
549 foreach ($tables as $group => $table) {
550 // only allow grouping if the group has more than 1 table
551 if (isset($table['is' . $sep . 'group']) && $table['tab' . $sep . 'count'] > 1) {
552 $common_url_query = $GLOBALS['common_url_query']
553 . '&tbl_group=' . urlencode($tab_group_full . $group);
558 && ((isset($_REQUEST['tbl_group'])
559 && (strpos($_REQUEST['tbl_group'], $group) === 0
560 ||
strpos($_REQUEST['tbl_group'], $sep . $group) !== false))
561 ||
strpos($GLOBALS['table'], $group) === 0)) {
562 printf($href_left, $element_counter,
563 $GLOBALS['common_url_query'] . '&tbl_group=' . $tab_group_full);
564 printf($img_minus, $element_counter);
566 printf($href_left, $element_counter, $common_url_query);
567 printf($img_plus, $element_counter);
571 <a href
="index.php?<?php echo $common_url_query; ?>"
574 if (! toggle('<?php echo $element_counter; ?>', true))
575 window.parent.goTo('./navigation.php?<?php echo $common_url_query; ?>');
576 window.parent.goTo('./<?php echo $GLOBALS['cfg']['DefaultTabDatabase']
577 . '?' . $common_url_query; ?>', 'main');
580 if ($GLOBALS['text_dir'] === 'rtl') {
581 echo ' <bdo dir="ltr">(' . $table['tab' . $sep . 'count'] . ')</bdo> ';
583 echo htmlspecialchars(substr($group, 0, strlen($group) - strlen($sep)));
584 if ($GLOBALS['text_dir'] === 'ltr') {
585 echo ' <bdo dir="ltr">(' . $table['tab' . $sep . 'count'] . ')</bdo> ';
591 unset($table['is' . $sep . 'group']);
592 unset($table['tab' . $sep . 'group']);
593 unset($table['tab' . $sep . 'count']);
596 ((isset($_REQUEST['tbl_group'])
597 && (strpos($_REQUEST['tbl_group'], $group) === 0
598 ||
strpos($_REQUEST['tbl_group'], $sep . $group) !== false))
599 ||
strpos($GLOBALS['table'], $group) === 0)) {
600 PMA_displayTableList($table, true,
601 $tab_group_full . $group, $table_db);
603 PMA_displayTableList($table, false, '', $table_db);
606 } elseif (is_array($table)) {
607 // the table was not grouped because it is the only one with its prefix
608 if (isset($table['is' . $sep . 'group'])) {
609 // get the array with the actual table information
610 foreach ($table as $value) {
611 if(is_array($value)) {
616 $link_title = PMA_getTitleForTarget($GLOBALS['cfg']['LeftDefaultTabTable']);
617 // quick access icon next to each table name
619 echo '<a class="tableicon" title="'
620 . htmlspecialchars($link_title)
621 . ': ' . htmlspecialchars($table['Comment'])
622 .' (' . PMA_formatNumber($table['Rows'], 0) . ' ' . __('Rows') . ')"'
623 .' id="quick_' . htmlspecialchars($table_db . '.' . $table['Name']) . '"'
624 .' href="' . $GLOBALS['cfg']['LeftDefaultTabTable'] . '?'
625 . $GLOBALS['common_url_query']
626 .'&table=' . urlencode($table['Name'])
627 .'&goto=' . $GLOBALS['cfg']['LeftDefaultTabTable']
629 .'<img class="icon"';
630 if ('VIEW' === strtoupper($table['Comment'])) {
631 echo ' src="' . $GLOBALS['pmaThemeImage'] . 's_views.png"';
633 echo ' src="' . $GLOBALS['pmaThemeImage'] . 'b_sbrowse.png"';
635 echo ' id="icon_' . htmlspecialchars($table_db . '.' . $table['Name']) . '"'
636 .' width="10" height="10" alt="' . htmlspecialchars($link_title) . '" /></a>' . "\n";
638 // link for the table name itself
639 $href = $GLOBALS['cfg']['DefaultTabTable'] . '?'
640 .$GLOBALS['common_url_query'] . '&table='
641 .urlencode($table['Name']) . '&pos=0';
642 echo '<a href="' . $href
643 . '" title="' . htmlspecialchars(PMA_getTitleForTarget($GLOBALS['cfg']['DefaultTabTable']) . ': ' . $table['Comment']
644 .' (' . PMA_formatNumber($table['Rows'], 0) . ' ' . __('Rows')) . ')"'
645 .' id="' . htmlspecialchars($table_db . '.' . $table['Name']) . '">'
646 // preserve spaces in table name
647 . str_replace(' ', ' ', htmlspecialchars($table['disp_name'])) . '</a>';
654 echo '</div>' . "\n";
656 PMA_exitNavigationFrame();