From c04fa362b12208498c510b455f4403cc1be70eba Mon Sep 17 00:00:00 2001 From: jekkos-t520 Date: Fri, 6 Feb 2015 11:22:03 +0100 Subject: [PATCH] Add database backup feature in config --- .gitignore | 1 + application/controllers/config.php | 30 +- application/language/en/config_lang.php | 3 + application/language/es/config_lang.php | 3 + application/language/fr/config_lang.php | 3 + application/language/id/config_lang.php | 3 + application/language/nl-BE/config_lang.php | 3 + application/language/ru/config_lang.php | 3 + application/language/th/config_lang.php | 3 + application/language/tr/config_lang.php | 3 + application/language/zh/config_lang.php | 3 + application/views/config.php | 574 ------------------- application/views/configs/general_config.php | 33 +- application/views/partial/header.php | 29 +- translations/config_lang.csv | 3 + 15 files changed, 105 insertions(+), 592 deletions(-) delete mode 100644 application/views/config.php diff --git a/.gitignore b/.gitignore index e321dc105..eaa8664b0 100644 --- a/.gitignore +++ b/.gitignore @@ -12,4 +12,5 @@ git-svn-diff.py *.rej *.orig *~ +*.~ uploads/ diff --git a/application/controllers/config.php b/application/controllers/config.php index a1c892310..152c46236 100644 --- a/application/controllers/config.php +++ b/application/controllers/config.php @@ -125,5 +125,33 @@ class Config extends Secure_area echo json_encode(array('success'=>$success, 'message'=>$this->lang->line('config_saved_' . ($success ? '' : 'un') . 'successfully'))); } + + function backup_db() + { + $employee_id=$this->Employee->get_logged_in_employee_info()->person_id; + if($this->Employee->has_module_grant('config',$employee_id)) + { + $this->load->dbutil(); + $prefs = array( + 'format' => 'zip', + 'filename' => 'ospos.sql' + ); + + $backup =& $this->dbutil->backup($prefs); + + $file_name = 'ospos-' . date("Y-m-d-H-i-s") .'.zip'; + $save = 'uploads/'.$file_name; + + $this->load->helper('file'); + write_file($save, $backup); + + $this->load->helper('download'); + force_download($file_name, $backup); + } + else + { + redirect('no_access/config'); + } + } } -?> \ No newline at end of file +?> \ No newline at end of file diff --git a/application/language/en/config_lang.php b/application/language/en/config_lang.php index 50f3b5615..9b2cbbd71 100644 --- a/application/language/en/config_lang.php +++ b/application/language/en/config_lang.php @@ -83,3 +83,6 @@ $lang["config_barcode_price"] = "Price"; $lang["config_barcode_company"] = "Company Name"; $lang["config_location_configuration"] = "Stock Locations"; $lang["config_location_info"] = "Location Configuration Information"; +$lang["config_logout"] = "Don't you want to make a backup before logging out?"; +$lang["config_backup_database"] = "Backup Database"; +$lang["config_backup_button"] = "Backup"; diff --git a/application/language/es/config_lang.php b/application/language/es/config_lang.php index 4fe3bcb1a..c3c7d4a9a 100644 --- a/application/language/es/config_lang.php +++ b/application/language/es/config_lang.php @@ -83,3 +83,6 @@ $lang["config_barcode_price"] = "Price"; $lang["config_barcode_company"] = "Nombre del Comercio"; $lang["config_location_configuration"] = ""; $lang["config_location_info"] = ""; +$lang["config_logout"] = ""; +$lang["config_backup_database"] = ""; +$lang["config_backup_button"] = "Backup"; diff --git a/application/language/fr/config_lang.php b/application/language/fr/config_lang.php index 3cd44db12..7bc03cb89 100644 --- a/application/language/fr/config_lang.php +++ b/application/language/fr/config_lang.php @@ -83,3 +83,6 @@ $lang["config_barcode_price"] = "Price"; $lang["config_barcode_company"] = "Nome de l\'Entreprise"; $lang["config_location_configuration"] = ""; $lang["config_location_info"] = ""; +$lang["config_logout"] = ""; +$lang["config_backup_database"] = ""; +$lang["config_backup_button"] = "Backup"; diff --git a/application/language/id/config_lang.php b/application/language/id/config_lang.php index 6bff99586..19ec00652 100644 --- a/application/language/id/config_lang.php +++ b/application/language/id/config_lang.php @@ -83,3 +83,6 @@ $lang["config_barcode_price"] = "Price"; $lang["config_barcode_company"] = "Nama Perusahaan"; $lang["config_location_configuration"] = ""; $lang["config_location_info"] = ""; +$lang["config_logout"] = ""; +$lang["config_backup_database"] = ""; +$lang["config_backup_button"] = "Backup"; diff --git a/application/language/nl-BE/config_lang.php b/application/language/nl-BE/config_lang.php index 0a71c76d5..808cd6b6d 100755 --- a/application/language/nl-BE/config_lang.php +++ b/application/language/nl-BE/config_lang.php @@ -83,3 +83,6 @@ $lang["config_barcode_price"] = "Prijs"; $lang["config_barcode_company"] = "Bedrijfsnaam"; $lang["config_location_configuration"] = "Stock Locaties"; $lang["config_location_info"] = "Instellingen Locatie"; +$lang["config_logout"] = "Wilt u een backup maken alvorens uit te loggen?"; +$lang["config_backup_database"] = "Backup Database"; +$lang["config_backup_button"] = "Backup"; diff --git a/application/language/ru/config_lang.php b/application/language/ru/config_lang.php index b80903f98..db0831d9b 100644 --- a/application/language/ru/config_lang.php +++ b/application/language/ru/config_lang.php @@ -83,3 +83,6 @@ $lang["config_barcode_price"] = "Price"; $lang["config_barcode_company"] = "Название Компании"; $lang["config_location_configuration"] = ""; $lang["config_location_info"] = ""; +$lang["config_logout"] = ""; +$lang["config_backup_database"] = ""; +$lang["config_backup_button"] = "Backup"; diff --git a/application/language/th/config_lang.php b/application/language/th/config_lang.php index 913255398..c8e8f5781 100644 --- a/application/language/th/config_lang.php +++ b/application/language/th/config_lang.php @@ -83,3 +83,6 @@ $lang["config_barcode_price"] = "Price"; $lang["config_barcode_company"] = "ชื่อร้านค้า"; $lang["config_location_configuration"] = ""; $lang["config_location_info"] = ""; +$lang["config_logout"] = ""; +$lang["config_backup_database"] = ""; +$lang["config_backup_button"] = "Backup"; diff --git a/application/language/tr/config_lang.php b/application/language/tr/config_lang.php index 0392b219e..63af90957 100644 --- a/application/language/tr/config_lang.php +++ b/application/language/tr/config_lang.php @@ -83,3 +83,6 @@ $lang["config_barcode_price"] = "Price"; $lang["config_barcode_company"] = "Şirket Adı"; $lang["config_location_configuration"] = ""; $lang["config_location_info"] = ""; +$lang["config_logout"] = ""; +$lang["config_backup_database"] = ""; +$lang["config_backup_button"] = "Backup"; diff --git a/application/language/zh/config_lang.php b/application/language/zh/config_lang.php index 5c21049df..242c9f44c 100755 --- a/application/language/zh/config_lang.php +++ b/application/language/zh/config_lang.php @@ -83,3 +83,6 @@ $lang["config_barcode_price"] = "Price"; $lang["config_barcode_company"] = "公司名稱"; $lang["config_location_configuration"] = ""; $lang["config_location_info"] = ""; +$lang["config_logout"] = ""; +$lang["config_backup_database"] = ""; +$lang["config_backup_button"] = "Backup"; diff --git a/application/views/config.php b/application/views/config.php deleted file mode 100644 index df840fe1d..000000000 --- a/application/views/config.php +++ /dev/null @@ -1,574 +0,0 @@ -load->view("partial/header"); ?> -
lang->line('module_config'); ?>
-'config_form')); -?> -
-
-
lang->line('common_fields_required_message'); ?>
-
    -lang->line("config_info"); ?> - -
    -lang->line('config_company').':', 'company',array('class'=>'wide required')); ?> -
    - 'company', - 'id'=>'company', - 'value'=>$this->config->item('company')));?> -
    -
    - -
    -lang->line('config_address').':', 'address',array('class'=>'wide required')); ?> -
    - 'address', - 'id'=>'address', - 'rows'=>4, - 'cols'=>17, - 'value'=>$this->config->item('address')));?> -
    -
    - -
    -lang->line('config_phone').':', 'phone',array('class'=>'wide required')); ?> -
    - 'phone', - 'id'=>'phone', - 'value'=>$this->config->item('phone')));?> -
    -
    - -
    -lang->line('config_default_tax_rate_1').':', 'default_tax_1_rate',array('class'=>'wide required')); ?> -
    - 'default_tax_1_name', - 'id'=>'default_tax_1_name', - 'size'=>'10', - 'value'=>$this->config->item('default_tax_1_name')!==FALSE ? $this->config->item('default_tax_1_name') : $this->lang->line('items_sales_tax_1')));?> - - 'default_tax_1_rate', - 'id'=>'default_tax_1_rate', - 'size'=>'4', - 'value'=>$this->config->item('default_tax_1_rate')));?>% -
    -
    - -
    -lang->line('config_default_tax_rate_2').':', 'default_tax_1_rate',array('class'=>'wide')); ?> -
    - 'default_tax_2_name', - 'id'=>'default_tax_2_name', - 'size'=>'10', - 'value'=>$this->config->item('default_tax_2_name')!==FALSE ? $this->config->item('default_tax_2_name') : $this->lang->line('items_sales_tax_2')));?> - - 'default_tax_2_rate', - 'id'=>'default_tax_2_rate', - 'size'=>'4', - 'value'=>$this->config->item('default_tax_2_rate')));?>% -
    -
    - -
    - lang->line('config_currency_symbol').':', 'currency_symbol',array('class'=>'wide')); ?> -
    - 'currency_symbol', - 'id'=>'currency_symbol', - 'value'=>$this->config->item('currency_symbol')));?> -
    - - lang->line('config_currency_side').':', 'currency_side',array('class'=>''));?> -
    - 'currency_side', - 'id'=>'currency_side', - 'value'=>'currency_side', - 'checked'=>$this->config->item('currency_side')));?> -
    -
    - - -
    -lang->line('common_email').':', 'email',array('class'=>'wide')); ?> -
    - 'email', - 'id'=>'email', - 'value'=>$this->config->item('email')));?> -
    -
    - - -
    -lang->line('config_fax').':', 'fax',array('class'=>'wide')); ?> -
    - 'fax', - 'id'=>'fax', - 'value'=>$this->config->item('fax')));?> -
    -
    - -
    -lang->line('config_website').':', 'website',array('class'=>'wide')); ?> -
    - 'website', - 'id'=>'website', - 'value'=>$this->config->item('website')));?> -
    -
    - -
    -lang->line('common_return_policy').':', 'return_policy',array('class'=>'wide required')); ?> -
    - 'return_policy', - 'id'=>'return_policy', - 'rows'=>'4', - 'cols'=>'17', - 'value'=>$this->config->item('return_policy')));?> -
    -
    - -
    -lang->line('config_language').':', 'language',array('class'=>'wide required')); ?> -
    - 'English', - 'es' => 'Spanish', - 'ru' => 'Russian', - 'nl-BE' => 'Dutch', - 'zh' => 'Chinese', - 'id' => 'Indonesian', - 'fr' => 'French', - 'th' => 'Thai', - 'tr' => 'Turkish' - ), - $this->config->item('language')); - ?> -
    -
    - -
    -lang->line('config_timezone').':', 'timezone',array('class'=>'wide required')); ?> -
    - '(GMT-11:00) Midway Island, Samoa', - 'America/Adak'=>'(GMT-10:00) Hawaii-Aleutian', - 'Etc/GMT+10'=>'(GMT-10:00) Hawaii', - 'Pacific/Marquesas'=>'(GMT-09:30) Marquesas Islands', - 'Pacific/Gambier'=>'(GMT-09:00) Gambier Islands', - 'America/Anchorage'=>'(GMT-09:00) Alaska', - 'America/Ensenada'=>'(GMT-08:00) Tijuana, Baja California', - 'Etc/GMT+8'=>'(GMT-08:00) Pitcairn Islands', - 'America/Los_Angeles'=>'(GMT-08:00) Pacific Time (US & Canada)', - 'America/Denver'=>'(GMT-07:00) Mountain Time (US & Canada)', - 'America/Chihuahua'=>'(GMT-07:00) Chihuahua, La Paz, Mazatlan', - 'America/Dawson_Creek'=>'(GMT-07:00) Arizona', - 'America/Belize'=>'(GMT-06:00) Saskatchewan, Central America', - 'America/Cancun'=>'(GMT-06:00) Guadalajara, Mexico City, Monterrey', - 'Chile/EasterIsland'=>'(GMT-06:00) Easter Island', - 'America/Chicago'=>'(GMT-06:00) Central Time (US & Canada)', - 'America/New_York'=>'(GMT-05:00) Eastern Time (US & Canada)', - 'America/Havana'=>'(GMT-05:00) Cuba', - 'America/Bogota'=>'(GMT-05:00) Bogota, Lima, Quito, Rio Branco', - 'America/Caracas'=>'(GMT-04:30) Caracas', - 'America/Santiago'=>'(GMT-04:00) Santiago', - 'America/La_Paz'=>'(GMT-04:00) La Paz', - 'Atlantic/Stanley'=>'(GMT-04:00) Faukland Islands', - 'America/Campo_Grande'=>'(GMT-04:00) Brazil', - 'America/Goose_Bay'=>'(GMT-04:00) Atlantic Time (Goose Bay)', - 'America/Glace_Bay'=>'(GMT-04:00) Atlantic Time (Canada)', - 'America/St_Johns'=>'(GMT-03:30) Newfoundland', - 'America/Araguaina'=>'(GMT-03:00) UTC-3', - 'America/Montevideo'=>'(GMT-03:00) Montevideo', - 'America/Miquelon'=>'(GMT-03:00) Miquelon, St. Pierre', - 'America/Godthab'=>'(GMT-03:00) Greenland', - 'America/Argentina/Buenos_Aires'=>'(GMT-03:00) Buenos Aires', - 'America/Sao_Paulo'=>'(GMT-03:00) Brasilia', - 'America/Noronha'=>'(GMT-02:00) Mid-Atlantic', - 'Atlantic/Cape_Verde'=>'(GMT-01:00) Cape Verde Is.', - 'Atlantic/Azores'=>'(GMT-01:00) Azores', - 'Europe/Belfast'=>'(GMT) Greenwich Mean Time : Belfast', - 'Europe/Dublin'=>'(GMT) Greenwich Mean Time : Dublin', - 'Europe/Lisbon'=>'(GMT) Greenwich Mean Time : Lisbon', - 'Europe/London'=>'(GMT) Greenwich Mean Time : London', - 'Africa/Abidjan'=>'(GMT) Monrovia, Reykjavik', - 'Europe/Amsterdam'=>'(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna', - 'Europe/Belgrade'=>'(GMT+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague', - 'Europe/Brussels'=>'(GMT+01:00) Brussels, Copenhagen, Madrid, Paris', - 'Africa/Algiers'=>'(GMT+01:00) West Central Africa', - 'Africa/Windhoek'=>'(GMT+01:00) Windhoek', - 'Asia/Beirut'=>'(GMT+02:00) Beirut', - 'Africa/Cairo'=>'(GMT+02:00) Cairo', - 'Asia/Gaza'=>'(GMT+02:00) Gaza', - 'Africa/Blantyre'=>'(GMT+02:00) Harare, Pretoria', - 'Asia/Jerusalem'=>'(GMT+02:00) Jerusalem', - 'Europe/Minsk'=>'(GMT+02:00) Minsk', - 'Asia/Damascus'=>'(GMT+02:00) Syria', - 'Europe/Moscow'=>'(GMT+03:00) Moscow, St. Petersburg, Volgograd', - 'Africa/Addis_Ababa'=>'(GMT+03:00) Nairobi', - 'Asia/Tehran'=>'(GMT+03:30) Tehran', - 'Asia/Dubai'=>'(GMT+04:00) Abu Dhabi, Muscat', - 'Asia/Yerevan'=>'(GMT+04:00) Yerevan', - 'Asia/Kabul'=>'(GMT+04:30) Kabul', - 'Asia/Baku'=>'(GMT+05:00) Baku',/*GARRISON ADDED 4/20/2013*/ - 'Asia/Yekaterinburg'=>'(GMT+05:00) Ekaterinburg', - 'Asia/Tashkent'=>'(GMT+05:00) Tashkent', - 'Asia/Kolkata'=>'(GMT+05:30) Chennai, Kolkata, Mumbai, New Delhi', - 'Asia/Katmandu'=>'(GMT+05:45) Kathmandu', - 'Asia/Dhaka'=>'(GMT+06:00) Astana, Dhaka', - 'Asia/Novosibirsk'=>'(GMT+06:00) Novosibirsk', - 'Asia/Rangoon'=>'(GMT+06:30) Yangon (Rangoon)', - 'Asia/Bangkok'=>'(GMT+07:00) Bangkok, Hanoi, Jakarta', - 'Asia/Krasnoyarsk'=>'(GMT+07:00) Krasnoyarsk', - 'Asia/Hong_Kong'=>'(GMT+08:00) Beijing, Chongqing, Hong Kong, Urumqi', - 'Asia/Irkutsk'=>'(GMT+08:00) Irkutsk, Ulaan Bataar', - 'Australia/Perth'=>'(GMT+08:00) Perth', - 'Australia/Eucla'=>'(GMT+08:45) Eucla', - 'Asia/Tokyo'=>'(GMT+09:00) Osaka, Sapporo, Tokyo', - 'Asia/Seoul'=>'(GMT+09:00) Seoul', - 'Asia/Yakutsk'=>'(GMT+09:00) Yakutsk', - 'Australia/Adelaide'=>'(GMT+09:30) Adelaide', - 'Australia/Darwin'=>'(GMT+09:30) Darwin', - 'Australia/Brisbane'=>'(GMT+10:00) Brisbane', - 'Australia/Hobart'=>'(GMT+10:00) Hobart', - 'Asia/Vladivostok'=>'(GMT+10:00) Vladivostok', - 'Australia/Lord_Howe'=>'(GMT+10:30) Lord Howe Island', - 'Etc/GMT-11'=>'(GMT+11:00) Solomon Is., New Caledonia', - 'Asia/Magadan'=>'(GMT+11:00) Magadan', - 'Pacific/Norfolk'=>'(GMT+11:30) Norfolk Island', - 'Asia/Anadyr'=>'(GMT+12:00) Anadyr, Kamchatka', - 'Pacific/Auckland'=>'(GMT+12:00) Auckland, Wellington', - 'Etc/GMT-12'=>'(GMT+12:00) Fiji, Kamchatka, Marshall Is.', - 'Pacific/Chatham'=>'(GMT+12:45) Chatham Islands', - 'Pacific/Tongatapu'=>'(GMT+13:00) Nuku\'alofa', - 'Pacific/Kiritimati'=>'(GMT+14:00) Kiritimati' - ), $this->config->item('timezone') ? $this->config->item('timezone') : date_default_timezone_get()); - ?> -
    -
    - -
    - load->view('partial/stock_locations', array('stock_locations' => $stock_locations)); ?> -
    - -
    -lang->line('config_sales_invoice_format').':', 'sales_invoice_format',array('class'=>'wide')); ?> -
    - 'sales_invoice_format', - 'id'=>'sales_invoice_format', - 'value'=>$this->config->item('sales_invoice_format'))); ?> -
    -
    - -
    -lang->line('config_recv_invoice_format').':', 'recv_invoice_format',array('class'=>'wide')); ?> -
    - 'recv_invoice_format', - 'id'=>'recv_invoice_format', - 'value'=>$this->config->item('recv_invoice_format'))); ?> -
    -
    - -
    -lang->line('config_barcode_content').':', 'barcode_content',array('class'=>'wide')); ?> -
    - 'barcode_content', - 'value'=>'id', - 'checked'=>$this->config->item('barcode_content') === "id")); ?> - lang->line('config_barcode_id'); ?> - 'barcode_content', - 'value'=>'number', - 'checked'=>$this->config->item('barcode_content') === "number")); ?> - lang->line('config_barcode_number'); ?> -
    -
    - -
    -lang->line('config_barcode_labels').':', 'barcode_labels',array('class'=>'wide')); ?> -
    - 'barcode_label_company', - 'value'=>'barcode_label_company', - 'checked'=>strstr($this->config->item('barcode_labels'), 'company'))); ?> - lang->line('config_barcode_company'); ?> - 'barcode_label_name', - 'value'=>'barcode_label_name', - 'checked'=>strstr($this->config->item('barcode_labels'), 'name'))); ?> - lang->line('config_barcode_name'); ?> - 'barcode_label_price', - 'value'=>'barcode_label_price', - 'checked'=>strstr($this->config->item('barcode_labels'), 'price'))); ?> - lang->line('config_barcode_price'); ?> -
    -
    - -
    -lang->line('config_print_after_sale').':', 'print_after_sale',array('class'=>'wide')); ?> -
    - 'print_after_sale', - 'id'=>'print_after_sale', - 'value'=>'print_after_sale', - 'checked'=>$this->config->item('print_after_sale')));?> -
    -
    - -
    -lang->line('config_tax_included').':', 'tax_included',array('class'=>'wide')); ?> -
    - 'tax_included', - 'id'=>'tax_included', - 'value'=>'tax_included', - 'checked'=>$this->config->item('tax_included')));?> -
    -
    - -
    -lang->line('config_custom1').':', 'website',array('class'=>'wide')); ?> -
    - 'custom1_name', - 'id'=>'custom1_name', - 'value'=>$this->config->item('custom1_name')));?> -
    -
    - -
    -lang->line('config_custom2').':', 'website',array('class'=>'wide')); ?> -
    - 'custom2_name', - 'id'=>'custom2_name', - 'value'=>$this->config->item('custom2_name')));?> -
    -
    - -
    -lang->line('config_custom3').':', 'website',array('class'=>'wide')); ?> -
    - 'custom3_name', - 'id'=>'custom3_name', - 'value'=>$this->config->item('custom3_name')));?> -
    -
    - -
    -lang->line('config_custom4').':', 'website',array('class'=>'wide')); ?> -
    - 'custom4_name', - 'id'=>'custom4_name', - 'value'=>$this->config->item('custom4_name')));?> -
    -
    - -
    -lang->line('config_custom5').':', 'website',array('class'=>'wide')); ?> -
    - 'custom5_name', - 'id'=>'custom5_name', - 'value'=>$this->config->item('custom5_name')));?> -
    -
    - -
    -lang->line('config_custom6').':', 'website',array('class'=>'wide')); ?> -
    - 'custom6_name', - 'id'=>'custom6_name', - 'value'=>$this->config->item('custom6_name')));?> -
    -
    - -
    -lang->line('config_custom7').':', 'website',array('class'=>'wide')); ?> -
    - 'custom7_name', - 'id'=>'custom7_name', - 'value'=>$this->config->item('custom7_name')));?> -
    -
    - -
    -lang->line('config_custom8').':', 'website',array('class'=>'wide')); ?> -
    - 'custom8_name', - 'id'=>'custom8_name', - 'value'=>$this->config->item('custom8_name')));?> -
    -
    - -
    -lang->line('config_custom9').':', 'website',array('class'=>'wide')); ?> -
    - 'custom9_name', - 'id'=>'custom9_name', - 'value'=>$this->config->item('custom9_name')));?> -
    -
    - -
    -lang->line('config_custom10').':', 'website',array('class'=>'wide')); ?> -
    - 'custom10_name', - 'id'=>'custom10_name', - 'value'=>$this->config->item('custom10_name')));?> -
    -
    - -'submit', - 'id'=>'submit', - 'value'=>$this->lang->line('common_submit'), - 'class'=>'submit_button float_right') -); -?> -
    -
    - -
    - -load->view("partial/footer"); ?> diff --git a/application/views/configs/general_config.php b/application/views/configs/general_config.php index 451088990..d303f0306 100644 --- a/application/views/configs/general_config.php +++ b/application/views/configs/general_config.php @@ -270,7 +270,7 @@ echo form_open('config/save/',array('id'=>'config_form'));
    -lang->line('config_custom1').':', 'website',array('class'=>'wide')); ?> +lang->line('config_custom1').':', 'config_custom1',array('class'=>'wide')); ?>
    'custom1_name', @@ -280,7 +280,7 @@ echo form_open('config/save/',array('id'=>'config_form'));
    -lang->line('config_custom2').':', 'website',array('class'=>'wide')); ?> +lang->line('config_custom2').':', 'config_custom2',array('class'=>'wide')); ?>
    'custom2_name', @@ -290,7 +290,7 @@ echo form_open('config/save/',array('id'=>'config_form'));
    -lang->line('config_custom3').':', 'website',array('class'=>'wide')); ?> +lang->line('config_custom3').':', 'config_custom3',array('class'=>'wide')); ?>
    'custom3_name', @@ -300,7 +300,7 @@ echo form_open('config/save/',array('id'=>'config_form'));
    -lang->line('config_custom4').':', 'website',array('class'=>'wide')); ?> +lang->line('config_custom4').':', 'config_custom4',array('class'=>'wide')); ?>
    'custom4_name', @@ -310,7 +310,7 @@ echo form_open('config/save/',array('id'=>'config_form'));
    -lang->line('config_custom5').':', 'website',array('class'=>'wide')); ?> +lang->line('config_custom5').':', 'config_custom5',array('class'=>'wide')); ?>
    'custom5_name', @@ -320,7 +320,7 @@ echo form_open('config/save/',array('id'=>'config_form'));
    -lang->line('config_custom6').':', 'website',array('class'=>'wide')); ?> +lang->line('config_custom6').':', 'config_custom6',array('class'=>'wide')); ?>
    'custom6_name', @@ -330,7 +330,7 @@ echo form_open('config/save/',array('id'=>'config_form'));
    -lang->line('config_custom7').':', 'website',array('class'=>'wide')); ?> +lang->line('config_custom7').':', 'config_custom7',array('class'=>'wide')); ?>
    'custom7_name', @@ -340,7 +340,7 @@ echo form_open('config/save/',array('id'=>'config_form'));
    -lang->line('config_custom8').':', 'website',array('class'=>'wide')); ?> +lang->line('config_custom8').':', 'config_custom8',array('class'=>'wide')); ?>
    'custom8_name', @@ -350,7 +350,7 @@ echo form_open('config/save/',array('id'=>'config_form'));
    -lang->line('config_custom9').':', 'website',array('class'=>'wide')); ?> +lang->line('config_custom9').':', 'config_custom9',array('class'=>'wide')); ?>
    'custom9_name', @@ -360,7 +360,7 @@ echo form_open('config/save/',array('id'=>'config_form'));
    -lang->line('config_custom10').':', 'website',array('class'=>'wide')); ?> +lang->line('config_custom10').':', 'config_custom10',array('class'=>'wide')); ?>
    'custom10_name', @@ -369,6 +369,19 @@ echo form_open('config/save/',array('id'=>'config_form'));
    +
    +lang->line('config_backup_database').':', 'config_backup_database',array('class'=>'wide')); ?> +
    + 'config_backup_database', + 'id'=>'config_backup_database', + 'onClick'=>'javascript:window.location=\'' . site_url('config/backup_db'). '\';return false;', + 'class'=>'submit_button float_right', + 'value'=>$this->lang->line('config_backup_button')));?> +
    +
    + + 'submit', diff --git a/application/views/partial/header.php b/application/views/partial/header.php index 56d292004..a1762962e 100644 --- a/application/views/partial/header.php +++ b/application/views/partial/header.php @@ -19,19 +19,33 @@ - + - + + - + - +
    + \ No newline at end of file diff --git a/translations/config_lang.csv b/translations/config_lang.csv index 6dcd21367..e1631d3bb 100644 --- a/translations/config_lang.csv +++ b/translations/config_lang.csv @@ -82,3 +82,6 @@ config_barcode_price,Prijs,Price,Price,Price,Price,Price,Price,Price,Price config_barcode_company,Bedrijfsnaam,Nombre del Comercio,Company Name,Nome de l\'Entreprise,公司名稱,Название Компании,ชื่อร้านค้า,Şirket Adı,Nama Perusahaan config_location_configuration,Stock Locaties,,Stock Locations,,,,,, config_location_info,Instellingen Locatie,,Location Configuration Information,,,,,, +config_logout,Wilt u een backup maken alvorens uit te loggen?,,Don't you want to make a backup before logging out?,,,,,, +config_backup_database,Backup Database,,Backup Database,,,,,, +config_backup_button,Backup,Backup,Backup,Backup,Backup,Backup,Backup,Backup,Backup