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) {
|
2015-02-23 17:27:27 +01:00
|
|
|
$list[] = $this->qlink(
|
2015-04-10 12:23:35 +02:00
|
|
|
$contact->contact_alias,
|
2015-02-23 17:27:27 +01:00
|
|
|
'monitoring/show/contact',
|
2015-04-10 09:39:39 +02:00
|
|
|
array('contact_name' => $contact->contact_name),
|
2015-04-10 12:23:35 +02:00
|
|
|
array('title' => sprintf($this->translate('Show detailed information about %s'), $contact->contact_alias))
|
2015-02-23 17:27:27 +01:00
|
|
|
);
|
2014-03-06 19:57:21 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
printf(
|
|
|
|
"<tr><th>%s</th><td>%s %s</td></tr>\n",
|
|
|
|
$this->translate('Contacts'),
|
2015-02-16 10:52:42 +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',
|
2015-04-10 12:14:47 +02:00
|
|
|
array('contactgroup_name' => $contactgroup->contactgroup_name),
|
2015-02-23 17:27:27 +01:00
|
|
|
array('title' => sprintf($this->translate('List contacts in contact-group "%s"'), $contactgroup->contactgroup_alias))
|
2014-03-06 19:57:21 +01:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
printf(
|
|
|
|
"<tr><th>%s</th><td>%s %s</td></tr>\n",
|
|
|
|
$this->translate('Contactgroups'),
|
2015-02-16 10:52:42 +01:00
|
|
|
$this->icon('users'),
|
2014-03-06 19:57:21 +01:00
|
|
|
implode(', ', $list)
|
|
|
|
);
|
|
|
|
|
|
|
|
}
|
2013-10-15 12:48:33 +02:00
|
|
|
|