'; echo '
'; echo ''; echo ''; echo ''; foreach( dbFetchRows('SELECT alert_map.target,alert_map.id,alert_rules.name FROM alert_map,alert_rules WHERE alert_map.rule=alert_rules.id ORDER BY alert_map.rule ASC') as $link ) { if( $link['target'][0] == "g" ) { $link['target'] = substr($link['target'],1); $link['target'] = ''.ucfirst(dbFetchCell('SELECT name FROM device_groups WHERE id = ?',array($link['target']))).''; } elseif( is_numeric($link['target']) ) { $link['target'] = ''.dbFetchCell('SELECT hostname FROM devices WHERE device_id = ?',array($link['target'])).''; } echo ''; echo ''; echo ''; echo ''; echo ''; } echo '
RuleTargetActions
'.$link['name'].''.$link['target'].''; echo " "; echo ""; echo '
'; echo " "; ?>