[ Index ] |
|
Code source de phpMyAdmin 2.10.3 |
1 <?php 2 /* $Id: navigation_header.inc.php 9963 2007-02-12 00:35:16Z lem9 $ */ 3 // vim: expandtab sw=4 ts=4 sts=4: 4 5 /** 6 * displays the pma logo, links and db and server selection in left frame 7 * 8 */ 9 10 if ( empty( $query_url ) ) { 11 $db = ! isset( $db ) ? '' : $db; 12 $table = ! isset( $table ) ? '' : $table; 13 $query_url = PMA_generate_common_url( $db, $table ); 14 } 15 16 // display Logo, depending on $GLOBALS['cfg']['LeftDisplayLogo'] 17 if ( $GLOBALS['cfg']['LeftDisplayLogo'] ) { 18 $logo = 'phpMyAdmin'; 19 if ( @file_exists( $GLOBALS['pmaThemeImage'] . 'logo_left.png' ) ) { 20 $logo = '<img src="' . $GLOBALS['pmaThemeImage'] . 'logo_left.png" ' 21 .'alt="' . $logo . '" id="imgpmalogo" />'; 22 } elseif ( @file_exists( $GLOBALS['pmaThemeImage'] . 'pma_logo2.png' ) ) { 23 $logo = '<img src="' . $GLOBALS['pmaThemeImage'] . 'pma_logo2.png" ' 24 .'alt="' . $logo . '" id="imgpmalogo" />'; 25 } 26 27 echo '<div id="pmalogo">' . "\n" 28 .'<a href="' . $GLOBALS['cfg']['LeftLogoLink']; 29 switch ($GLOBALS['cfg']['LeftLogoLinkWindow']) { 30 case 'new': 31 echo '" target="_blank"'; 32 break; 33 case 'main': 34 echo '?' . $query_url . '" target="frame_content"'; 35 } 36 echo '>' . $logo . '</a>' . "\n" 37 .'</div>' . "\n"; 38 } // end of display logo 39 ?> 40 <div id="leftframelinks"> 41 <?php 42 echo '<a href="main.php?' . $query_url . '"' 43 .' title="' . $strHome . '">' 44 .( $GLOBALS['cfg']['MainPageIconic'] 45 ? '<img class="icon" src="' . $pmaThemeImage . 'b_home.png" width="16" ' 46 .' height="16" alt="' . $strHome . '" />' 47 : $strHome ) 48 .'</a>' . "\n"; 49 // if we have chosen server 50 if ( $server != 0 ) { 51 // Logout for advanced authentication 52 if ( $GLOBALS['cfg']['Server']['auth_type'] != 'config' ) { 53 echo ($GLOBALS['cfg']['MainPageIconic'] ? '' : ' - '); 54 echo '<a href="index.php?' . $query_url . '&old_usr=' 55 .urlencode($PHP_AUTH_USER) . '" target="_parent"' 56 .' title="' . $strLogout . '" >' 57 .( $GLOBALS['cfg']['MainPageIconic'] 58 ? '<img class="icon" src="' . $pmaThemeImage . 's_loggoff.png" ' 59 .' width="16" height="16" alt="' . $strLogout . '" />' 60 : $strLogout ) 61 .'</a>' . "\n"; 62 } // end if ($GLOBALS['cfg']['Server']['auth_type'] != 'config' 63 64 $anchor = 'querywindow.php?' . PMA_generate_common_url( $db, $table ); 65 66 if ($GLOBALS['cfg']['MainPageIconic']) { 67 $query_frame_link_text = 68 '<img class="icon" src="' . $pmaThemeImage . 'b_selboard.png"' 69 .' width="16" height="16" alt="' . $strQueryFrame . '" />'; 70 } else { 71 echo '<br />' . "\n"; 72 $query_frame_link_text = $strQueryFrame; 73 } 74 echo '<a href="' . $anchor . '&no_js=true"' 75 .' title="' . $strQueryFrame . '"'; 76 echo ' onclick="javascript:window.parent.open_querywindow();' 77 .' return false;"'; 78 echo '>' . $query_frame_link_text . '</a>' . "\n"; 79 } // end if ($server != 0) 80 81 if ($GLOBALS['cfg']['MainPageIconic']) { 82 echo ' <a href="Documentation.html" target="documentation"' 83 .' title="' . $strPmaDocumentation . '" >' 84 .'<img class="icon" src="' . $pmaThemeImage . 'b_docs.png" width="16" height="16"' 85 .' alt="' . $strPmaDocumentation . '" /></a>' . "\n"; 86 echo ' ' . PMA_showMySQLDocu('', '', TRUE) . "\n"; 87 } 88 echo '</div>' . "\n"; 89 90 /** 91 * Displays the MySQL servers choice form 92 */ 93 if ($GLOBALS['cfg']['LeftDisplayServers'] && (count($GLOBALS['cfg']['Servers']) > 1 || $server == 0 && count($GLOBALS['cfg']['Servers']) == 1)) { 94 include ('./libraries/select_server.lib.php'); 95 PMA_select_server(true, true); 96 echo '<hr />'; 97 } // end if LeftDisplayServers 98 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 15:18:20 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |