1 <div
class="report_block">
2 <h2
><?php
echo _('Report Mode'); ?
></h2
>
4 <input type
="hidden" name
="type" value
="<?php echo $type ?>" />
5 <?php
echo new View('reports/objselector'); ?
>
9 if($options['report_id']) { ?
>
10 <input type
="hidden" name
="report_id" value
="<?php echo $options['report_id'] ?>" />
13 <div
class="report-block">
14 <h2
><?php
echo _('Report Settings'); ?
></h2
>
16 <table id
="report" class="setup-tbl">
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']); ?
>
22 <td style
="width: 18px"> 
;</td
>
24 <label
for="breakdown"><?php
echo _('Statistics breakdown')?
></label
><br
/>
25 <?php
echo form
::dropdown('breakdown', $options->get_alternatives('breakdown'), $options['breakdown']) ?
>
28 <tr id
="custom_time" style
="display: none; clear: both;">
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') ?>">
34 <td style
="width: 18px"> 
;</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') ?>">
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']) ?
>
46 <td style
="width: 18px"> 
;</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']); ?
>
52 <div data
-show
-for="services servicegroups">
53 <?php
echo form
::dropdown('service_states', $options->get_alternatives('service_states'), $options['service_states']); ?
>
59 <?php
echo form
::checkbox('newstatesonly', 1, $options['newstatesonly']); ?
>
60 <label
for="newstatesonly"><?php
echo _('Ignore repeated states') ?
></label
>
66 <?php
echo help
::render('skin') ?
>
67 <label
for="skin" id
="skin_lbl"><?php
echo _('Skin') ?
></label
>
71 <?php
echo help
::render('description') ?
>
72 <label
for="description" id
="descr_lbl"><?php
echo _('Description') ?
></label
>
76 <td style
="vertical-align: top;">
77 <?php
echo form
::dropdown(array('name' => 'skin'), ninja
::get_skins(), $options['skin']); ?
>
81 <?php
echo form
::textarea('description', $options['description']); ?
>
88 <div
class="setup-table">
89 <input id
="reports_submit_button" type
="submit" name
="" value
="<?php echo _('Show report') ?>" class="button create-report" />