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(
|
|
|
|
'contact_name' => $contact->contact_name
|
|
|
|
));
|
|
|
|
}
|
|
|
|
|
|
|
|
printf(
|
|
|
|
"<tr><th>%s</th><td>%s %s</td></tr>\n",
|
|
|
|
$this->translate('Contacts'),
|
|
|
|
$this->img('img/icons/user_petrol.png'),
|
|
|
|
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-03-06 19:57:21 +01:00
|
|
|
array('contactgroup_name' => $contactgroup->contactgroup_name)
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
printf(
|
|
|
|
"<tr><th>%s</th><td>%s %s</td></tr>\n",
|
|
|
|
$this->translate('Contactgroups'),
|
|
|
|
$this->img('img/icons/user_petrol.png'),
|
|
|
|
implode(', ', $list)
|
|
|
|
);
|
|
|
|
|
|
|
|
}
|
2013-10-15 12:48:33 +02:00
|
|
|
|