2014-07-18 11:48:26 +02:00
|
|
|
<?php
|
|
|
|
$contactHelper = $this->getHelper('ContactFlags');
|
|
|
|
?>
|
|
|
|
<div style="margin-top: 0.5em;">
|
2014-08-27 16:13:25 +02:00
|
|
|
<?php if ($contact): ?>
|
2014-07-18 11:48:26 +02:00
|
|
|
<table style="border-spacing: 0.25em; border-collapse: separate;">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th colspan="2" style="text-align: left">
|
2014-07-23 12:41:05 +02:00
|
|
|
<?= $this->escape($contact->contact_name) ?><span style="font-weight: normal;"> (<?=
|
|
|
|
$this->escape($contact->contact_alias)
|
2014-07-18 11:48:26 +02:00
|
|
|
?>)</span>
|
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td><?= t('Email') ?></td>
|
|
|
|
<td><?php printf(
|
|
|
|
'<a href="mailto:%1$s">%1$s</a>',
|
2014-07-23 12:41:05 +02:00
|
|
|
$this->escape($contact->contact_email)
|
2014-07-18 11:48:26 +02:00
|
|
|
); ?></td>
|
|
|
|
</tr>
|
|
|
|
<?php if ($contact->contact_pager): ?>
|
|
|
|
<tr>
|
|
|
|
<td><?= t('Pager') ?></td>
|
2014-07-23 12:41:05 +02:00
|
|
|
<td><?= $this->escape($contact->contact_pager) ?></td>
|
2014-07-18 11:48:26 +02:00
|
|
|
</tr>
|
|
|
|
<?php endif; ?>
|
|
|
|
<tr>
|
|
|
|
<td><?= t('Flags (service)') ?></td>
|
2014-07-23 12:41:05 +02:00
|
|
|
<td><?= $this->escape($contactHelper->contactFlags($contact, 'service')) ?></td>
|
2014-07-18 11:48:26 +02:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><?= t('Flags (host)') ?></td>
|
2014-07-23 12:41:05 +02:00
|
|
|
<td><?= $this->escape($contactHelper->contactFlags($contact, 'host')) ?></td>
|
2014-07-18 11:48:26 +02:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><?= t('Service notification period') ?></td>
|
2014-07-23 12:41:05 +02:00
|
|
|
<td><?= $this->escape($contact->contact_notify_service_timeperiod) ?></td>
|
2014-07-18 11:48:26 +02:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><?= t('Host notification period') ?></td>
|
2014-07-23 12:41:05 +02:00
|
|
|
<td><?= $this->escape($contact->contact_notify_host_timeperiod) ?></td>
|
2014-07-18 11:48:26 +02:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2014-08-27 16:13:25 +02:00
|
|
|
|
|
|
|
<h4><?= $this->translate('Commands'); ?>:</h4>
|
|
|
|
<ul>
|
|
|
|
<?php foreach ($commands as $command): ?>
|
|
|
|
<li><?= $command->command_name; ?></li>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<?php else: ?>
|
|
|
|
<?= $this->translate('No such contact'); ?>: <?= $contactName; ?>
|
|
|
|
<?php endif; ?>
|
2014-07-18 11:48:26 +02:00
|
|
|
</div>
|