/**
  * Creates the code for displaying the links
  * at the top of the navigation panel
  *
  * @return string HTML code for the links
  */
 private function _links()
 {
     // always iconic
     $showIcon = true;
     $showText = false;
     $retval = '<!-- LINKS START -->';
     $retval .= '<div id="navipanellinks">';
     $retval .= PMA\libraries\Util::getNavigationLink('index.php' . URL::getCommon(), $showText, __('Home'), $showIcon, 'b_home.png');
     // if we have chosen server
     if ($GLOBALS['server'] != 0) {
         // Logout for advanced authentication
         if ($GLOBALS['cfg']['Server']['auth_type'] != 'config') {
             $text = __('Log out');
         } else {
             $text = __('Empty session data');
         }
         $link = 'logout.php' . $GLOBALS['url_query'];
         $retval .= PMA\libraries\Util::getNavigationLink($link, $showText, $text, $showIcon, 's_loggoff.png', '', true, '', array('logout'));
     }
     $retval .= PMA\libraries\Util::getNavigationLink(PMA\libraries\Util::getDocuLink('index'), $showText, __('phpMyAdmin documentation'), $showIcon, 'b_docs.png', '', false, 'documentation');
     $retval .= PMA\libraries\Util::getNavigationLink(PMA\libraries\Util::getMySQLDocuURL('', ''), $showText, __('Documentation'), $showIcon, 'b_sqlhelp.png', '', false, 'mysql_doc');
     $retval .= PMA\libraries\Util::getNavigationLink('#', $showText, __('Navigation panel settings'), $showIcon, 's_cog.png', 'pma_navigation_settings_icon', false, '', defined('PMA_DISABLE_NAVI_SETTINGS') ? array('hide') : array());
     $retval .= PMA\libraries\Util::getNavigationLink('#', $showText, __('Reload navigation panel'), $showIcon, 's_reload.png', 'pma_navigation_reload');
     $retval .= '</div>';
     $retval .= '<!-- LINKS ENDS -->';
     return $retval;
 }
示例#2
0
 /**
  * Creates the code for displaying the controls
  * at the top of the navigation tree
  *
  * @return string HTML code for the controls
  */
 private function _controls()
 {
     // always iconic
     $showIcon = true;
     $showText = false;
     $retval = '<!-- CONTROLS START -->';
     $retval .= '<li id="navigation_controls_outer">';
     $retval .= '<div id="navigation_controls">';
     $retval .= Util::getNavigationLink('#', $showText, __('Collapse all'), $showIcon, 's_collapseall.png', 'pma_navigation_collapse');
     $syncImage = 's_unlink.png';
     $title = __('Link with main panel');
     if ($GLOBALS['cfg']['NavigationLinkWithMainPanel']) {
         $syncImage = 's_link.png';
         $title = __('Unlink from main panel');
     }
     $retval .= Util::getNavigationLink('#', $showText, $title, $showIcon, $syncImage, 'pma_navigation_sync');
     $retval .= '</div>';
     $retval .= '</li>';
     $retval .= '<!-- CONTROLS ENDS -->';
     return $retval;
 }