diff --git a/application/language/de-CH/common_lang.php b/application/language/de-CH/common_lang.php index 6f5022861..9c92e2d6f 100644 --- a/application/language/de-CH/common_lang.php +++ b/application/language/de-CH/common_lang.php @@ -56,51 +56,7 @@ $lang["common_import_full_path"] = "Voller Dateipfad zum Excel File notwendig"; $lang["common_import_select_file"] = ""; $lang["common_import_change_file"] = ""; $lang["common_import_remove_file"] = ""; +$lang["common_export_excel"] = "Excel Export"; +$lang["common_export_excel_yes"] = "Yes"; +$lang["common_export_excel_no"] = "No"; $lang["common_required"] = "Erforderlich"; -$lang["common_days_sunday"] = "Sonntag"; -$lang["common_days_monday"] = "Montag"; -$lang["common_days_tueday"] = "Dienstag"; -$lang["common_days_wednesday"] = "Mittwoch"; -$lang["common_days_thursday"] = "Donnerstag"; -$lang["common_days_friday"] = "Freitag"; -$lang["common_days_saturday"] = "Samstag"; -$lang["common_daysshort_sunday"] = "Son"; -$lang["common_daysshort_monday"] = "Mon"; -$lang["common_daysshort_tueday"] = "Die"; -$lang["common_daysshort_wednesday"] = "Mit"; -$lang["common_daysshort_thursday"] = "Don"; -$lang["common_daysshort_friday"] = "Fre"; -$lang["common_daysshort_saturday"] = "Sam"; -$lang["common_daysmin_sunday"] = "So"; -$lang["common_daysmin_monday"] = "Mo"; -$lang["common_daysmin_tueday"] = "Di"; -$lang["common_daysmin_wednesday"] = "Mi"; -$lang["common_daysmin_thursday"] = "Do"; -$lang["common_daysmin_friday"] = "Fr"; -$lang["common_daysmin_saturday"] = "Sa"; -$lang["common_months_january"] = "Januar"; -$lang["common_months_february"] = "Februar"; -$lang["common_months_march"] = "Mrz"; -$lang["common_months_april"] = "April"; -$lang["common_months_may"] = "Mai"; -$lang["common_months_june"] = "Juni"; -$lang["common_months_july"] = "Juli"; -$lang["common_months_august"] = "August"; -$lang["common_months_september"] = "September"; -$lang["common_months_october"] = "Oktober"; -$lang["common_months_november"] = "November"; -$lang["common_months_december"] = "Dezember"; -$lang["common_monthsshort_january"] = "Jan"; -$lang["common_monthsshort_february"] = "Feb"; -$lang["common_monthsshort_march"] = "Mr"; -$lang["common_monthsshort_april"] = "Apr"; -$lang["common_monthsshort_may"] = "Mai"; -$lang["common_monthsshort_june"] = "Jun"; -$lang["common_monthsshort_july"] = "Jul"; -$lang["common_monthsshort_august"] = "Aug"; -$lang["common_monthsshort_september"] = "Sep"; -$lang["common_monthsshort_october"] = "Okt"; -$lang["common_monthsshort_november"] = "Nov"; -$lang["common_monthsshort_december"] = "Dez"; -$lang["common_today"] = "Heute"; -$lang["common_weekstart"] = "1"; diff --git a/application/language/de-CH/datepicker_lang.php b/application/language/de-CH/datepicker_lang.php new file mode 100644 index 000000000..ddf39879e --- /dev/null +++ b/application/language/de-CH/datepicker_lang.php @@ -0,0 +1,49 @@ +config->item("language"); ?>'] = { - days: ["lang->line("common_days_sunday"); ?>", - "lang->line("common_days_monday"); ?>", - "lang->line("common_days_tueday"); ?>", - "lang->line("common_days_wednesday"); ?>", - "lang->line("common_days_thursday"); ?>", - "lang->line("common_days_friday"); ?>", - "lang->line("common_days_saturday"); ?>", - "lang->line("common_days_sunday"); ?>"], - daysShort: ["lang->line("common_daysshort_sunday"); ?>", - "lang->line("common_daysshort_monday"); ?>", - "lang->line("common_daysshort_tueday"); ?>", - "lang->line("common_daysshort_wednesday"); ?>", - "lang->line("common_daysshort_thursday"); ?>", - "lang->line("common_daysshort_friday"); ?>", - "lang->line("common_daysshort_saturday"); ?>", - "lang->line("common_daysshort_sunday"); ?>"], - daysMin: ["lang->line("common_daysmin_sunday"); ?>", - "lang->line("common_daysmin_monday"); ?>", - "lang->line("common_daysmin_tueday"); ?>", - "lang->line("common_daysmin_wednesday"); ?>", - "lang->line("common_daysmin_thursday"); ?>", - "lang->line("common_daysmin_friday"); ?>", - "lang->line("common_daysmin_saturday"); ?>", - "lang->line("common_daysmin_sunday"); ?>"], - months: ["lang->line("common_months_january"); ?>", - "lang->line("common_months_february"); ?>", - "lang->line("common_months_march"); ?>", - "lang->line("common_months_april"); ?>", - "lang->line("common_months_may"); ?>", - "lang->line("common_months_june"); ?>", - "lang->line("common_months_july"); ?>", - "lang->line("common_months_august"); ?>", - "lang->line("common_months_september"); ?>", - "lang->line("common_months_october"); ?>", - "lang->line("common_months_november"); ?>", - "lang->line("common_months_december"); ?>"], - monthsShort: ["lang->line("common_monthsshort_january"); ?>", - "lang->line("common_monthsshort_february"); ?>", - "lang->line("common_monthsshort_march"); ?>", - "lang->line("common_monthsshort_april"); ?>", - "lang->line("common_monthsshort_may"); ?>", - "lang->line("common_monthsshort_june"); ?>", - "lang->line("common_monthsshort_july"); ?>", - "lang->line("common_monthsshort_august"); ?>", - "lang->line("common_monthsshort_september"); ?>", - "lang->line("common_monthsshort_october"); ?>", - "lang->line("common_monthsshort_november"); ?>", - "lang->line("common_monthsshort_december"); ?>" + days: ["lang->line("datepicker_days_sunday"); ?>", + "lang->line("datepicker_days_monday"); ?>", + "lang->line("datepicker_days_tueday"); ?>", + "lang->line("datepicker_days_wednesday"); ?>", + "lang->line("datepicker_days_thursday"); ?>", + "lang->line("datepicker_days_friday"); ?>", + "lang->line("datepicker_days_saturday"); ?>", + "lang->line("datepicker_days_sunday"); ?>"], + daysShort: ["lang->line("datepicker_daysshort_sunday"); ?>", + "lang->line("datepicker_daysshort_monday"); ?>", + "lang->line("datepicker_daysshort_tueday"); ?>", + "lang->line("datepicker_daysshort_wednesday"); ?>", + "lang->line("datepicker_daysshort_thursday"); ?>", + "lang->line("datepicker_daysshort_friday"); ?>", + "lang->line("datepicker_daysshort_saturday"); ?>", + "lang->line("datepicker_daysshort_sunday"); ?>"], + daysMin: ["lang->line("datepicker_daysmin_sunday"); ?>", + "lang->line("datepicker_daysmin_monday"); ?>", + "lang->line("datepicker_daysmin_tueday"); ?>", + "lang->line("datepicker_daysmin_wednesday"); ?>", + "lang->line("datepicker_daysmin_thursday"); ?>", + "lang->line("datepicker_daysmin_friday"); ?>", + "lang->line("datepicker_daysmin_saturday"); ?>", + "lang->line("datepicker_daysmin_sunday"); ?>"], + months: ["lang->line("datepicker_months_january"); ?>", + "lang->line("datepicker_months_february"); ?>", + "lang->line("datepicker_months_march"); ?>", + "lang->line("datepicker_months_april"); ?>", + "lang->line("datepicker_months_may"); ?>", + "lang->line("datepicker_months_june"); ?>", + "lang->line("datepicker_months_july"); ?>", + "lang->line("datepicker_months_august"); ?>", + "lang->line("datepicker_months_september"); ?>", + "lang->line("datepicker_months_october"); ?>", + "lang->line("datepicker_months_november"); ?>", + "lang->line("datepicker_months_december"); ?>"], + monthsShort: ["lang->line("datepicker_monthsshort_january"); ?>", + "lang->line("datepicker_monthsshort_february"); ?>", + "lang->line("datepicker_monthsshort_march"); ?>", + "lang->line("datepicker_monthsshort_april"); ?>", + "lang->line("datepicker_monthsshort_may"); ?>", + "lang->line("datepicker_monthsshort_june"); ?>", + "lang->line("datepicker_monthsshort_july"); ?>", + "lang->line("datepicker_monthsshort_august"); ?>", + "lang->line("datepicker_monthsshort_september"); ?>", + "lang->line("datepicker_monthsshort_october"); ?>", + "lang->line("datepicker_monthsshort_november"); ?>", + "lang->line("datepicker_monthsshort_december"); ?>" ], - today: "lang->line("common_today"); ?>", + today: "lang->line("datepicker_today"); ?>", config->item('timeformat'), 'a') !== false ) { @@ -69,5 +69,5 @@ $.fn.datetimepicker.dates['config->item("language"); ?>'] = { - weekStart: lang->line("common_weekstart"); ?> + weekStart: lang->line("datepicker_weekstart"); ?> }; \ No newline at end of file diff --git a/application/views/reports/date_input.php b/application/views/reports/date_input.php index 040ac87ae..c8c6a2f2d 100644 --- a/application/views/reports/date_input.php +++ b/application/views/reports/date_input.php @@ -8,72 +8,72 @@ if(isset($error)) ?> 'item_form', 'enctype'=>'multipart/form-data', 'class' => 'form-horizontal')); ?> -
- lang->line('reports_date_range'), 'report_date_range_label', array('class'=>'control-label col-xs-1 required')); ?> +
+ lang->line('reports_date_range'), 'report_date_range_label', array('class'=>'control-label col-xs-2 required')); ?> -
-
- -
-
- +
+
+ +
+
+ +
-
- + -
- lang->line('reports_sale_type'), 'reports_sale_type_label', array('class'=>'required control-label col-xs-1')); ?> -
- $this->lang->line('reports_all'), - 'sales' => $this->lang->line('reports_sales'), - 'returns' => $this->lang->line('reports_returns')), 'all', 'id="input_type" class="form-control"'); ?> +
+ lang->line('reports_sale_type'), 'reports_sale_type_label', array('class'=>'required control-label col-xs-2')); ?> +
+ $this->lang->line('reports_all'), + 'sales' => $this->lang->line('reports_sales'), + 'returns' => $this->lang->line('reports_returns')), 'all', 'id="input_type" class="form-control"'); ?> +
-
-
- lang->line('reports_receiving_type'), 'reports_receiving_type_label', array('class'=>'required control-label col-xs-2')); ?> -
- $this->lang->line('reports_all'), - 'receiving' => $this->lang->line('reports_receivings'), - 'returns' => $this->lang->line('reports_returns'), - 'requisitions' => $this->lang->line('reports_requisitions')), 'all', 'id="input_type" class="form-control"'); ?> +
+ lang->line('reports_receiving_type'), 'reports_receiving_type_label', array('class'=>'required control-label col-xs-2')); ?> +
+ $this->lang->line('reports_all'), + 'receiving' => $this->lang->line('reports_receivings'), + 'returns' => $this->lang->line('reports_returns'), + 'requisitions' => $this->lang->line('reports_requisitions')), 'all', 'id="input_type" class="form-control"'); ?> +
-
1) { ?> -
- lang->line('reports_stock_location'), 'reports_stock_location_label', array('class'=>'required control-label col-xs-2')); ?> -
- +
+ lang->line('reports_stock_location'), 'reports_stock_location_label', array('class'=>'required control-label col-xs-2')); ?> +
+ +
-
'generate_report', - 'id'=>'generate_report', - 'content'=>$this->lang->line('common_submit'), - 'class'=>'btn btn-primary btn-sm') -); + echo form_button(array( + 'name'=>'generate_report', + 'id'=>'generate_report', + 'content'=>$this->lang->line('common_submit'), + 'class'=>'btn btn-primary btn-sm') + ); ?> @@ -91,8 +91,9 @@ $(document).ready(function() startDate: "config->item('dateformat'), time());?>", endDate: "config->item('dateformat'), time());?>" }).on('apply.daterangepicker', function(ev, picker) { - start_date = picker.startDate.format('MM-DD-YYYY'); - end_date = picker.endDate.format('MM-DD-YYYY'); + $("#complex_radio").attr("checked", "checked"); + start_date = picker.startDate.format('YYYY-MM-DD'); + end_date = picker.endDate.format('YYYY-MM-DD'); }); $("#generate_report").click(function() @@ -121,12 +122,7 @@ $(document).ready(function() } window.location = location; }); - - $("#start_month, #start_day, #start_year, #end_month, #end_day, #end_year").click(function() - { - $("#complex_radio").attr('checked', 'checked'); - }); - + $("#report_date_range_simple").click(function() { $("#simple_radio").attr('checked', 'checked'); diff --git a/application/views/reports/date_input_excel_export.php b/application/views/reports/date_input_excel_export.php index 551bbefca..6558747fc 100644 --- a/application/views/reports/date_input_excel_export.php +++ b/application/views/reports/date_input_excel_export.php @@ -6,49 +6,76 @@ if(isset($error)) echo "
".$error."
"; } ?> - lang->line('reports_date_range'), 'report_date_range_label', array('class'=>'required')); ?> -
- - +'item_form', 'enctype'=>'multipart/form-data', 'class' => 'form-horizontal')); ?> + +
+ lang->line('reports_date_range'), 'report_date_range_label', array('class'=>'control-label col-xs-2 required')); ?> + +
+
+ +
+
+ +
+
- -
- - - - - - - - - + +
+ lang->line('reports_sale_type'), 'reports_sale_type_label', array('class'=>'required control-label col-xs-2')); ?> +
+ $this->lang->line('reports_all'), + 'sales' => $this->lang->line('reports_sales'), + 'returns' => $this->lang->line('reports_returns')), 'all', 'id="input_type" class="form-control"'); ?> +
- - lang->line('reports_sale_type'), 'reports_sale_type_label', array('class'=>'required')); ?> -
- $this->lang->line('reports_all'), - 'sales' => $this->lang->line('reports_sales'), - 'returns' => $this->lang->line('reports_returns')), 'all', 'id="sale_type"'); ?> -
- -
- Export to Excel: Yes - No + +
+ lang->line('common_export_excel'), 'export_excel', !empty($basic_version) ? array('class'=>'control-label required col-xs-3') : array('class'=>'control-label col-xs-2')); ?> +
+ + +
'generate_report', - 'id'=>'generate_report', - 'content'=>$this->lang->line('common_submit'), - 'class'=>'btn btn-primary btn-sm') -); + echo form_button(array( + 'name'=>'generate_report', + 'id'=>'generate_report', + 'content'=>$this->lang->line('common_submit'), + 'class'=>'btn btn-primary btn-sm') + ); ?> + + load->view("partial/footer"); ?>