Add link to wiki explaining configuration options.

This commit is contained in:
Michal Čihař
2006-08-30 15:02:57 +00:00
parent 1254e6f0b3
commit 081e4be128
2 changed files with 21 additions and 3 deletions

View File

@@ -206,10 +206,13 @@ echo '<?xml version="1.0" encoding="utf-8"?>' . "\n";
code:before, code:after {
content: '"';
}
a.doc {
span.doc {
margin: 0 1em 0 1em;
}
a.doc img {
span.doc a {
margin: 0 0.1em 0 0.1em;
}
span.doc a img {
border: none;
}
</style>
@@ -270,7 +273,21 @@ function version_to_int($version) {
* @return string HTML link to documentation
*/
function get_cfg_doc($anchor) {
return '<a href="../Documentation.html#cfg_' . $anchor . '" target="pma_doc" class="doc"><img class="icon" src="../' . $GLOBALS['cfg']['ThemePath'] . '/original/img/b_help.png" width="11" height="11" alt="Documentation" title="Documentation" /></a>';
/* Link for wiki */
$wiki = $anchor;
if (strncmp($anchor, 'Servers_', 8) == 0) {
$wiki = substr($anchor, 8);
}
return
'<span class="doc">' .
'<a href="../Documentation.html#cfg_' . $anchor . '" target="pma_doc" class="doc">' .
'<img class="icon" src="../' . $GLOBALS['cfg']['ThemePath'] . '/original/img/b_help.png" width="11" height="11" alt="Documentation" title="Documentation" />' .
'</a>' .
'<a href="http://wiki.cihar.com/pma/Config#' . $wiki . '" target="pma_doc" class="doc">' .
'<img class="icon" src="../' . $GLOBALS['cfg']['ThemePath'] . '/original/img/b_info.png" width="11" height="11" alt="Wiki" title="Wiki" />' .
'</a>' .
'</span>'
;
}
/**