|
1 | 1 | <?php $this->load->view("partial/header"); ?> |
2 | | -<div id="page_title" style="margin-bottom:8px;"><?php echo $this->lang->line('reports_report_input'); ?></div> |
| 2 | +<h1><?php echo $this->lang->line('reports_report_input'); ?></h1> |
| 3 | +<hr> |
3 | 4 | <?php |
4 | 5 | if(isset($error)) |
5 | 6 | { |
|
9 | 10 | <?php echo form_label($this->lang->line('reports_date_range'), 'report_date_range_label', array('class'=>'required')); ?> |
10 | 11 | <div id='report_date_range_simple'> |
11 | 12 | <input type="radio" name="report_type" id="simple_radio" value='simple' checked='checked'/> |
12 | | - <?php echo form_dropdown('report_date_range_simple',$report_date_range_simple, '', 'id="report_date_range_simple"'); ?> |
| 13 | + <?php echo form_dropdown('report_date_range_simple',$report_date_range_simple, '', 'id="report_date_range_simple" class="selectpicker" data-width="auto"'); ?> |
13 | 14 | </div> |
14 | 15 |
|
15 | 16 | <div id='report_date_range_complex'> |
16 | 17 | <input type="radio" name="report_type" id="complex_radio" value='complex' /> |
17 | | - <?php echo form_dropdown('start_month',$months, $selected_month, 'id="start_month"'); ?> |
18 | | - <?php echo form_dropdown('start_day',$days, $selected_day, 'id="start_day"'); ?> |
19 | | - <?php echo form_dropdown('start_year',$years, $selected_year, 'id="start_year"'); ?> |
| 18 | + <?php echo form_dropdown('start_month',$months, $selected_month, 'id="start_month" class="selectpicker" data-width="auto"'); ?> |
| 19 | + <?php echo form_dropdown('start_day',$days, $selected_day, 'id="start_day" class="selectpicker" data-width="auto"'); ?> |
| 20 | + <?php echo form_dropdown('start_year',$years, $selected_year, 'id="start_year" class="selectpicker" data-width="auto"'); ?> |
20 | 21 | - |
21 | | - <?php echo form_dropdown('end_month',$months, $selected_month, 'id="end_month"'); ?> |
22 | | - <?php echo form_dropdown('end_day',$days, $selected_day, 'id="end_day"'); ?> |
23 | | - <?php echo form_dropdown('end_year',$years, $selected_year, 'id="end_year"'); ?> |
| 22 | + <?php echo form_dropdown('end_month',$months, $selected_month, 'id="end_month" class="selectpicker" data-width="auto"'); ?> |
| 23 | + <?php echo form_dropdown('end_day',$days, $selected_day, 'id="end_day" class="selectpicker" data-width="auto"'); ?> |
| 24 | + <?php echo form_dropdown('end_year',$years, $selected_year, 'id="end_year" class="selectpicker" data-width="auto"'); ?> |
24 | 25 | </div> |
25 | 26 |
|
26 | 27 | <?php echo form_label($this->lang->line('reports_sale_type'), 'reports_sale_type_label', array('class'=>'required')); ?> |
27 | 28 | <div id='report_sale_type'> |
28 | | - <?php echo form_dropdown('sale_type',array('all' => $this->lang->line('reports_all'), 'sales' => $this->lang->line('reports_sales'), 'returns' => $this->lang->line('reports_returns')), 'all', 'id="sale_type"'); ?> |
| 29 | + <?php echo form_dropdown('sale_type',array('all' => $this->lang->line('reports_all'), 'sales' => $this->lang->line('reports_sales'), 'returns' => $this->lang->line('reports_returns')), 'all', 'id="sale_type" class="selectpicker" data-width="auto"'); ?> |
29 | 30 | </div> |
30 | 31 | <?php |
31 | 32 | echo form_button(array( |
32 | 33 | 'name'=>'generate_report', |
33 | 34 | 'id'=>'generate_report', |
34 | 35 | 'content'=>$this->lang->line('common_submit'), |
35 | | - 'class'=>'submit_button') |
| 36 | + 'class'=>'btn btn-primary submit_button') |
36 | 37 | ); |
37 | 38 | ?> |
38 | 39 |
|
|
41 | 42 | <script type="text/javascript" language="javascript"> |
42 | 43 | $(document).ready(function() |
43 | 44 | { |
| 45 | + $('.selectpicker').selectpicker(); |
| 46 | + |
44 | 47 | $("#generate_report").click(function() |
45 | 48 | { |
46 | 49 | var sale_type = $("#sale_type").val(); |
|
0 commit comments