histogram: Make histograms crash less
[ninja.git] / application / views / schedule / new_schedule.php
blobf7bee7c38b24a544657c924ae2901db376310afb
1 <?php defined('SYSPATH') OR die('No direct access allowed.'); ?>
3 <h1><?php echo _('New Schedule'); ?></h1>
4 <hr />
6 <div id="new_schedule_area">
7 <form action="schedule/schedule" id="new_schedule_report_form">
9 <div class="left width-50">
10 <label for="type"><?php echo help::render('report-type-save', 'reports').' '._('Select report type') ?></label><br />
11 <?php echo form::dropdown(array('name' => 'type'), $defined_report_types); ?><br />
12 <?php if (!empty($available_schedule_periods)) { ?>
13 <label for="period"><?php echo help::render('interval', 'reports').' '._('Report interval') ?></label><br />
14 <select name="period" id="period">
15 <?php foreach ($available_schedule_periods as $id => $period) { ?>
16 <option value="<?php echo $id ?>"><?php echo $period ?></option>
17 <?php } ?>
18 </select><br />
19 <?php } ?>
20 <label for="saved_report_id"><?php echo help::render('select-report', 'reports').' '._('Select report') ?></label><br />
21 <select name="saved_report_id" id="saved_report_id">
22 <option value=""> - <?php echo _('Select saved report') ?> - </option>
23 </select><br />
24 <label for="recipients"><?php echo help::render('recipents', 'reports').' '._('Recipients') ?></label><br /><input type="text" class="schedule" name="recipients" id="recipients" value="" />
25 </div>
27 <div class="right width-50">
28 <label for="filename"><?php echo help::render('filename', 'reports').' '._('Filename (defaults to pdf, may end in .csv)') ?></label><br /><input type="text" class="schedule" name="filename" id="filename" value="" /><br />
29 <label for="description"><?php echo help::render('description', 'reports').' '._('Description') ?></label><br /><textarea cols="31" rows="4" id="description" name="description"></textarea><br />
30 <label for="local_persistent_filepath"><?php echo help::render('local_persistent_filepath', 'reports').' '._("Save report in this local folder") ?></label><br /><input type="text" class="schedule" name="local_persistent_filepath" id="local_persistent_filepath" value="" /><br />
31 <label for="attach_description"><?php echo help::render('attach_description', 'reports').' '._("Attach description") ?></label><br />
32 <select name="attach_description" id="attach_description">
33 <option value="0">No</option>
34 <option value="1">Yes</option>
35 </select>
36 </div>
38 <div class="clear"></div>
39 <span>
40 <input type="submit" class="button save" value="<?php echo _('Save') ?>" />
41 <input type="reset" class="button clear" value="<?php echo _('Clear') ?>" />
42 </span>
43 </form>
44 </div>