Short doc

This commit is contained in:
Marc Delisle
2001-12-22 16:34:44 +00:00
parent 30cfe07204
commit 1940764c61
4 changed files with 24 additions and 1 deletions

View File

@@ -5,6 +5,11 @@ phpMyAdmin - Changelog
$Id$ $Id$
$Source$ $Source$
2001-12-22 Marc Delisle <lem9@users.sourceforge.net>
* start new MySQL short documentation structure:
- config.inc.php3 $cfgManualBaseShort
- libraries/common.lib.php3 PMA_showDocuShort()
2001-12-21 Marc Delisle <lem9@users.sourceforge.net> 2001-12-21 Marc Delisle <lem9@users.sourceforge.net>
* test and merge patch from Lo<4C>c for bug 495112: * test and merge patch from Lo<4C>c for bug 495112:
- libraries/common.lib.php3 - libraries/common.lib.php3

View File

@@ -141,6 +141,7 @@ $cfgBZipDump = TRUE; // dump files
* Be sure to include no trailing slash on the path * Be sure to include no trailing slash on the path
*/ */
$cfgManualBase = 'http://www.mysql.com/documentation/mysql/bychapter'; $cfgManualBase = 'http://www.mysql.com/documentation/mysql/bychapter';
$cfgManualBaseShort = 'http://www.mysql.com/doc';
/** /**

View File

@@ -892,6 +892,23 @@ window.parent.frames['nav'].location.replace('<?php echo $reload_url; ?>');
} // end of the 'PMA_showDocu()' function } // end of the 'PMA_showDocu()' function
/**
* Displays a link to the official MySQL documentation (short)
*
* @param string an anchor to move to
*
* @return string the html link
*
* @access public
*/
function PMA_showDocuShort($link)
{
if (!empty($GLOBALS['cfgManualBaseShort'])) {
return '[<a href="' . $GLOBALS['cfgManualBaseShort'] . '/' . $link .'" target="mysql_doc">' . $GLOBALS['strDocu'] . '</a>]';
}
} // end of the 'PMA_showDocuShort()' function
/** /**
* Formats $value to byte view * Formats $value to byte view
* *

View File

@@ -252,7 +252,7 @@ if ($server > 0) {
<td> <td>
<a href="sql.php3?<?php echo $common_url_query; ?>&amp;db=mysql&amp;sql_query=<?php echo urlencode('SHOW STATUS'); ?>&amp;goto=main.php3"> <a href="sql.php3?<?php echo $common_url_query; ?>&amp;db=mysql&amp;sql_query=<?php echo urlencode('SHOW STATUS'); ?>&amp;goto=main.php3">
<?php echo $strMySQLShowStatus; ?></a>&nbsp; <?php echo $strMySQLShowStatus; ?></a>&nbsp;
<?php echo PMA_showDocu('manual_Reference.html#SHOW') . "\n"; ?> <?php echo PMA_showDocuShort('S/H/SHOW_STATUS.html') . "\n"; ?>
</td> </td>
</tr> </tr>
<?php <?php