From 7e269f1256f1bf1c83e9d6188d2f554570da0a6e Mon Sep 17 00:00:00 2001 From: FrancescoUK Date: Mon, 8 Feb 2016 19:30:26 +0000 Subject: [PATCH] Change to bootstrap notification bars, cleanup old css files, moved styles to ospos.css, fixed ospos_print.css (#116) --- application/controllers/Items.php | 9 +- application/helpers/table_helper.php | 12 +- application/views/configs/barcode_config.php | 13 +- application/views/configs/general_config.php | 623 +++++++++--------- application/views/configs/locale_config.php | 403 ++++++----- application/views/configs/manage.php | 4 +- application/views/configs/receipt_config.php | 369 +++++------ application/views/configs/stock_config.php | 13 +- application/views/customers/excel_import.php | 56 +- application/views/customers/form.php | 89 ++- application/views/employees/form.php | 179 +++-- application/views/giftcards/form.php | 93 ++- application/views/giftcards/manage.php | 23 +- application/views/home.php | 1 + application/views/item_kits/form.php | 131 ++-- application/views/item_kits/manage.php | 32 +- application/views/items/count_details.php | 193 +++--- application/views/items/excel_import.php | 58 +- application/views/items/form.php | 494 +++++++------- application/views/items/form_bulk.php | 266 ++++---- application/views/items/inventory.php | 239 ++++--- application/views/items/manage.php | 84 +-- application/views/partial/footer.php | 1 + application/views/partial/header.php | 76 +-- application/views/partial/header_excel.php | 12 +- application/views/people/manage.php | 32 +- application/views/receivings/form.php | 96 +-- application/views/receivings/receipt.php | 131 ++-- application/views/receivings/receiving.php | 382 ++++++----- application/views/reports/date_input.php | 2 +- .../views/reports/date_input_excel_export.php | 2 +- application/views/reports/excel_export.php | 2 +- .../views/reports/inventory_summary_input.php | 2 +- application/views/reports/listing.php | 2 +- application/views/reports/specific_input.php | 2 +- application/views/reports/tabular_details.php | 148 +++-- application/views/sales/form.php | 111 ++-- application/views/sales/manage.php | 61 +- application/views/sales/register.php | 409 ++++++------ application/views/sales/suspended.php | 6 +- application/views/suppliers/form.php | 92 ++- application/views/suppliers/manage.php | 25 +- css/general.css | 50 +- css/ospos.css | 142 ++-- css/ospos_print.css | 11 +- css/register.css | 8 +- database/migrate_phppos_dist.sql | 10 +- dist/opensourcepos.min.js | 2 +- js/manage_tables.js | 12 +- templates/flatly/css/style.css | 143 +--- 50 files changed, 2606 insertions(+), 2750 deletions(-) diff --git a/application/controllers/Items.php b/application/controllers/Items.php index 4f479c813..b29cfbfb8 100644 --- a/application/controllers/Items.php +++ b/application/controllers/Items.php @@ -476,7 +476,7 @@ class Items extends Secure_area implements iData_controller { $success_message = $this->lang->line('items_successful_' . ($new_item ? 'adding' : 'updating')) .' '. $item_data['name']; - echo json_encode(array('success'=>true,'message'=>$success_message,'item_id'=>$item_id)); + echo json_encode(array('success'=>true, 'message'=>$success_message, 'item_id'=>$item_id)); } else { @@ -484,16 +484,13 @@ class Items extends Secure_area implements iData_controller $this->lang->line('items_error_adding_updating') .' '. $item_data['name'] : $this->upload->display_errors(); - echo json_encode(array('success'=>false, - 'message'=>$error_message,'item_id'=>$item_id)); + echo json_encode(array('success'=>false, 'message'=>$error_message, 'item_id'=>$item_id)); } } else//failure { - echo json_encode(array('success'=>false, - 'message'=>$this->lang->line('items_error_adding_updating').' ' - .$item_data['name'],'item_id'=>-1)); + echo json_encode(array('success'=>false, 'message'=>$this->lang->line('items_error_adding_updating').' '.$item_data['name'], 'item_id'=>-1)); } } diff --git a/application/helpers/table_helper.php b/application/helpers/table_helper.php index 92e160873..23111f77f 100644 --- a/application/helpers/table_helper.php +++ b/application/helpers/table_helper.php @@ -50,7 +50,7 @@ function get_sales_manage_table_data_rows($sales, $controller) if($table_data_rows == '') { - $table_data_rows .= "
".$CI->lang->line('sales_no_sales_to_display')."
"; + $table_data_rows .= "
".$CI->lang->line('sales_no_sales_to_display')."
"; } else { @@ -157,7 +157,7 @@ function get_people_manage_table_data_rows($people,$controller) if($people->num_rows()==0) { - $table_data_rows.="
".$CI->lang->line('common_no_persons_to_display')."
"; + $table_data_rows.="
".$CI->lang->line('common_no_persons_to_display')."
"; } return $table_data_rows; @@ -241,7 +241,7 @@ function get_supplier_manage_table_data_rows($suppliers,$controller) if($suppliers->num_rows()==0) { - $table_data_rows.="
".$CI->lang->line('common_no_persons_to_display')."
"; + $table_data_rows.="
".$CI->lang->line('common_no_persons_to_display')."
"; } return $table_data_rows; @@ -317,7 +317,7 @@ function get_items_manage_table_data_rows($items,$controller) if($items->num_rows()==0) { - $table_data_rows.="
".$CI->lang->line('items_no_items_to_display')."
"; + $table_data_rows.="
".$CI->lang->line('items_no_items_to_display')."
"; } return $table_data_rows; @@ -411,7 +411,7 @@ function get_giftcards_manage_table_data_rows( $giftcards, $controller ) if($giftcards->num_rows()==0) { - $table_data_rows.="
".$CI->lang->line('giftcards_no_giftcards_to_display')."
"; + $table_data_rows.="
".$CI->lang->line('giftcards_no_giftcards_to_display')."
"; } return $table_data_rows; @@ -479,7 +479,7 @@ function get_item_kits_manage_table_data_rows($item_kits, $controller) if($item_kits->num_rows()==0) { - $table_data_rows .= "
".$CI->lang->line('item_kits_no_item_kits_to_display')."
"; + $table_data_rows .= "
".$CI->lang->line('item_kits_no_item_kits_to_display')."
"; } return $table_data_rows; diff --git a/application/views/configs/barcode_config.php b/application/views/configs/barcode_config.php index 4f6273186..cd803993f 100644 --- a/application/views/configs/barcode_config.php +++ b/application/views/configs/barcode_config.php @@ -1,7 +1,6 @@
lang->line('config_barcode_configuration'); ?>
-'barcode_config_form')); -?> + +'barcode_config_form')); ?>
lang->line('common_fields_required_message'); ?>
@@ -177,9 +176,7 @@ echo form_open('config/save_barcode/',array('id'=>'barcode_config_form')); ?>
- +
lang->line('module_config'); ?>
+