2013-07-02 16:00:41 +02:00
|
|
|
<?php
|
2013-10-15 12:48:33 +02:00
|
|
|
|
2014-03-06 19:57:21 +01:00
|
|
|
if (! empty($object->contacts)) {
|
2013-10-15 12:48:33 +02:00
|
|
|
|
2014-03-06 19:57:21 +01:00
|
|
|
$list = array();
|
|
|
|
foreach ($object->contacts as $contact) {
|
|
|
|
$list[] = $this->qlink($contact->contact_alias, 'monitoring/show/contact', array(
|
2014-10-07 13:21:28 +02:00
|
|
|
'contact' => $contact->contact_name
|
2014-03-06 19:57:21 +01:00
|
|
|
));
|
|
|
|
}
|
|
|
|
|
|
|
|
printf(
|
|
|
|
"<tr><th>%s</th><td>%s %s</td></tr>\n",
|
|
|
|
$this->translate('Contacts'),
|
2014-11-13 20:08:58 +01:00
|
|
|
$this->icon('user'),
|
2014-03-06 19:57:21 +01:00
|
|
|
implode(', ', $list)
|
|
|
|
);
|
2013-06-27 10:14:41 +02:00
|
|
|
|
2013-09-24 15:26:10 +02:00
|
|
|
}
|
2013-10-15 12:48:33 +02:00
|
|
|
|
2014-03-06 19:57:21 +01:00
|
|
|
if (! empty($object->contactgroups)) {
|
|
|
|
$list = array();
|
|
|
|
foreach ($object->contactgroups as $contactgroup) {
|
|
|
|
$list[] = $this->qlink(
|
|
|
|
$contactgroup->contactgroup_alias,
|
2014-03-09 11:26:57 +01:00
|
|
|
'monitoring/list/contactgroups',
|
2014-10-07 13:21:28 +02:00
|
|
|
array('contactgroup' => $contactgroup->contactgroup_name)
|
2014-03-06 19:57:21 +01:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
printf(
|
|
|
|
"<tr><th>%s</th><td>%s %s</td></tr>\n",
|
|
|
|
$this->translate('Contactgroups'),
|
2014-11-13 20:08:58 +01:00
|
|
|
$this->icon('users'),
|
2014-03-06 19:57:21 +01:00
|
|
|
implode(', ', $list)
|
|
|
|
);
|
|
|
|
|
|
|
|
}
|
2013-10-15 12:48:33 +02:00
|
|
|
|