Merge branch 'maint/7.0'
[ninja.git] / modules / reports / views / histogram / options.php
blobf7a6e5d8b31838fa9a0a9800339e7ea9db42ce34
1 <div class="report_block">
2 <h2><?php echo _('Report Mode'); ?></h2>
3 <hr />
4 <input type="hidden" name="type" value="<?php echo $type ?>" />
5 <?php echo new View('reports/objselector'); ?>
6 </div>
8 <?php
9 if($options['report_id']) { ?>
10 <input type="hidden" name="report_id" value="<?php echo $options['report_id'] ?>" />
11 <?php } ?>
13 <div class="report-block">
14 <h2><?php echo _('Report Settings'); ?></h2>
15 <hr />
16 <table id="report" class="setup-tbl">
17 <tr>
18 <td>
19 <label for="report_period"><?php echo _('Reporting period') ?></label><br />
20 <?php echo form::dropdown(array('name' => 'report_period', 'onchange' => 'show_calendar(this.value);'), $options->get_alternatives('report_period'), $options['report_period']); ?>
21 </td>
22 <td style="width: 18px">&nbsp;</td>
23 <td>
24 <label for="breakdown"><?php echo _('Statistics breakdown')?></label><br />
25 <?php echo form::dropdown('breakdown', $options->get_alternatives('breakdown'), $options['breakdown']) ?>
26 </td>
27 </tr>
28 <tr id="custom_time" style="display: none; clear: both;">
29 <td>
30 <label for="cal_start"><?php echo help::render('start-date').' '._('Start date') ?> (<em><?php echo _('Click calendar to select date') ?></em>)</label><br />
31 <input type="text" id="cal_start" name="cal_start" maxlength="10" autocomplete="off" value="<?php echo $options->get_date('start_time') ?>" class="date-pick datepick-start" title="<?php echo _('Date Start selector') ?>" />
32 <input type="text" maxlength="5" name="time_start" id="time_start" class="time_start" value="<?php echo $options->get_time('start_time') ?>">
33 </td>
34 <td style="width: 18px">&nbsp;</td>
35 <td>
36 <label for="cal_end"><?php echo help::render('end-date').' '._('End date') ?> (<em><?php echo _('Click calendar to select date') ?></em>)</label><br />
37 <input type="text" id="cal_end" name="cal_end" maxlength="10" autocomplete="off" value="<?php echo $options->get_date('end_time') ?>" class="date-pick datepick-end" title="<?php echo _('Date End selector') ?>" />
38 <input type="text" maxlength="5" name="time_end" id="time_end" class="time_end" value="<?php echo $options->get_time('end_time') ?>">
39 </td>
40 </tr>
41 <tr>
42 <td>
43 <label for="state_types"><?php echo _('State types to graph') ?></label><br />
44 <?php echo form::dropdown('state_types', $options->get_alternatives('state_types'), $options['state_types']) ?>
45 </td>
46 <td style="width: 18px">&nbsp;</td>
47 <td>
48 <?php echo _('Events to graph') ?><br />
49 <div data-show-for="hosts hostgroups">
50 <?php echo form::dropdown('host_states', $options->get_alternatives('host_states'), $options['host_states']); ?>
51 </div>
52 <div data-show-for="services servicegroups">
53 <?php echo form::dropdown('service_states', $options->get_alternatives('service_states'), $options['service_states']); ?>
54 </div>
55 </td>
56 </tr>
57 <tr>
58 <td>
59 <?php echo form::checkbox('newstatesonly', 1, $options['newstatesonly']); ?>
60 <label for="newstatesonly"><?php echo _('Ignore repeated states') ?></label>
61 </td>
62 </tr>
63 <tr>
64 <td>
65 <br />
66 <?php echo help::render('skin') ?>
67 <label for="skin" id="skin_lbl"><?php echo _('Skin') ?></label>
68 </td>
69 <td></td>
70 <td>
71 <?php echo help::render('description') ?>
72 <label for="description" id="descr_lbl"><?php echo _('Description') ?></label>
73 </td>
74 </tr>
75 <tr>
76 <td style="vertical-align: top;">
77 <?php echo form::dropdown(array('name' => 'skin'), ninja::get_skins(), $options['skin']); ?>
78 </td>
79 <td></td>
80 <td>
81 <?php echo form::textarea('description', $options['description']); ?>
82 </td>
83 </tr>
85 </table>
86 </div>
88 <div class="setup-table">
89 <input id="reports_submit_button" type="submit" name="" value="<?php echo _('Show report') ?>" class="button create-report" />
90 </div>