Short doc
This commit is contained in:
@@ -5,6 +5,11 @@ phpMyAdmin - Changelog
|
||||
$Id$
|
||||
$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>
|
||||
* test and merge patch from Lo<4C>c for bug 495112:
|
||||
- libraries/common.lib.php3
|
||||
|
@@ -141,6 +141,7 @@ $cfgBZipDump = TRUE; // dump files
|
||||
* Be sure to include no trailing slash on the path
|
||||
*/
|
||||
$cfgManualBase = 'http://www.mysql.com/documentation/mysql/bychapter';
|
||||
$cfgManualBaseShort = 'http://www.mysql.com/doc';
|
||||
|
||||
|
||||
/**
|
||||
|
@@ -892,6 +892,23 @@ window.parent.frames['nav'].location.replace('<?php echo $reload_url; ?>');
|
||||
} // 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
|
||||
*
|
||||
|
@@ -252,7 +252,7 @@ if ($server > 0) {
|
||||
<td>
|
||||
<a href="sql.php3?<?php echo $common_url_query; ?>&db=mysql&sql_query=<?php echo urlencode('SHOW STATUS'); ?>&goto=main.php3">
|
||||
<?php echo $strMySQLShowStatus; ?></a>
|
||||
<?php echo PMA_showDocu('manual_Reference.html#SHOW') . "\n"; ?>
|
||||
<?php echo PMA_showDocuShort('S/H/SHOW_STATUS.html') . "\n"; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
|
Reference in New Issue
Block a user