Ticket 3462: Provided snmp help/std help based on referer
This commit is contained in:
parent
fc97600d4a
commit
8b06931715
|
@ -110,7 +110,14 @@ if (is_ajax ()) {
|
||||||
}
|
}
|
||||||
//If the field is the number one, print the help message
|
//If the field is the number one, print the help message
|
||||||
if ($i == 1) {
|
if ($i == 1) {
|
||||||
$fdesc .= ui_print_help_icon ('alert_config', true);
|
// If our context is snmpconsole, show snmp_alert helps
|
||||||
|
if ((isset ($_SERVER["HTTP_REFERER"])) && ( preg_match ("/snmp_alert/", $_SERVER["HTTP_REFERER"]) > 0 )){
|
||||||
|
$fdesc .= ui_print_help_icon ('snmp_alert_field1',true);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$fdesc .= ui_print_help_icon ('alert_config', true);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in New Issue