histogram: Make histograms crash less
[ninja.git] / application / views / extinfo / groups.php
blobbac05e828488f60a23a73347a216e4a7ab777eb9
1 <?php defined('SYSPATH') OR die('No direct access allowed.');
2 $notes_url_target = config::get('nagdefault.notes_url_target', '*');
3 $action_url_target = config::get('nagdefault.action_url_target', '*');
4 ?>
5 <div id="page_links">
6 <ul>
7 <?php
8 if (isset($page_links)) {
9 foreach ($page_links as $label => $link) {
11 <li><?php echo html::anchor($link, $label) ?></li>
12 <?php
16 </ul>
17 </div>
18 <div class="clear"> </div>
20 <?php if (!empty($action_url)) { ?>
21 <a href="<?php echo $action_url ?>" style="border: 0px" target="<?php echo $action_url_target ?>">
22 <?php echo html::image($this->add_path('icons/16x16/host-actions.png'),array('alt' => _('Perform extra host actions'),'title' => _('Perform extra host actions')))?></a>
23 <br />
24 <strong><?php echo _('Extra actions') ?></strong>
25 <?php } ?>
26 <br />
28 <?php if (!empty($notes_url)) { ?>
29 <a href="<?php echo $notes_url ?>" style="border: 0px" target="<?php echo $notes_url_target ?>">
30 <?php echo html::image($this->add_path('icons/16x16/host-notes.png'),array('alt' => _('View extra host notes'),'title' => _('View extra host notes')))?></a>
31 <br />
32 <strong><?php echo _('Extra notes') ?></strong>
33 <?php }
35 if (!empty($notes)) {?>
36 <br /><strong><?php echo _('Notes') ?></strong>: <?php echo $notes;
40 $group_attribute = strtolower($grouptype) . '_name';
44 <div>
45 <table class="ext">
46 <caption><?php echo ucfirst($label_grouptype) ?> <?php echo _('Commands').' '._('for').': '.html::specialchars($group_alias).' ('.$groupname.')'; ?>
47 <?php if (nacoma::link()===true)
48 echo nacoma::link('configuration/configure/'.$grouptype.'/'.urlencode($groupname), 'icons/16x16/nacoma.png', sprintf(_('Configure this %sgroup'), $grouptype));?>
49 </caption>
50 <tr>
51 <td class="status icon">
52 <?php echo html::image($this->add_path('icons/16x16/scheduled-downtime.png'), array('alt' => _('Schedule downtime for all hosts in this').' '.$label_grouptype, 'title' => _('Schedule downtime for all hosts in this').' '.$label_grouptype)); ?>
53 </td>
54 <td>
55 <?php echo html::anchor('command/submit?cmd_typ='.$cmd_schedule_downtime_hosts.'&'.$group_attribute.'='.$groupname, _('Schedule downtime for all hosts in this')." ".$label_grouptype); ?>
56 </td>
57 </tr>
58 <tr>
59 <td class="status icon">
60 <?php echo html::image($this->add_path('icons/16x16/scheduled-downtime.png'), array('alt' => _('Schedule downtime for all services in this').' '.$label_grouptype, 'title' => _('Schedule downtime for all services in this').' '.$label_grouptype)); ?>
61 </td>
62 <td>
63 <?php echo html::anchor('command/submit?cmd_typ='.$cmd_schedule_downtime_services.'&'.$group_attribute.'='.$groupname, _('Schedule downtime for all services in this')." ".$label_grouptype); ?>
64 </td>
65 </tr>
66 <tr>
67 <td class="status icon">
68 <?php echo html::image($this->add_path('icons/16x16/notify.png'), array('alt' => _('Enable').' '._('notifications for all hosts in this').' '.$label_grouptype, 'title' => _('Enable').' '._('notifications for all hosts in this').' '.$label_grouptype)); ?>
69 </td>
70 <td>
71 <?php echo html::anchor('command/submit?cmd_typ='.$cmd_enable_notifications_hosts.'&'.$group_attribute.'='.$groupname, _('Enable')." "._('notifications for all hosts in this')." ".$label_grouptype); ?>
72 </td>
73 </tr>
74 <tr>
75 <td class="status icon">
76 <?php echo html::image($this->add_path('icons/16x16/notify-disabled.png'), array('alt' => _('Disable').' '._('notifications for all hosts in this').' '.$label_grouptype, 'title' => _('Disable').' '._('notifications for all hosts in this').' '.$label_grouptype)); ?>
77 </td>
78 <td>
79 <?php echo html::anchor('command/submit?cmd_typ='.$cmd_disable_notifications_hosts.'&'.$group_attribute.'='.$groupname, _('Disable')." "._('notifications for all hosts in this')." ".$label_grouptype); ?>
80 </td>
81 </tr>
82 <tr>
83 <td class="status icon">
84 <?php echo html::image($this->add_path('icons/16x16/notify.png'), array('alt' => _('Enable').' '._('notifications for all services in this').' '.$label_grouptype, 'title' => _('Enable').' '._('notifications for all services in this').' '.$label_grouptype)); ?>
85 </td>
86 <td>
87 <?php echo html::anchor('command/submit?cmd_typ='.$cmd_enable_notifications_services.'&'.$group_attribute.'='.$groupname, _('Enable')." "._('notifications for all services in this')." ".$label_grouptype); ?>
88 </td>
89 </tr>
90 <tr>
91 <td class="status icon">
92 <?php echo html::image($this->add_path('icons/16x16/notify-disabled.png'), array('alt' => _('Disable').' '._('notifications for all services in this').' '.$label_grouptype, 'title' => _('Disable').' '._('notifications for all services in this').' '.$label_grouptype)); ?>
93 </td>
94 <td>
95 <?php echo html::anchor('command/submit?cmd_typ='.$cmd_disable_notifications_services.'&'.$group_attribute.'='.$groupname, _('Disable').' '._('notifications for all services in this')." ".$label_grouptype); ?>
96 </td>
97 </tr>
98 <tr>
99 <td class="status icon">
100 <?php echo html::image($this->add_path('icons/16x16/enabled.png'), array('alt' => _('Enable').' '._('active checks of all hosts in this').' '.$label_grouptype, 'title' => _('Enable').' '._('active checks of all hosts in this').' '.$label_grouptype)); ?>
101 </td>
102 <td>
103 <?php echo html::anchor('command/submit?cmd_typ='.$cmd_enable_active_host_checks.'&'.$group_attribute.'='.$groupname, _('Enable')." "._('active checks of all hosts in this')." ".$label_grouptype); ?>
104 </td>
105 </tr>
106 <tr>
107 <td class="status icon">
108 <?php echo html::image($this->add_path('icons/16x16/disabled.png'), array('alt' => _('Disable').' '._('active checks of all hosts in this').' '.$label_grouptype, 'title' => _('Disable').' '._('active checks of all hosts in this').' '.$label_grouptype)); ?>
109 </td>
110 <td>
111 <?php echo html::anchor('command/submit?cmd_typ='.$cmd_disable_active_host_checks.'&'.$group_attribute.'='.$groupname, _('Disable')." "._('active checks of all hosts in this')." ".$label_grouptype); ?>
112 </td>
113 </tr>
114 <tr>
115 <td class="status icon">
116 <?php echo html::image($this->add_path('icons/16x16/enabled.png'), array('alt' => _('Enable').' '._('active checks of all services in this').' '.$label_grouptype, 'title' => _('Enable').' '._('active checks of all services in this').' '.$label_grouptype)); ?>
117 </td>
118 <td>
119 <?php echo html::anchor('command/submit?cmd_typ='.$cmd_enable_active_svc_checks.'&'.$group_attribute.'='.$groupname, _('Enable')." "._('active checks of all services in this')." ".$label_grouptype); ?>
120 </td>
121 </tr>
122 <tr>
123 <td class="status icon">
124 <?php echo html::image($this->add_path('icons/16x16/disabled.png'), array('alt' => _('Disable').' '._('active checks of all services in this').' '.$label_grouptype, 'title' => _('Disable').' '._('active checks of all services in this').' '.$label_grouptype)); ?>
125 </td>
126 <td>
127 <?php echo html::anchor('command/submit?cmd_typ='.$cmd_disable_active_svc_checks.'&'.$group_attribute.'='.$groupname, _('Disable')." "._('active checks of all services in this')." ".$label_grouptype); ?>
128 </td>
129 </tr>
130 </table>
131 </div>