reports: Fix links from avail reports
[ninja.git] / application / views / histogram / setup.php
blob7294fa8478ebebcb676caaeeb539c875e4aba5d6
1 <?php defined('SYSPATH') OR die('No direct access allowed.'); ?>
2 <div id="response"></div>
3 <div id="progress"></div>
5 <style>
6 table td {
7 border: none;
9 </style>
11 <div>
13 <h1><?php echo _('Event History Report') ?></h1>
15 <div id="histogram_report">
16 <?php echo form::open('histogram/generate', array('id' => 'histogram_form')); ?>
17 <?php echo new View('reports/objselector'); ?>
19 <div class="setup-table" >
20 <table>
21 <tr>
22 <td>
23 <?php echo _('Report Period') ?><br />
24 <?php echo form::dropdown(array('name' => 'report_period'), $options->get_alternatives('report_period'), $options['report_period']); ?>
25 </td>
26 <td style="width: 18px">&nbsp;</td>
27 <td>
28 <?php echo _('State Types To Graph') ?><br />
29 <?php echo form::dropdown('state_types', $options->get_alternatives('state_types')) ?>
30 </td>
32 </tr>
33 <tr id="custom_time" style="display: none; clear: both;">
34 <td><?php echo help::render('start-date').' '._('Start date') ?> (<em id="start_time_tmp"><?php echo _('Click calendar to select date') ?></em>)<br />
35 <input type="text" id="cal_start" name="cal_start" maxlength="10" autocomplete="off" class="date-pick datepick-start" title="<?php echo _('Date Start selector') ?>" />
36 <input type="hidden" name="start_time" id="start_time" value=""/>
37 <input type="text" maxlength="5" name="time_start" id="time_start" class="time_start" value="08:00">
38 </td>
39 <td>&nbsp;</td>
40 <td><?php echo help::render('end-date').' '._('End date') ?> (<em id="end_time_tmp"><?php echo _('Click calendar to select date') ?></em>)<br />
41 <input type="text" id="cal_end" name="cal_end" maxlength="10" autocomplete="off" class="date-pick datepick-end" title="<?php echo _('Date End selector') ?>" />
42 <input type="hidden" name="end_time" id="end_time" value="" />
43 <input type="text" maxlength="5" name="time_end" id="time_end" class="time_end" value="09:00">
44 </td>
45 </tr>
46 <tr>
47 <td>
48 <?php echo _('Statistics Breakdown') ?><br />
49 <?php echo form::dropdown('breakdown', $options->get_alternatives('breakdown'), $options['breakdown']) ?>
50 </td>
51 <td style="width: 18px">&nbsp;</td>
52 <td>
53 <div data-show-for="hosts hostgroups">
54 <?php echo _('Events To Graph') ?><br />
55 <?php echo form::dropdown('host_states', $options->get_alternatives('host_states')) ?>
56 </div>
57 <div data-show-for="services servicegroups">
58 <?php echo _('Events To Graph') ?><br />
59 <?php echo form::dropdown('service_states', $options->get_alternatives('service_states')) ?>
60 </div>
61 </td>
62 </tr>
63 <tr>
64 <td colspan="2">
65 <?php echo form::checkbox('newstatesonly', 1, $options['newstatesonly']); ?>
66 <?php echo _('Ignore Repeated States') ?>
67 </td>
68 </tr>
69 <tr>
70 <td colspan="3"><input id="reports_submit_button" type="submit" name="" value="<?php echo _('Create report') ?>" class="button create-report" /></td>
71 </tr>
72 </table>
73 </div>
74 <?php echo form::close(); ?>
75 </div>