Generalize doc_link()

This commit is contained in:
Jakub Vrana
2013-08-05 18:55:27 -07:00
parent 3cf3560a20
commit e7e5559df5
5 changed files with 25 additions and 15 deletions

View File

@@ -22,7 +22,11 @@ foreach (process_list() as $i => $row) {
if (!$i) {
echo "<thead><tr lang='en'>" . (support("kill") ? "<th>&nbsp;" : "");
foreach ($row as $key => $val) {
echo "<th>$key" . doc_link("show-processlist.html#processlist_" . strtolower($key));
echo "<th>$key" . doc_link(array(
'sql' => "show-processlist.html#processlist_" . strtolower($key),
'pgsql' => "monitoring-stats.html#PG-STAT-ACTIVITY-VIEW",
'oracle' => "../b14237/dynviews_2088.htm",
));
}
echo "</thead>\n";
}