Merge branch 'maint/7.0'
[ninja.git] / modules / reports / views / histogram / histogram.php
blob1b2b73162328e14227b7e0f3eba4ab4a5f88880e
1 <?php defined('SYSPATH') OR die('No direct access allowed.'); ?>
2 <div class="report_block">
4 <table id="histogram_holder">
5 <tr>
6 <td><div id="histogram_graph" style="width:800px;height:300px; margin-bottom: 15px"></div></td>
8 <td style="vertical-align: bottom; padding-bottom: 30px; width: 100%;">
9 <p id="choices" style="padding-left:6px; margin-bottom: 7px;"><?php echo _('Show') ?>:</p>
10 <div id="overviewLegend" style=" width: 40px"></div>
11 </td>
12 </tr>
13 <tr>
14 <td colspan="2">
15 <table id="histogram_overview">
16 <tr>
17 <th><?php echo _('EVENT TYPE') ?></th>
18 <th><?php echo _('MIN') ?></th>
19 <th><?php echo _('MAX') ?></th>
20 <th><?php echo _('SUM') ?></th>
21 <th><?php echo _('AVG') ?></th>
22 </tr>
23 <?php $i=0; foreach ($available_states as $state) { $i++;?>
24 <tr class="<?php echo ($i%2 == 0) ? 'odd' : 'even'; ?>">
25 <td><?php echo $states[$state] ?></td>
26 <td><?php echo $min[$state] ?></td>
27 <td><?php echo $max[$state] ?></td>
28 <td><?php echo $sum[$state] ?></td>
29 <td><?php echo $avg[$state] ?></td>
30 </tr>
31 <?php } ?>
32 </table>
34 </td>
35 </tr>
36 </table>
37 </div>
38 <div class="report_block">
39 <h3><?php echo (substr($options['report_type'], 0, 4) == 'host') ? _("Included hosts") : _("Included services"); ?></h3>
40 <table>
41 <?php
42 $i = 0;
43 foreach ($options->get_report_members() as $object) {
44 echo '<tr class="'.($i++ % 2 ? 'even' : 'odd').'"><td>'.$object.'</td></tr>';
45 } ?>
46 </table>
47 </div>