From ecdf3a5aa1884a3c5f3ee4ba45c3ac283b4d7703 Mon Sep 17 00:00:00 2001 From: pappastech Date: Mon, 16 Jan 2012 02:16:01 +0000 Subject: [PATCH] Version 2.0_RC1. Upgrade to CI 2.1.0. Tom git-svn-id: svn+ssh://jekkos@svn.code.sf.net/p/opensourcepos/code/@24 c3eb156b-1dc0-44e1-88ae-e38439141b53 --- application/.htaccess | 1 + application/cache/.htaccess | 1 + application/cache/index.html | 10 + application/config/autoload.php | 116 + application/config/config.php | 375 ++ application/config/constants.php | 41 + application/config/database.php.tmpl | 69 + application/config/doctypes.php | 15 + application/config/foreign_chars.php | 64 + application/config/hooks.php | 21 + application/config/index.html | 10 + application/config/migration.php | 41 + application/config/mimes.php | 106 + application/config/profiler.php | 17 + application/config/routes.php | 63 + application/config/smileys.php | 66 + application/config/user_agents.php | 178 + application/controllers/barcode.php | 14 + application/controllers/config.php | 46 + application/controllers/customers.php | 200 + application/controllers/employees.php | 142 + application/controllers/giftcards.php | 107 + application/controllers/home.php | 21 + application/controllers/index.html | 10 + .../interfaces/idata_controller.php | 17 + .../interfaces/iperson_controller.php | 11 + application/controllers/item_kits.php | 137 + application/controllers/items.php | 427 ++ application/controllers/languagecheck.php | 192 + application/controllers/login.php | 43 + application/controllers/no_access.php | 15 + application/controllers/person_controller.php | 45 + application/controllers/receivings.php | 197 + application/controllers/reports.php | 827 +++ application/controllers/sales.php | 430 ++ application/controllers/secure_area.php | 29 + application/controllers/suppliers.php | 130 + application/core/index.html | 10 + application/errors/error_404.php | 62 + application/errors/error_db.php | 62 + application/errors/error_general.php | 62 + application/errors/error_php.php | 10 + application/errors/index.html | 10 + application/helpers/currency_helper.php | 21 + application/helpers/index.html | 10 + application/helpers/report_helper.php | 87 + application/helpers/sale_helper.php | 0 application/helpers/table_helper.php | 344 ++ application/hooks/index.html | 10 + application/hooks/load_config.php | 25 + application/index.html | 10 + application/language/english/common_lang.php | 41 + application/language/english/config_lang.php | 24 + .../language/english/customers_lang.php | 16 + .../language/english/employees_lang.php | 27 + application/language/english/error_lang.php | 4 + .../language/english/giftcards_lang.php | 69 + application/language/english/index.html | 10 + .../language/english/item_kits_lang.php | 20 + application/language/english/items_lang.php | 79 + application/language/english/login_lang.php | 8 + application/language/english/module_lang.php | 34 + .../language/english/receivings_lang.php | 26 + application/language/english/reports_lang.php | 87 + application/language/english/sales_lang.php | 79 + .../language/english/suppliers_lang.php | 17 + .../language/indonesia/common_lang.php | 41 + .../language/indonesia/config_lang.php | 24 + .../language/indonesia/customers_lang.php | 16 + .../language/indonesia/employees_lang.php | 27 + application/language/indonesia/error_lang.php | 4 + .../language/indonesia/giftcards_lang.php | 71 + application/language/indonesia/index.html | 10 + .../language/indonesia/item_kits_lang.php | 20 + application/language/indonesia/items_lang.php | 78 + application/language/indonesia/login_lang.php | 8 + .../language/indonesia/module_lang.php | 33 + .../language/indonesia/receivings_lang.php | 26 + .../language/indonesia/reports_lang.php | 85 + application/language/indonesia/sales_lang.php | 78 + .../language/indonesia/suppliers_lang.php | 17 + application/language/spanish/common_lang.php | 40 + application/language/spanish/config_lang.php | 24 + .../language/spanish/customers_lang.php | 16 + .../language/spanish/employees_lang.php | 27 + application/language/spanish/error_lang.php | 4 + .../language/spanish/giftcards_lang.php | 69 + application/language/spanish/index.html | 10 + .../language/spanish/item_kits_lang.php | 20 + application/language/spanish/items_lang.php | 77 + application/language/spanish/login_lang.php | 8 + application/language/spanish/module_lang.php | 33 + .../language/spanish/receivings_lang.php | 26 + application/language/spanish/reports_lang.php | 85 + application/language/spanish/sales_lang.php | 78 + .../language/spanish/suppliers_lang.php | 17 + application/libraries/MY_Language.php | 26 + application/libraries/Receiving_lib.php | 251 + application/libraries/Sale_lib.php | 498 ++ application/libraries/index.html | 10 + application/libraries/ofc-library/JSON.php | 806 +++ application/libraries/ofc-library/README.txt | 16 + .../libraries/ofc-library/dot_base.php | 231 + .../libraries/ofc-library/json_format.php | 86 + .../libraries/ofc-library/ofc_area_base.php | 40 + .../libraries/ofc-library/ofc_area_hollow.php | 10 + .../libraries/ofc-library/ofc_area_line.php | 10 + .../libraries/ofc-library/ofc_arrow.php | 27 + application/libraries/ofc-library/ofc_bar.php | 34 + .../libraries/ofc-library/ofc_bar_3d.php | 22 + .../libraries/ofc-library/ofc_bar_base.php | 97 + .../libraries/ofc-library/ofc_bar_filled.php | 39 + .../libraries/ofc-library/ofc_bar_glass.php | 131 + .../libraries/ofc-library/ofc_bar_sketch.php | 29 + .../libraries/ofc-library/ofc_bar_stack.php | 55 + .../libraries/ofc-library/ofc_candle.php | 41 + .../libraries/ofc-library/ofc_hbar.php | 64 + .../libraries/ofc-library/ofc_line.php | 157 + .../libraries/ofc-library/ofc_line_base.php | 92 + .../libraries/ofc-library/ofc_line_dot.php | 33 + .../libraries/ofc-library/ofc_line_hollow.php | 9 + .../libraries/ofc-library/ofc_line_style.php | 11 + .../libraries/ofc-library/ofc_menu.php | 56 + application/libraries/ofc-library/ofc_pie.php | 257 + .../libraries/ofc-library/ofc_radar_axis.php | 47 + .../ofc-library/ofc_radar_axis_labels.php | 15 + .../ofc-library/ofc_radar_spoke_labels.php | 15 + .../libraries/ofc-library/ofc_scatter.php | 47 + .../ofc-library/ofc_scatter_line.php | 49 + .../libraries/ofc-library/ofc_shape.php | 25 + .../libraries/ofc-library/ofc_sugar.php | 43 + .../libraries/ofc-library/ofc_tags.php | 133 + .../libraries/ofc-library/ofc_title.php | 39 + .../libraries/ofc-library/ofc_tooltip.php | 67 + .../ofc-library/ofc_upload_image.php | 70 + .../libraries/ofc-library/ofc_x_axis.php | 140 + .../ofc-library/ofc_x_axis_label.php | 45 + .../ofc-library/ofc_x_axis_labels.php | 69 + .../libraries/ofc-library/ofc_x_legend.php | 15 + .../libraries/ofc-library/ofc_y_axis.php | 17 + .../libraries/ofc-library/ofc_y_axis_base.php | 116 + .../ofc-library/ofc_y_axis_label.php | 38 + .../ofc-library/ofc_y_axis_labels.php | 57 + .../ofc-library/ofc_y_axis_right.php | 6 + .../libraries/ofc-library/ofc_y_legend.php | 15 + .../ofc-library/open-flash-chart-object.php | 109 + .../ofc-library/open-flash-chart.php | 178 + application/logs/index.html | 10 + application/logs/log-2012-01-15.php | 353 ++ application/logs/log-2012-01-16.php | 4666 +++++++++++++++++ application/models/appconfig.php | 81 + application/models/customer.php | 246 + application/models/employee.php | 325 ++ application/models/giftcard.php | 199 + application/models/index.html | 10 + application/models/inventory.php | 18 + application/models/item.php | 286 + application/models/item_kit.php | 171 + application/models/item_kit_items.php | 43 + application/models/item_taxes.php | 51 + application/models/module.php | 50 + application/models/person.php | 105 + application/models/receiving.php | 118 + .../models/reports/detailed_receivings.php | 67 + application/models/reports/detailed_sales.php | 68 + application/models/reports/inventory_low.php | 31 + .../models/reports/inventory_summary.php | 31 + application/models/reports/report.php | 28 + .../models/reports/specific_customer.php | 66 + .../models/reports/specific_employee.php | 68 + .../models/reports/summary_categories.php | 53 + .../models/reports/summary_customers.php | 54 + .../models/reports/summary_discounts.php | 49 + .../models/reports/summary_employees.php | 55 + application/models/reports/summary_items.php | 52 + .../models/reports/summary_payments.php | 50 + application/models/reports/summary_sales.php | 51 + .../models/reports/summary_suppliers.php | 55 + application/models/reports/summary_taxes.php | 66 + application/models/sale.php | 216 + application/models/sale_suspended.php | 160 + application/models/supplier.php | 260 + application/third_party/index.html | 10 + application/views/barcode.php | 340 ++ application/views/barcode_sheet.php | 28 + application/views/config.php | 324 ++ application/views/customers/excel_import.php | 63 + application/views/customers/form.php | 73 + application/views/employees/form.php | 158 + application/views/giftcards/form.php | 91 + application/views/giftcards/manage.php | 86 + application/views/home.php | 19 + application/views/index.html | 10 + application/views/item_kits/form.php | 138 + application/views/item_kits/manage.php | 99 + application/views/items/count_details.php | 114 + application/views/items/excel_import.php | 63 + application/views/items/form.php | 292 ++ application/views/items/form_bulk.php | 244 + application/views/items/inventory.php | 157 + application/views/items/manage.php | 176 + application/views/login.php | 61 + application/views/no_access.php | 3 + application/views/partial/footer.php | 6 + application/views/partial/footer_excel.php | 3 + application/views/partial/header.php | 70 + application/views/partial/header_excel.php | 54 + application/views/people/form_basic_info.php | 114 + application/views/people/manage.php | 91 + application/views/receivings/receipt.php | 104 + application/views/receivings/receiving.php | 294 ++ application/views/reports/date_input.php | 72 + .../views/reports/date_input_excel_export.php | 83 + application/views/reports/excel_export.php | 39 + application/views/reports/graphical.php | 27 + application/views/reports/graphs/bar.php | 46 + application/views/reports/graphs/hbar.php | 61 + application/views/reports/graphs/line.php | 49 + application/views/reports/graphs/pie.php | 25 + application/views/reports/listing.php | 63 + application/views/reports/specific_input.php | 90 + application/views/reports/tabular.php | 70 + application/views/reports/tabular_details.php | 102 + application/views/sales/delete.php | 18 + application/views/sales/edit.php | 109 + application/views/sales/receipt.php | 120 + application/views/sales/receipt_email.php | 95 + application/views/sales/register.php | 494 ++ application/views/sales/suspended.php | 46 + application/views/suppliers/form.php | 78 + application/views/suppliers/manage.php | 85 + 231 files changed, 24332 insertions(+) create mode 100644 application/.htaccess create mode 100644 application/cache/.htaccess create mode 100644 application/cache/index.html create mode 100644 application/config/autoload.php create mode 100644 application/config/config.php create mode 100644 application/config/constants.php create mode 100644 application/config/database.php.tmpl create mode 100644 application/config/doctypes.php create mode 100644 application/config/foreign_chars.php create mode 100644 application/config/hooks.php create mode 100644 application/config/index.html create mode 100644 application/config/migration.php create mode 100644 application/config/mimes.php create mode 100644 application/config/profiler.php create mode 100644 application/config/routes.php create mode 100644 application/config/smileys.php create mode 100644 application/config/user_agents.php create mode 100644 application/controllers/barcode.php create mode 100644 application/controllers/config.php create mode 100644 application/controllers/customers.php create mode 100644 application/controllers/employees.php create mode 100644 application/controllers/giftcards.php create mode 100644 application/controllers/home.php create mode 100644 application/controllers/index.html create mode 100644 application/controllers/interfaces/idata_controller.php create mode 100644 application/controllers/interfaces/iperson_controller.php create mode 100644 application/controllers/item_kits.php create mode 100644 application/controllers/items.php create mode 100644 application/controllers/languagecheck.php create mode 100644 application/controllers/login.php create mode 100644 application/controllers/no_access.php create mode 100644 application/controllers/person_controller.php create mode 100644 application/controllers/receivings.php create mode 100644 application/controllers/reports.php create mode 100644 application/controllers/sales.php create mode 100644 application/controllers/secure_area.php create mode 100644 application/controllers/suppliers.php create mode 100644 application/core/index.html create mode 100644 application/errors/error_404.php create mode 100644 application/errors/error_db.php create mode 100644 application/errors/error_general.php create mode 100644 application/errors/error_php.php create mode 100644 application/errors/index.html create mode 100644 application/helpers/currency_helper.php create mode 100644 application/helpers/index.html create mode 100644 application/helpers/report_helper.php create mode 100644 application/helpers/sale_helper.php create mode 100644 application/helpers/table_helper.php create mode 100644 application/hooks/index.html create mode 100644 application/hooks/load_config.php create mode 100644 application/index.html create mode 100644 application/language/english/common_lang.php create mode 100644 application/language/english/config_lang.php create mode 100644 application/language/english/customers_lang.php create mode 100644 application/language/english/employees_lang.php create mode 100644 application/language/english/error_lang.php create mode 100644 application/language/english/giftcards_lang.php create mode 100644 application/language/english/index.html create mode 100644 application/language/english/item_kits_lang.php create mode 100644 application/language/english/items_lang.php create mode 100644 application/language/english/login_lang.php create mode 100644 application/language/english/module_lang.php create mode 100644 application/language/english/receivings_lang.php create mode 100644 application/language/english/reports_lang.php create mode 100644 application/language/english/sales_lang.php create mode 100644 application/language/english/suppliers_lang.php create mode 100644 application/language/indonesia/common_lang.php create mode 100644 application/language/indonesia/config_lang.php create mode 100644 application/language/indonesia/customers_lang.php create mode 100644 application/language/indonesia/employees_lang.php create mode 100644 application/language/indonesia/error_lang.php create mode 100644 application/language/indonesia/giftcards_lang.php create mode 100644 application/language/indonesia/index.html create mode 100644 application/language/indonesia/item_kits_lang.php create mode 100644 application/language/indonesia/items_lang.php create mode 100644 application/language/indonesia/login_lang.php create mode 100644 application/language/indonesia/module_lang.php create mode 100644 application/language/indonesia/receivings_lang.php create mode 100644 application/language/indonesia/reports_lang.php create mode 100644 application/language/indonesia/sales_lang.php create mode 100644 application/language/indonesia/suppliers_lang.php create mode 100644 application/language/spanish/common_lang.php create mode 100644 application/language/spanish/config_lang.php create mode 100644 application/language/spanish/customers_lang.php create mode 100644 application/language/spanish/employees_lang.php create mode 100644 application/language/spanish/error_lang.php create mode 100644 application/language/spanish/giftcards_lang.php create mode 100644 application/language/spanish/index.html create mode 100644 application/language/spanish/item_kits_lang.php create mode 100644 application/language/spanish/items_lang.php create mode 100644 application/language/spanish/login_lang.php create mode 100644 application/language/spanish/module_lang.php create mode 100644 application/language/spanish/receivings_lang.php create mode 100644 application/language/spanish/reports_lang.php create mode 100644 application/language/spanish/sales_lang.php create mode 100644 application/language/spanish/suppliers_lang.php create mode 100644 application/libraries/MY_Language.php create mode 100644 application/libraries/Receiving_lib.php create mode 100644 application/libraries/Sale_lib.php create mode 100644 application/libraries/index.html create mode 100644 application/libraries/ofc-library/JSON.php create mode 100644 application/libraries/ofc-library/README.txt create mode 100644 application/libraries/ofc-library/dot_base.php create mode 100644 application/libraries/ofc-library/json_format.php create mode 100644 application/libraries/ofc-library/ofc_area_base.php create mode 100644 application/libraries/ofc-library/ofc_area_hollow.php create mode 100644 application/libraries/ofc-library/ofc_area_line.php create mode 100644 application/libraries/ofc-library/ofc_arrow.php create mode 100644 application/libraries/ofc-library/ofc_bar.php create mode 100644 application/libraries/ofc-library/ofc_bar_3d.php create mode 100644 application/libraries/ofc-library/ofc_bar_base.php create mode 100644 application/libraries/ofc-library/ofc_bar_filled.php create mode 100644 application/libraries/ofc-library/ofc_bar_glass.php create mode 100644 application/libraries/ofc-library/ofc_bar_sketch.php create mode 100644 application/libraries/ofc-library/ofc_bar_stack.php create mode 100644 application/libraries/ofc-library/ofc_candle.php create mode 100644 application/libraries/ofc-library/ofc_hbar.php create mode 100644 application/libraries/ofc-library/ofc_line.php create mode 100644 application/libraries/ofc-library/ofc_line_base.php create mode 100644 application/libraries/ofc-library/ofc_line_dot.php create mode 100644 application/libraries/ofc-library/ofc_line_hollow.php create mode 100644 application/libraries/ofc-library/ofc_line_style.php create mode 100644 application/libraries/ofc-library/ofc_menu.php create mode 100644 application/libraries/ofc-library/ofc_pie.php create mode 100644 application/libraries/ofc-library/ofc_radar_axis.php create mode 100644 application/libraries/ofc-library/ofc_radar_axis_labels.php create mode 100644 application/libraries/ofc-library/ofc_radar_spoke_labels.php create mode 100644 application/libraries/ofc-library/ofc_scatter.php create mode 100644 application/libraries/ofc-library/ofc_scatter_line.php create mode 100644 application/libraries/ofc-library/ofc_shape.php create mode 100644 application/libraries/ofc-library/ofc_sugar.php create mode 100644 application/libraries/ofc-library/ofc_tags.php create mode 100644 application/libraries/ofc-library/ofc_title.php create mode 100644 application/libraries/ofc-library/ofc_tooltip.php create mode 100644 application/libraries/ofc-library/ofc_upload_image.php create mode 100644 application/libraries/ofc-library/ofc_x_axis.php create mode 100644 application/libraries/ofc-library/ofc_x_axis_label.php create mode 100644 application/libraries/ofc-library/ofc_x_axis_labels.php create mode 100644 application/libraries/ofc-library/ofc_x_legend.php create mode 100644 application/libraries/ofc-library/ofc_y_axis.php create mode 100644 application/libraries/ofc-library/ofc_y_axis_base.php create mode 100644 application/libraries/ofc-library/ofc_y_axis_label.php create mode 100644 application/libraries/ofc-library/ofc_y_axis_labels.php create mode 100644 application/libraries/ofc-library/ofc_y_axis_right.php create mode 100644 application/libraries/ofc-library/ofc_y_legend.php create mode 100644 application/libraries/ofc-library/open-flash-chart-object.php create mode 100644 application/libraries/ofc-library/open-flash-chart.php create mode 100644 application/logs/index.html create mode 100644 application/logs/log-2012-01-15.php create mode 100644 application/logs/log-2012-01-16.php create mode 100644 application/models/appconfig.php create mode 100644 application/models/customer.php create mode 100644 application/models/employee.php create mode 100644 application/models/giftcard.php create mode 100644 application/models/index.html create mode 100644 application/models/inventory.php create mode 100644 application/models/item.php create mode 100644 application/models/item_kit.php create mode 100644 application/models/item_kit_items.php create mode 100644 application/models/item_taxes.php create mode 100644 application/models/module.php create mode 100644 application/models/person.php create mode 100644 application/models/receiving.php create mode 100644 application/models/reports/detailed_receivings.php create mode 100644 application/models/reports/detailed_sales.php create mode 100644 application/models/reports/inventory_low.php create mode 100644 application/models/reports/inventory_summary.php create mode 100644 application/models/reports/report.php create mode 100644 application/models/reports/specific_customer.php create mode 100644 application/models/reports/specific_employee.php create mode 100644 application/models/reports/summary_categories.php create mode 100644 application/models/reports/summary_customers.php create mode 100644 application/models/reports/summary_discounts.php create mode 100644 application/models/reports/summary_employees.php create mode 100644 application/models/reports/summary_items.php create mode 100644 application/models/reports/summary_payments.php create mode 100644 application/models/reports/summary_sales.php create mode 100644 application/models/reports/summary_suppliers.php create mode 100644 application/models/reports/summary_taxes.php create mode 100644 application/models/sale.php create mode 100644 application/models/sale_suspended.php create mode 100644 application/models/supplier.php create mode 100644 application/third_party/index.html create mode 100644 application/views/barcode.php create mode 100644 application/views/barcode_sheet.php create mode 100644 application/views/config.php create mode 100644 application/views/customers/excel_import.php create mode 100644 application/views/customers/form.php create mode 100644 application/views/employees/form.php create mode 100644 application/views/giftcards/form.php create mode 100644 application/views/giftcards/manage.php create mode 100644 application/views/home.php create mode 100644 application/views/index.html create mode 100644 application/views/item_kits/form.php create mode 100644 application/views/item_kits/manage.php create mode 100644 application/views/items/count_details.php create mode 100644 application/views/items/excel_import.php create mode 100644 application/views/items/form.php create mode 100644 application/views/items/form_bulk.php create mode 100644 application/views/items/inventory.php create mode 100644 application/views/items/manage.php create mode 100644 application/views/login.php create mode 100644 application/views/no_access.php create mode 100644 application/views/partial/footer.php create mode 100644 application/views/partial/footer_excel.php create mode 100644 application/views/partial/header.php create mode 100644 application/views/partial/header_excel.php create mode 100644 application/views/people/form_basic_info.php create mode 100644 application/views/people/manage.php create mode 100644 application/views/receivings/receipt.php create mode 100644 application/views/receivings/receiving.php create mode 100644 application/views/reports/date_input.php create mode 100644 application/views/reports/date_input_excel_export.php create mode 100644 application/views/reports/excel_export.php create mode 100644 application/views/reports/graphical.php create mode 100644 application/views/reports/graphs/bar.php create mode 100644 application/views/reports/graphs/hbar.php create mode 100644 application/views/reports/graphs/line.php create mode 100644 application/views/reports/graphs/pie.php create mode 100644 application/views/reports/listing.php create mode 100644 application/views/reports/specific_input.php create mode 100644 application/views/reports/tabular.php create mode 100644 application/views/reports/tabular_details.php create mode 100644 application/views/sales/delete.php create mode 100644 application/views/sales/edit.php create mode 100644 application/views/sales/receipt.php create mode 100644 application/views/sales/receipt_email.php create mode 100644 application/views/sales/register.php create mode 100644 application/views/sales/suspended.php create mode 100644 application/views/suppliers/form.php create mode 100644 application/views/suppliers/manage.php diff --git a/application/.htaccess b/application/.htaccess new file mode 100644 index 000000000..14249c50b --- /dev/null +++ b/application/.htaccess @@ -0,0 +1 @@ +Deny from all \ No newline at end of file diff --git a/application/cache/.htaccess b/application/cache/.htaccess new file mode 100644 index 000000000..3418e55a6 --- /dev/null +++ b/application/cache/.htaccess @@ -0,0 +1 @@ +deny from all \ No newline at end of file diff --git a/application/cache/index.html b/application/cache/index.html new file mode 100644 index 000000000..c942a79ce --- /dev/null +++ b/application/cache/index.html @@ -0,0 +1,10 @@ + + + 403 Forbidden + + + +

Directory access is forbidden.

+ + + \ No newline at end of file diff --git a/application/config/autoload.php b/application/config/autoload.php new file mode 100644 index 000000000..cb62d45fa --- /dev/null +++ b/application/config/autoload.php @@ -0,0 +1,116 @@ + '', + 'xhtml1-strict' => '', + 'xhtml1-trans' => '', + 'xhtml1-frame' => '', + 'html5' => '', + 'html4-strict' => '', + 'html4-trans' => '', + 'html4-frame' => '' + ); + +/* End of file doctypes.php */ +/* Location: ./application/config/doctypes.php */ \ No newline at end of file diff --git a/application/config/foreign_chars.php b/application/config/foreign_chars.php new file mode 100644 index 000000000..14b0d7373 --- /dev/null +++ b/application/config/foreign_chars.php @@ -0,0 +1,64 @@ + 'ae', + '/ö|œ/' => 'oe', + '/ü/' => 'ue', + '/Ä/' => 'Ae', + '/Ü/' => 'Ue', + '/Ö/' => 'Oe', + '/À|Á|Â|Ã|Ä|Å|Ǻ|Ā|Ă|Ą|Ǎ/' => 'A', + '/à|á|â|ã|å|ǻ|ā|ă|ą|ǎ|ª/' => 'a', + '/Ç|Ć|Ĉ|Ċ|Č/' => 'C', + '/ç|ć|ĉ|ċ|č/' => 'c', + '/Ð|Ď|Đ/' => 'D', + '/ð|ď|đ/' => 'd', + '/È|É|Ê|Ë|Ē|Ĕ|Ė|Ę|Ě/' => 'E', + '/è|é|ê|ë|ē|ĕ|ė|ę|ě/' => 'e', + '/Ĝ|Ğ|Ġ|Ģ/' => 'G', + '/ĝ|ğ|ġ|ģ/' => 'g', + '/Ĥ|Ħ/' => 'H', + '/ĥ|ħ/' => 'h', + '/Ì|Í|Î|Ï|Ĩ|Ī|Ĭ|Ǐ|Į|İ/' => 'I', + '/ì|í|î|ï|ĩ|ī|ĭ|ǐ|į|ı/' => 'i', + '/Ĵ/' => 'J', + '/ĵ/' => 'j', + '/Ķ/' => 'K', + '/ķ/' => 'k', + '/Ĺ|Ļ|Ľ|Ŀ|Ł/' => 'L', + '/ĺ|ļ|ľ|ŀ|ł/' => 'l', + '/Ñ|Ń|Ņ|Ň/' => 'N', + '/ñ|ń|ņ|ň|ʼn/' => 'n', + '/Ò|Ó|Ô|Õ|Ō|Ŏ|Ǒ|Ő|Ơ|Ø|Ǿ/' => 'O', + '/ò|ó|ô|õ|ō|ŏ|ǒ|ő|ơ|ø|ǿ|º/' => 'o', + '/Ŕ|Ŗ|Ř/' => 'R', + '/ŕ|ŗ|ř/' => 'r', + '/Ś|Ŝ|Ş|Š/' => 'S', + '/ś|ŝ|ş|š|ſ/' => 's', + '/Ţ|Ť|Ŧ/' => 'T', + '/ţ|ť|ŧ/' => 't', + '/Ù|Ú|Û|Ũ|Ū|Ŭ|Ů|Ű|Ų|Ư|Ǔ|Ǖ|Ǘ|Ǚ|Ǜ/' => 'U', + '/ù|ú|û|ũ|ū|ŭ|ů|ű|ų|ư|ǔ|ǖ|ǘ|ǚ|ǜ/' => 'u', + '/Ý|Ÿ|Ŷ/' => 'Y', + '/ý|ÿ|ŷ/' => 'y', + '/Ŵ/' => 'W', + '/ŵ/' => 'w', + '/Ź|Ż|Ž/' => 'Z', + '/ź|ż|ž/' => 'z', + '/Æ|Ǽ/' => 'AE', + '/ß/'=> 'ss', + '/IJ/' => 'IJ', + '/ij/' => 'ij', + '/Œ/' => 'OE', + '/ƒ/' => 'f' +); + +/* End of file foreign_chars.php */ +/* Location: ./application/config/foreign_chars.php */ \ No newline at end of file diff --git a/application/config/hooks.php b/application/config/hooks.php new file mode 100644 index 000000000..38a5e97fc --- /dev/null +++ b/application/config/hooks.php @@ -0,0 +1,21 @@ + '', + 'function' => 'load_config', + 'filename' => 'load_config.php', + 'filepath' => 'hooks' + ); + + +/* End of file hooks.php */ +/* Location: ./application/config/hooks.php */ \ No newline at end of file diff --git a/application/config/index.html b/application/config/index.html new file mode 100644 index 000000000..c942a79ce --- /dev/null +++ b/application/config/index.html @@ -0,0 +1,10 @@ + + + 403 Forbidden + + + +

Directory access is forbidden.

+ + + \ No newline at end of file diff --git a/application/config/migration.php b/application/config/migration.php new file mode 100644 index 000000000..afa264562 --- /dev/null +++ b/application/config/migration.php @@ -0,0 +1,41 @@ +migration->latest() this is the version that schema will +| be upgraded / downgraded to. +| +*/ +$config['migration_version'] = 0; + + +/* +|-------------------------------------------------------------------------- +| Migrations Path +|-------------------------------------------------------------------------- +| +| Path to your migrations folder. +| Typically, it will be within your application path. +| Also, writing permission is required within the migrations path. +| +*/ +$config['migration_path'] = APPPATH . 'migrations/'; + + +/* End of file migration.php */ +/* Location: ./application/config/migration.php */ \ No newline at end of file diff --git a/application/config/mimes.php b/application/config/mimes.php new file mode 100644 index 000000000..f00e5b6ed --- /dev/null +++ b/application/config/mimes.php @@ -0,0 +1,106 @@ + 'application/mac-binhex40', + 'cpt' => 'application/mac-compactpro', + 'csv' => array('text/x-comma-separated-values', 'text/comma-separated-values', 'application/octet-stream', 'application/vnd.ms-excel', 'application/x-csv', 'text/x-csv', 'text/csv', 'application/csv', 'application/excel', 'application/vnd.msexcel'), + 'bin' => 'application/macbinary', + 'dms' => 'application/octet-stream', + 'lha' => 'application/octet-stream', + 'lzh' => 'application/octet-stream', + 'exe' => array('application/octet-stream', 'application/x-msdownload'), + 'class' => 'application/octet-stream', + 'psd' => 'application/x-photoshop', + 'so' => 'application/octet-stream', + 'sea' => 'application/octet-stream', + 'dll' => 'application/octet-stream', + 'oda' => 'application/oda', + 'pdf' => array('application/pdf', 'application/x-download'), + 'ai' => 'application/postscript', + 'eps' => 'application/postscript', + 'ps' => 'application/postscript', + 'smi' => 'application/smil', + 'smil' => 'application/smil', + 'mif' => 'application/vnd.mif', + 'xls' => array('application/excel', 'application/vnd.ms-excel', 'application/msexcel'), + 'ppt' => array('application/powerpoint', 'application/vnd.ms-powerpoint'), + 'wbxml' => 'application/wbxml', + 'wmlc' => 'application/wmlc', + 'dcr' => 'application/x-director', + 'dir' => 'application/x-director', + 'dxr' => 'application/x-director', + 'dvi' => 'application/x-dvi', + 'gtar' => 'application/x-gtar', + 'gz' => 'application/x-gzip', + 'php' => 'application/x-httpd-php', + 'php4' => 'application/x-httpd-php', + 'php3' => 'application/x-httpd-php', + 'phtml' => 'application/x-httpd-php', + 'phps' => 'application/x-httpd-php-source', + 'js' => 'application/x-javascript', + 'swf' => 'application/x-shockwave-flash', + 'sit' => 'application/x-stuffit', + 'tar' => 'application/x-tar', + 'tgz' => array('application/x-tar', 'application/x-gzip-compressed'), + 'xhtml' => 'application/xhtml+xml', + 'xht' => 'application/xhtml+xml', + 'zip' => array('application/x-zip', 'application/zip', 'application/x-zip-compressed'), + 'mid' => 'audio/midi', + 'midi' => 'audio/midi', + 'mpga' => 'audio/mpeg', + 'mp2' => 'audio/mpeg', + 'mp3' => array('audio/mpeg', 'audio/mpg', 'audio/mpeg3', 'audio/mp3'), + 'aif' => 'audio/x-aiff', + 'aiff' => 'audio/x-aiff', + 'aifc' => 'audio/x-aiff', + 'ram' => 'audio/x-pn-realaudio', + 'rm' => 'audio/x-pn-realaudio', + 'rpm' => 'audio/x-pn-realaudio-plugin', + 'ra' => 'audio/x-realaudio', + 'rv' => 'video/vnd.rn-realvideo', + 'wav' => array('audio/x-wav', 'audio/wave', 'audio/wav'), + 'bmp' => array('image/bmp', 'image/x-windows-bmp'), + 'gif' => 'image/gif', + 'jpeg' => array('image/jpeg', 'image/pjpeg'), + 'jpg' => array('image/jpeg', 'image/pjpeg'), + 'jpe' => array('image/jpeg', 'image/pjpeg'), + 'png' => array('image/png', 'image/x-png'), + 'tiff' => 'image/tiff', + 'tif' => 'image/tiff', + 'css' => 'text/css', + 'html' => 'text/html', + 'htm' => 'text/html', + 'shtml' => 'text/html', + 'txt' => 'text/plain', + 'text' => 'text/plain', + 'log' => array('text/plain', 'text/x-log'), + 'rtx' => 'text/richtext', + 'rtf' => 'text/rtf', + 'xml' => 'text/xml', + 'xsl' => 'text/xml', + 'mpeg' => 'video/mpeg', + 'mpg' => 'video/mpeg', + 'mpe' => 'video/mpeg', + 'qt' => 'video/quicktime', + 'mov' => 'video/quicktime', + 'avi' => 'video/x-msvideo', + 'movie' => 'video/x-sgi-movie', + 'doc' => 'application/msword', + 'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', + 'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', + 'word' => array('application/msword', 'application/octet-stream'), + 'xl' => 'application/excel', + 'eml' => 'message/rfc822', + 'json' => array('application/json', 'text/json') + ); + + +/* End of file mimes.php */ +/* Location: ./application/config/mimes.php */ diff --git a/application/config/profiler.php b/application/config/profiler.php new file mode 100644 index 000000000..f8a5b1a1e --- /dev/null +++ b/application/config/profiler.php @@ -0,0 +1,17 @@ + array('grin.gif', '19', '19', 'grin'), + ':lol:' => array('lol.gif', '19', '19', 'LOL'), + ':cheese:' => array('cheese.gif', '19', '19', 'cheese'), + ':)' => array('smile.gif', '19', '19', 'smile'), + ';-)' => array('wink.gif', '19', '19', 'wink'), + ';)' => array('wink.gif', '19', '19', 'wink'), + ':smirk:' => array('smirk.gif', '19', '19', 'smirk'), + ':roll:' => array('rolleyes.gif', '19', '19', 'rolleyes'), + ':-S' => array('confused.gif', '19', '19', 'confused'), + ':wow:' => array('surprise.gif', '19', '19', 'surprised'), + ':bug:' => array('bigsurprise.gif', '19', '19', 'big surprise'), + ':-P' => array('tongue_laugh.gif', '19', '19', 'tongue laugh'), + '%-P' => array('tongue_rolleye.gif', '19', '19', 'tongue rolleye'), + ';-P' => array('tongue_wink.gif', '19', '19', 'tongue wink'), + ':P' => array('raspberry.gif', '19', '19', 'raspberry'), + ':blank:' => array('blank.gif', '19', '19', 'blank stare'), + ':long:' => array('longface.gif', '19', '19', 'long face'), + ':ohh:' => array('ohh.gif', '19', '19', 'ohh'), + ':grrr:' => array('grrr.gif', '19', '19', 'grrr'), + ':gulp:' => array('gulp.gif', '19', '19', 'gulp'), + '8-/' => array('ohoh.gif', '19', '19', 'oh oh'), + ':down:' => array('downer.gif', '19', '19', 'downer'), + ':red:' => array('embarrassed.gif', '19', '19', 'red face'), + ':sick:' => array('sick.gif', '19', '19', 'sick'), + ':shut:' => array('shuteye.gif', '19', '19', 'shut eye'), + ':-/' => array('hmm.gif', '19', '19', 'hmmm'), + '>:(' => array('mad.gif', '19', '19', 'mad'), + ':mad:' => array('mad.gif', '19', '19', 'mad'), + '>:-(' => array('angry.gif', '19', '19', 'angry'), + ':angry:' => array('angry.gif', '19', '19', 'angry'), + ':zip:' => array('zip.gif', '19', '19', 'zipper'), + ':kiss:' => array('kiss.gif', '19', '19', 'kiss'), + ':ahhh:' => array('shock.gif', '19', '19', 'shock'), + ':coolsmile:' => array('shade_smile.gif', '19', '19', 'cool smile'), + ':coolsmirk:' => array('shade_smirk.gif', '19', '19', 'cool smirk'), + ':coolgrin:' => array('shade_grin.gif', '19', '19', 'cool grin'), + ':coolhmm:' => array('shade_hmm.gif', '19', '19', 'cool hmm'), + ':coolmad:' => array('shade_mad.gif', '19', '19', 'cool mad'), + ':coolcheese:' => array('shade_cheese.gif', '19', '19', 'cool cheese'), + ':vampire:' => array('vampire.gif', '19', '19', 'vampire'), + ':snake:' => array('snake.gif', '19', '19', 'snake'), + ':exclaim:' => array('exclaim.gif', '19', '19', 'excaim'), + ':question:' => array('question.gif', '19', '19', 'question') // no comma after last item + + ); + +/* End of file smileys.php */ +/* Location: ./application/config/smileys.php */ \ No newline at end of file diff --git a/application/config/user_agents.php b/application/config/user_agents.php new file mode 100644 index 000000000..e2d3c3af0 --- /dev/null +++ b/application/config/user_agents.php @@ -0,0 +1,178 @@ + 'Windows Longhorn', + 'windows nt 5.2' => 'Windows 2003', + 'windows nt 5.0' => 'Windows 2000', + 'windows nt 5.1' => 'Windows XP', + 'windows nt 4.0' => 'Windows NT 4.0', + 'winnt4.0' => 'Windows NT 4.0', + 'winnt 4.0' => 'Windows NT', + 'winnt' => 'Windows NT', + 'windows 98' => 'Windows 98', + 'win98' => 'Windows 98', + 'windows 95' => 'Windows 95', + 'win95' => 'Windows 95', + 'windows' => 'Unknown Windows OS', + 'os x' => 'Mac OS X', + 'ppc mac' => 'Power PC Mac', + 'freebsd' => 'FreeBSD', + 'ppc' => 'Macintosh', + 'linux' => 'Linux', + 'debian' => 'Debian', + 'sunos' => 'Sun Solaris', + 'beos' => 'BeOS', + 'apachebench' => 'ApacheBench', + 'aix' => 'AIX', + 'irix' => 'Irix', + 'osf' => 'DEC OSF', + 'hp-ux' => 'HP-UX', + 'netbsd' => 'NetBSD', + 'bsdi' => 'BSDi', + 'openbsd' => 'OpenBSD', + 'gnu' => 'GNU/Linux', + 'unix' => 'Unknown Unix OS' + ); + + +// The order of this array should NOT be changed. Many browsers return +// multiple browser types so we want to identify the sub-type first. +$browsers = array( + 'Flock' => 'Flock', + 'Chrome' => 'Chrome', + 'Opera' => 'Opera', + 'MSIE' => 'Internet Explorer', + 'Internet Explorer' => 'Internet Explorer', + 'Shiira' => 'Shiira', + 'Firefox' => 'Firefox', + 'Chimera' => 'Chimera', + 'Phoenix' => 'Phoenix', + 'Firebird' => 'Firebird', + 'Camino' => 'Camino', + 'Netscape' => 'Netscape', + 'OmniWeb' => 'OmniWeb', + 'Safari' => 'Safari', + 'Mozilla' => 'Mozilla', + 'Konqueror' => 'Konqueror', + 'icab' => 'iCab', + 'Lynx' => 'Lynx', + 'Links' => 'Links', + 'hotjava' => 'HotJava', + 'amaya' => 'Amaya', + 'IBrowse' => 'IBrowse' + ); + +$mobiles = array( + // legacy array, old values commented out + 'mobileexplorer' => 'Mobile Explorer', +// 'openwave' => 'Open Wave', +// 'opera mini' => 'Opera Mini', +// 'operamini' => 'Opera Mini', +// 'elaine' => 'Palm', + 'palmsource' => 'Palm', +// 'digital paths' => 'Palm', +// 'avantgo' => 'Avantgo', +// 'xiino' => 'Xiino', + 'palmscape' => 'Palmscape', +// 'nokia' => 'Nokia', +// 'ericsson' => 'Ericsson', +// 'blackberry' => 'BlackBerry', +// 'motorola' => 'Motorola' + + // Phones and Manufacturers + 'motorola' => "Motorola", + 'nokia' => "Nokia", + 'palm' => "Palm", + 'iphone' => "Apple iPhone", + 'ipad' => "iPad", + 'ipod' => "Apple iPod Touch", + 'sony' => "Sony Ericsson", + 'ericsson' => "Sony Ericsson", + 'blackberry' => "BlackBerry", + 'cocoon' => "O2 Cocoon", + 'blazer' => "Treo", + 'lg' => "LG", + 'amoi' => "Amoi", + 'xda' => "XDA", + 'mda' => "MDA", + 'vario' => "Vario", + 'htc' => "HTC", + 'samsung' => "Samsung", + 'sharp' => "Sharp", + 'sie-' => "Siemens", + 'alcatel' => "Alcatel", + 'benq' => "BenQ", + 'ipaq' => "HP iPaq", + 'mot-' => "Motorola", + 'playstation portable' => "PlayStation Portable", + 'hiptop' => "Danger Hiptop", + 'nec-' => "NEC", + 'panasonic' => "Panasonic", + 'philips' => "Philips", + 'sagem' => "Sagem", + 'sanyo' => "Sanyo", + 'spv' => "SPV", + 'zte' => "ZTE", + 'sendo' => "Sendo", + + // Operating Systems + 'symbian' => "Symbian", + 'SymbianOS' => "SymbianOS", + 'elaine' => "Palm", + 'palm' => "Palm", + 'series60' => "Symbian S60", + 'windows ce' => "Windows CE", + + // Browsers + 'obigo' => "Obigo", + 'netfront' => "Netfront Browser", + 'openwave' => "Openwave Browser", + 'mobilexplorer' => "Mobile Explorer", + 'operamini' => "Opera Mini", + 'opera mini' => "Opera Mini", + + // Other + 'digital paths' => "Digital Paths", + 'avantgo' => "AvantGo", + 'xiino' => "Xiino", + 'novarra' => "Novarra Transcoder", + 'vodafone' => "Vodafone", + 'docomo' => "NTT DoCoMo", + 'o2' => "O2", + + // Fallback + 'mobile' => "Generic Mobile", + 'wireless' => "Generic Mobile", + 'j2me' => "Generic Mobile", + 'midp' => "Generic Mobile", + 'cldc' => "Generic Mobile", + 'up.link' => "Generic Mobile", + 'up.browser' => "Generic Mobile", + 'smartphone' => "Generic Mobile", + 'cellphone' => "Generic Mobile" + ); + +// There are hundreds of bots but these are the most common. +$robots = array( + 'googlebot' => 'Googlebot', + 'msnbot' => 'MSNBot', + 'slurp' => 'Inktomi Slurp', + 'yahoo' => 'Yahoo', + 'askjeeves' => 'AskJeeves', + 'fastcrawler' => 'FastCrawler', + 'infoseek' => 'InfoSeek Robot 1.0', + 'lycos' => 'Lycos' + ); + +/* End of file user_agents.php */ +/* Location: ./application/config/user_agents.php */ \ No newline at end of file diff --git a/application/controllers/barcode.php b/application/controllers/barcode.php new file mode 100644 index 000000000..0d3d3b7b8 --- /dev/null +++ b/application/controllers/barcode.php @@ -0,0 +1,14 @@ +load->view('barcode'); + } +} +?> \ No newline at end of file diff --git a/application/controllers/config.php b/application/controllers/config.php new file mode 100644 index 000000000..57ce05b0f --- /dev/null +++ b/application/controllers/config.php @@ -0,0 +1,46 @@ +load->view("config"); + } + + function save() + { + $batch_save_data=array( + 'company'=>$this->input->post('company'), + 'address'=>$this->input->post('address'), + 'phone'=>$this->input->post('phone'), + 'email'=>$this->input->post('email'), + 'fax'=>$this->input->post('fax'), + 'website'=>$this->input->post('website'), + 'default_tax_1_rate'=>$this->input->post('default_tax_1_rate'), + 'default_tax_1_name'=>$this->input->post('default_tax_1_name'), + 'default_tax_2_rate'=>$this->input->post('default_tax_2_rate'), + 'default_tax_2_name'=>$this->input->post('default_tax_2_name'), + 'currency_symbol'=>$this->input->post('currency_symbol'), + 'return_policy'=>$this->input->post('return_policy'), + 'language'=>$this->input->post('language'), + 'timezone'=>$this->input->post('timezone'), + 'print_after_sale'=>$this->input->post('print_after_sale') + ); + + if($_SERVER['HTTP_HOST'] !='ospos.pappastech.com' && $this->Appconfig->batch_save($batch_save_data)) + { + echo json_encode(array('success'=>true,'message'=>$this->lang->line('config_saved_successfully'))); + } + else + { + echo json_encode(array('success'=>false,'message'=>$this->lang->line('config_saved_unsuccessfully'))); + + } + } +} +?> \ No newline at end of file diff --git a/application/controllers/customers.php b/application/controllers/customers.php new file mode 100644 index 000000000..a025d3ce2 --- /dev/null +++ b/application/controllers/customers.php @@ -0,0 +1,200 @@ +Customer->count_all(); + $config['per_page'] = '20'; + $this->pagination->initialize($config); + + $data['controller_name']=strtolower(get_class()); + $data['form_width']=$this->get_form_width(); + $data['manage_table']=get_people_manage_table($this->Customer->get_all($config['per_page'], $this->input->get('per_page')),$this); + $this->load->view('people/manage',$data); + } + + /* + Returns customer table data rows. This will be called with AJAX. + */ + function search() + { + $search=$this->input->post('search'); + $data_rows=get_people_manage_table_data_rows($this->Customer->search($search),$this); + echo $data_rows; + } + + /* + Gives search suggestions based on what is being searched for + */ + function suggest() + { + $suggestions = $this->Customer->get_search_suggestions($this->input->post('q'),$this->input->post('limit')); + echo implode("\n",$suggestions); + } + + /* + Loads the customer edit form + */ + function view($customer_id=-1) + { + $data['person_info']=$this->Customer->get_info($customer_id); + $this->load->view("customers/form",$data); + } + + /* + Inserts/updates a customer + */ + function save($customer_id=-1) + { + $person_data = array( + 'first_name'=>$this->input->post('first_name'), + 'last_name'=>$this->input->post('last_name'), + 'email'=>$this->input->post('email'), + 'phone_number'=>$this->input->post('phone_number'), + 'address_1'=>$this->input->post('address_1'), + 'address_2'=>$this->input->post('address_2'), + 'city'=>$this->input->post('city'), + 'state'=>$this->input->post('state'), + 'zip'=>$this->input->post('zip'), + 'country'=>$this->input->post('country'), + 'comments'=>$this->input->post('comments') + ); + $customer_data=array( + 'account_number'=>$this->input->post('account_number')=='' ? null:$this->input->post('account_number'), + 'taxable'=>$this->input->post('taxable')=='' ? 0:1, + ); + if($this->Customer->save($person_data,$customer_data,$customer_id)) + { + //New customer + if($customer_id==-1) + { + echo json_encode(array('success'=>true,'message'=>$this->lang->line('customers_successful_adding').' '. + $person_data['first_name'].' '.$person_data['last_name'],'person_id'=>$customer_data['person_id'])); + } + else //previous customer + { + echo json_encode(array('success'=>true,'message'=>$this->lang->line('customers_successful_updating').' '. + $person_data['first_name'].' '.$person_data['last_name'],'person_id'=>$customer_id)); + } + } + else//failure + { + echo json_encode(array('success'=>false,'message'=>$this->lang->line('customers_error_adding_updating').' '. + $person_data['first_name'].' '.$person_data['last_name'],'person_id'=>-1)); + } + } + + /* + This deletes customers from the customers table + */ + function delete() + { + $customers_to_delete=$this->input->post('ids'); + + if($this->Customer->delete_list($customers_to_delete)) + { + echo json_encode(array('success'=>true,'message'=>$this->lang->line('customers_successful_deleted').' '. + count($customers_to_delete).' '.$this->lang->line('customers_one_or_multiple'))); + } + else + { + echo json_encode(array('success'=>false,'message'=>$this->lang->line('customers_cannot_be_deleted'))); + } + } + + function excel() + { + $data = file_get_contents("import_customers.csv"); + $name = 'import_customers.csv'; + force_download($name, $data); + } + + function excel_import() + { + $this->load->view("customers/excel_import", null); + } + + function do_excel_import() + { + $msg = 'do_excel_import'; + $failCodes = array(); + if ($_FILES['file_path']['error']!=UPLOAD_ERR_OK) + { + $msg = $this->lang->line('items_excel_import_failed'); + echo json_encode( array('success'=>false,'message'=>$msg) ); + return; + } + else + { + if (($handle = fopen($_FILES['file_path']['tmp_name'], "r")) !== FALSE) + { + //Skip first row + fgetcsv($handle); + + $i=1; + while (($data = fgetcsv($handle)) !== FALSE) + { + $person_data = array( + 'first_name'=>$data[0], + 'last_name'=>$data[1], + 'email'=>$data[2], + 'phone_number'=>$data[3], + 'address_1'=>$data[4], + 'address_2'=>$data[5], + 'city'=>$data[6], + 'state'=>$data[7], + 'zip'=>$data[8], + 'country'=>$data[9], + 'comments'=>$data[10] + ); + + $customer_data=array( + 'account_number'=>$data[11]=='' ? null:$data[11], + 'taxable'=>$data[12]=='' ? 0:1, + ); + + if(!$this->Customer->save($person_data,$customer_data)) + { + $failCodes[] = $i; + } + + $i++; + } + } + else + { + echo json_encode( array('success'=>false,'message'=>'Your upload file has no data or not in supported format.') ); + return; + } + } + + $success = true; + if(count($failCodes) > 1) + { + $msg = "Most customers imported. But some were not, here is list of their CODE (" .count($failCodes) ."): ".implode(", ", $failCodes); + $success = false; + } + else + { + $msg = "Import Customers successful"; + } + + echo json_encode( array('success'=>$success,'message'=>$msg) ); + } + + /* + get the width for the add/edit form + */ + function get_form_width() + { + return 350; + } +} +?> \ No newline at end of file diff --git a/application/controllers/employees.php b/application/controllers/employees.php new file mode 100644 index 000000000..748dda0ca --- /dev/null +++ b/application/controllers/employees.php @@ -0,0 +1,142 @@ +Employee->count_all(); + $config['per_page'] = '20'; + $this->pagination->initialize($config); + + $data['controller_name']=strtolower(get_class()); + $data['form_width']=$this->get_form_width(); + $data['manage_table']=get_people_manage_table($this->Employee->get_all($config['per_page'], $this->input->get('per_page')),$this); + $this->load->view('people/manage',$data); + } + + /* + Returns employee table data rows. This will be called with AJAX. + */ + function search() + { + $search=$this->input->post('search'); + $data_rows=get_people_manage_table_data_rows($this->Employee->search($search),$this); + echo $data_rows; + } + + /* + Gives search suggestions based on what is being searched for + */ + function suggest() + { + $suggestions = $this->Employee->get_search_suggestions($this->input->post('q'),$this->input->post('limit')); + echo implode("\n",$suggestions); + } + + /* + Loads the employee edit form + */ + function view($employee_id=-1) + { + $data['person_info']=$this->Employee->get_info($employee_id); + $data['all_modules']=$this->Module->get_all_modules(); + $this->load->view("employees/form",$data); + } + + /* + Inserts/updates an employee + */ + function save($employee_id=-1) + { + $person_data = array( + 'first_name'=>$this->input->post('first_name'), + 'last_name'=>$this->input->post('last_name'), + 'email'=>$this->input->post('email'), + 'phone_number'=>$this->input->post('phone_number'), + 'address_1'=>$this->input->post('address_1'), + 'address_2'=>$this->input->post('address_2'), + 'city'=>$this->input->post('city'), + 'state'=>$this->input->post('state'), + 'zip'=>$this->input->post('zip'), + 'country'=>$this->input->post('country'), + 'comments'=>$this->input->post('comments') + ); + $permission_data = $this->input->post("permissions")!=false ? $this->input->post("permissions"):array(); + + //Password has been changed OR first time password set + if($this->input->post('password')!='') + { + $employee_data=array( + 'username'=>$this->input->post('username'), + 'password'=>md5($this->input->post('password')) + ); + } + else //Password not changed + { + $employee_data=array('username'=>$this->input->post('username')); + } + + if ($_SERVER['HTTP_HOST'] == 'ospos.pappastech.com' && $employee_id == 1) + { + //failure + echo json_encode(array('success'=>false,'message'=>$this->lang->line('employees_error_updating_demo_admin').' '. + $person_data['first_name'].' '.$person_data['last_name'],'person_id'=>-1)); + } + elseif($this->Employee->save($person_data,$employee_data,$permission_data,$employee_id)) + { + //New employee + if($employee_id==-1) + { + echo json_encode(array('success'=>true,'message'=>$this->lang->line('employees_successful_adding').' '. + $person_data['first_name'].' '.$person_data['last_name'],'person_id'=>$employee_data['person_id'])); + } + else //previous employee + { + echo json_encode(array('success'=>true,'message'=>$this->lang->line('employees_successful_updating').' '. + $person_data['first_name'].' '.$person_data['last_name'],'person_id'=>$employee_id)); + } + } + else//failure + { + echo json_encode(array('success'=>false,'message'=>$this->lang->line('employees_error_adding_updating').' '. + $person_data['first_name'].' '.$person_data['last_name'],'person_id'=>-1)); + } + } + + /* + This deletes employees from the employees table + */ + function delete() + { + $employees_to_delete=$this->input->post('ids'); + + if ($_SERVER['HTTP_HOST'] == 'ospos.pappastech.com' && in_array(1,$employees_to_delete)) + { + //failure + echo json_encode(array('success'=>false,'message'=>$this->lang->line('employees_error_deleting_demo_admin'))); + } + elseif($this->Employee->delete_list($employees_to_delete)) + { + echo json_encode(array('success'=>true,'message'=>$this->lang->line('employees_successful_deleted').' '. + count($employees_to_delete).' '.$this->lang->line('employees_one_or_multiple'))); + } + else + { + echo json_encode(array('success'=>false,'message'=>$this->lang->line('employees_cannot_be_deleted'))); + } + } + /* + get the width for the add/edit form + */ + function get_form_width() + { + return 650; + } +} +?> \ No newline at end of file diff --git a/application/controllers/giftcards.php b/application/controllers/giftcards.php new file mode 100644 index 000000000..b256eb91b --- /dev/null +++ b/application/controllers/giftcards.php @@ -0,0 +1,107 @@ +Giftcard->count_all(); + $config['per_page'] = '20'; + $this->pagination->initialize($config); + + $data['controller_name']=strtolower(get_class()); + $data['form_width']=$this->get_form_width(); + $data['manage_table']=get_giftcards_manage_table($this->Giftcard->get_all($config['per_page'], $this->input->get('per_page')),$this); + $this->load->view('giftcards/manage',$data); + } + + function search() + { + $search=$this->input->post('search'); + $data_rows=get_giftcards_manage_table_data_rows($this->Giftcard->search($search),$this); + echo $data_rows; + } + + /* + Gives search suggestions based on what is being searched for + */ + function suggest() + { + $suggestions = $this->Giftcard->get_search_suggestions($this->input->post('q'),$this->input->post('limit')); + echo implode("\n",$suggestions); + } + + function get_row() + { + $giftcard_id = $this->input->post('row_id'); + $data_row=get_giftcard_data_row($this->Giftcard->get_info($giftcard_id),$this); + echo $data_row; + } + + function view($giftcard_id=-1) + { + $data['giftcard_info']=$this->Giftcard->get_info($giftcard_id); + + $this->load->view("giftcards/form",$data); + } + + function save($giftcard_id=-1) + { + $giftcard_data = array( + 'giftcard_number'=>$this->input->post('giftcard_number'), + 'value'=>$this->input->post('value') + ); + + if( $this->Giftcard->save( $giftcard_data, $giftcard_id ) ) + { + //New giftcard + if($giftcard_id==-1) + { + echo json_encode(array('success'=>true,'message'=>$this->lang->line('giftcards_successful_adding').' '. + $giftcard_data['giftcard_number'],'giftcard_id'=>$giftcard_data['giftcard_id'])); + $giftcard_id = $giftcard_data['giftcard_id']; + } + else //previous giftcard + { + echo json_encode(array('success'=>true,'message'=>$this->lang->line('giftcards_successful_updating').' '. + $giftcard_data['giftcard_number'],'giftcard_id'=>$giftcard_id)); + } + } + else//failure + { + echo json_encode(array('success'=>false,'message'=>$this->lang->line('giftcards_error_adding_updating').' '. + $giftcard_data['giftcard_number'],'giftcard_id'=>-1)); + } + + } + + function delete() + { + $giftcards_to_delete=$this->input->post('ids'); + + if($this->Giftcard->delete_list($giftcards_to_delete)) + { + echo json_encode(array('success'=>true,'message'=>$this->lang->line('giftcards_successful_deleted').' '. + count($giftcards_to_delete).' '.$this->lang->line('giftcards_one_or_multiple'))); + } + else + { + echo json_encode(array('success'=>false,'message'=>$this->lang->line('giftcards_cannot_be_deleted'))); + } + } + + /* + get the width for the add/edit form + */ + function get_form_width() + { + return 360; + } +} +?> \ No newline at end of file diff --git a/application/controllers/home.php b/application/controllers/home.php new file mode 100644 index 000000000..8e5d307fe --- /dev/null +++ b/application/controllers/home.php @@ -0,0 +1,21 @@ +load->view("home"); + } + + function logout() + { + $this->Employee->logout(); + } +} +?> \ No newline at end of file diff --git a/application/controllers/index.html b/application/controllers/index.html new file mode 100644 index 000000000..c942a79ce --- /dev/null +++ b/application/controllers/index.html @@ -0,0 +1,10 @@ + + + 403 Forbidden + + + +

Directory access is forbidden.

+ + + \ No newline at end of file diff --git a/application/controllers/interfaces/idata_controller.php b/application/controllers/interfaces/idata_controller.php new file mode 100644 index 000000000..e05d493d0 --- /dev/null +++ b/application/controllers/interfaces/idata_controller.php @@ -0,0 +1,17 @@ + \ No newline at end of file diff --git a/application/controllers/interfaces/iperson_controller.php b/application/controllers/interfaces/iperson_controller.php new file mode 100644 index 000000000..92cdb1810 --- /dev/null +++ b/application/controllers/interfaces/iperson_controller.php @@ -0,0 +1,11 @@ + \ No newline at end of file diff --git a/application/controllers/item_kits.php b/application/controllers/item_kits.php new file mode 100644 index 000000000..ddbc31575 --- /dev/null +++ b/application/controllers/item_kits.php @@ -0,0 +1,137 @@ +Item_kit->count_all(); + $config['per_page'] = '20'; + $this->pagination->initialize($config); + + $data['controller_name']=strtolower(get_class()); + $data['form_width']=$this->get_form_width(); + $data['manage_table']=get_item_kits_manage_table( $this->Item_kit->get_all($config['per_page'], $this->input->get('per_page')),$this); + $this->load->view('item_kits/manage',$data); + } + + function search() + { + $search=$this->input->post('search'); + $data_rows=get_item_kits_manage_table_data_rows($this->Item_kit->search($search),$this); + echo $data_rows; + } + + /* + Gives search suggestions based on what is being searched for + */ + function suggest() + { + $suggestions = $this->Item_kit->get_search_suggestions($this->input->post('q'),$this->input->post('limit')); + echo implode("\n",$suggestions); + } + + function get_row() + { + $item_kit_id = $this->input->post('row_id'); + $data_row=get_item_kit_data_row($this->Item_kit->get_info($item_kit_id),$this); + echo $data_row; + } + + function view($item_kit_id=-1) + { + $data['item_kit_info']=$this->Item_kit->get_info($item_kit_id); + $this->load->view("item_kits/form",$data); + } + + function save($item_kit_id=-1) + { + $item_kit_data = array( + 'name'=>$this->input->post('name'), + 'description'=>$this->input->post('description') + ); + + if($this->Item_kit->save($item_kit_data,$item_kit_id)) + { + //New item kit + if($item_kit_id==-1) + { + echo json_encode(array('success'=>true,'message'=>$this->lang->line('item_kits_successful_adding').' '. + $item_kit_data['name'],'item_kit_id'=>$item_kit_data['item_kit_id'])); + $item_kit_id = $item_kit_data['item_kit_id']; + } + else //previous item + { + echo json_encode(array('success'=>true,'message'=>$this->lang->line('item_kits_successful_updating').' '. + $item_kit_data['name'],'item_kit_id'=>$item_kit_id)); + } + + if ($this->input->post('item_kit_item')) + { + $item_kit_items = array(); + foreach($this->input->post('item_kit_item') as $item_id => $quantity) + { + $item_kit_items[] = array( + 'item_id' => $item_id, + 'quantity' => $quantity + ); + } + + $this->Item_kit_items->save($item_kit_items, $item_kit_id); + } + } + else//failure + { + echo json_encode(array('success'=>false,'message'=>$this->lang->line('item_kits_error_adding_updating').' '. + $item_kit_data['name'],'item_kit_id'=>-1)); + } + + } + + function delete() + { + $item_kits_to_delete=$this->input->post('ids'); + + if($this->Item_kit->delete_list($item_kits_to_delete)) + { + echo json_encode(array('success'=>true,'message'=>$this->lang->line('item_kits_successful_deleted').' '. + count($item_kits_to_delete).' '.$this->lang->line('item_kits_one_or_multiple'))); + } + else + { + echo json_encode(array('success'=>false,'message'=>$this->lang->line('item_kits_cannot_be_deleted'))); + } + } + + function generate_barcodes($item_kit_ids) + { + $result = array(); + + $item_kit_ids = explode(',', $item_kit_ids); + foreach ($item_kit_ids as $item_kid_id) + { + $item_kit_info = $this->Item_kit->get_info($item_kid_id); + + $result[] = array('name' =>$item_kit_info->name, 'id'=> 'KIT '.$item_kid_id); + } + + $data['items'] = $result; + $this->load->view("barcode_sheet", $data); + } + + + /* + get the width for the add/edit form + */ + function get_form_width() + { + return 360; + } +} +?> \ No newline at end of file diff --git a/application/controllers/items.php b/application/controllers/items.php new file mode 100644 index 000000000..c90ff207b --- /dev/null +++ b/application/controllers/items.php @@ -0,0 +1,427 @@ +Item->count_all(); + $config['per_page'] = '20'; + $this->pagination->initialize($config); + + $data['controller_name']=strtolower(get_class()); + $data['form_width']=$this->get_form_width(); + $data['manage_table']=get_items_manage_table($this->Item->get_all($config['per_page'], $this->input->get('per_page')),$this); + $this->load->view('items/manage',$data); + } + + function refresh() + { + $low_inventory=$this->input->post('low_inventory'); + $is_serialized=$this->input->post('is_serialized'); + $no_description=$this->input->post('no_description'); + + $data['search_section_state']=$this->input->post('search_section_state'); + $data['low_inventory']=$this->input->post('low_inventory'); + $data['is_serialized']=$this->input->post('is_serialized'); + $data['no_description']=$this->input->post('no_description'); + $data['controller_name']=strtolower(get_class()); + $data['form_width']=$this->get_form_width(); + $data['manage_table']=get_items_manage_table($this->Item->get_all_filtered($low_inventory,$is_serialized,$no_description),$this); + $this->load->view('items/manage',$data); + } + + function find_item_info() + { + $item_number=$this->input->post('scan_item_number'); + echo json_encode($this->Item->find_item_info($item_number)); + } + + function search() + { + $search=$this->input->post('search'); + $data_rows=get_items_manage_table_data_rows($this->Item->search($search),$this); + echo $data_rows; + } + + /* + Gives search suggestions based on what is being searched for + */ + function suggest() + { + $suggestions = $this->Item->get_search_suggestions($this->input->post('q'),$this->input->post('limit')); + echo implode("\n",$suggestions); + } + + function item_search() + { + $suggestions = $this->Item->get_item_search_suggestions($this->input->post('q'),$this->input->post('limit')); + echo implode("\n",$suggestions); + } + + /* + Gives search suggestions based on what is being searched for + */ + function suggest_category() + { + $suggestions = $this->Item->get_category_suggestions($this->input->post('q')); + echo implode("\n",$suggestions); + } + + function get_row() + { + $item_id = $this->input->post('row_id'); + $data_row=get_item_data_row($this->Item->get_info($item_id),$this); + echo $data_row; + } + + function view($item_id=-1) + { + $data['item_info']=$this->Item->get_info($item_id); + $data['item_tax_info']=$this->Item_taxes->get_info($item_id); + $suppliers = array('' => $this->lang->line('items_none')); + foreach($this->Supplier->get_all()->result_array() as $row) + { + $suppliers[$row['person_id']] = $row['company_name'] .' ('.$row['first_name'] .' '. $row['last_name'].')'; + } + + $data['suppliers']=$suppliers; + $data['selected_supplier'] = $this->Item->get_info($item_id)->supplier_id; + $data['default_tax_1_rate']=($item_id==-1) ? $this->Appconfig->get('default_tax_1_rate') : ''; + $data['default_tax_2_rate']=($item_id==-1) ? $this->Appconfig->get('default_tax_2_rate') : ''; + $this->load->view("items/form",$data); + } + + //Ramel Inventory Tracking + function inventory($item_id=-1) + { + $data['item_info']=$this->Item->get_info($item_id); + $this->load->view("items/inventory",$data); + } + + function count_details($item_id=-1) + { + $data['item_info']=$this->Item->get_info($item_id); + $this->load->view("items/count_details",$data); + } //------------------------------------------- Ramel + + function generate_barcodes($item_ids) + { + $result = array(); + + $item_ids = explode(',', $item_ids); + foreach ($item_ids as $item_id) + { + $item_info = $this->Item->get_info($item_id); + + $result[] = array('name' =>$item_info->name, 'id'=> $item_id); + } + + $data['items'] = $result; + $this->load->view("barcode_sheet", $data); + } + + function bulk_edit() + { + $data = array(); + $suppliers = array('' => $this->lang->line('items_none')); + foreach($this->Supplier->get_all()->result_array() as $row) + { + $suppliers[$row['person_id']] = $row['first_name'] .' '. $row['last_name']; + } + $data['suppliers'] = $suppliers; + $data['allow_alt_desciption_choices'] = array( + ''=>$this->lang->line('items_do_nothing'), + 1 =>$this->lang->line('items_change_all_to_allow_alt_desc'), + 0 =>$this->lang->line('items_change_all_to_not_allow_allow_desc')); + + $data['serialization_choices'] = array( + ''=>$this->lang->line('items_do_nothing'), + 1 =>$this->lang->line('items_change_all_to_serialized'), + 0 =>$this->lang->line('items_change_all_to_unserialized')); + $this->load->view("items/form_bulk", $data); + } + + function save($item_id=-1) + { + $item_data = array( + 'name'=>$this->input->post('name'), + 'description'=>$this->input->post('description'), + 'category'=>$this->input->post('category'), + 'supplier_id'=>$this->input->post('supplier_id')=='' ? null:$this->input->post('supplier_id'), + 'item_number'=>$this->input->post('item_number')=='' ? null:$this->input->post('item_number'), + 'cost_price'=>$this->input->post('cost_price'), + 'unit_price'=>$this->input->post('unit_price'), + 'quantity'=>$this->input->post('quantity'), + 'reorder_level'=>$this->input->post('reorder_level'), + 'location'=>$this->input->post('location'), + 'allow_alt_description'=>$this->input->post('allow_alt_description'), + 'is_serialized'=>$this->input->post('is_serialized') + ); + + $employee_id=$this->Employee->get_logged_in_employee_info()->person_id; + $cur_item_info = $this->Item->get_info($item_id); + + + if($this->Item->save($item_data,$item_id)) + { + //New item + if($item_id==-1) + { + echo json_encode(array('success'=>true,'message'=>$this->lang->line('items_successful_adding').' '. + $item_data['name'],'item_id'=>$item_data['item_id'])); + $item_id = $item_data['item_id']; + } + else //previous item + { + echo json_encode(array('success'=>true,'message'=>$this->lang->line('items_successful_updating').' '. + $item_data['name'],'item_id'=>$item_id)); + } + + $inv_data = array + ( + 'trans_date'=>date('Y-m-d H:i:s'), + 'trans_items'=>$item_id, + 'trans_user'=>$employee_id, + 'trans_comment'=>$this->lang->line('items_manually_editing_of_quantity'), + 'trans_inventory'=>$cur_item_info ? $this->input->post('quantity') - $cur_item_info->quantity : $this->input->post('quantity') + ); + $this->Inventory->insert($inv_data); + $items_taxes_data = array(); + $tax_names = $this->input->post('tax_names'); + $tax_percents = $this->input->post('tax_percents'); + for($k=0;$k$tax_names[$k], 'percent'=>$tax_percents[$k] ); + } + } + $this->Item_taxes->save($items_taxes_data, $item_id); + } + else//failure + { + echo json_encode(array('success'=>false,'message'=>$this->lang->line('items_error_adding_updating').' '. + $item_data['name'],'item_id'=>-1)); + } + + } + + //Ramel Inventory Tracking + function save_inventory($item_id=-1) + { + $employee_id=$this->Employee->get_logged_in_employee_info()->person_id; + $cur_item_info = $this->Item->get_info($item_id); + $inv_data = array + ( + 'trans_date'=>date('Y-m-d H:i:s'), + 'trans_items'=>$item_id, + 'trans_user'=>$employee_id, + 'trans_comment'=>$this->input->post('trans_comment'), + 'trans_inventory'=>$this->input->post('newquantity') + ); + $this->Inventory->insert($inv_data); + + //Update stock quantity + $item_data = array( + 'quantity'=>$cur_item_info->quantity + $this->input->post('newquantity') + ); + if($this->Item->save($item_data,$item_id)) + { + echo json_encode(array('success'=>true,'message'=>$this->lang->line('items_successful_updating').' '. + $cur_item_info->name,'item_id'=>$item_id)); + } + else//failure + { + echo json_encode(array('success'=>false,'message'=>$this->lang->line('items_error_adding_updating').' '. + $cur_item_info->name,'item_id'=>-1)); + } + + }//---------------------------------------------------------------------Ramel + + function bulk_update() + { + $items_to_update=$this->input->post('item_ids'); + $item_data = array(); + + foreach($_POST as $key=>$value) + { + //This field is nullable, so treat it differently + if ($key == 'supplier_id') + { + $item_data["$key"]=$value == '' ? null : $value; + } + elseif($value!='' and !(in_array($key, array('item_ids', 'tax_names', 'tax_percents')))) + { + $item_data["$key"]=$value; + } + } + + //Item data could be empty if tax information is being updated + if(empty($item_data) || $this->Item->update_multiple($item_data,$items_to_update)) + { + $items_taxes_data = array(); + $tax_names = $this->input->post('tax_names'); + $tax_percents = $this->input->post('tax_percents'); + for($k=0;$k$tax_names[$k], 'percent'=>$tax_percents[$k] ); + } + } + $this->Item_taxes->save_multiple($items_taxes_data, $items_to_update); + + echo json_encode(array('success'=>true,'message'=>$this->lang->line('items_successful_bulk_edit'))); + } + else + { + echo json_encode(array('success'=>false,'message'=>$this->lang->line('items_error_updating_multiple'))); + } + } + + function delete() + { + $items_to_delete=$this->input->post('ids'); + + if($this->Item->delete_list($items_to_delete)) + { + echo json_encode(array('success'=>true,'message'=>$this->lang->line('items_successful_deleted').' '. + count($items_to_delete).' '.$this->lang->line('items_one_or_multiple'))); + } + else + { + echo json_encode(array('success'=>false,'message'=>$this->lang->line('items_cannot_be_deleted'))); + } + } + + function excel() + { + $data = file_get_contents("import_items.csv"); + $name = 'import_items.csv'; + force_download($name, $data); + } + + function excel_import() + { + $this->load->view("items/excel_import", null); + } + + function do_excel_import() + { + $msg = 'do_excel_import'; + $failCodes = array(); + if ($_FILES['file_path']['error']!=UPLOAD_ERR_OK) + { + $msg = $this->lang->line('items_excel_import_failed'); + echo json_encode( array('success'=>false,'message'=>$msg) ); + return; + } + else + { + if (($handle = fopen($_FILES['file_path']['tmp_name'], "r")) !== FALSE) + { + //Skip first row + fgetcsv($handle); + + $i=1; + while (($data = fgetcsv($handle)) !== FALSE) + { + $item_data = array( + 'name' => $data[1], + 'description' => $data[13], + 'location' => $data[12], + 'category' => $data[2], + 'cost_price' => $data[4], + 'unit_price' => $data[5], + 'quantity' => $data[10], + 'reorder_level' => $data[11], + 'supplier_id' => $this->Supplier->exists($data[3]) ? $data[3] : null, + 'allow_alt_description'=> $data[14] != '' ? '1' : '0', + 'is_serialized'=>$data[15] != '' ? '1' : '0' + ); + $item_number = $data[0]; + + if ($item_number != "") + { + $item_data['item_number'] = $item_number; + } + + if($this->Item->save($item_data)) + { + $items_taxes_data = null; + //tax 1 + if( is_numeric($data[7]) && $data[6]!='' ) + { + $items_taxes_data[] = array('name'=>$data[6], 'percent'=>$data[7] ); + } + + //tax 2 + if( is_numeric($data[9]) && $data[8]!='' ) + { + $items_taxes_data[] = array('name'=>$data[8], 'percent'=>$data[9] ); + } + + // save tax values + if(count($items_taxes_data) > 0) + { + $this->Item_taxes->save($items_taxes_data, $item_data['item_id']); + } + + $employee_id=$this->Employee->get_logged_in_employee_info()->person_id; + $emp_info=$this->Employee->get_info($employee_id); + $comment ='Qty CSV Imported'; + $excel_data = array + ( + 'trans_items'=>$item_data['item_id'], + 'trans_user'=>$employee_id, + 'trans_comment'=>$comment, + 'trans_inventory'=>$data[10] + ); + $this->db->insert('inventory',$excel_data); + //------------------------------------------------Ramel + } + else//insert or update item failure + { + $failCodes[] = $i; + } + } + + $i++; + } + else + { + echo json_encode( array('success'=>false,'message'=>'Your upload file has no data or not in supported format.') ); + return; + } + } + + $success = true; + if(count($failCodes) > 1) + { + $msg = "Most items imported. But some were not, here is list of their CODE (" .count($failCodes) ."): ".implode(", ", $failCodes); + $success = false; + } + else + { + $msg = "Import items successful"; + } + + echo json_encode( array('success'=>$success,'message'=>$msg) ); + } + + /* + get the width for the add/edit form + */ + function get_form_width() + { + return 360; + } +} +?> \ No newline at end of file diff --git a/application/controllers/languagecheck.php b/application/controllers/languagecheck.php new file mode 100644 index 000000000..61b9a4709 --- /dev/null +++ b/application/controllers/languagecheck.php @@ -0,0 +1,192 @@ +load->helper('directory'); + + // for simplicity, we don't use views + $this->output('h1', 'Open Source Point of Sale - Language file checking and validation'); + + // determine the language file path + if ( ! is_dir($this->lang_path) ) + { + $this->lang_path = APPPATH . $this->lang_path; + + if ( ! is_dir($this->lang_path) ) + { + $this->output('h2', 'Defined language path "'.$this->lang_path.'" not found!', TRUE); + exit; + } + } + + // fetch the languages directory map + $languages = directory_map( $this->lang_path, TRUE ); + + // is our reference language present? + if ( ! in_array($this->reference, $languages ) ) + { + $this->output('h2', 'Reference language "'.$this->reference.'" not found!', TRUE); + exit; + } + + // load the list of language files for the reference language + $references = directory_map( $this->lang_path . '/' . $this->reference, TRUE ); + + // now process the list + foreach( $references as $reference ) + { + // skip non-language files in the language directory + if ( strpos($reference, '_lang'.EXT) === FALSE ) + { + continue; + } + + // process it + $this->output('h2', 'Processing '.$this->reference . ' » ' .$reference); + + // load the language file + include $this->lang_path . '/' . $this->reference . '/' . $reference; + + // did the file contain any language strings? + if ( empty($lang) ) + { + // language file was empty or not properly defined + $this->output('h3', 'Language file doesn\'t contain any language strings. Skipping file!', TRUE); + continue; + } + + // store the loaded language strings + $lang_ref = $lang; + unset($lang); + + // now loop through the available languages + foreach ( $languages as $language ) + { + // skip the reference language + if ( $language == $this->reference ) + { + continue; + } + + // language file to check + $file = $this->lang_path . '/' . $language . '/' . $reference; + + // check if the language file exists for this language + if ( ! file_exists( $file ) ) + { + // file not found + $this->output('h3', 'Language file doesn\'t exist for the language '.$language.'!', TRUE); + } + else + { + // load the file to compare + include $file; + + // did the file contain any language strings? + if ( empty($lang) ) + { + // language file was empty or not properly defined + $this->output('h3', 'Language file for the language '.$language.' doesn\'t contain any language strings!', TRUE); + } + else + { + // start comparing + $this->output('h3', 'Comparing with the '.$language.' version:'); + + // assume all goes well + $failures = 0; + + // start comparing language keys + foreach( $lang_ref as $key => $value ) + { + if ( ! isset($lang[$key]) ) + { + // report the missing key + $this->output('', 'Missing language string "'.$key.'"', TRUE); + + // increment the failure counter + $failures++; + } + } + + if ( ! $failures ) + { + $this->output('', 'The two language files have matching strings.'); + } + } + + // make sure the lang array is deleted before the next check + if ( isset($lang) ) + { + unset($lang); + } + } + } + + } + + $this->output('h2', 'Language file checking and validation completed'); + } + + // ----------------------------------------------------------------- + + private function output($type = '', $line = '', $highlight = FALSE) + { + switch ($type) + { + case 'h1': + $html = "

{line}

\n
\n"; + break; + + case 'h2': + $html = "

{line}

\n"; + break; + + case 'h3': + $html = "

   {line}

\n"; + break; + + default: + $html = "    » {line}
"; + break; + } + + if ( $highlight ) + { + $line = '' . $line . ''; + } + + echo str_replace('{line}', $line, $html); + } + // ----------------------------------------------------------------- + +} + +/* End of file languagecheck.php */ +/* Location: ./application/controllers/languagecheck.php */ diff --git a/application/controllers/login.php b/application/controllers/login.php new file mode 100644 index 000000000..809e0c432 --- /dev/null +++ b/application/controllers/login.php @@ -0,0 +1,43 @@ +Employee->is_logged_in()) + { + redirect('home'); + } + else + { + $this->form_validation->set_rules('username', 'lang:login_undername', 'callback_login_check'); + $this->form_validation->set_error_delimiters('
', '
'); + + if($this->form_validation->run() == FALSE) + { + $this->load->view('login'); + } + else + { + redirect('home'); + } + } + } + + function login_check($username) + { + $password = $this->input->post("password"); + + if(!$this->Employee->login($username,$password)) + { + $this->form_validation->set_message('login_check', $this->lang->line('login_invalid_username_and_password')); + return false; + } + return true; + } +} +?> \ No newline at end of file diff --git a/application/controllers/no_access.php b/application/controllers/no_access.php new file mode 100644 index 000000000..cba136e5c --- /dev/null +++ b/application/controllers/no_access.php @@ -0,0 +1,15 @@ +Module->get_module_name($module_id); + $this->load->view('no_access',$data); + } +} +?> \ No newline at end of file diff --git a/application/controllers/person_controller.php b/application/controllers/person_controller.php new file mode 100644 index 000000000..1cdbd48cf --- /dev/null +++ b/application/controllers/person_controller.php @@ -0,0 +1,45 @@ +input->post('ids'); + + if($people_to_email!=false) + { + $mailto_url='mailto:'; + foreach($this->Person->get_multiple_info($people_to_email)->result() as $person) + { + $mailto_url.=$person->email.','; + } + //remove last comma + $mailto_url=substr($mailto_url,0,strlen($mailto_url)-1); + + echo $mailto_url; + exit; + } + echo '#'; + } + + /* + Gets one row for a person manage table. This is called using AJAX to update one row. + */ + function get_row() + { + $person_id = $this->input->post('row_id'); + $data_row=get_person_data_row($this->Person->get_info($person_id),$this); + echo $data_row; + } + +} +?> \ No newline at end of file diff --git a/application/controllers/receivings.php b/application/controllers/receivings.php new file mode 100644 index 000000000..766fe1c02 --- /dev/null +++ b/application/controllers/receivings.php @@ -0,0 +1,197 @@ +load->library('receiving_lib'); + } + + function index() + { + $this->_reload(); + } + + function item_search() + { + $suggestions = $this->Item->get_item_search_suggestions($this->input->post('q'),$this->input->post('limit')); + $suggestions = array_merge($suggestions, $this->Item_kit->get_item_kit_search_suggestions($this->input->post('q'),$this->input->post('limit'))); + echo implode("\n",$suggestions); + } + + function supplier_search() + { + $suggestions = $this->Supplier->get_suppliers_search_suggestions($this->input->post('q'),$this->input->post('limit')); + echo implode("\n",$suggestions); + } + + function select_supplier() + { + $supplier_id = $this->input->post("supplier"); + $this->receiving_lib->set_supplier($supplier_id); + $this->_reload(); + } + + function change_mode() + { + $mode = $this->input->post("mode"); + $this->receiving_lib->set_mode($mode); + $this->_reload(); + } + + function add() + { + $data=array(); + $mode = $this->receiving_lib->get_mode(); + $item_id_or_number_or_item_kit_or_receipt = $this->input->post("item"); + $quantity = $mode=="receive" ? 1:-1; + + if($this->receiving_lib->is_valid_receipt($item_id_or_number_or_item_kit_or_receipt) && $mode=='return') + { + $this->receiving_lib->return_entire_receiving($item_id_or_number_or_item_kit_or_receipt); + } + elseif($this->receiving_lib->is_valid_item_kit($item_id_or_number_or_item_kit_or_receipt)) + { + $this->receiving_lib->add_item_kit($item_id_or_number_or_item_kit_or_receipt); + } + elseif(!$this->receiving_lib->add_item($item_id_or_number_or_item_kit_or_receipt,$quantity)) + { + $data['error']=$this->lang->line('recvs_unable_to_add_item'); + } + $this->_reload($data); + } + + function edit_item($item_id) + { + $data= array(); + + $this->form_validation->set_rules('price', 'lang:items_price', 'required|numeric'); + $this->form_validation->set_rules('quantity', 'lang:items_quantity', 'required|integer'); + $this->form_validation->set_rules('discount', 'lang:items_discount', 'required|integer'); + + $description = $this->input->post("description"); + $serialnumber = $this->input->post("serialnumber"); + $price = $this->input->post("price"); + $quantity = $this->input->post("quantity"); + $discount = $this->input->post("discount"); + + if ($this->form_validation->run() != FALSE) + { + $this->receiving_lib->edit_item($item_id,$description,$serialnumber,$quantity,$discount,$price); + } + else + { + $data['error']=$this->lang->line('recvs_error_editing_item'); + } + + $this->_reload($data); + } + + function delete_item($item_number) + { + $this->receiving_lib->delete_item($item_number); + $this->_reload(); + } + + function delete_supplier() + { + $this->receiving_lib->delete_supplier(); + $this->_reload(); + } + + function complete() + { + $data['cart']=$this->receiving_lib->get_cart(); + $data['total']=$this->receiving_lib->get_total(); + $data['receipt_title']=$this->lang->line('recvs_receipt'); + $data['transaction_time']= date('m/d/Y h:i:s a'); + $supplier_id=$this->receiving_lib->get_supplier(); + $employee_id=$this->Employee->get_logged_in_employee_info()->person_id; + $comment = $this->input->post('comment'); + $emp_info=$this->Employee->get_info($employee_id); + $payment_type = $this->input->post('payment_type'); + $data['payment_type']=$this->input->post('payment_type'); + + if ($this->input->post('amount_tendered')) + { + $data['amount_tendered'] = $this->input->post('amount_tendered'); + $data['amount_change'] = to_currency($data['amount_tendered'] - round($data['total'], 2)); + } + $data['employee']=$emp_info->first_name.' '.$emp_info->last_name; + + if($supplier_id!=-1) + { + $suppl_info=$this->Supplier->get_info($supplier_id); + $data['supplier']=$suppl_info->first_name.' '.$suppl_info->last_name; + } + + //SAVE receiving to database + $data['receiving_id']='RECV '.$this->Receiving->save($data['cart'], $supplier_id,$employee_id,$comment,$payment_type); + + if ($data['receiving_id'] == 'RECV -1') + { + $data['error_message'] = $this->lang->line('receivings_transaction_failed'); + } + + $this->load->view("receivings/receipt",$data); + $this->receiving_lib->clear_all(); + } + + function receipt($receiving_id) + { + $receiving_info = $this->Receiving->get_info($receiving_id)->row_array(); + $this->receiving_lib->copy_entire_receiving($receiving_id); + $data['cart']=$this->receiving_lib->get_cart(); + $data['total']=$this->receiving_lib->get_total(); + $data['receipt_title']=$this->lang->line('recvs_receipt'); + $data['transaction_time']= date('m/d/Y h:i:s a', strtotime($receiving_info['receiving_time'])); + $supplier_id=$this->receiving_lib->get_supplier(); + $emp_info=$this->Employee->get_info($receiving_info['employee_id']); + $data['payment_type']=$receiving_info['payment_type']; + + $data['employee']=$emp_info->first_name.' '.$emp_info->last_name; + + if($supplier_id!=-1) + { + $supplier_info=$this->Supplier->get_info($supplier_id); + $data['supplier']=$supplier_info->first_name.' '.$supplier_info->last_name; + } + $data['receiving_id']='RECV '.$receiving_id; + $this->load->view("receivings/receipt",$data); + $this->receiving_lib->clear_all(); + + } + + function _reload($data=array()) + { + $person_info = $this->Employee->get_logged_in_employee_info(); + $data['cart']=$this->receiving_lib->get_cart(); + $data['modes']=array('receive'=>$this->lang->line('recvs_receiving'),'return'=>$this->lang->line('recvs_return')); + $data['mode']=$this->receiving_lib->get_mode(); + $data['total']=$this->receiving_lib->get_total(); + $data['items_module_allowed'] = $this->Employee->has_permission('items', $person_info->person_id); + $data['payment_options']=array( + $this->lang->line('sales_cash') => $this->lang->line('sales_cash'), + $this->lang->line('sales_check') => $this->lang->line('sales_check'), + $this->lang->line('sales_debit') => $this->lang->line('sales_debit'), + $this->lang->line('sales_credit') => $this->lang->line('sales_credit') + ); + + $supplier_id=$this->receiving_lib->get_supplier(); + if($supplier_id!=-1) + { + $info=$this->Supplier->get_info($supplier_id); + $data['supplier']=$info->first_name.' '.$info->last_name; + } + $this->load->view("receivings/receiving",$data); + } + + function cancel_receiving() + { + $this->receiving_lib->clear_all(); + $this->_reload(); + } + +} +?> \ No newline at end of file diff --git a/application/controllers/reports.php b/application/controllers/reports.php new file mode 100644 index 000000000..ed759f047 --- /dev/null +++ b/application/controllers/reports.php @@ -0,0 +1,827 @@ +load->helper('report'); + } + + //Initial report listing screen + function index() + { + $this->load->view("reports/listing",array()); + } + + function _get_common_report_data() + { + $data = array(); + $data['report_date_range_simple'] = get_simple_date_ranges(); + $data['months'] = get_months(); + $data['days'] = get_days(); + $data['years'] = get_years(); + $data['selected_month']=date('n'); + $data['selected_day']=date('d'); + $data['selected_year']=date('Y'); + + return $data; + } + + //Input for reports that require only a date range and an export to excel. (see routes.php to see that all summary reports route here) + function date_input_excel_export() + { + $data = $this->_get_common_report_data(); + $this->load->view("reports/date_input_excel_export",$data); + } + + //Summary sales report + function summary_sales($start_date, $end_date, $sale_type, $export_excel=0) + { + $this->load->model('reports/Summary_sales'); + $model = $this->Summary_sales; + $tabular_data = array(); + $report_data = $model->getData(array('start_date'=>$start_date, 'end_date'=>$end_date, 'sale_type' => $sale_type)); + + foreach($report_data as $row) + { + $tabular_data[] = array($row['sale_date'], to_currency($row['subtotal']), to_currency($row['total']), to_currency($row['tax']),to_currency($row['profit'])); + } + + $data = array( + "title" => $this->lang->line('reports_sales_summary_report'), + "subtitle" => date('m/d/Y', strtotime($start_date)) .'-'.date('m/d/Y', strtotime($end_date)), + "headers" => $model->getDataColumns(), + "data" => $tabular_data, + "summary_data" => $model->getSummaryData(array('start_date'=>$start_date, 'end_date'=>$end_date, 'sale_type' => $sale_type)), + "export_excel" => $export_excel + ); + + $this->load->view("reports/tabular",$data); + } + + //Summary categories report + function summary_categories($start_date, $end_date, $sale_type, $export_excel=0) + { + $this->load->model('reports/Summary_categories'); + $model = $this->Summary_categories; + $tabular_data = array(); + $report_data = $model->getData(array('start_date'=>$start_date, 'end_date'=>$end_date, 'sale_type' => $sale_type)); + + foreach($report_data as $row) + { + $tabular_data[] = array($row['category'], to_currency($row['subtotal']), to_currency($row['total']), to_currency($row['tax']),to_currency($row['profit'])); + } + + $data = array( + "title" => $this->lang->line('reports_categories_summary_report'), + "subtitle" => date('m/d/Y', strtotime($start_date)) .'-'.date('m/d/Y', strtotime($end_date)), + "headers" => $model->getDataColumns(), + "data" => $tabular_data, + "summary_data" => $model->getSummaryData(array('start_date'=>$start_date, 'end_date'=>$end_date, 'sale_type' => $sale_type)), + "export_excel" => $export_excel + ); + + $this->load->view("reports/tabular",$data); + } + + //Summary customers report + function summary_customers($start_date, $end_date, $sale_type, $export_excel=0) + { + $this->load->model('reports/Summary_customers'); + $model = $this->Summary_customers; + $tabular_data = array(); + $report_data = $model->getData(array('start_date'=>$start_date, 'end_date'=>$end_date, 'sale_type' => $sale_type)); + + foreach($report_data as $row) + { + $tabular_data[] = array($row['customer'], to_currency($row['subtotal']), to_currency($row['total']), to_currency($row['tax']),to_currency($row['profit'])); + } + + $data = array( + "title" => $this->lang->line('reports_customers_summary_report'), + "subtitle" => date('m/d/Y', strtotime($start_date)) .'-'.date('m/d/Y', strtotime($end_date)), + "headers" => $model->getDataColumns(), + "data" => $tabular_data, + "summary_data" => $model->getSummaryData(array('start_date'=>$start_date, 'end_date'=>$end_date, 'sale_type' => $sale_type)), + "export_excel" => $export_excel + ); + + $this->load->view("reports/tabular",$data); + } + + //Summary suppliers report + function summary_suppliers($start_date, $end_date, $sale_type, $export_excel=0) + { + $this->load->model('reports/Summary_suppliers'); + $model = $this->Summary_suppliers; + $tabular_data = array(); + $report_data = $model->getData(array('start_date'=>$start_date, 'end_date'=>$end_date, 'sale_type' => $sale_type)); + + foreach($report_data as $row) + { + $tabular_data[] = array($row['supplier'], to_currency($row['subtotal']), to_currency($row['total']), to_currency($row['tax']),to_currency($row['profit'])); + } + + $data = array( + "title" => $this->lang->line('reports_suppliers_summary_report'), + "subtitle" => date('m/d/Y', strtotime($start_date)) .'-'.date('m/d/Y', strtotime($end_date)), + "headers" => $model->getDataColumns(), + "data" => $tabular_data, + "summary_data" => $model->getSummaryData(array('start_date'=>$start_date, 'end_date'=>$end_date, 'sale_type' => $sale_type)), + "export_excel" => $export_excel + ); + + $this->load->view("reports/tabular",$data); + } + + //Summary items report + function summary_items($start_date, $end_date, $sale_type, $export_excel=0) + { + $this->load->model('reports/Summary_items'); + $model = $this->Summary_items; + $tabular_data = array(); + $report_data = $model->getData(array('start_date'=>$start_date, 'end_date'=>$end_date, 'sale_type' => $sale_type)); + + foreach($report_data as $row) + { + $tabular_data[] = array(character_limiter($row['name'], 16), $row['quantity_purchased'], to_currency($row['subtotal']), to_currency($row['total']), to_currency($row['tax']),to_currency($row['profit'])); + } + + $data = array( + "title" => $this->lang->line('reports_items_summary_report'), + "subtitle" => date('m/d/Y', strtotime($start_date)) .'-'.date('m/d/Y', strtotime($end_date)), + "headers" => $model->getDataColumns(), + "data" => $tabular_data, + "summary_data" => $model->getSummaryData(array('start_date'=>$start_date, 'end_date'=>$end_date, 'sale_type' => $sale_type)), + "export_excel" => $export_excel + ); + + $this->load->view("reports/tabular",$data); + } + + //Summary employees report + function summary_employees($start_date, $end_date, $sale_type, $export_excel=0) + { + $this->load->model('reports/Summary_employees'); + $model = $this->Summary_employees; + $tabular_data = array(); + $report_data = $model->getData(array('start_date'=>$start_date, 'end_date'=>$end_date, 'sale_type' => $sale_type)); + + foreach($report_data as $row) + { + $tabular_data[] = array($row['employee'], to_currency($row['subtotal']), to_currency($row['total']), to_currency($row['tax']),to_currency($row['profit'])); + } + + $data = array( + "title" => $this->lang->line('reports_employees_summary_report'), + "subtitle" => date('m/d/Y', strtotime($start_date)) .'-'.date('m/d/Y', strtotime($end_date)), + "headers" => $model->getDataColumns(), + "data" => $tabular_data, + "summary_data" => $model->getSummaryData(array('start_date'=>$start_date, 'end_date'=>$end_date, 'sale_type' => $sale_type)), + "export_excel" => $export_excel + ); + + $this->load->view("reports/tabular",$data); + } + + //Summary taxes report + function summary_taxes($start_date, $end_date, $sale_type, $export_excel=0) + { + $this->load->model('reports/Summary_taxes'); + $model = $this->Summary_taxes; + $tabular_data = array(); + $report_data = $model->getData(array('start_date'=>$start_date, 'end_date'=>$end_date, 'sale_type' => $sale_type)); + + foreach($report_data as $row) + { + $tabular_data[] = array($row['percent'], to_currency($row['subtotal']), to_currency($row['total']), to_currency($row['tax'])); + } + + $data = array( + "title" => $this->lang->line('reports_taxes_summary_report'), + "subtitle" => date('m/d/Y', strtotime($start_date)) .'-'.date('m/d/Y', strtotime($end_date)), + "headers" => $model->getDataColumns(), + "data" => $tabular_data, + "summary_data" => $model->getSummaryData(array('start_date'=>$start_date, 'end_date'=>$end_date, 'sale_type' => $sale_type)), + "export_excel" => $export_excel + ); + + $this->load->view("reports/tabular",$data); + } + + //Summary discounts report + function summary_discounts($start_date, $end_date, $sale_type, $export_excel=0) + { + $this->load->model('reports/Summary_discounts'); + $model = $this->Summary_discounts; + $tabular_data = array(); + $report_data = $model->getData(array('start_date'=>$start_date, 'end_date'=>$end_date, 'sale_type' => $sale_type)); + + foreach($report_data as $row) + { + $tabular_data[] = array($row['discount_percent'],$row['count']); + } + + $data = array( + "title" => $this->lang->line('reports_discounts_summary_report'), + "subtitle" => date('m/d/Y', strtotime($start_date)) .'-'.date('m/d/Y', strtotime($end_date)), + "headers" => $model->getDataColumns(), + "data" => $tabular_data, + "summary_data" => $model->getSummaryData(array('start_date'=>$start_date, 'end_date'=>$end_date, 'sale_type' => $sale_type)), + "export_excel" => $export_excel + ); + + $this->load->view("reports/tabular",$data); + } + + function summary_payments($start_date, $end_date, $sale_type, $export_excel=0) + { + $this->load->model('reports/Summary_payments'); + $model = $this->Summary_payments; + $tabular_data = array(); + $report_data = $model->getData(array('start_date'=>$start_date, 'end_date'=>$end_date, 'sale_type' => $sale_type)); + + foreach($report_data as $row) + { + $tabular_data[] = array($row['payment_type'],to_currency($row['payment_amount'])); + } + + $data = array( + "title" => $this->lang->line('reports_payments_summary_report'), + "subtitle" => date('m/d/Y', strtotime($start_date)) .'-'.date('m/d/Y', strtotime($end_date)), + "headers" => $model->getDataColumns(), + "data" => $tabular_data, + "summary_data" => $model->getSummaryData(array('start_date'=>$start_date, 'end_date'=>$end_date, 'sale_type' => $sale_type)), + "export_excel" => $export_excel + ); + + $this->load->view("reports/tabular",$data); + } + + //Input for reports that require only a date range. (see routes.php to see that all graphical summary reports route here) + function date_input() + { + $data = $this->_get_common_report_data(); + $this->load->view("reports/date_input",$data); + } + + //Graphical summary sales report + function graphical_summary_sales($start_date, $end_date, $sale_type) + { + $this->load->model('reports/Summary_sales'); + $model = $this->Summary_sales; + + $data = array( + "title" => $this->lang->line('reports_sales_summary_report'), + "data_file" => site_url("reports/graphical_summary_sales_graph/$start_date/$end_date/$sale_type"), + "subtitle" => date('m/d/Y', strtotime($start_date)) .'-'.date('m/d/Y', strtotime($end_date)), + "summary_data" => $model->getSummaryData(array('start_date'=>$start_date, 'end_date'=>$end_date, 'sale_type' => $sale_type)) + ); + + $this->load->view("reports/graphical",$data); + } + + //The actual graph data + function graphical_summary_sales_graph($start_date, $end_date, $sale_type) + { + $this->load->model('reports/Summary_sales'); + $model = $this->Summary_sales; + $report_data = $model->getData(array('start_date'=>$start_date, 'end_date'=>$end_date, 'sale_type' => $sale_type)); + + $graph_data = array(); + foreach($report_data as $row) + { + $graph_data[date('m/d/Y', strtotime($row['sale_date']))]= $row['total']; + } + + $data = array( + "title" => $this->lang->line('reports_sales_summary_report'), + "yaxis_label"=>$this->lang->line('reports_revenue'), + "xaxis_label"=>$this->lang->line('reports_date'), + "data" => $graph_data + ); + + $this->load->view("reports/graphs/line",$data); + + } + + //Graphical summary items report + function graphical_summary_items($start_date, $end_date, $sale_type) + { + $this->load->model('reports/Summary_items'); + $model = $this->Summary_items; + + $data = array( + "title" => $this->lang->line('reports_items_summary_report'), + "data_file" => site_url("reports/graphical_summary_items_graph/$start_date/$end_date/$sale_type"), + "subtitle" => date('m/d/Y', strtotime($start_date)) .'-'.date('m/d/Y', strtotime($end_date)), + "summary_data" => $model->getSummaryData(array('start_date'=>$start_date, 'end_date'=>$end_date, 'sale_type' => $sale_type)) + ); + + $this->load->view("reports/graphical",$data); + } + + //The actual graph data + function graphical_summary_items_graph($start_date, $end_date, $sale_type) + { + $this->load->model('reports/Summary_items'); + $model = $this->Summary_items; + $report_data = $model->getData(array('start_date'=>$start_date, 'end_date'=>$end_date, 'sale_type' => $sale_type)); + + $graph_data = array(); + foreach($report_data as $row) + { + $graph_data[$row['name']] = $row['total']; + } + + $data = array( + "title" => $this->lang->line('reports_items_summary_report'), + "xaxis_label"=>$this->lang->line('reports_revenue'), + "yaxis_label"=>$this->lang->line('reports_items'), + "data" => $graph_data + ); + + $this->load->view("reports/graphs/hbar",$data); + } + + //Graphical summary customers report + function graphical_summary_categories($start_date, $end_date, $sale_type) + { + $this->load->model('reports/Summary_categories'); + $model = $this->Summary_categories; + + $data = array( + "title" => $this->lang->line('reports_categories_summary_report'), + "data_file" => site_url("reports/graphical_summary_categories_graph/$start_date/$end_date/$sale_type"), + "subtitle" => date('m/d/Y', strtotime($start_date)) .'-'.date('m/d/Y', strtotime($end_date)), + "summary_data" => $model->getSummaryData(array('start_date'=>$start_date, 'end_date'=>$end_date, 'sale_type' => $sale_type)) + ); + + $this->load->view("reports/graphical",$data); + } + + //The actual graph data + function graphical_summary_categories_graph($start_date, $end_date, $sale_type) + { + $this->load->model('reports/Summary_categories'); + $model = $this->Summary_categories; + $report_data = $model->getData(array('start_date'=>$start_date, 'end_date'=>$end_date, 'sale_type' => $sale_type)); + + $graph_data = array(); + foreach($report_data as $row) + { + $graph_data[$row['category']] = $row['total']; + } + + $data = array( + "title" => $this->lang->line('reports_categories_summary_report'), + "data" => $graph_data + ); + + $this->load->view("reports/graphs/pie",$data); + } + + function graphical_summary_suppliers($start_date, $end_date, $sale_type) + { + $this->load->model('reports/Summary_suppliers'); + $model = $this->Summary_suppliers; + + $data = array( + "title" => $this->lang->line('reports_suppliers_summary_report'), + "data_file" => site_url("reports/graphical_summary_suppliers_graph/$start_date/$end_date/$sale_type"), + "subtitle" => date('m/d/Y', strtotime($start_date)) .'-'.date('m/d/Y', strtotime($end_date)), + "summary_data" => $model->getSummaryData(array('start_date'=>$start_date, 'end_date'=>$end_date, 'sale_type' => $sale_type)) + ); + + $this->load->view("reports/graphical",$data); + } + + //The actual graph data + function graphical_summary_suppliers_graph($start_date, $end_date, $sale_type) + { + $this->load->model('reports/Summary_suppliers'); + $model = $this->Summary_suppliers; + $report_data = $model->getData(array('start_date'=>$start_date, 'end_date'=>$end_date, 'sale_type' => $sale_type)); + + $graph_data = array(); + foreach($report_data as $row) + { + $graph_data[$row['supplier']] = $row['total']; + } + + $data = array( + "title" => $this->lang->line('reports_suppliers_summary_report'), + "data" => $graph_data + ); + + $this->load->view("reports/graphs/pie",$data); + } + + function graphical_summary_employees($start_date, $end_date, $sale_type) + { + $this->load->model('reports/Summary_employees'); + $model = $this->Summary_employees; + + $data = array( + "title" => $this->lang->line('reports_employees_summary_report'), + "data_file" => site_url("reports/graphical_summary_employees_graph/$start_date/$end_date/$sale_type"), + "subtitle" => date('m/d/Y', strtotime($start_date)) .'-'.date('m/d/Y', strtotime($end_date)), + "summary_data" => $model->getSummaryData(array('start_date'=>$start_date, 'end_date'=>$end_date, 'sale_type' => $sale_type)) + ); + + $this->load->view("reports/graphical",$data); + } + + //The actual graph data + function graphical_summary_employees_graph($start_date, $end_date, $sale_type) + { + $this->load->model('reports/Summary_employees'); + $model = $this->Summary_employees; + $report_data = $model->getData(array('start_date'=>$start_date, 'end_date'=>$end_date, 'sale_type' => $sale_type)); + + $graph_data = array(); + foreach($report_data as $row) + { + $graph_data[$row['employee']] = $row['total']; + } + + $data = array( + "title" => $this->lang->line('reports_employees_summary_report'), + "data" => $graph_data + ); + + $this->load->view("reports/graphs/pie",$data); + } + + function graphical_summary_taxes($start_date, $end_date, $sale_type) + { + $this->load->model('reports/Summary_taxes'); + $model = $this->Summary_taxes; + + $data = array( + "title" => $this->lang->line('reports_taxes_summary_report'), + "data_file" => site_url("reports/graphical_summary_taxes_graph/$start_date/$end_date/$sale_type"), + "subtitle" => date('m/d/Y', strtotime($start_date)) .'-'.date('m/d/Y', strtotime($end_date)), + "summary_data" => $model->getSummaryData(array('start_date'=>$start_date, 'end_date'=>$end_date, 'sale_type' => $sale_type)) + ); + + $this->load->view("reports/graphical",$data); + } + + //The actual graph data + function graphical_summary_taxes_graph($start_date, $end_date, $sale_type) + { + $this->load->model('reports/Summary_taxes'); + $model = $this->Summary_taxes; + $report_data = $model->getData(array('start_date'=>$start_date, 'end_date'=>$end_date, 'sale_type' => $sale_type)); + + $graph_data = array(); + foreach($report_data as $row) + { + $graph_data[$row['percent']] = $row['total']; + } + + $data = array( + "title" => $this->lang->line('reports_taxes_summary_report'), + "data" => $graph_data + ); + + $this->load->view("reports/graphs/pie",$data); + } + + //Graphical summary customers report + function graphical_summary_customers($start_date, $end_date, $sale_type) + { + $this->load->model('reports/Summary_customers'); + $model = $this->Summary_customers; + + $data = array( + "title" => $this->lang->line('reports_customers_summary_report'), + "data_file" => site_url("reports/graphical_summary_customers_graph/$start_date/$end_date/$sale_type"), + "subtitle" => date('m/d/Y', strtotime($start_date)) .'-'.date('m/d/Y', strtotime($end_date)), + "summary_data" => $model->getSummaryData(array('start_date'=>$start_date, 'end_date'=>$end_date, 'sale_type' => $sale_type)) + ); + + $this->load->view("reports/graphical",$data); + } + + //The actual graph data + function graphical_summary_customers_graph($start_date, $end_date, $sale_type) + { + $this->load->model('reports/Summary_customers'); + $model = $this->Summary_customers; + $report_data = $model->getData(array('start_date'=>$start_date, 'end_date'=>$end_date, 'sale_type' => $sale_type)); + + $graph_data = array(); + foreach($report_data as $row) + { + $graph_data[$row['customer']] = $row['total']; + } + + $data = array( + "title" => $this->lang->line('reports_customers_summary_report'), + "xaxis_label"=>$this->lang->line('reports_revenue'), + "yaxis_label"=>$this->lang->line('reports_customers'), + "data" => $graph_data + ); + + $this->load->view("reports/graphs/hbar",$data); + } + + //Graphical summary discounts report + function graphical_summary_discounts($start_date, $end_date, $sale_type) + { + $this->load->model('reports/Summary_discounts'); + $model = $this->Summary_discounts; + + $data = array( + "title" => $this->lang->line('reports_discounts_summary_report'), + "data_file" => site_url("reports/graphical_summary_discounts_graph/$start_date/$end_date/$sale_type"), + "subtitle" => date('m/d/Y', strtotime($start_date)) .'-'.date('m/d/Y', strtotime($end_date)), + "summary_data" => $model->getSummaryData(array('start_date'=>$start_date, 'end_date'=>$end_date, 'sale_type' => $sale_type)) + ); + + $this->load->view("reports/graphical",$data); + } + + //The actual graph data + function graphical_summary_discounts_graph($start_date, $end_date, $sale_type) + { + $this->load->model('reports/Summary_discounts'); + $model = $this->Summary_discounts; + $report_data = $model->getData(array('start_date'=>$start_date, 'end_date'=>$end_date, 'sale_type' => $sale_type)); + + $graph_data = array(); + foreach($report_data as $row) + { + $graph_data[$row['discount_percent']] = $row['count']; + } + + $data = array( + "title" => $this->lang->line('reports_discounts_summary_report'), + "yaxis_label"=>$this->lang->line('reports_count'), + "xaxis_label"=>$this->lang->line('reports_discount_percent'), + "data" => $graph_data + ); + + $this->load->view("reports/graphs/bar",$data); + } + + function graphical_summary_payments($start_date, $end_date, $sale_type) + { + $this->load->model('reports/Summary_payments'); + $model = $this->Summary_payments; + + $data = array( + "title" => $this->lang->line('reports_payments_summary_report'), + "data_file" => site_url("reports/graphical_summary_payments_graph/$start_date/$end_date/$sale_type"), + "subtitle" => date('m/d/Y', strtotime($start_date)) .'-'.date('m/d/Y', strtotime($end_date)), + "summary_data" => $model->getSummaryData(array('start_date'=>$start_date, 'end_date'=>$end_date, 'sale_type' => $sale_type)) + ); + + $this->load->view("reports/graphical",$data); + } + + //The actual graph data + function graphical_summary_payments_graph($start_date, $end_date, $sale_type) + { + $this->load->model('reports/Summary_payments'); + $model = $this->Summary_payments; + $report_data = $model->getData(array('start_date'=>$start_date, 'end_date'=>$end_date, 'sale_type' => $sale_type)); + + $graph_data = array(); + foreach($report_data as $row) + { + $graph_data[$row['payment_type']] = $row['payment_amount']; + } + + $data = array( + "title" => $this->lang->line('reports_payments_summary_report'), + "yaxis_label"=>$this->lang->line('reports_revenue'), + "xaxis_label"=>$this->lang->line('reports_payment_type'), + "data" => $graph_data + ); + + $this->load->view("reports/graphs/pie",$data); + } + function specific_customer_input() + { + $data = $this->_get_common_report_data(); + $data['specific_input_name'] = $this->lang->line('reports_customer'); + + $customers = array(); + foreach($this->Customer->get_all()->result() as $customer) + { + $customers[$customer->person_id] = $customer->first_name .' '.$customer->last_name; + } + $data['specific_input_data'] = $customers; + $this->load->view("reports/specific_input",$data); + } + + function specific_customer($start_date, $end_date, $customer_id, $sale_type, $export_excel=0) + { + $this->load->model('reports/Specific_customer'); + $model = $this->Specific_customer; + + $headers = $model->getDataColumns(); + $report_data = $model->getData(array('start_date'=>$start_date, 'end_date'=>$end_date, 'customer_id' =>$customer_id, 'sale_type' => $sale_type)); + + $summary_data = array(); + $details_data = array(); + + foreach($report_data['summary'] as $key=>$row) + { + $summary_data[] = array(anchor('sales/edit/'.$row['sale_id'], 'POS '.$row['sale_id'], array('target' => '_blank')), $row['sale_date'], $row['items_purchased'], $row['employee_name'], to_currency($row['subtotal']), to_currency($row['total']), to_currency($row['tax']),to_currency($row['profit']), $row['payment_type'], $row['comment']); + + foreach($report_data['details'][$key] as $drow) + { + $details_data[$key][] = array($drow['name'], $drow['category'], $drow['serialnumber'], $drow['description'], $drow['quantity_purchased'], to_currency($drow['subtotal']), to_currency($drow['total']), to_currency($drow['tax']),to_currency($drow['profit']), $drow['discount_percent'].'%'); + } + } + + $customer_info = $this->Customer->get_info($customer_id); + $data = array( + "title" => $customer_info->first_name .' '. $customer_info->last_name.' '.$this->lang->line('reports_report'), + "subtitle" => date('m/d/Y', strtotime($start_date)) .'-'.date('m/d/Y', strtotime($end_date)), + "headers" => $model->getDataColumns(), + "summary_data" => $summary_data, + "details_data" => $details_data, + "overall_summary_data" => $model->getSummaryData(array('start_date'=>$start_date, 'end_date'=>$end_date,'customer_id' =>$customer_id, 'sale_type' => $sale_type)), + "export_excel" => $export_excel + ); + + $this->load->view("reports/tabular_details",$data); + } + + function specific_employee_input() + { + $data = $this->_get_common_report_data(); + $data['specific_input_name'] = $this->lang->line('reports_employee'); + + $employees = array(); + foreach($this->Employee->get_all()->result() as $employee) + { + $employees[$employee->person_id] = $employee->first_name .' '.$employee->last_name; + } + $data['specific_input_data'] = $employees; + $this->load->view("reports/specific_input",$data); + } + + function specific_employee($start_date, $end_date, $employee_id, $sale_type, $export_excel=0) + { + $this->load->model('reports/Specific_employee'); + $model = $this->Specific_employee; + + $headers = $model->getDataColumns(); + $report_data = $model->getData(array('start_date'=>$start_date, 'end_date'=>$end_date, 'employee_id' =>$employee_id, 'sale_type' => $sale_type)); + + $summary_data = array(); + $details_data = array(); + + foreach($report_data['summary'] as $key=>$row) + { + $summary_data[] = array(anchor('sales/edit/'.$row['sale_id'], 'POS '.$row['sale_id'], array('target' => '_blank')), $row['sale_date'], $row['items_purchased'], $row['customer_name'], to_currency($row['subtotal']), to_currency($row['total']), to_currency($row['tax']),to_currency($row['profit']), $row['payment_type'], $row['comment']); + + foreach($report_data['details'][$key] as $drow) + { + $details_data[$key][] = array($drow['name'], $drow['category'], $drow['serialnumber'], $drow['description'], $drow['quantity_purchased'], to_currency($drow['subtotal']), to_currency($drow['total']), to_currency($drow['tax']),to_currency($drow['profit']), $drow['discount_percent'].'%'); + } + } + + $employee_info = $this->Employee->get_info($employee_id); + $data = array( + "title" => $employee_info->first_name .' '. $employee_info->last_name.' '.$this->lang->line('reports_report'), + "subtitle" => date('m/d/Y', strtotime($start_date)) .'-'.date('m/d/Y', strtotime($end_date)), + "headers" => $model->getDataColumns(), + "summary_data" => $summary_data, + "details_data" => $details_data, + "overall_summary_data" => $model->getSummaryData(array('start_date'=>$start_date, 'end_date'=>$end_date,'employee_id' =>$employee_id, 'sale_type' => $sale_type)), + "export_excel" => $export_excel + ); + + $this->load->view("reports/tabular_details",$data); + } + + function detailed_sales($start_date, $end_date, $sale_type, $export_excel=0) + { + $this->load->model('reports/Detailed_sales'); + $model = $this->Detailed_sales; + + $headers = $model->getDataColumns(); + $report_data = $model->getData(array('start_date'=>$start_date, 'end_date'=>$end_date, 'sale_type' => $sale_type)); + + $summary_data = array(); + $details_data = array(); + + foreach($report_data['summary'] as $key=>$row) + { + $summary_data[] = array(anchor('sales/edit/'.$row['sale_id'], 'POS '.$row['sale_id'], array('target' => '_blank')), $row['sale_date'], $row['items_purchased'], $row['employee_name'], $row['customer_name'], to_currency($row['subtotal']), to_currency($row['total']), to_currency($row['tax']),to_currency($row['profit']), $row['payment_type'], $row['comment']); + + foreach($report_data['details'][$key] as $drow) + { + $details_data[$key][] = array($drow['name'], $drow['category'], $drow['serialnumber'], $drow['description'], $drow['quantity_purchased'], to_currency($drow['subtotal']), to_currency($drow['total']), to_currency($drow['tax']),to_currency($drow['profit']), $drow['discount_percent'].'%'); + } + } + + $data = array( + "title" =>$this->lang->line('reports_detailed_sales_report'), + "subtitle" => date('m/d/Y', strtotime($start_date)) .'-'.date('m/d/Y', strtotime($end_date)), + "headers" => $model->getDataColumns(), + "summary_data" => $summary_data, + "details_data" => $details_data, + "overall_summary_data" => $model->getSummaryData(array('start_date'=>$start_date, 'end_date'=>$end_date, 'sale_type' => $sale_type)), + "export_excel" => $export_excel + ); + + $this->load->view("reports/tabular_details",$data); + } + + function detailed_receivings($start_date, $end_date, $sale_type, $export_excel=0) + { + $this->load->model('reports/Detailed_receivings'); + $model = $this->Detailed_receivings; + + $headers = $model->getDataColumns(); + $report_data = $model->getData(array('start_date'=>$start_date, 'end_date'=>$end_date, 'sale_type' => $sale_type)); + + $summary_data = array(); + $details_data = array(); + + foreach($report_data['summary'] as $key=>$row) + { + $summary_data[] = array(anchor('receivings/receipt/'.$row['receiving_id'], 'RECV '.$row['receiving_id'], array('target' => '_blank')), $row['receiving_date'], $row['items_purchased'], $row['employee_name'], $row['supplier_name'], to_currency($row['total']), $row['payment_type'], $row['comment']); + + foreach($report_data['details'][$key] as $drow) + { + $details_data[$key][] = array($drow['name'], $drow['category'], $drow['quantity_purchased'], to_currency($drow['total']), $drow['discount_percent'].'%'); + } + } + + $data = array( + "title" =>$this->lang->line('reports_detailed_receivings_report'), + "subtitle" => date('m/d/Y', strtotime($start_date)) .'-'.date('m/d/Y', strtotime($end_date)), + "headers" => $model->getDataColumns(), + "summary_data" => $summary_data, + "details_data" => $details_data, + "overall_summary_data" => $model->getSummaryData(array('start_date'=>$start_date, 'end_date'=>$end_date, 'sale_type' => $sale_type)), + "export_excel" => $export_excel + ); + + $this->load->view("reports/tabular_details",$data); + } + + function excel_export() + { + $this->load->view("reports/excel_export",array()); + } + + function inventory_low($export_excel=0) + { + $this->load->model('reports/Inventory_low'); + $model = $this->Inventory_low; + $tabular_data = array(); + $report_data = $model->getData(array()); + foreach($report_data as $row) + { + $tabular_data[] = array($row['name'], $row['item_number'], $row['description'], $row['quantity'], $row['reorder_level']); + } + + $data = array( + "title" => $this->lang->line('reports_low_inventory_report'), + "subtitle" => '', + "headers" => $model->getDataColumns(), + "data" => $tabular_data, + "summary_data" => $model->getSummaryData(array()), + "export_excel" => $export_excel + ); + + $this->load->view("reports/tabular",$data); + } + + function inventory_summary($export_excel=0) + { + $this->load->model('reports/Inventory_summary'); + $model = $this->Inventory_summary; + $tabular_data = array(); + $report_data = $model->getData(array()); + foreach($report_data as $row) + { + $tabular_data[] = array($row['name'], $row['item_number'], $row['description'], $row['quantity'], $row['reorder_level']); + } + + $data = array( + "title" => $this->lang->line('reports_inventory_summary_report'), + "subtitle" => '', + "headers" => $model->getDataColumns(), + "data" => $tabular_data, + "summary_data" => $model->getSummaryData(array()), + "export_excel" => $export_excel + ); + + $this->load->view("reports/tabular",$data); + } + +} +?> \ No newline at end of file diff --git a/application/controllers/sales.php b/application/controllers/sales.php new file mode 100644 index 000000000..45da72a40 --- /dev/null +++ b/application/controllers/sales.php @@ -0,0 +1,430 @@ +load->library('sale_lib'); + } + + function index() + { + $this->_reload(); + } + + function item_search() + { + $suggestions = $this->Item->get_item_search_suggestions($this->input->post('q'),$this->input->post('limit')); + $suggestions = array_merge($suggestions, $this->Item_kit->get_item_kit_search_suggestions($this->input->post('q'),$this->input->post('limit'))); + echo implode("\n",$suggestions); + } + + function customer_search() + { + $suggestions = $this->Customer->get_customer_search_suggestions($this->input->post('q'),$this->input->post('limit')); + echo implode("\n",$suggestions); + } + + function select_customer() + { + $customer_id = $this->input->post("customer"); + $this->sale_lib->set_customer($customer_id); + $this->_reload(); + } + + function change_mode() + { + $mode = $this->input->post("mode"); + $this->sale_lib->set_mode($mode); + $this->_reload(); + } + + function set_comment() + { + $this->sale_lib->set_comment($this->input->post('comment')); + } + + function set_email_receipt() + { + $this->sale_lib->set_email_receipt($this->input->post('email_receipt')); + } + + //Alain Multiple Payments + function add_payment() + { + $data=array(); + $this->form_validation->set_rules('amount_tendered', 'lang:sales_amount_tendered', 'numeric'); + + if ($this->form_validation->run() == FALSE) + { + if ( $this->input->post('payment_type') == $this->lang->line('sales_gift_card') ) + $data['error']=$this->lang->line('sales_must_enter_numeric_giftcard'); + else + $data['error']=$this->lang->line('sales_must_enter_numeric'); + + $this->_reload($data); + return; + } + + $payment_type=$this->input->post('payment_type'); + if ( $payment_type == $this->lang->line('sales_giftcard') ) + { + $payments = $this->sale_lib->get_payments(); + $payment_type=$this->input->post('payment_type').':'.$payment_amount=$this->input->post('amount_tendered'); + $current_payments_with_giftcard = isset($payments[$payment_type]) ? $payments[$payment_type]['payment_amount'] : 0; + $cur_giftcard_value = $this->Giftcard->get_giftcard_value( $this->input->post('amount_tendered') ) - $current_payments_with_giftcard; + if ( $cur_giftcard_value <= 0 ) + { + $data['error']='Giftcard balance is '.to_currency( $this->Giftcard->get_giftcard_value( $this->input->post('amount_tendered') ) ).' !'; + $this->_reload($data); + return; + } + elseif ( ( $this->Giftcard->get_giftcard_value( $this->input->post('amount_tendered') ) - $this->sale_lib->get_total() ) > 0 ) + { + $data['warning']='Giftcard balance is '.to_currency( $this->Giftcard->get_giftcard_value( $this->input->post('amount_tendered') ) - $this->sale_lib->get_total() ).' !'; + } + $payment_amount=min( $this->sale_lib->get_total(), $this->Giftcard->get_giftcard_value( $this->input->post('amount_tendered') ) ); + } + else + { + $payment_amount=$this->input->post('amount_tendered'); + } + + if( !$this->sale_lib->add_payment( $payment_type, $payment_amount ) ) + { + $data['error']='Unable to Add Payment! Please try again!'; + } + + $this->_reload($data); + } + + //Alain Multiple Payments + function delete_payment($payment_id) + { + $this->sale_lib->delete_payment($payment_id); + $this->_reload(); + } + + function add() + { + $data=array(); + $mode = $this->sale_lib->get_mode(); + $item_id_or_number_or_item_kit_or_receipt = $this->input->post("item"); + $quantity = $mode=="sale" ? 1:-1; + + if($this->sale_lib->is_valid_receipt($item_id_or_number_or_item_kit_or_receipt) && $mode=='return') + { + $this->sale_lib->return_entire_sale($item_id_or_number_or_item_kit_or_receipt); + } + elseif($this->sale_lib->is_valid_item_kit($item_id_or_number_or_item_kit_or_receipt)) + { + $this->sale_lib->add_item_kit($item_id_or_number_or_item_kit_or_receipt); + } + elseif(!$this->sale_lib->add_item($item_id_or_number_or_item_kit_or_receipt,$quantity)) + { + $data['error']=$this->lang->line('sales_unable_to_add_item'); + } + + if($this->sale_lib->out_of_stock($item_id_or_number_or_item_kit_or_receipt)) + { + $data['warning'] = $this->lang->line('sales_quantity_less_than_zero'); + } + $this->_reload($data); + } + + function edit_item($line) + { + $data= array(); + + $this->form_validation->set_rules('price', 'lang:items_price', 'required|numeric'); + $this->form_validation->set_rules('quantity', 'lang:items_quantity', 'required|numeric'); + + $description = $this->input->post("description"); + $serialnumber = $this->input->post("serialnumber"); + $price = $this->input->post("price"); + $quantity = $this->input->post("quantity"); + $discount = $this->input->post("discount"); + + + if ($this->form_validation->run() != FALSE) + { + $this->sale_lib->edit_item($line,$description,$serialnumber,$quantity,$discount,$price); + } + else + { + $data['error']=$this->lang->line('sales_error_editing_item'); + } + + if($this->sale_lib->out_of_stock($this->sale_lib->get_item_id($line))) + { + $data['warning'] = $this->lang->line('sales_quantity_less_than_zero'); + } + + + $this->_reload($data); + } + + function delete_item($item_number) + { + $this->sale_lib->delete_item($item_number); + $this->_reload(); + } + + function remove_customer() + { + $this->sale_lib->remove_customer(); + $this->_reload(); + } + + function complete() + { + $data['cart']=$this->sale_lib->get_cart(); + $data['subtotal']=$this->sale_lib->get_subtotal(); + $data['taxes']=$this->sale_lib->get_taxes(); + $data['total']=$this->sale_lib->get_total(); + $data['receipt_title']=$this->lang->line('sales_receipt'); + $data['transaction_time']= date('m/d/Y h:i:s a'); + $customer_id=$this->sale_lib->get_customer(); + $employee_id=$this->Employee->get_logged_in_employee_info()->person_id; + $comment = $this->sale_lib->get_comment(); + $emp_info=$this->Employee->get_info($employee_id); + $data['payments']=$this->sale_lib->get_payments(); + $data['amount_change']=to_currency($this->sale_lib->get_amount_due() * -1); + $data['employee']=$emp_info->first_name.' '.$emp_info->last_name; + + if($customer_id!=-1) + { + $cust_info=$this->Customer->get_info($customer_id); + $data['customer']=$cust_info->first_name.' '.$cust_info->last_name; + } + + //SAVE sale to database + $data['sale_id']='POS '.$this->Sale->save($data['cart'], $customer_id,$employee_id,$comment,$data['payments']); + if ($data['sale_id'] == 'POS -1') + { + $data['error_message'] = $this->lang->line('sales_transaction_failed'); + } + else + { + if ($this->sale_lib->get_email_receipt() && !empty($cust_info->email)) + { + $this->load->library('email'); + $config['mailtype'] = 'html'; + $this->email->initialize($config); + $this->email->from($this->config->item('email'), $this->config->item('company')); + $this->email->to($cust_info->email); + + $this->email->subject($this->lang->line('sales_receipt')); + $this->email->message($this->load->view("sales/receipt_email",$data, true)); + $this->email->send(); + } + } + $this->load->view("sales/receipt",$data); + $this->sale_lib->clear_all(); + } + + function receipt($sale_id) + { + $sale_info = $this->Sale->get_info($sale_id)->row_array(); + $this->sale_lib->copy_entire_sale($sale_id); + $data['cart']=$this->sale_lib->get_cart(); + $data['payments']=$this->sale_lib->get_payments(); + $data['subtotal']=$this->sale_lib->get_subtotal(); + $data['taxes']=$this->sale_lib->get_taxes(); + $data['total']=$this->sale_lib->get_total(); + $data['receipt_title']=$this->lang->line('sales_receipt'); + $data['transaction_time']= date('m/d/Y h:i:s a', strtotime($sale_info['sale_time'])); + $customer_id=$this->sale_lib->get_customer(); + $emp_info=$this->Employee->get_info($sale_info['employee_id']); + $data['payment_type']=$sale_info['payment_type']; + $data['amount_change']=to_currency($this->sale_lib->get_amount_due() * -1); + $data['employee']=$emp_info->first_name.' '.$emp_info->last_name; + + if($customer_id!=-1) + { + $cust_info=$this->Customer->get_info($customer_id); + $data['customer']=$cust_info->first_name.' '.$cust_info->last_name; + } + $data['sale_id']='POS '.$sale_id; + $this->load->view("sales/receipt",$data); + $this->sale_lib->clear_all(); + + } + + function edit($sale_id) + { + $data = array(); + + $data['customers'] = array('' => 'No Customer'); + foreach ($this->Customer->get_all()->result() as $customer) + { + $data['customers'][$customer->person_id] = $customer->first_name . ' '. $customer->last_name; + } + + $data['employees'] = array(); + foreach ($this->Employee->get_all()->result() as $employee) + { + $data['employees'][$employee->person_id] = $employee->first_name . ' '. $employee->last_name; + } + + $data['sale_info'] = $this->Sale->get_info($sale_id)->row_array(); + + + $this->load->view('sales/edit', $data); + } + + function delete($sale_id) + { + $data = array(); + + if ($this->Sale->delete($sale_id)) + { + $data['success'] = true; + } + else + { + $data['success'] = false; + } + + $this->load->view('sales/delete', $data); + + } + + function save($sale_id) + { + $sale_data = array( + 'sale_time' => date('Y-m-d', strtotime($this->input->post('date'))), + 'customer_id' => $this->input->post('customer_id') ? $this->input->post('customer_id') : null, + 'employee_id' => $this->input->post('employee_id'), + 'comment' => $this->input->post('comment') + ); + + if ($this->Sale->update($sale_data, $sale_id)) + { + echo json_encode(array('success'=>true,'message'=>$this->lang->line('sales_successfully_updated'))); + } + else + { + echo json_encode(array('success'=>false,'message'=>$this->lang->line('sales_unsuccessfully_updated'))); + } + } + + function _payments_cover_total() + { + $total_payments = 0; + + foreach($this->sale_lib->get_payments() as $payment) + { + $total_payments += $payment['payment_amount']; + } + + /* Changed the conditional to account for floating point rounding */ + if ( ( $this->sale_lib->get_mode() == 'sale' ) && ( ( to_currency_no_money( $this->sale_lib->get_total() ) - $total_payments ) > 1e-6 ) ) + { + return false; + } + + return true; + } + + function _reload($data=array()) + { + $person_info = $this->Employee->get_logged_in_employee_info(); + $data['cart']=$this->sale_lib->get_cart(); + $data['modes']=array('sale'=>$this->lang->line('sales_sale'),'return'=>$this->lang->line('sales_return')); + $data['mode']=$this->sale_lib->get_mode(); + $data['subtotal']=$this->sale_lib->get_subtotal(); + $data['taxes']=$this->sale_lib->get_taxes(); + $data['total']=$this->sale_lib->get_total(); + $data['items_module_allowed'] = $this->Employee->has_permission('items', $person_info->person_id); + $data['comment'] = $this->sale_lib->get_comment(); + $data['email_receipt'] = $this->sale_lib->get_email_receipt(); + $data['payments_total']=$this->sale_lib->get_payments_total(); + $data['amount_due']=$this->sale_lib->get_amount_due(); + $data['payments']=$this->sale_lib->get_payments(); + $data['payment_options']=array( + $this->lang->line('sales_cash') => $this->lang->line('sales_cash'), + $this->lang->line('sales_check') => $this->lang->line('sales_check'), + $this->lang->line('sales_giftcard') => $this->lang->line('sales_giftcard'), + $this->lang->line('sales_debit') => $this->lang->line('sales_debit'), + $this->lang->line('sales_credit') => $this->lang->line('sales_credit') + ); + + $customer_id=$this->sale_lib->get_customer(); + if($customer_id!=-1) + { + $info=$this->Customer->get_info($customer_id); + $data['customer']=$info->first_name.' '.$info->last_name; + $data['customer_email']=$info->email; + } + $data['payments_cover_total'] = $this->_payments_cover_total(); + $this->load->view("sales/register",$data); + } + + function cancel_sale() + { + $this->sale_lib->clear_all(); + $this->_reload(); + + } + + function suspend() + { + $data['cart']=$this->sale_lib->get_cart(); + $data['subtotal']=$this->sale_lib->get_subtotal(); + $data['taxes']=$this->sale_lib->get_taxes(); + $data['total']=$this->sale_lib->get_total(); + $data['receipt_title']=$this->lang->line('sales_receipt'); + $data['transaction_time']= date('m/d/Y h:i:s a'); + $customer_id=$this->sale_lib->get_customer(); + $employee_id=$this->Employee->get_logged_in_employee_info()->person_id; + $comment = $this->input->post('comment'); + $emp_info=$this->Employee->get_info($employee_id); + $payment_type = $this->input->post('payment_type'); + $data['payment_type']=$this->input->post('payment_type'); + //Alain Multiple payments + $data['payments']=$this->sale_lib->get_payments(); + $data['amount_change']=to_currency($this->sale_lib->get_amount_due() * -1); + $data['employee']=$emp_info->first_name.' '.$emp_info->last_name; + + if($customer_id!=-1) + { + $cust_info=$this->Customer->get_info($customer_id); + $data['customer']=$cust_info->first_name.' '.$cust_info->last_name; + } + + $total_payments = 0; + + foreach($data['payments'] as $payment) + { + $total_payments += $payment['payment_amount']; + } + + //SAVE sale to database + $data['sale_id']='POS '.$this->Sale_suspended->save($data['cart'], $customer_id,$employee_id,$comment,$data['payments']); + if ($data['sale_id'] == 'POS -1') + { + $data['error_message'] = $this->lang->line('sales_transaction_failed'); + } + $this->sale_lib->clear_all(); + $this->_reload(array('success' => $this->lang->line('sales_successfully_suspended_sale'))); + } + + function suspended() + { + $data = array(); + $data['suspended_sales'] = $this->Sale_suspended->get_all()->result_array(); + $this->load->view('sales/suspended', $data); + } + + function unsuspend() + { + $sale_id = $this->input->post('suspended_sale_id'); + $this->sale_lib->clear_all(); + $this->sale_lib->copy_entire_suspended_sale($sale_id); + $this->Sale_suspended->delete($sale_id); + $this->_reload(); + } +} +?> \ No newline at end of file diff --git a/application/controllers/secure_area.php b/application/controllers/secure_area.php new file mode 100644 index 000000000..c6daac17c --- /dev/null +++ b/application/controllers/secure_area.php @@ -0,0 +1,29 @@ +load->model('Employee'); + if(!$this->Employee->is_logged_in()) + { + redirect('login'); + } + + if(!$this->Employee->has_permission($module_id,$this->Employee->get_logged_in_employee_info()->person_id)) + { + redirect('no_access/'.$module_id); + } + + //load up global data + $logged_in_employee_info=$this->Employee->get_logged_in_employee_info(); + $data['allowed_modules']=$this->Module->get_allowed_modules($logged_in_employee_info->person_id); + $data['user_info']=$logged_in_employee_info; + $this->load->vars($data); + } +} +?> \ No newline at end of file diff --git a/application/controllers/suppliers.php b/application/controllers/suppliers.php new file mode 100644 index 000000000..eafcb9905 --- /dev/null +++ b/application/controllers/suppliers.php @@ -0,0 +1,130 @@ +Supplier->count_all(); + $config['per_page'] = '20'; + $this->pagination->initialize($config); + + $data['controller_name']=strtolower(get_class()); + $data['form_width']=$this->get_form_width(); + $data['manage_table']=get_supplier_manage_table($this->Supplier->get_all($config['per_page'], $this->input->get('per_page')),$this); + $this->load->view('suppliers/manage',$data); + } + + /* + Returns supplier table data rows. This will be called with AJAX. + */ + function search() + { + $search=$this->input->post('search'); + $data_rows=get_supplier_manage_table_data_rows($this->Supplier->search($search),$this); + echo $data_rows; + } + + /* + Gives search suggestions based on what is being searched for + */ + function suggest() + { + $suggestions = $this->Supplier->get_search_suggestions($this->input->post('q'),$this->input->post('limit')); + echo implode("\n",$suggestions); + } + + /* + Loads the supplier edit form + */ + function view($supplier_id=-1) + { + $data['person_info']=$this->Supplier->get_info($supplier_id); + $this->load->view("suppliers/form",$data); + } + + /* + Inserts/updates a supplier + */ + function save($supplier_id=-1) + { + $person_data = array( + 'first_name'=>$this->input->post('first_name'), + 'last_name'=>$this->input->post('last_name'), + 'email'=>$this->input->post('email'), + 'phone_number'=>$this->input->post('phone_number'), + 'address_1'=>$this->input->post('address_1'), + 'address_2'=>$this->input->post('address_2'), + 'city'=>$this->input->post('city'), + 'state'=>$this->input->post('state'), + 'zip'=>$this->input->post('zip'), + 'country'=>$this->input->post('country'), + 'comments'=>$this->input->post('comments') + ); + $supplier_data=array( + 'company_name'=>$this->input->post('company_name'), + 'account_number'=>$this->input->post('account_number')=='' ? null:$this->input->post('account_number'), + ); + if($this->Supplier->save($person_data,$supplier_data,$supplier_id)) + { + //New supplier + if($supplier_id==-1) + { + echo json_encode(array('success'=>true,'message'=>$this->lang->line('suppliers_successful_adding').' '. + $supplier_data['company_name'],'person_id'=>$supplier_data['person_id'])); + } + else //previous supplier + { + echo json_encode(array('success'=>true,'message'=>$this->lang->line('suppliers_successful_updating').' '. + $supplier_data['company_name'],'person_id'=>$supplier_id)); + } + } + else//failure + { + echo json_encode(array('success'=>false,'message'=>$this->lang->line('suppliers_error_adding_updating').' '. + $supplier_data['company_name'],'person_id'=>-1)); + } + } + + /* + This deletes suppliers from the suppliers table + */ + function delete() + { + $suppliers_to_delete=$this->input->post('ids'); + + if($this->Supplier->delete_list($suppliers_to_delete)) + { + echo json_encode(array('success'=>true,'message'=>$this->lang->line('suppliers_successful_deleted').' '. + count($suppliers_to_delete).' '.$this->lang->line('suppliers_one_or_multiple'))); + } + else + { + echo json_encode(array('success'=>false,'message'=>$this->lang->line('suppliers_cannot_be_deleted'))); + } + } + + /* + Gets one row for a supplier manage table. This is called using AJAX to update one row. + */ + function get_row() + { + $person_id = $this->input->post('row_id'); + $data_row=get_supplier_data_row($this->Supplier->get_info($person_id),$this); + echo $data_row; + } + + /* + get the width for the add/edit form + */ + function get_form_width() + { + return 360; + } +} +?> \ No newline at end of file diff --git a/application/core/index.html b/application/core/index.html new file mode 100644 index 000000000..c942a79ce --- /dev/null +++ b/application/core/index.html @@ -0,0 +1,10 @@ + + + 403 Forbidden + + + +

Directory access is forbidden.

+ + + \ No newline at end of file diff --git a/application/errors/error_404.php b/application/errors/error_404.php new file mode 100644 index 000000000..792726a67 --- /dev/null +++ b/application/errors/error_404.php @@ -0,0 +1,62 @@ + + + +404 Page Not Found + + + +
+

+ +
+ + \ No newline at end of file diff --git a/application/errors/error_db.php b/application/errors/error_db.php new file mode 100644 index 000000000..b396cda9f --- /dev/null +++ b/application/errors/error_db.php @@ -0,0 +1,62 @@ + + + +Database Error + + + +
+

+ +
+ + \ No newline at end of file diff --git a/application/errors/error_general.php b/application/errors/error_general.php new file mode 100644 index 000000000..fd63ce2c5 --- /dev/null +++ b/application/errors/error_general.php @@ -0,0 +1,62 @@ + + + +Error + + + +
+

+ +
+ + \ No newline at end of file diff --git a/application/errors/error_php.php b/application/errors/error_php.php new file mode 100644 index 000000000..f085c2037 --- /dev/null +++ b/application/errors/error_php.php @@ -0,0 +1,10 @@ +
+ +

A PHP Error was encountered

+ +

Severity:

+

Message:

+

Filename:

+

Line Number:

+ +
\ No newline at end of file diff --git a/application/errors/index.html b/application/errors/index.html new file mode 100644 index 000000000..c942a79ce --- /dev/null +++ b/application/errors/index.html @@ -0,0 +1,10 @@ + + + 403 Forbidden + + + +

Directory access is forbidden.

+ + + \ No newline at end of file diff --git a/application/helpers/currency_helper.php b/application/helpers/currency_helper.php new file mode 100644 index 000000000..d6808527d --- /dev/null +++ b/application/helpers/currency_helper.php @@ -0,0 +1,21 @@ +config->item('currency_symbol') ? $CI->config->item('currency_symbol') : '$'; + if($number >= 0) + { + return $currency_symbol.number_format($number, 2, '.', ''); + } + else + { + return '-'.$currency_symbol.number_format(abs($number), 2, '.', ''); + } +} + + +function to_currency_no_money($number) +{ + return number_format($number, 2, '.', ''); +} +?> \ No newline at end of file diff --git a/application/helpers/index.html b/application/helpers/index.html new file mode 100644 index 000000000..c942a79ce --- /dev/null +++ b/application/helpers/index.html @@ -0,0 +1,10 @@ + + + 403 Forbidden + + + +

Directory access is forbidden.

+ + + \ No newline at end of file diff --git a/application/helpers/report_helper.php b/application/helpers/report_helper.php new file mode 100644 index 000000000..2b380e316 --- /dev/null +++ b/application/helpers/report_helper.php @@ -0,0 +1,87 @@ +load->language('reports'); + $today = date('Y-m-d'); + $yesterday = date('Y-m-d', mktime(0,0,0,date("m"),date("d")-1,date("Y"))); + $six_days_ago = date('Y-m-d', mktime(0,0,0,date("m"),date("d")-6,date("Y"))); + $start_of_this_month = date('Y-m-d', mktime(0,0,0,date("m"),1,date("Y"))); + $end_of_this_month = date('Y-m-d',strtotime('-1 second',strtotime('+1 month',strtotime(date('m').'/01/'.date('Y').' 00:00:00')))); + $start_of_last_month = date('Y-m-d', mktime(0,0,0,date("m")-1,1,date("Y"))); + $end_of_last_month = date('Y-m-d',strtotime('-1 second',strtotime('+1 month',strtotime((date('m') - 1).'/01/'.date('Y').' 00:00:00')))); + $start_of_this_year = date('Y-m-d', mktime(0,0,0,1,1,date("Y"))); + $end_of_this_year = date('Y-m-d', mktime(0,0,0,12,31,date("Y"))); + $start_of_last_year = date('Y-m-d', mktime(0,0,0,1,1,date("Y")-1)); + $end_of_last_year = date('Y-m-d', mktime(0,0,0,12,31,date("Y")-1)); + $start_of_time = date('Y-m-d', 0); + + return array( + $today. '/' . $today => $CI->lang->line('reports_today'), + $yesterday. '/' . $yesterday => $CI->lang->line('reports_yesterday'), + $six_days_ago. '/' . $today => $CI->lang->line('reports_last_7'), + $start_of_this_month . '/' . $end_of_this_month => $CI->lang->line('reports_this_month'), + $start_of_last_month . '/' . $end_of_last_month => $CI->lang->line('reports_last_month'), + $start_of_this_year . '/' . $end_of_this_year => $CI->lang->line('reports_this_year'), + $start_of_last_year . '/' . $end_of_last_year => $CI->lang->line('reports_last_year'), + $start_of_time . '/' . $today => $CI->lang->line('reports_all_time'), + ); +} + +function get_months() +{ + $months = array(); + for($k=1;$k<=12;$k++) + { + $cur_month = mktime(0, 0, 0, $k, 1, 2000); + $months[date("m", $cur_month)] = date("M",$cur_month); + } + + return $months; +} + +function get_days() +{ + $days = array(); + + for($k=1;$k<=31;$k++) + { + $cur_day = mktime(0, 0, 0, 1, $k, 2000); + $days[date('d',$cur_day)] = date('j',$cur_day); + } + + return $days; +} + +function get_years() +{ + $years = array(); + for($k=0;$k<10;$k++) + { + $years[date("Y")-$k] = date("Y")-$k; + } + + return $years; +} + +function get_random_colors($how_many) +{ + $colors = array(); + + for($k=0;$k<$how_many;$k++) + { + $colors[] = '#'.random_color(); + } + + return $colors; +} + +function random_color() +{ + mt_srand((double)microtime()*1000000); + $c = ''; + while(strlen($c)<6){ + $c .= sprintf("%02X", mt_rand(0, 255)); + } + return $c; +} \ No newline at end of file diff --git a/application/helpers/sale_helper.php b/application/helpers/sale_helper.php new file mode 100644 index 000000000..e69de29bb diff --git a/application/helpers/table_helper.php b/application/helpers/table_helper.php new file mode 100644 index 000000000..95f1412c0 --- /dev/null +++ b/application/helpers/table_helper.php @@ -0,0 +1,344 @@ +'; + + $headers = array('', + $CI->lang->line('common_last_name'), + $CI->lang->line('common_first_name'), + $CI->lang->line('common_email'), + $CI->lang->line('common_phone_number'), + ' '); + + $table.=''; + foreach($headers as $header) + { + $table.="$header"; + } + $table.=''; + $table.=get_people_manage_table_data_rows($people,$controller); + $table.=''; + return $table; +} + +/* +Gets the html data rows for the people. +*/ +function get_people_manage_table_data_rows($people,$controller) +{ + $CI =& get_instance(); + $table_data_rows=''; + + foreach($people->result() as $person) + { + $table_data_rows.=get_person_data_row($person,$controller); + } + + if($people->num_rows()==0) + { + $table_data_rows.="
".$CI->lang->line('common_no_persons_to_display')."
"; + } + + return $table_data_rows; +} + +function get_person_data_row($person,$controller) +{ + $CI =& get_instance(); + $controller_name=strtolower(get_class($CI)); + $width = $controller->get_form_width(); + + $table_data_row=''; + $table_data_row.=""; + $table_data_row.=''.character_limiter($person->last_name,13).''; + $table_data_row.=''.character_limiter($person->first_name,13).''; + $table_data_row.=''.mailto($person->email,character_limiter($person->email,22)).''; + $table_data_row.=''.character_limiter($person->phone_number,13).''; + $table_data_row.=''.anchor($controller_name."/view/$person->person_id/width:$width", $CI->lang->line('common_edit'),array('class'=>'thickbox','title'=>$CI->lang->line($controller_name.'_update'))).''; + $table_data_row.=''; + + return $table_data_row; +} + +/* +Gets the html table to manage suppliers. +*/ +function get_supplier_manage_table($suppliers,$controller) +{ + $CI =& get_instance(); + $table=''; + + $headers = array('', + $CI->lang->line('suppliers_company_name'), + $CI->lang->line('common_last_name'), + $CI->lang->line('common_first_name'), + $CI->lang->line('common_email'), + $CI->lang->line('common_phone_number'), + ' '); + + $table.=''; + foreach($headers as $header) + { + $table.=""; + } + $table.=''; + $table.=get_supplier_manage_table_data_rows($suppliers,$controller); + $table.='
$header
'; + return $table; +} + +/* +Gets the html data rows for the supplier. +*/ +function get_supplier_manage_table_data_rows($suppliers,$controller) +{ + $CI =& get_instance(); + $table_data_rows=''; + + foreach($suppliers->result() as $supplier) + { + $table_data_rows.=get_supplier_data_row($supplier,$controller); + } + + if($suppliers->num_rows()==0) + { + $table_data_rows.="
".$CI->lang->line('common_no_persons_to_display')."
"; + } + + return $table_data_rows; +} + +function get_supplier_data_row($supplier,$controller) +{ + $CI =& get_instance(); + $controller_name=strtolower(get_class($CI)); + $width = $controller->get_form_width(); + + $table_data_row=''; + $table_data_row.=""; + $table_data_row.=''.character_limiter($supplier->company_name,13).''; + $table_data_row.=''.character_limiter($supplier->last_name,13).''; + $table_data_row.=''.character_limiter($supplier->first_name,13).''; + $table_data_row.=''.mailto($supplier->email,character_limiter($supplier->email,22)).''; + $table_data_row.=''.character_limiter($supplier->phone_number,13).''; + $table_data_row.=''.anchor($controller_name."/view/$supplier->person_id/width:$width", $CI->lang->line('common_edit'),array('class'=>'thickbox','title'=>$CI->lang->line($controller_name.'_update'))).''; + $table_data_row.=''; + + return $table_data_row; +} + +/* +Gets the html table to manage items. +*/ +function get_items_manage_table($items,$controller) +{ + $CI =& get_instance(); + $table=''; + + $headers = array('', + $CI->lang->line('items_item_number'), + $CI->lang->line('items_name'), + $CI->lang->line('items_category'), + $CI->lang->line('items_cost_price'), + $CI->lang->line('items_unit_price'), + $CI->lang->line('items_tax_percents'), + $CI->lang->line('items_quantity'), + ' ', + $CI->lang->line('items_inventory') + ); + + $table.=''; + foreach($headers as $header) + { + $table.=""; + } + $table.=''; + $table.=get_items_manage_table_data_rows($items,$controller); + $table.='
$header
'; + return $table; +} + +/* +Gets the html data rows for the items. +*/ +function get_items_manage_table_data_rows($items,$controller) +{ + $CI =& get_instance(); + $table_data_rows=''; + + foreach($items->result() as $item) + { + $table_data_rows.=get_item_data_row($item,$controller); + } + + if($items->num_rows()==0) + { + $table_data_rows.="
".$CI->lang->line('items_no_items_to_display')."
"; + } + + return $table_data_rows; +} + +function get_item_data_row($item,$controller) +{ + $CI =& get_instance(); + $item_tax_info=$CI->Item_taxes->get_info($item->item_id); + $tax_percents = ''; + foreach($item_tax_info as $tax_info) + { + $tax_percents.=$tax_info['percent']. '%, '; + } + $tax_percents=substr($tax_percents, 0, -2); + $controller_name=strtolower(get_class($CI)); + $width = $controller->get_form_width(); + + $table_data_row=''; + $table_data_row.=""; + $table_data_row.=''.$item->item_number.''; + $table_data_row.=''.$item->name.''; + $table_data_row.=''.$item->category.''; + $table_data_row.=''.to_currency($item->cost_price).''; + $table_data_row.=''.to_currency($item->unit_price).''; + $table_data_row.=''.$tax_percents.''; + $table_data_row.=''.$item->quantity.''; + $table_data_row.=''.anchor($controller_name."/view/$item->item_id/width:$width", $CI->lang->line('common_edit'),array('class'=>'thickbox','title'=>$CI->lang->line($controller_name.'_update'))).''; + + //Ramel Inventory Tracking + $table_data_row.=''.anchor($controller_name."/inventory/$item->item_id/width:$width", $CI->lang->line('common_inv'),array('class'=>'thickbox','title'=>$CI->lang->line($controller_name.'_count')))./*'';//inventory count + $table_data_row.=''*/'    '.anchor($controller_name."/count_details/$item->item_id/width:$width", $CI->lang->line('common_det'),array('class'=>'thickbox','title'=>$CI->lang->line($controller_name.'_details_count'))).'';//inventory details + + $table_data_row.=''; + return $table_data_row; +} + +/* +Gets the html table to manage giftcards. +*/ +function get_giftcards_manage_table( $giftcards, $controller ) +{ + $CI =& get_instance(); + + $table=''; + + $headers = array('', + $CI->lang->line('giftcards_giftcard_number'), + $CI->lang->line('giftcards_card_value'), + ' ', + ); + + $table.=''; + foreach($headers as $header) + { + $table.=""; + } + $table.=''; + $table.=get_giftcards_manage_table_data_rows( $giftcards, $controller ); + $table.='
$header
'; + return $table; +} + +/* +Gets the html data rows for the giftcard. +*/ +function get_giftcards_manage_table_data_rows( $giftcards, $controller ) +{ + $CI =& get_instance(); + $table_data_rows=''; + + foreach($giftcards->result() as $giftcard) + { + $table_data_rows.=get_giftcard_data_row( $giftcard, $controller ); + } + + if($giftcards->num_rows()==0) + { + $table_data_rows.="
".$CI->lang->line('giftcards_no_giftcards_to_display')."
"; + } + + return $table_data_rows; +} + +function get_giftcard_data_row($giftcard,$controller) +{ + $CI =& get_instance(); + $controller_name=strtolower(get_class($CI)); + $width = $controller->get_form_width(); + + $table_data_row=''; + $table_data_row.=""; + $table_data_row.=''.$giftcard->giftcard_number.''; + $table_data_row.=''.to_currency($giftcard->value).''; + $table_data_row.=''.anchor($controller_name."/view/$giftcard->giftcard_id/width:$width", $CI->lang->line('common_edit'),array('class'=>'thickbox','title'=>$CI->lang->line($controller_name.'_update'))).''; + + $table_data_row.=''; + return $table_data_row; +} + +/* +Gets the html table to manage item kits. +*/ +function get_item_kits_manage_table( $item_kits, $controller ) +{ + $CI =& get_instance(); + + $table=''; + + $headers = array('', + $CI->lang->line('item_kits_name'), + $CI->lang->line('item_kits_description'), + ' ', + ); + + $table.=''; + foreach($headers as $header) + { + $table.=""; + } + $table.=''; + $table.=get_item_kits_manage_table_data_rows( $item_kits, $controller ); + $table.='
$header
'; + return $table; +} + +/* +Gets the html data rows for the item kits. +*/ +function get_item_kits_manage_table_data_rows( $item_kits, $controller ) +{ + $CI =& get_instance(); + $table_data_rows=''; + + foreach($item_kits->result() as $item_kit) + { + $table_data_rows.=get_item_kit_data_row( $item_kit, $controller ); + } + + if($item_kits->num_rows()==0) + { + $table_data_rows.="
".$CI->lang->line('item_kits_no_item_kits_to_display')."
"; + } + + return $table_data_rows; +} + +function get_item_kit_data_row($item_kit,$controller) +{ + $CI =& get_instance(); + $controller_name=strtolower(get_class($CI)); + $width = $controller->get_form_width(); + + $table_data_row=''; + $table_data_row.=""; + $table_data_row.=''.$item_kit->name.''; + $table_data_row.=''.character_limiter($item_kit->description, 25).''; + $table_data_row.=''.anchor($controller_name."/view/$item_kit->item_kit_id/width:$width", $CI->lang->line('common_edit'),array('class'=>'thickbox','title'=>$CI->lang->line($controller_name.'_update'))).''; + + $table_data_row.=''; + return $table_data_row; +} + +?> \ No newline at end of file diff --git a/application/hooks/index.html b/application/hooks/index.html new file mode 100644 index 000000000..c942a79ce --- /dev/null +++ b/application/hooks/index.html @@ -0,0 +1,10 @@ + + + 403 Forbidden + + + +

Directory access is forbidden.

+ + + \ No newline at end of file diff --git a/application/hooks/load_config.php b/application/hooks/load_config.php new file mode 100644 index 000000000..a19115981 --- /dev/null +++ b/application/hooks/load_config.php @@ -0,0 +1,25 @@ +Appconfig->get_all()->result() as $app_config) + { + $CI->config->set_item($app_config->key,$app_config->value); + } + + if ($CI->config->item('language')) + { + //$CI->lang->switch_to($CI->config->item('language')); + } + + if ($CI->config->item('timezone')) + { + date_default_timezone_set($CI->config->item('timezone')); + } + else + { + date_default_timezone_set('America/New_York'); + } +} +?> \ No newline at end of file diff --git a/application/index.html b/application/index.html new file mode 100644 index 000000000..c942a79ce --- /dev/null +++ b/application/index.html @@ -0,0 +1,10 @@ + + + 403 Forbidden + + + +

Directory access is forbidden.

+ + + \ No newline at end of file diff --git a/application/language/english/common_lang.php b/application/language/english/common_lang.php new file mode 100644 index 000000000..3ddf42837 --- /dev/null +++ b/application/language/english/common_lang.php @@ -0,0 +1,41 @@ + \ No newline at end of file diff --git a/application/language/english/config_lang.php b/application/language/english/config_lang.php new file mode 100644 index 000000000..079b9709d --- /dev/null +++ b/application/language/english/config_lang.php @@ -0,0 +1,24 @@ + \ No newline at end of file diff --git a/application/language/english/customers_lang.php b/application/language/english/customers_lang.php new file mode 100644 index 000000000..d6978d458 --- /dev/null +++ b/application/language/english/customers_lang.php @@ -0,0 +1,16 @@ + diff --git a/application/language/english/employees_lang.php b/application/language/english/employees_lang.php new file mode 100644 index 000000000..a30c32b99 --- /dev/null +++ b/application/language/english/employees_lang.php @@ -0,0 +1,27 @@ + diff --git a/application/language/english/error_lang.php b/application/language/english/error_lang.php new file mode 100644 index 000000000..cfcd2f0c9 --- /dev/null +++ b/application/language/english/error_lang.php @@ -0,0 +1,4 @@ + diff --git a/application/language/english/giftcards_lang.php b/application/language/english/giftcards_lang.php new file mode 100644 index 000000000..1a22f132f --- /dev/null +++ b/application/language/english/giftcards_lang.php @@ -0,0 +1,69 @@ + diff --git a/application/language/english/index.html b/application/language/english/index.html new file mode 100644 index 000000000..0696be4eb --- /dev/null +++ b/application/language/english/index.html @@ -0,0 +1,10 @@ + + + 403 Forbidden + + + +

Directory access is forbidden.

+ + + diff --git a/application/language/english/item_kits_lang.php b/application/language/english/item_kits_lang.php new file mode 100644 index 000000000..601fae62d --- /dev/null +++ b/application/language/english/item_kits_lang.php @@ -0,0 +1,20 @@ + diff --git a/application/language/english/items_lang.php b/application/language/english/items_lang.php new file mode 100644 index 000000000..e7f9a1aea --- /dev/null +++ b/application/language/english/items_lang.php @@ -0,0 +1,79 @@ + diff --git a/application/language/english/login_lang.php b/application/language/english/login_lang.php new file mode 100644 index 000000000..a5aa1bb26 --- /dev/null +++ b/application/language/english/login_lang.php @@ -0,0 +1,8 @@ + diff --git a/application/language/english/module_lang.php b/application/language/english/module_lang.php new file mode 100644 index 000000000..9e95a2d81 --- /dev/null +++ b/application/language/english/module_lang.php @@ -0,0 +1,34 @@ + diff --git a/application/language/english/receivings_lang.php b/application/language/english/receivings_lang.php new file mode 100644 index 000000000..2564d4d42 --- /dev/null +++ b/application/language/english/receivings_lang.php @@ -0,0 +1,26 @@ + diff --git a/application/language/english/reports_lang.php b/application/language/english/reports_lang.php new file mode 100644 index 000000000..12e1f3598 --- /dev/null +++ b/application/language/english/reports_lang.php @@ -0,0 +1,87 @@ + diff --git a/application/language/english/sales_lang.php b/application/language/english/sales_lang.php new file mode 100644 index 000000000..836446372 --- /dev/null +++ b/application/language/english/sales_lang.php @@ -0,0 +1,79 @@ + \ No newline at end of file diff --git a/application/language/english/suppliers_lang.php b/application/language/english/suppliers_lang.php new file mode 100644 index 000000000..97191a352 --- /dev/null +++ b/application/language/english/suppliers_lang.php @@ -0,0 +1,17 @@ + diff --git a/application/language/indonesia/common_lang.php b/application/language/indonesia/common_lang.php new file mode 100644 index 000000000..53e4e9c6d --- /dev/null +++ b/application/language/indonesia/common_lang.php @@ -0,0 +1,41 @@ + diff --git a/application/language/indonesia/config_lang.php b/application/language/indonesia/config_lang.php new file mode 100644 index 000000000..b28d95ff8 --- /dev/null +++ b/application/language/indonesia/config_lang.php @@ -0,0 +1,24 @@ + \ No newline at end of file diff --git a/application/language/indonesia/customers_lang.php b/application/language/indonesia/customers_lang.php new file mode 100644 index 000000000..4ce03c357 --- /dev/null +++ b/application/language/indonesia/customers_lang.php @@ -0,0 +1,16 @@ + \ No newline at end of file diff --git a/application/language/indonesia/employees_lang.php b/application/language/indonesia/employees_lang.php new file mode 100644 index 000000000..5f2fc811e --- /dev/null +++ b/application/language/indonesia/employees_lang.php @@ -0,0 +1,27 @@ + \ No newline at end of file diff --git a/application/language/indonesia/error_lang.php b/application/language/indonesia/error_lang.php new file mode 100644 index 000000000..5fb55ba97 --- /dev/null +++ b/application/language/indonesia/error_lang.php @@ -0,0 +1,4 @@ + \ No newline at end of file diff --git a/application/language/indonesia/giftcards_lang.php b/application/language/indonesia/giftcards_lang.php new file mode 100644 index 000000000..c6ba2ebe1 --- /dev/null +++ b/application/language/indonesia/giftcards_lang.php @@ -0,0 +1,71 @@ + \ No newline at end of file diff --git a/application/language/indonesia/index.html b/application/language/indonesia/index.html new file mode 100644 index 000000000..e553b61a7 --- /dev/null +++ b/application/language/indonesia/index.html @@ -0,0 +1,10 @@ + + + 403 Dilarang + + + +

Akses direktori dilarang.

+ + + \ No newline at end of file diff --git a/application/language/indonesia/item_kits_lang.php b/application/language/indonesia/item_kits_lang.php new file mode 100644 index 000000000..ebd06926b --- /dev/null +++ b/application/language/indonesia/item_kits_lang.php @@ -0,0 +1,20 @@ + \ No newline at end of file diff --git a/application/language/indonesia/items_lang.php b/application/language/indonesia/items_lang.php new file mode 100644 index 000000000..2cc620e96 --- /dev/null +++ b/application/language/indonesia/items_lang.php @@ -0,0 +1,78 @@ + diff --git a/application/language/indonesia/login_lang.php b/application/language/indonesia/login_lang.php new file mode 100644 index 000000000..7b0150f00 --- /dev/null +++ b/application/language/indonesia/login_lang.php @@ -0,0 +1,8 @@ + diff --git a/application/language/indonesia/module_lang.php b/application/language/indonesia/module_lang.php new file mode 100644 index 000000000..b45605a1f --- /dev/null +++ b/application/language/indonesia/module_lang.php @@ -0,0 +1,33 @@ + diff --git a/application/language/indonesia/receivings_lang.php b/application/language/indonesia/receivings_lang.php new file mode 100644 index 000000000..6702394ef --- /dev/null +++ b/application/language/indonesia/receivings_lang.php @@ -0,0 +1,26 @@ + \ No newline at end of file diff --git a/application/language/indonesia/reports_lang.php b/application/language/indonesia/reports_lang.php new file mode 100644 index 000000000..a32b1bd22 --- /dev/null +++ b/application/language/indonesia/reports_lang.php @@ -0,0 +1,85 @@ + diff --git a/application/language/indonesia/sales_lang.php b/application/language/indonesia/sales_lang.php new file mode 100644 index 000000000..089c3ef23 --- /dev/null +++ b/application/language/indonesia/sales_lang.php @@ -0,0 +1,78 @@ + diff --git a/application/language/indonesia/suppliers_lang.php b/application/language/indonesia/suppliers_lang.php new file mode 100644 index 000000000..a99265701 --- /dev/null +++ b/application/language/indonesia/suppliers_lang.php @@ -0,0 +1,17 @@ + \ No newline at end of file diff --git a/application/language/spanish/common_lang.php b/application/language/spanish/common_lang.php new file mode 100644 index 000000000..474db8325 --- /dev/null +++ b/application/language/spanish/common_lang.php @@ -0,0 +1,40 @@ + diff --git a/application/language/spanish/config_lang.php b/application/language/spanish/config_lang.php new file mode 100644 index 000000000..a39aa873e --- /dev/null +++ b/application/language/spanish/config_lang.php @@ -0,0 +1,24 @@ + diff --git a/application/language/spanish/customers_lang.php b/application/language/spanish/customers_lang.php new file mode 100644 index 000000000..d36370d53 --- /dev/null +++ b/application/language/spanish/customers_lang.php @@ -0,0 +1,16 @@ + diff --git a/application/language/spanish/employees_lang.php b/application/language/spanish/employees_lang.php new file mode 100644 index 000000000..52be3d99c --- /dev/null +++ b/application/language/spanish/employees_lang.php @@ -0,0 +1,27 @@ + diff --git a/application/language/spanish/error_lang.php b/application/language/spanish/error_lang.php new file mode 100644 index 000000000..aef9e8c43 --- /dev/null +++ b/application/language/spanish/error_lang.php @@ -0,0 +1,4 @@ + diff --git a/application/language/spanish/giftcards_lang.php b/application/language/spanish/giftcards_lang.php new file mode 100644 index 000000000..4a358491c --- /dev/null +++ b/application/language/spanish/giftcards_lang.php @@ -0,0 +1,69 @@ + diff --git a/application/language/spanish/index.html b/application/language/spanish/index.html new file mode 100644 index 000000000..9fe0435c2 --- /dev/null +++ b/application/language/spanish/index.html @@ -0,0 +1,10 @@ + + + 403 Prohibido + + + +

El acceso a los directorios está prohibido.

+ + + diff --git a/application/language/spanish/item_kits_lang.php b/application/language/spanish/item_kits_lang.php new file mode 100644 index 000000000..2ffd7b807 --- /dev/null +++ b/application/language/spanish/item_kits_lang.php @@ -0,0 +1,20 @@ + diff --git a/application/language/spanish/items_lang.php b/application/language/spanish/items_lang.php new file mode 100644 index 000000000..cc4f39bed --- /dev/null +++ b/application/language/spanish/items_lang.php @@ -0,0 +1,77 @@ + diff --git a/application/language/spanish/login_lang.php b/application/language/spanish/login_lang.php new file mode 100644 index 000000000..8c60ff3a4 --- /dev/null +++ b/application/language/spanish/login_lang.php @@ -0,0 +1,8 @@ + diff --git a/application/language/spanish/module_lang.php b/application/language/spanish/module_lang.php new file mode 100644 index 000000000..d00dc9862 --- /dev/null +++ b/application/language/spanish/module_lang.php @@ -0,0 +1,33 @@ + diff --git a/application/language/spanish/receivings_lang.php b/application/language/spanish/receivings_lang.php new file mode 100644 index 000000000..e86080793 --- /dev/null +++ b/application/language/spanish/receivings_lang.php @@ -0,0 +1,26 @@ + diff --git a/application/language/spanish/reports_lang.php b/application/language/spanish/reports_lang.php new file mode 100644 index 000000000..94d67239c --- /dev/null +++ b/application/language/spanish/reports_lang.php @@ -0,0 +1,85 @@ + diff --git a/application/language/spanish/sales_lang.php b/application/language/spanish/sales_lang.php new file mode 100644 index 000000000..d1612d701 --- /dev/null +++ b/application/language/spanish/sales_lang.php @@ -0,0 +1,78 @@ + diff --git a/application/language/spanish/suppliers_lang.php b/application/language/spanish/suppliers_lang.php new file mode 100644 index 000000000..c2a436b1e --- /dev/null +++ b/application/language/spanish/suppliers_lang.php @@ -0,0 +1,17 @@ + diff --git a/application/libraries/MY_Language.php b/application/libraries/MY_Language.php new file mode 100644 index 000000000..226fbb9af --- /dev/null +++ b/application/libraries/MY_Language.php @@ -0,0 +1,26 @@ +config->set_item('language',$idiom); + $loaded = $this->is_loaded; + $this->is_loaded = array(); + + foreach($loaded as $file) + { + $this->load(str_replace('_lang.php','',$file)); + } + } + } +} + +?> diff --git a/application/libraries/Receiving_lib.php b/application/libraries/Receiving_lib.php new file mode 100644 index 000000000..407293658 --- /dev/null +++ b/application/libraries/Receiving_lib.php @@ -0,0 +1,251 @@ +CI =& get_instance(); + } + + function get_cart() + { + if(!$this->CI->session->userdata('cartRecv')) + $this->set_cart(array()); + + return $this->CI->session->userdata('cartRecv'); + } + + function set_cart($cart_data) + { + $this->CI->session->set_userdata('cartRecv',$cart_data); + } + + function get_supplier() + { + if(!$this->CI->session->userdata('supplier')) + $this->set_supplier(-1); + + return $this->CI->session->userdata('supplier'); + } + + function set_supplier($supplier_id) + { + $this->CI->session->set_userdata('supplier',$supplier_id); + } + + function get_mode() + { + if(!$this->CI->session->userdata('recv_mode')) + $this->set_mode('receive'); + + return $this->CI->session->userdata('recv_mode'); + } + + function set_mode($mode) + { + $this->CI->session->set_userdata('recv_mode',$mode); + } + + function add_item($item_id,$quantity=1,$discount=0,$price=null,$description=null,$serialnumber=null) + { + //make sure item exists in database. + if(!$this->CI->Item->exists($item_id)) + { + //try to get item id given an item_number + $item_id = $this->CI->Item->get_item_id($item_id); + + if(!$item_id) + return false; + } + + //Get items in the receiving so far. + $items = $this->get_cart(); + + //We need to loop through all items in the cart. + //If the item is already there, get it's key($updatekey). + //We also need to get the next key that we are going to use in case we need to add the + //item to the list. Since items can be deleted, we can't use a count. we use the highest key + 1. + + $maxkey=0; //Highest key so far + $itemalreadyinsale=FALSE; //We did not find the item yet. + $insertkey=0; //Key to use for new entry. + $updatekey=0; //Key to use to update(quantity) + + foreach ($items as $item) + { + //We primed the loop so maxkey is 0 the first time. + //Also, we have stored the key in the element itself so we can compare. + //There is an array function to get the associated key for an element, but I like it better + //like that! + + if($maxkey <= $item['line']) + { + $maxkey = $item['line']; + } + + if($item['item_id']==$item_id) + { + $itemalreadyinsale=TRUE; + $updatekey=$item['line']; + } + } + + $insertkey=$maxkey+1; + + //array records are identified by $insertkey and item_id is just another field. + $item = array(($insertkey)=> + array( + 'item_id'=>$item_id, + 'line'=>$insertkey, + 'name'=>$this->CI->Item->get_info($item_id)->name, + 'description'=>$description!=null ? $description: $this->CI->Item->get_info($item_id)->description, + 'serialnumber'=>$serialnumber!=null ? $serialnumber: '', + 'allow_alt_description'=>$this->CI->Item->get_info($item_id)->allow_alt_description, + 'is_serialized'=>$this->CI->Item->get_info($item_id)->is_serialized, + 'quantity'=>$quantity, + 'discount'=>$discount, + 'price'=>$price!=null ? $price: $this->CI->Item->get_info($item_id)->cost_price + ) + ); + + //Item already exists + if($itemalreadyinsale) + { + $items[$updatekey]['quantity']+=$quantity; + } + else + { + //add to existing array + $items+=$item; + } + + $this->set_cart($items); + return true; + + } + + function edit_item($line,$description,$serialnumber,$quantity,$discount,$price) + { + $items = $this->get_cart(); + if(isset($items[$line])) + { + $items[$line]['description'] = $description; + $items[$line]['serialnumber'] = $serialnumber; + $items[$line]['quantity'] = $quantity; + $items[$line]['discount'] = $discount; + $items[$line]['price'] = $price; + $this->set_cart($items); + } + + return false; + } + + function is_valid_receipt($receipt_receiving_id) + { + //RECV # + $pieces = explode(' ',$receipt_receiving_id); + + if(count($pieces)==2) + { + return $this->CI->Receiving->exists($pieces[1]); + } + + return false; + } + + function is_valid_item_kit($item_kit_id) + { + //KIT # + $pieces = explode(' ',$item_kit_id); + + if(count($pieces)==2) + { + return $this->CI->Item_kit->exists($pieces[1]); + } + + return false; + } + + function return_entire_receiving($receipt_receiving_id) + { + //POS # + $pieces = explode(' ',$receipt_receiving_id); + $receiving_id = $pieces[1]; + + $this->empty_cart(); + $this->delete_supplier(); + + foreach($this->CI->Receiving->get_receiving_items($receiving_id)->result() as $row) + { + $this->add_item($row->item_id,-$row->quantity_purchased,$row->discount_percent,$row->item_unit_price,$row->description,$row->serialnumber); + } + $this->set_supplier($this->CI->Receiving->get_supplier($receiving_id)->person_id); + } + + function add_item_kit($external_item_kit_id) + { + //KIT # + $pieces = explode(' ',$external_item_kit_id); + $item_kit_id = $pieces[1]; + + foreach ($this->CI->Item_kit_items->get_info($item_kit_id) as $item_kit_item) + { + $this->add_item($item_kit_item['item_id'], $item_kit_item['quantity']); + } + } + + function copy_entire_receiving($receiving_id) + { + $this->empty_cart(); + $this->delete_supplier(); + + foreach($this->CI->Receiving->get_receiving_items($receiving_id)->result() as $row) + { + $this->add_item($row->item_id,$row->quantity_purchased,$row->discount_percent,$row->item_unit_price,$row->description,$row->serialnumber); + } + $this->set_supplier($this->CI->Receiving->get_supplier($receiving_id)->person_id); + + } + + function delete_item($line) + { + $items=$this->get_cart(); + unset($items[$line]); + $this->set_cart($items); + } + + function empty_cart() + { + $this->CI->session->unset_userdata('cartRecv'); + } + + function delete_supplier() + { + $this->CI->session->unset_userdata('supplier'); + } + + function clear_mode() + { + $this->CI->session->unset_userdata('receiving_mode'); + } + + function clear_all() + { + $this->clear_mode(); + $this->empty_cart(); + $this->delete_supplier(); + } + + function get_total() + { + $total = 0; + foreach($this->get_cart() as $item) + { + $total+=($item['price']*$item['quantity']-$item['price']*$item['quantity']*$item['discount']/100); + } + + return $total; + } +} +?> \ No newline at end of file diff --git a/application/libraries/Sale_lib.php b/application/libraries/Sale_lib.php new file mode 100644 index 000000000..8f83a5147 --- /dev/null +++ b/application/libraries/Sale_lib.php @@ -0,0 +1,498 @@ +CI =& get_instance(); + } + + function get_cart() + { + if(!$this->CI->session->userdata('cart')) + $this->set_cart(array()); + + return $this->CI->session->userdata('cart'); + } + + function set_cart($cart_data) + { + $this->CI->session->set_userdata('cart',$cart_data); + } + + //Alain Multiple Payments + function get_payments() + { + if(!$this->CI->session->userdata('payments')) + $this->set_payments(array()); + + return $this->CI->session->userdata('payments'); + } + + //Alain Multiple Payments + function set_payments($payments_data) + { + $this->CI->session->set_userdata('payments',$payments_data); + } + + function get_comment() + { + return $this->CI->session->userdata('comment'); + } + + function set_comment($comment) + { + $this->CI->session->set_userdata('comment', $comment); + } + + function clear_comment() + { + $this->CI->session->unset_userdata('comment'); + } + + function get_email_receipt() + { + return $this->CI->session->userdata('email_receipt'); + } + + function set_email_receipt($email_receipt) + { + $this->CI->session->set_userdata('email_receipt', $email_receipt); + } + + function clear_email_receipt() + { + $this->CI->session->unset_userdata('email_receipt'); + } + + function add_payment($payment_id,$payment_amount) + { + $payments=$this->get_payments(); + $payment = array($payment_id=> + array( + 'payment_type'=>$payment_id, + 'payment_amount'=>$payment_amount + ) + ); + + //payment_method already exists, add to payment_amount + if(isset($payments[$payment_id])) + { + $payments[$payment_id]['payment_amount']+=$payment_amount; + } + else + { + //add to existing array + $payments+=$payment; + } + + $this->set_payments($payments); + return true; + + } + + //Alain Multiple Payments + function edit_payment($payment_id,$payment_amount) + { + $payments = $this->get_payments(); + if(isset($payments[$payment_id])) + { + $payments[$payment_id]['payment_type'] = $payment_id; + $payments[$payment_id]['payment_amount'] = $payment_amount; + $this->set_payments($payment_id); + } + + return false; + } + + //Alain Multiple Payments + function delete_payment($payment_id) + { + $payments=$this->get_payments(); + unset($payments[$payment_id]); + $this->set_payments($payments); + } + + //Alain Multiple Payments + function empty_payments() + { + $this->CI->session->unset_userdata('payments'); + } + + //Alain Multiple Payments + function get_payments_total() + { + $subtotal = 0; + foreach($this->get_payments() as $payments) + { + $subtotal+=$payments['payment_amount']; + } + return to_currency_no_money($subtotal); + } + + //Alain Multiple Payments + function get_amount_due() + { + $amount_due=0; + $payment_total = $this->get_payments_total(); + $sales_total=$this->get_total(); + $amount_due=to_currency_no_money($sales_total - $payment_total); + return $amount_due; + } + + function get_customer() + { + if(!$this->CI->session->userdata('customer')) + $this->set_customer(-1); + + return $this->CI->session->userdata('customer'); + } + + function set_customer($customer_id) + { + $this->CI->session->set_userdata('customer',$customer_id); + } + + function get_mode() + { + if(!$this->CI->session->userdata('sale_mode')) + $this->set_mode('sale'); + + return $this->CI->session->userdata('sale_mode'); + } + + function set_mode($mode) + { + $this->CI->session->set_userdata('sale_mode',$mode); + } + + function add_item($item_id,$quantity=1,$discount=0,$price=null,$description=null,$serialnumber=null) + { + //make sure item exists + if(!$this->CI->Item->exists($item_id)) + { + //try to get item id given an item_number + $item_id = $this->CI->Item->get_item_id($item_id); + + if(!$item_id) + return false; + } + + + //Alain Serialization and Description + + //Get all items in the cart so far... + $items = $this->get_cart(); + + //We need to loop through all items in the cart. + //If the item is already there, get it's key($updatekey). + //We also need to get the next key that we are going to use in case we need to add the + //item to the cart. Since items can be deleted, we can't use a count. we use the highest key + 1. + + $maxkey=0; //Highest key so far + $itemalreadyinsale=FALSE; //We did not find the item yet. + $insertkey=0; //Key to use for new entry. + $updatekey=0; //Key to use to update(quantity) + + foreach ($items as $item) + { + //We primed the loop so maxkey is 0 the first time. + //Also, we have stored the key in the element itself so we can compare. + + if($maxkey <= $item['line']) + { + $maxkey = $item['line']; + } + + if($item['item_id']==$item_id) + { + $itemalreadyinsale=TRUE; + $updatekey=$item['line']; + } + } + + $insertkey=$maxkey+1; + + //array/cart records are identified by $insertkey and item_id is just another field. + $item = array(($insertkey)=> + array( + 'item_id'=>$item_id, + 'line'=>$insertkey, + 'name'=>$this->CI->Item->get_info($item_id)->name, + 'item_number'=>$this->CI->Item->get_info($item_id)->item_number, + 'description'=>$description!=null ? $description: $this->CI->Item->get_info($item_id)->description, + 'serialnumber'=>$serialnumber!=null ? $serialnumber: '', + 'allow_alt_description'=>$this->CI->Item->get_info($item_id)->allow_alt_description, + 'is_serialized'=>$this->CI->Item->get_info($item_id)->is_serialized, + 'quantity'=>$quantity, + 'discount'=>$discount, + 'price'=>$price!=null ? $price: $this->CI->Item->get_info($item_id)->unit_price + ) + ); + + //Item already exists and is not serialized, add to quantity + if($itemalreadyinsale && ($this->CI->Item->get_info($item_id)->is_serialized ==0) ) + { + $items[$updatekey]['quantity']+=$quantity; + } + else + { + //add to existing array + $items+=$item; + } + + $this->set_cart($items); + return true; + + } + + function out_of_stock($item_id) + { + //make sure item exists + if(!$this->CI->Item->exists($item_id)) + { + //try to get item id given an item_number + $item_id = $this->CI->Item->get_item_id($item_id); + + if(!$item_id) + return false; + } + + $item = $this->CI->Item->get_info($item_id); + $quanity_added = $this->get_quantity_already_added($item_id); + + if ($item->quantity - $quanity_added < 0) + { + return true; + } + + return false; + } + + function get_quantity_already_added($item_id) + { + $items = $this->get_cart(); + $quanity_already_added = 0; + foreach ($items as $item) + { + if($item['item_id']==$item_id) + { + $quanity_already_added+=$item['quantity']; + } + } + + return $quanity_already_added; + } + + function get_item_id($line_to_get) + { + $items = $this->get_cart(); + + foreach ($items as $line=>$item) + { + if($line==$line_to_get) + { + return $item['item_id']; + } + } + + return -1; + } + + function edit_item($line,$description,$serialnumber,$quantity,$discount,$price) + { + $items = $this->get_cart(); + if(isset($items[$line])) + { + $items[$line]['description'] = $description; + $items[$line]['serialnumber'] = $serialnumber; + $items[$line]['quantity'] = $quantity; + $items[$line]['discount'] = $discount; + $items[$line]['price'] = $price; + $this->set_cart($items); + } + + return false; + } + + function is_valid_receipt($receipt_sale_id) + { + //POS # + $pieces = explode(' ',$receipt_sale_id); + + if(count($pieces)==2) + { + return $this->CI->Sale->exists($pieces[1]); + } + + return false; + } + + function is_valid_item_kit($item_kit_id) + { + //KIT # + $pieces = explode(' ',$item_kit_id); + + if(count($pieces)==2) + { + return $this->CI->Item_kit->exists($pieces[1]); + } + + return false; + } + + function return_entire_sale($receipt_sale_id) + { + //POS # + $pieces = explode(' ',$receipt_sale_id); + $sale_id = $pieces[1]; + + $this->empty_cart(); + $this->remove_customer(); + + foreach($this->CI->Sale->get_sale_items($sale_id)->result() as $row) + { + $this->add_item($row->item_id,-$row->quantity_purchased,$row->discount_percent,$row->item_unit_price,$row->description,$row->serialnumber); + } + $this->set_customer($this->CI->Sale->get_customer($sale_id)->person_id); + } + + function add_item_kit($external_item_kit_id) + { + //KIT # + $pieces = explode(' ',$external_item_kit_id); + $item_kit_id = $pieces[1]; + + foreach ($this->CI->Item_kit_items->get_info($item_kit_id) as $item_kit_item) + { + $this->add_item($item_kit_item['item_id'], $item_kit_item['quantity']); + } + } + + function copy_entire_sale($sale_id) + { + $this->empty_cart(); + $this->remove_customer(); + + foreach($this->CI->Sale->get_sale_items($sale_id)->result() as $row) + { + $this->add_item($row->item_id,$row->quantity_purchased,$row->discount_percent,$row->item_unit_price,$row->description,$row->serialnumber); + } + foreach($this->CI->Sale->get_sale_payments($sale_id)->result() as $row) + { + $this->add_payment($row->payment_type,$row->payment_amount); + } + $this->set_customer($this->CI->Sale->get_customer($sale_id)->person_id); + + } + + function copy_entire_suspended_sale($sale_id) + { + $this->empty_cart(); + $this->remove_customer(); + + foreach($this->CI->Sale_suspended->get_sale_items($sale_id)->result() as $row) + { + $this->add_item($row->item_id,$row->quantity_purchased,$row->discount_percent,$row->item_unit_price,$row->description,$row->serialnumber); + } + foreach($this->CI->Sale_suspended->get_sale_payments($sale_id)->result() as $row) + { + $this->add_payment($row->payment_type,$row->payment_amount); + } + $this->set_customer($this->CI->Sale_suspended->get_customer($sale_id)->person_id); + $this->set_comment($this->CI->Sale_suspended->get_comment($sale_id)); + } + + function delete_item($line) + { + $items=$this->get_cart(); + unset($items[$line]); + $this->set_cart($items); + } + + function empty_cart() + { + $this->CI->session->unset_userdata('cart'); + } + + function remove_customer() + { + $this->CI->session->unset_userdata('customer'); + } + + function clear_mode() + { + $this->CI->session->unset_userdata('sale_mode'); + } + + function clear_all() + { + $this->clear_mode(); + $this->empty_cart(); + $this->clear_comment(); + $this->clear_email_receipt(); + $this->empty_payments(); + $this->remove_customer(); + } + + function get_taxes() + { + $customer_id = $this->get_customer(); + $customer = $this->CI->Customer->get_info($customer_id); + + //Do not charge sales tax if we have a customer that is not taxable + if (!$customer->taxable and $customer_id!=-1) + { + return array(); + } + + $taxes = array(); + foreach($this->get_cart() as $line=>$item) + { + $tax_info = $this->CI->Item_taxes->get_info($item['item_id']); + + foreach($tax_info as $tax) + { + $name = $tax['percent'].'% ' . $tax['name']; + $tax_amount=($item['price']*$item['quantity']-$item['price']*$item['quantity']*$item['discount']/100)*(($tax['percent'])/100); + + + if (!isset($taxes[$name])) + { + $taxes[$name] = 0; + } + $taxes[$name] += $tax_amount; + } + } + + return $taxes; + } + + function get_subtotal() + { + $subtotal = 0; + foreach($this->get_cart() as $item) + { + $subtotal+=($item['price']*$item['quantity']-$item['price']*$item['quantity']*$item['discount']/100); + } + return to_currency_no_money($subtotal); + } + + function get_total() + { + $total = 0; + foreach($this->get_cart() as $item) + { + $total+=($item['price']*$item['quantity']-$item['price']*$item['quantity']*$item['discount']/100); + } + + foreach($this->get_taxes() as $tax) + { + $total+=$tax; + } + + return to_currency_no_money($total); + } +} +?> \ No newline at end of file diff --git a/application/libraries/index.html b/application/libraries/index.html new file mode 100644 index 000000000..c942a79ce --- /dev/null +++ b/application/libraries/index.html @@ -0,0 +1,10 @@ + + + 403 Forbidden + + + +

Directory access is forbidden.

+ + + \ No newline at end of file diff --git a/application/libraries/ofc-library/JSON.php b/application/libraries/ofc-library/JSON.php new file mode 100644 index 000000000..7260001a2 --- /dev/null +++ b/application/libraries/ofc-library/JSON.php @@ -0,0 +1,806 @@ + + * @author Matt Knapp + * @author Brett Stimmerman + * @copyright 2005 Michal Migurski + * @version CVS: $Id: JSON.php,v 1.31 2006/06/28 05:54:17 migurski Exp $ + * @license http://www.opensource.org/licenses/bsd-license.php + * @link http://pear.php.net/pepr/pepr-proposal-show.php?id=198 + */ + +/** + * Marker constant for Services_JSON::decode(), used to flag stack state + */ +define('SERVICES_JSON_SLICE', 1); + +/** + * Marker constant for Services_JSON::decode(), used to flag stack state + */ +define('SERVICES_JSON_IN_STR', 2); + +/** + * Marker constant for Services_JSON::decode(), used to flag stack state + */ +define('SERVICES_JSON_IN_ARR', 3); + +/** + * Marker constant for Services_JSON::decode(), used to flag stack state + */ +define('SERVICES_JSON_IN_OBJ', 4); + +/** + * Marker constant for Services_JSON::decode(), used to flag stack state + */ +define('SERVICES_JSON_IN_CMT', 5); + +/** + * Behavior switch for Services_JSON::decode() + */ +define('SERVICES_JSON_LOOSE_TYPE', 16); + +/** + * Behavior switch for Services_JSON::decode() + */ +define('SERVICES_JSON_SUPPRESS_ERRORS', 32); + +/** + * Converts to and from JSON format. + * + * Brief example of use: + * + * + * // create a new instance of Services_JSON + * $json = new Services_JSON(); + * + * // convert a complexe value to JSON notation, and send it to the browser + * $value = array('foo', 'bar', array(1, 2, 'baz'), array(3, array(4))); + * $output = $json->encode($value); + * + * print($output); + * // prints: ["foo","bar",[1,2,"baz"],[3,[4]]] + * + * // accept incoming POST data, assumed to be in JSON notation + * $input = file_get_contents('php://input', 1000000); + * $value = $json->decode($input); + * + */ +class Services_JSON +{ + /** + * constructs a new JSON instance + * + * @param int $use object behavior flags; combine with boolean-OR + * + * possible values: + * - SERVICES_JSON_LOOSE_TYPE: loose typing. + * "{...}" syntax creates associative arrays + * instead of objects in decode(). + * - SERVICES_JSON_SUPPRESS_ERRORS: error suppression. + * Values which can't be encoded (e.g. resources) + * appear as NULL instead of throwing errors. + * By default, a deeply-nested resource will + * bubble up with an error, so all return values + * from encode() should be checked with isError() + */ + function Services_JSON($use = 0) + { + $this->use = $use; + } + + /** + * convert a string from one UTF-16 char to one UTF-8 char + * + * Normally should be handled by mb_convert_encoding, but + * provides a slower PHP-only method for installations + * that lack the multibye string extension. + * + * @param string $utf16 UTF-16 character + * @return string UTF-8 character + * @access private + */ + function utf162utf8($utf16) + { + // oh please oh please oh please oh please oh please + if(function_exists('mb_convert_encoding')) { + return mb_convert_encoding($utf16, 'UTF-8', 'UTF-16'); + } + + $bytes = (ord($utf16{0}) << 8) | ord($utf16{1}); + + switch(true) { + case ((0x7F & $bytes) == $bytes): + // this case should never be reached, because we are in ASCII range + // see: http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + return chr(0x7F & $bytes); + + case (0x07FF & $bytes) == $bytes: + // return a 2-byte UTF-8 character + // see: http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + return chr(0xC0 | (($bytes >> 6) & 0x1F)) + . chr(0x80 | ($bytes & 0x3F)); + + case (0xFFFF & $bytes) == $bytes: + // return a 3-byte UTF-8 character + // see: http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + return chr(0xE0 | (($bytes >> 12) & 0x0F)) + . chr(0x80 | (($bytes >> 6) & 0x3F)) + . chr(0x80 | ($bytes & 0x3F)); + } + + // ignoring UTF-32 for now, sorry + return ''; + } + + /** + * convert a string from one UTF-8 char to one UTF-16 char + * + * Normally should be handled by mb_convert_encoding, but + * provides a slower PHP-only method for installations + * that lack the multibye string extension. + * + * @param string $utf8 UTF-8 character + * @return string UTF-16 character + * @access private + */ + function utf82utf16($utf8) + { + // oh please oh please oh please oh please oh please + if(function_exists('mb_convert_encoding')) { + return mb_convert_encoding($utf8, 'UTF-16', 'UTF-8'); + } + + switch(strlen($utf8)) { + case 1: + // this case should never be reached, because we are in ASCII range + // see: http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + return $utf8; + + case 2: + // return a UTF-16 character from a 2-byte UTF-8 char + // see: http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + return chr(0x07 & (ord($utf8{0}) >> 2)) + . chr((0xC0 & (ord($utf8{0}) << 6)) + | (0x3F & ord($utf8{1}))); + + case 3: + // return a UTF-16 character from a 3-byte UTF-8 char + // see: http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + return chr((0xF0 & (ord($utf8{0}) << 4)) + | (0x0F & (ord($utf8{1}) >> 2))) + . chr((0xC0 & (ord($utf8{1}) << 6)) + | (0x7F & ord($utf8{2}))); + } + + // ignoring UTF-32 for now, sorry + return ''; + } + + /** + * encodes an arbitrary variable into JSON format + * + * @param mixed $var any number, boolean, string, array, or object to be encoded. + * see argument 1 to Services_JSON() above for array-parsing behavior. + * if var is a strng, note that encode() always expects it + * to be in ASCII or UTF-8 format! + * + * @return mixed JSON string representation of input var or an error if a problem occurs + * @access public + */ + function encode($var) + { + switch (gettype($var)) { + case 'boolean': + return $var ? 'true' : 'false'; + + case 'NULL': + return 'null'; + + case 'integer': + return (int) $var; + + case 'double': + case 'float': + return (float) $var; + + case 'string': + // STRINGS ARE EXPECTED TO BE IN ASCII OR UTF-8 FORMAT + $ascii = ''; + $strlen_var = strlen($var); + + /* + * Iterate over every character in the string, + * escaping with a slash or encoding to UTF-8 where necessary + */ + for ($c = 0; $c < $strlen_var; ++$c) { + + $ord_var_c = ord($var{$c}); + + switch (true) { + case $ord_var_c == 0x08: + $ascii .= '\b'; + break; + case $ord_var_c == 0x09: + $ascii .= '\t'; + break; + case $ord_var_c == 0x0A: + $ascii .= '\n'; + break; + case $ord_var_c == 0x0C: + $ascii .= '\f'; + break; + case $ord_var_c == 0x0D: + $ascii .= '\r'; + break; + + case $ord_var_c == 0x22: + case $ord_var_c == 0x2F: + case $ord_var_c == 0x5C: + // double quote, slash, slosh + $ascii .= '\\'.$var{$c}; + break; + + case (($ord_var_c >= 0x20) && ($ord_var_c <= 0x7F)): + // characters U-00000000 - U-0000007F (same as ASCII) + $ascii .= $var{$c}; + break; + + case (($ord_var_c & 0xE0) == 0xC0): + // characters U-00000080 - U-000007FF, mask 110XXXXX + // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + $char = pack('C*', $ord_var_c, ord($var{$c + 1})); + $c += 1; + $utf16 = $this->utf82utf16($char); + $ascii .= sprintf('\u%04s', bin2hex($utf16)); + break; + + case (($ord_var_c & 0xF0) == 0xE0): + // characters U-00000800 - U-0000FFFF, mask 1110XXXX + // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + $char = pack('C*', $ord_var_c, + ord($var{$c + 1}), + ord($var{$c + 2})); + $c += 2; + $utf16 = $this->utf82utf16($char); + $ascii .= sprintf('\u%04s', bin2hex($utf16)); + break; + + case (($ord_var_c & 0xF8) == 0xF0): + // characters U-00010000 - U-001FFFFF, mask 11110XXX + // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + $char = pack('C*', $ord_var_c, + ord($var{$c + 1}), + ord($var{$c + 2}), + ord($var{$c + 3})); + $c += 3; + $utf16 = $this->utf82utf16($char); + $ascii .= sprintf('\u%04s', bin2hex($utf16)); + break; + + case (($ord_var_c & 0xFC) == 0xF8): + // characters U-00200000 - U-03FFFFFF, mask 111110XX + // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + $char = pack('C*', $ord_var_c, + ord($var{$c + 1}), + ord($var{$c + 2}), + ord($var{$c + 3}), + ord($var{$c + 4})); + $c += 4; + $utf16 = $this->utf82utf16($char); + $ascii .= sprintf('\u%04s', bin2hex($utf16)); + break; + + case (($ord_var_c & 0xFE) == 0xFC): + // characters U-04000000 - U-7FFFFFFF, mask 1111110X + // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + $char = pack('C*', $ord_var_c, + ord($var{$c + 1}), + ord($var{$c + 2}), + ord($var{$c + 3}), + ord($var{$c + 4}), + ord($var{$c + 5})); + $c += 5; + $utf16 = $this->utf82utf16($char); + $ascii .= sprintf('\u%04s', bin2hex($utf16)); + break; + } + } + + return '"'.$ascii.'"'; + + case 'array': + /* + * As per JSON spec if any array key is not an integer + * we must treat the the whole array as an object. We + * also try to catch a sparsely populated associative + * array with numeric keys here because some JS engines + * will create an array with empty indexes up to + * max_index which can cause memory issues and because + * the keys, which may be relevant, will be remapped + * otherwise. + * + * As per the ECMA and JSON specification an object may + * have any string as a property. Unfortunately due to + * a hole in the ECMA specification if the key is a + * ECMA reserved word or starts with a digit the + * parameter is only accessible using ECMAScript's + * bracket notation. + */ + + // treat as a JSON object + if (is_array($var) && count($var) && (array_keys($var) !== range(0, sizeof($var) - 1))) { + $properties = array_map(array($this, 'name_value'), + array_keys($var), + array_values($var)); + + foreach($properties as $property) { + if(Services_JSON::isError($property)) { + return $property; + } + } + + return '{' . join(',', $properties) . '}'; + } + + // treat it like a regular array + $elements = array_map(array($this, 'encode'), $var); + + foreach($elements as $element) { + if(Services_JSON::isError($element)) { + return $element; + } + } + + return '[' . join(',', $elements) . ']'; + + case 'object': + $vars = get_object_vars($var); + + $properties = array_map(array($this, 'name_value'), + array_keys($vars), + array_values($vars)); + + foreach($properties as $property) { + if(Services_JSON::isError($property)) { + return $property; + } + } + + return '{' . join(',', $properties) . '}'; + + default: + return ($this->use & SERVICES_JSON_SUPPRESS_ERRORS) + ? 'null' + : new Services_JSON_Error(gettype($var)." can not be encoded as JSON string"); + } + } + + /** + * array-walking function for use in generating JSON-formatted name-value pairs + * + * @param string $name name of key to use + * @param mixed $value reference to an array element to be encoded + * + * @return string JSON-formatted name-value pair, like '"name":value' + * @access private + */ + function name_value($name, $value) + { + $encoded_value = $this->encode($value); + + if(Services_JSON::isError($encoded_value)) { + return $encoded_value; + } + + return $this->encode(strval($name)) . ':' . $encoded_value; + } + + /** + * reduce a string by removing leading and trailing comments and whitespace + * + * @param $str string string value to strip of comments and whitespace + * + * @return string string value stripped of comments and whitespace + * @access private + */ + function reduce_string($str) + { + $str = preg_replace(array( + + // eliminate single line comments in '// ...' form + '#^\s*//(.+)$#m', + + // eliminate multi-line comments in '/* ... */' form, at start of string + '#^\s*/\*(.+)\*/#Us', + + // eliminate multi-line comments in '/* ... */' form, at end of string + '#/\*(.+)\*/\s*$#Us' + + ), '', $str); + + // eliminate extraneous space + return trim($str); + } + + /** + * decodes a JSON string into appropriate variable + * + * @param string $str JSON-formatted string + * + * @return mixed number, boolean, string, array, or object + * corresponding to given JSON input string. + * See argument 1 to Services_JSON() above for object-output behavior. + * Note that decode() always returns strings + * in ASCII or UTF-8 format! + * @access public + */ + function decode($str) + { + $str = $this->reduce_string($str); + + switch (strtolower($str)) { + case 'true': + return true; + + case 'false': + return false; + + case 'null': + return null; + + default: + $m = array(); + + if (is_numeric($str)) { + // Lookie-loo, it's a number + + // This would work on its own, but I'm trying to be + // good about returning integers where appropriate: + // return (float)$str; + + // Return float or int, as appropriate + return ((float)$str == (integer)$str) + ? (integer)$str + : (float)$str; + + } elseif (preg_match('/^("|\').*(\1)$/s', $str, $m) && $m[1] == $m[2]) { + // STRINGS RETURNED IN UTF-8 FORMAT + $delim = substr($str, 0, 1); + $chrs = substr($str, 1, -1); + $utf8 = ''; + $strlen_chrs = strlen($chrs); + + for ($c = 0; $c < $strlen_chrs; ++$c) { + + $substr_chrs_c_2 = substr($chrs, $c, 2); + $ord_chrs_c = ord($chrs{$c}); + + switch (true) { + case $substr_chrs_c_2 == '\b': + $utf8 .= chr(0x08); + ++$c; + break; + case $substr_chrs_c_2 == '\t': + $utf8 .= chr(0x09); + ++$c; + break; + case $substr_chrs_c_2 == '\n': + $utf8 .= chr(0x0A); + ++$c; + break; + case $substr_chrs_c_2 == '\f': + $utf8 .= chr(0x0C); + ++$c; + break; + case $substr_chrs_c_2 == '\r': + $utf8 .= chr(0x0D); + ++$c; + break; + + case $substr_chrs_c_2 == '\\"': + case $substr_chrs_c_2 == '\\\'': + case $substr_chrs_c_2 == '\\\\': + case $substr_chrs_c_2 == '\\/': + if (($delim == '"' && $substr_chrs_c_2 != '\\\'') || + ($delim == "'" && $substr_chrs_c_2 != '\\"')) { + $utf8 .= $chrs{++$c}; + } + break; + + case preg_match('/\\\u[0-9A-F]{4}/i', substr($chrs, $c, 6)): + // single, escaped unicode character + $utf16 = chr(hexdec(substr($chrs, ($c + 2), 2))) + . chr(hexdec(substr($chrs, ($c + 4), 2))); + $utf8 .= $this->utf162utf8($utf16); + $c += 5; + break; + + case ($ord_chrs_c >= 0x20) && ($ord_chrs_c <= 0x7F): + $utf8 .= $chrs{$c}; + break; + + case ($ord_chrs_c & 0xE0) == 0xC0: + // characters U-00000080 - U-000007FF, mask 110XXXXX + //see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + $utf8 .= substr($chrs, $c, 2); + ++$c; + break; + + case ($ord_chrs_c & 0xF0) == 0xE0: + // characters U-00000800 - U-0000FFFF, mask 1110XXXX + // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + $utf8 .= substr($chrs, $c, 3); + $c += 2; + break; + + case ($ord_chrs_c & 0xF8) == 0xF0: + // characters U-00010000 - U-001FFFFF, mask 11110XXX + // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + $utf8 .= substr($chrs, $c, 4); + $c += 3; + break; + + case ($ord_chrs_c & 0xFC) == 0xF8: + // characters U-00200000 - U-03FFFFFF, mask 111110XX + // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + $utf8 .= substr($chrs, $c, 5); + $c += 4; + break; + + case ($ord_chrs_c & 0xFE) == 0xFC: + // characters U-04000000 - U-7FFFFFFF, mask 1111110X + // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 + $utf8 .= substr($chrs, $c, 6); + $c += 5; + break; + + } + + } + + return $utf8; + + } elseif (preg_match('/^\[.*\]$/s', $str) || preg_match('/^\{.*\}$/s', $str)) { + // array, or object notation + + if ($str{0} == '[') { + $stk = array(SERVICES_JSON_IN_ARR); + $arr = array(); + } else { + if ($this->use & SERVICES_JSON_LOOSE_TYPE) { + $stk = array(SERVICES_JSON_IN_OBJ); + $obj = array(); + } else { + $stk = array(SERVICES_JSON_IN_OBJ); + $obj = new stdClass(); + } + } + + array_push($stk, array('what' => SERVICES_JSON_SLICE, + 'where' => 0, + 'delim' => false)); + + $chrs = substr($str, 1, -1); + $chrs = $this->reduce_string($chrs); + + if ($chrs == '') { + if (reset($stk) == SERVICES_JSON_IN_ARR) { + return $arr; + + } else { + return $obj; + + } + } + + //print("\nparsing {$chrs}\n"); + + $strlen_chrs = strlen($chrs); + + for ($c = 0; $c <= $strlen_chrs; ++$c) { + + $top = end($stk); + $substr_chrs_c_2 = substr($chrs, $c, 2); + + if (($c == $strlen_chrs) || (($chrs{$c} == ',') && ($top['what'] == SERVICES_JSON_SLICE))) { + // found a comma that is not inside a string, array, etc., + // OR we've reached the end of the character list + $slice = substr($chrs, $top['where'], ($c - $top['where'])); + array_push($stk, array('what' => SERVICES_JSON_SLICE, 'where' => ($c + 1), 'delim' => false)); + //print("Found split at {$c}: ".substr($chrs, $top['where'], (1 + $c - $top['where']))."\n"); + + if (reset($stk) == SERVICES_JSON_IN_ARR) { + // we are in an array, so just push an element onto the stack + array_push($arr, $this->decode($slice)); + + } elseif (reset($stk) == SERVICES_JSON_IN_OBJ) { + // we are in an object, so figure + // out the property name and set an + // element in an associative array, + // for now + $parts = array(); + + if (preg_match('/^\s*(["\'].*[^\\\]["\'])\s*:\s*(\S.*),?$/Uis', $slice, $parts)) { + // "name":value pair + $key = $this->decode($parts[1]); + $val = $this->decode($parts[2]); + + if ($this->use & SERVICES_JSON_LOOSE_TYPE) { + $obj[$key] = $val; + } else { + $obj->$key = $val; + } + } elseif (preg_match('/^\s*(\w+)\s*:\s*(\S.*),?$/Uis', $slice, $parts)) { + // name:value pair, where name is unquoted + $key = $parts[1]; + $val = $this->decode($parts[2]); + + if ($this->use & SERVICES_JSON_LOOSE_TYPE) { + $obj[$key] = $val; + } else { + $obj->$key = $val; + } + } + + } + + } elseif ((($chrs{$c} == '"') || ($chrs{$c} == "'")) && ($top['what'] != SERVICES_JSON_IN_STR)) { + // found a quote, and we are not inside a string + array_push($stk, array('what' => SERVICES_JSON_IN_STR, 'where' => $c, 'delim' => $chrs{$c})); + //print("Found start of string at {$c}\n"); + + } elseif (($chrs{$c} == $top['delim']) && + ($top['what'] == SERVICES_JSON_IN_STR) && + ((strlen(substr($chrs, 0, $c)) - strlen(rtrim(substr($chrs, 0, $c), '\\'))) % 2 != 1)) { + // found a quote, we're in a string, and it's not escaped + // we know that it's not escaped becase there is _not_ an + // odd number of backslashes at the end of the string so far + array_pop($stk); + //print("Found end of string at {$c}: ".substr($chrs, $top['where'], (1 + 1 + $c - $top['where']))."\n"); + + } elseif (($chrs{$c} == '[') && + in_array($top['what'], array(SERVICES_JSON_SLICE, SERVICES_JSON_IN_ARR, SERVICES_JSON_IN_OBJ))) { + // found a left-bracket, and we are in an array, object, or slice + array_push($stk, array('what' => SERVICES_JSON_IN_ARR, 'where' => $c, 'delim' => false)); + //print("Found start of array at {$c}\n"); + + } elseif (($chrs{$c} == ']') && ($top['what'] == SERVICES_JSON_IN_ARR)) { + // found a right-bracket, and we're in an array + array_pop($stk); + //print("Found end of array at {$c}: ".substr($chrs, $top['where'], (1 + $c - $top['where']))."\n"); + + } elseif (($chrs{$c} == '{') && + in_array($top['what'], array(SERVICES_JSON_SLICE, SERVICES_JSON_IN_ARR, SERVICES_JSON_IN_OBJ))) { + // found a left-brace, and we are in an array, object, or slice + array_push($stk, array('what' => SERVICES_JSON_IN_OBJ, 'where' => $c, 'delim' => false)); + //print("Found start of object at {$c}\n"); + + } elseif (($chrs{$c} == '}') && ($top['what'] == SERVICES_JSON_IN_OBJ)) { + // found a right-brace, and we're in an object + array_pop($stk); + //print("Found end of object at {$c}: ".substr($chrs, $top['where'], (1 + $c - $top['where']))."\n"); + + } elseif (($substr_chrs_c_2 == '/*') && + in_array($top['what'], array(SERVICES_JSON_SLICE, SERVICES_JSON_IN_ARR, SERVICES_JSON_IN_OBJ))) { + // found a comment start, and we are in an array, object, or slice + array_push($stk, array('what' => SERVICES_JSON_IN_CMT, 'where' => $c, 'delim' => false)); + $c++; + //print("Found start of comment at {$c}\n"); + + } elseif (($substr_chrs_c_2 == '*/') && ($top['what'] == SERVICES_JSON_IN_CMT)) { + // found a comment end, and we're in one now + array_pop($stk); + $c++; + + for ($i = $top['where']; $i <= $c; ++$i) + $chrs = substr_replace($chrs, ' ', $i, 1); + + //print("Found end of comment at {$c}: ".substr($chrs, $top['where'], (1 + $c - $top['where']))."\n"); + + } + + } + + if (reset($stk) == SERVICES_JSON_IN_ARR) { + return $arr; + + } elseif (reset($stk) == SERVICES_JSON_IN_OBJ) { + return $obj; + + } + + } + } + } + + /** + * @todo Ultimately, this should just call PEAR::isError() + */ + function isError($data, $code = null) + { + if (class_exists('pear')) { + return PEAR::isError($data, $code); + } elseif (is_object($data) && (get_class($data) == 'services_json_error' || + is_subclass_of($data, 'services_json_error'))) { + return true; + } + + return false; + } +} + +if (class_exists('PEAR_Error')) { + + class Services_JSON_Error extends PEAR_Error + { + function Services_JSON_Error($message = 'unknown error', $code = null, + $mode = null, $options = null, $userinfo = null) + { + parent::PEAR_Error($message, $code, $mode, $options, $userinfo); + } + } + +} else { + + /** + * @todo Ultimately, this class shall be descended from PEAR_Error + */ + class Services_JSON_Error + { + function Services_JSON_Error($message = 'unknown error', $code = null, + $mode = null, $options = null, $userinfo = null) + { + + } + } + +} + +?> diff --git a/application/libraries/ofc-library/README.txt b/application/libraries/ofc-library/README.txt new file mode 100644 index 000000000..2d8b6297f --- /dev/null +++ b/application/libraries/ofc-library/README.txt @@ -0,0 +1,16 @@ +Open Flash Chart - PHP libraries. These help create data files for Open Flash Chart. +Copyright (C) 2007 + +This library is free software; you can redistribute it and/or +modify it under the terms of the GNU Lesser General Public +License as published by the Free Software Foundation; either +version 2.1 of the License, or (at your option) any later version. + +This library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Lesser General Public License for more details. + +You should have received a copy of the GNU Lesser General Public +License along with this library; if not, write to the Free Software +Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA \ No newline at end of file diff --git a/application/libraries/ofc-library/dot_base.php b/application/libraries/ofc-library/dot_base.php new file mode 100644 index 000000000..843db7dc8 --- /dev/null +++ b/application/libraries/ofc-library/dot_base.php @@ -0,0 +1,231 @@ +type = $type; + if( isset( $value ) ) + $this->value( $value ); + } + + /** + * For line charts that only require a Y position + * for each point. + * @param $value as integer, the Y position + */ + function value( $value ) + { + $this->value = $value; + } + + /** + * For scatter charts that require an X and Y position for + * each point. + * + * @param $x as integer + * @param $y as integer + */ + function position( $x, $y ) + { + $this->x = $x; + $this->y = $y; + } + + /** + * @param $colour is a string, HEX colour, e.g. '#FF0000' red + */ + function colour($colour) + { + $this->colour = $colour; + return $this; + } + + /** + * The tooltip for this dot. + */ + function tooltip( $tip ) + { + $this->tip = $tip; + return $this; + } + + /** + * @param $size is an integer. Size of the dot. + */ + function size($size) + { + $tmp = 'dot-size'; + $this->$tmp = $size; + return $this; + } + + /** + * a private method + */ + function type( $type ) + { + $this->type = $type; + return $this; + } + + /** + * @param $size is an integer. The size of the hollow 'halo' around the dot that masks the line. + */ + function halo_size( $size ) + { + $tmp = 'halo-size'; + $this->$tmp = $size; + return $this; + } + + /** + * @param $do as string. One of three options (examples): + * - "http://example.com" - browse to this URL + * - "https://example.com" - browse to this URL + * - "trace:message" - print this message in the FlashDevelop debug pane + * - all other strings will be called as Javascript functions, so a string "hello_world" + * will call the JS function "hello_world(index)". It passes in the index of the + * point. + */ + function on_click( $do ) + { + $tmp = 'on-click'; + $this->$tmp = $do; + } +} + +/** + * Draw a hollow dot + */ +class hollow_dot extends dot_base +{ + function hollow_dot($value=null) + { + parent::dot_base( 'hollow-dot', $value ); + } +} + +/** + * Draw a star + */ +class star extends dot_base +{ + /** + * The constructor, takes an optional $value + */ + function star($value=null) + { + parent::dot_base( 'star', $value ); + } + + /** + * @param $angle is an integer. + */ + function rotation($angle) + { + $this->rotation = $angle; + return $this; + } + + /** + * @param $is_hollow is a boolean. + */ + function hollow($is_hollow) + { + $this->hollow = $is_hollow; + } +} + +/** + * Draw a 'bow tie' shape. + */ +class bow extends dot_base +{ + /** + * The constructor, takes an optional $value + */ + function bow($value=null) + { + parent::dot_base( 'bow', $value ); + } + + /** + * Rotate the anchor object. + * @param $angle is an integer. + */ + function rotation($angle) + { + $this->rotation = $angle; + return $this; + } +} + +/** + * An n sided shape. + */ +class anchor extends dot_base +{ + /** + * The constructor, takes an optional $value + */ + function anchor($value=null) + { + parent::dot_base( 'anchor', $value ); + } + + /** + * Rotate the anchor object. + * @param $angle is an integer. + */ + function rotation($angle) + { + $this->rotation = $angle; + return $this; + } + + /** + * @param $sides is an integer. Number of sides this shape has. + */ + function sides($sides) + { + $this->sides = $sides; + return $this; + } +} + +/** + * A simple dot + */ +class dot extends dot_base +{ + /** + * The constructor, takes an optional $value + */ + function dot($value=null) + { + parent::dot_base( 'dot', $value ); + } +} + +/** + * A simple dot + */ +class solid_dot extends dot_base +{ + /** + * The constructor, takes an optional $value + */ + function solid_dot($value=null) + { + parent::dot_base( 'solid-dot', $value ); + } +} \ No newline at end of file diff --git a/application/libraries/ofc-library/json_format.php b/application/libraries/ofc-library/json_format.php new file mode 100644 index 000000000..61a842ea1 --- /dev/null +++ b/application/libraries/ofc-library/json_format.php @@ -0,0 +1,86 @@ + 0 && $json[$c-1] != '\\') + { + $in_string = !$in_string; + } + default: + $new_json .= $char; + break; + } + } + + return $new_json; +} \ No newline at end of file diff --git a/application/libraries/ofc-library/ofc_area_base.php b/application/libraries/ofc-library/ofc_area_base.php new file mode 100644 index 000000000..2254935b8 --- /dev/null +++ b/application/libraries/ofc-library/ofc_area_base.php @@ -0,0 +1,40 @@ +type = "area"; + } + + /** + * the fill colour + */ + function set_fill_colour( $colour ) + { + $this->fill = $colour; + } + + /** + * sugar: see set_fill_colour + */ + function fill_colour( $colour ) + { + $this->set_fill_colour( $colour ); + return $this; + } + + function set_fill_alpha( $alpha ) + { + $tmp = "fill-alpha"; + $this->$tmp = $alpha; + } + + function set_loop() + { + $this->loop = true; + } +} diff --git a/application/libraries/ofc-library/ofc_area_hollow.php b/application/libraries/ofc-library/ofc_area_hollow.php new file mode 100644 index 000000000..ba6c20461 --- /dev/null +++ b/application/libraries/ofc-library/ofc_area_hollow.php @@ -0,0 +1,10 @@ +type = "area_hollow"; + parent::area_base(); + } +} diff --git a/application/libraries/ofc-library/ofc_area_line.php b/application/libraries/ofc-library/ofc_area_line.php new file mode 100644 index 000000000..c4b2b167e --- /dev/null +++ b/application/libraries/ofc-library/ofc_area_line.php @@ -0,0 +1,10 @@ +type = "area_line"; + parent::area_base(); + } +} diff --git a/application/libraries/ofc-library/ofc_arrow.php b/application/libraries/ofc-library/ofc_arrow.php new file mode 100644 index 000000000..77671c87f --- /dev/null +++ b/application/libraries/ofc-library/ofc_arrow.php @@ -0,0 +1,27 @@ +type = "arrow"; + $this->start = array("x"=>$x, "y"=>$y); + $this->end = array("x"=>$a, "y"=>$b); + $this->colour($colour); + $this->{"barb-length"} = $barb_length; + } + + function colour( $colour ) + { + $this->colour = $colour; + return $this; + } +} diff --git a/application/libraries/ofc-library/ofc_bar.php b/application/libraries/ofc-library/ofc_bar.php new file mode 100644 index 000000000..0666939ff --- /dev/null +++ b/application/libraries/ofc-library/ofc_bar.php @@ -0,0 +1,34 @@ +top = $top; + + if( isset( $bottom ) ) + $this->bottom = $bottom; + } + + function set_colour( $colour ) + { + $this->colour = $colour; + } + + function set_tooltip( $tip ) + { + $this->tip = $tip; + } +} + +class bar extends bar_base +{ + function bar() + { + $this->type = "bar"; + parent::bar_base(); + } +} + diff --git a/application/libraries/ofc-library/ofc_bar_3d.php b/application/libraries/ofc-library/ofc_bar_3d.php new file mode 100644 index 000000000..b3c902b01 --- /dev/null +++ b/application/libraries/ofc-library/ofc_bar_3d.php @@ -0,0 +1,22 @@ +top = $top; + } + + function set_colour( $colour ) + { + $this->colour = $colour; + } + + function set_tooltip( $tip ) + { + $this->tip = $tip; + } +} + diff --git a/application/libraries/ofc-library/ofc_bar_base.php b/application/libraries/ofc-library/ofc_bar_base.php new file mode 100644 index 000000000..ee461063b --- /dev/null +++ b/application/libraries/ofc-library/ofc_bar_base.php @@ -0,0 +1,97 @@ +text = $text; + $tmp = 'font-size'; + $this->$tmp = $size; + } + + /** + * syntatical sugar. + */ + function key( $text, $size ) + { + $this->set_key( $text, $size ); + } + + /** + * @param $v as an array, a mix of: + * - a bar_value class. You can use this to customise the paramters of each bar. + * - integer. This is the Y position of the top of the bar. + */ + function set_values( $v ) + { + $this->values = $v; + } + + /** + * see set_values + */ + function append_value( $v ) + { + $this->values[] = $v; + } + + /** + * @param $colour as string, a HEX colour, e.g. '#ff0000' red + */ + function set_colour( $colour ) + { + $this->colour = $colour; + } + + /** + *syntatical sugar + */ + function colour( $colour ) + { + $this->set_colour( $colour ); + } + + /** + * @param $alpha as real number (range 0 to 1), e.g. 0.5 is half transparent + */ + function set_alpha( $alpha ) + { + $this->alpha = $alpha; + } + + /** + * @param $tip as string, the tip to show. May contain various magic variables. + */ + function set_tooltip( $tip ) + { + $this->tip = $tip; + } + + /** + *@param $on_show as line_on_show object + */ + function set_on_show($on_show) + { + $this->{'on-show'} = $on_show; + } + + function set_on_click( $text ) + { + $tmp = 'on-click'; + $this->$tmp = $text; + } + + function attach_to_right_y_axis() + { + $this->axis = 'right'; + } +} + diff --git a/application/libraries/ofc-library/ofc_bar_filled.php b/application/libraries/ofc-library/ofc_bar_filled.php new file mode 100644 index 000000000..2008703cd --- /dev/null +++ b/application/libraries/ofc-library/ofc_bar_filled.php @@ -0,0 +1,39 @@ +$tmp = $outline_colour; + } +} + +class bar_filled extends bar_base +{ + function bar_filled( $colour=null, $outline_colour=null ) + { + $this->type = "bar_filled"; + parent::bar_base(); + + if( isset( $colour ) ) + $this->set_colour( $colour ); + + if( isset( $outline_colour ) ) + $this->set_outline_colour( $outline_colour ); + } + + function set_outline_colour( $outline_colour ) + { + $tmp = 'outline-colour'; + $this->$tmp = $outline_colour; + } +} + diff --git a/application/libraries/ofc-library/ofc_bar_glass.php b/application/libraries/ofc-library/ofc_bar_glass.php new file mode 100644 index 000000000..2fd445fe2 --- /dev/null +++ b/application/libraries/ofc-library/ofc_bar_glass.php @@ -0,0 +1,131 @@ +type = $type; + $this->cascade = (float)$cascade; + $this->delay = (float)$delay; + } +} + +class bar_value +{ + /** + * @param $top as integer. The Y value of the top of the bar + * @param OPTIONAL $bottom as integer. The Y value of the bottom of the bar, defaults to Y min. + */ + function bar_value( $top, $bottom=null ) + { + $this->top = $top; + + if( isset( $bottom ) ) + $this->bottom = $bottom; + } + + function set_colour( $colour ) + { + $this->colour = $colour; + } + + function set_tooltip( $tip ) + { + $this->tip = $tip; + } +} + +class bar extends bar_base +{ + function bar() + { + $this->type = "bar"; + parent::bar_base(); + } +} + +class bar_glass extends bar_base +{ + function bar_glass() + { + $this->type = "bar_glass"; + parent::bar_base(); + } +} + +class bar_cylinder extends bar_base +{ + function bar_cylinder() + { + $this->type = "bar_cylinder"; + parent::bar_base(); + } +} + +class bar_cylinder_outline extends bar_base +{ + function bar_cylinder_outline() + { + $this->type = "bar_cylinder_outline"; + parent::bar_base(); + } +} + +class bar_rounded_glass extends bar_base +{ + function bar_rounded_glass() + { + $this->type = "bar_round_glass"; + parent::bar_base(); + } +} + +class bar_round extends bar_base +{ + function bar_round() + { + $this->type = "bar_round"; + parent::bar_base(); + } +} + +class bar_dome extends bar_base +{ + function bar_dome() + { + $this->type = "bar_dome"; + parent::bar_base(); + } +} + +class bar_round3d extends bar_base +{ + function bar_round3d() + { + $this->type = "bar_round3d"; + parent::bar_base(); + } +} + +class bar_3d extends bar_base +{ + function bar_3d() + { + $this->type = "bar_3d"; + parent::bar_base(); + } +} \ No newline at end of file diff --git a/application/libraries/ofc-library/ofc_bar_sketch.php b/application/libraries/ofc-library/ofc_bar_sketch.php new file mode 100644 index 000000000..944d56898 --- /dev/null +++ b/application/libraries/ofc-library/ofc_bar_sketch.php @@ -0,0 +1,29 @@ +type = "bar_sketch"; + parent::bar_base(); + + $this->set_colour( $colour ); + $this->set_outline_colour( $outline_colour ); + $this->offset = $fun_factor; + } + + function set_outline_colour( $outline_colour ) + { + $tmp = 'outline-colour'; + $this->$tmp = $outline_colour; + } +} + diff --git a/application/libraries/ofc-library/ofc_bar_stack.php b/application/libraries/ofc-library/ofc_bar_stack.php new file mode 100644 index 000000000..efba09d5b --- /dev/null +++ b/application/libraries/ofc-library/ofc_bar_stack.php @@ -0,0 +1,55 @@ +type = "bar_stack"; + parent::bar_base(); + } + + function append_stack( $v ) + { + $this->append_value( $v ); + } + + // an array of HEX colours strings + // e.g. array( '#ff0000', '#00ff00' ); + function set_colours( $colours ) + { + $this->colours = $colours; + } + + // an array of bar_stack_value + function set_keys( $keys ) + { + $this->keys = $keys; + } +} + +class bar_stack_value +{ + function bar_stack_value( $val, $colour ) + { + $this->val = $val; + $this->colour = $colour; + } + + function set_tooltip( $tip ) + { + $this->tip = $tip; + } +} + +class bar_stack_key +{ + function bar_stack_key( $colour, $text, $font_size ) + { + $this->colour = $colour; + $this->text = $text; + $tmp = 'font-size'; + $this->$tmp = $font_size; + } +} \ No newline at end of file diff --git a/application/libraries/ofc-library/ofc_candle.php b/application/libraries/ofc-library/ofc_candle.php new file mode 100644 index 000000000..5507efa9e --- /dev/null +++ b/application/libraries/ofc-library/ofc_candle.php @@ -0,0 +1,41 @@ +high = $high; + $this->top = $open; + $this->bottom = $close; + $this->low = $low; + } + + function set_colour( $colour ) + { + $this->colour = $colour; + } + + function set_tooltip( $tip ) + { + $this->tip = $tip; + } +} + +class candle extends bar_base +{ + function candle($colour, $negative_colour=null) + { + $this->type = "candle"; + parent::bar_base(); + + $this->set_colour( $colour ); + if(!is_null($negative_colour)) + $this->{'negative-colour'} = $negative_colour; + } +} + diff --git a/application/libraries/ofc-library/ofc_hbar.php b/application/libraries/ofc-library/ofc_hbar.php new file mode 100644 index 000000000..a0fffbb55 --- /dev/null +++ b/application/libraries/ofc-library/ofc_hbar.php @@ -0,0 +1,64 @@ +left = $left; + $this->right = $right; + } + else + $this->right = $left; + } + + function set_colour( $colour ) + { + $this->colour = $colour; + } + + function set_tooltip( $tip ) + { + $this->tip = $tip; + } +} + +class hbar +{ + function hbar( $colour ) + { + $this->type = "hbar"; + $this->values = array(); + $this->set_colour( $colour ); + } + + function append_value( $v ) + { + $this->values[] = $v; + } + + function set_values( $v ) + { + foreach( $v as $val ) + $this->append_value( new hbar_value( $val ) ); + } + + function set_colour( $colour ) + { + $this->colour = $colour; + } + + function set_key( $text, $size ) + { + $this->text = $text; + $tmp = 'font-size'; + $this->$tmp = $size; + } + + function set_tooltip( $tip ) + { + $this->tip = $tip; + } +} + diff --git a/application/libraries/ofc-library/ofc_line.php b/application/libraries/ofc-library/ofc_line.php new file mode 100644 index 000000000..d25c3fef0 --- /dev/null +++ b/application/libraries/ofc-library/ofc_line.php @@ -0,0 +1,157 @@ +type = $type; + $this->cascade = (float)$cascade; + $this->delay = (float)$delay; + } +} + +class line +{ + function line() + { + $this->type = "line"; + $this->values = array(); + } + + /** + * Set the default dot that all the real + * dots inherit their properties from. If you set the + * default dot to be red, all values in your chart that + * do not specify a colour will be red. Same for all the + * other attributes such as tooltip, on-click, size etc... + * + * @param $style as any class that inherits base_dot + */ + function set_default_dot_style( $style ) + { + $tmp = 'dot-style'; + $this->$tmp = $style; + } + + /** + * @param $v as array, can contain any combination of: + * - integer, Y position of the point + * - any class that inherits from dot_base + * - null + */ + function set_values( $v ) + { + $this->values = $v; + } + + /** + * Append a value to the line. + * + * @param mixed $v + */ + function append_value($v) + { + $this->values[] = $v; + } + + function set_width( $width ) + { + $this->width = $width; + } + + function set_colour( $colour ) + { + $this->colour = $colour; + } + + /** + * sytnatical sugar for set_colour + */ + function colour( $colour ) + { + $this->set_colour( $colour ); + return $this; + } + + function set_halo_size( $size ) + { + $tmp = 'halo-size'; + $this->$tmp = $size; + } + + function set_key( $text, $font_size ) + { + $this->text = $text; + $tmp = 'font-size'; + $this->$tmp = $font_size; + } + + function set_tooltip( $tip ) + { + $this->tip = $tip; + } + + /** + * @param $text as string. A javascript function name as a string. The chart will + * try to call this function, it will pass the chart id as the only parameter into + * this function. E.g: + * + */ + function set_on_click( $text ) + { + $tmp = 'on-click'; + $this->$tmp = $text; + } + + function loop() + { + $this->loop = true; + } + + function line_style( $s ) + { + $tmp = "line-style"; + $this->$tmp = $s; + } + + /** + * Sets the text for the line. + * + * @param string $text + */ + function set_text($text) + { + $this->text = $text; + } + + function attach_to_right_y_axis() + { + $this->axis = 'right'; + } + + /** + *@param $on_show as line_on_show object + */ + function set_on_show($on_show) + { + $this->{'on-show'} = $on_show; + } + + function on_show($on_show) + { + $this->set_on_show($on_show); + return $this; + } +} \ No newline at end of file diff --git a/application/libraries/ofc-library/ofc_line_base.php b/application/libraries/ofc-library/ofc_line_base.php new file mode 100644 index 000000000..da58abedc --- /dev/null +++ b/application/libraries/ofc-library/ofc_line_base.php @@ -0,0 +1,92 @@ +type = "line"; + $this->text = "Page views"; + $tmp = 'font-size'; + $this->$tmp = 10; + + $this->values = array(); + } + + function set_values( $v ) + { + $this->values = $v; + } + + /** + * Append a value to the line. + * + * @param mixed $v + */ + function append_value($v) + { + $this->values[] = $v; + } + + function set_width( $width ) + { + $this->width = $width; + } + + function set_colour( $colour ) + { + $this->colour = $colour; + } + + function set_dot_size( $size ) + { + $tmp = 'dot-size'; + $this->$tmp = $size; + } + + function set_halo_size( $size ) + { + $tmp = 'halo-size'; + $this->$tmp = $size; + } + + function set_key( $text, $font_size ) + { + $this->text = $text; + $tmp = 'font-size'; + $this->$tmp = $font_size; + } + + function set_tooltip( $tip ) + { + $this->tip = $tip; + } + + function set_on_click( $text ) + { + $tmp = 'on-click'; + $this->$tmp = $text; + } + + function loop() + { + $this->loop = true; + } + + function line_style( $s ) + { + $tmp = "line-style"; + $this->$tmp = $s; + } + + /** + * Sets the text for the line. + * + * @param string $text + */ + function set_text($text) + { + $this->text = $text; + } + + +} \ No newline at end of file diff --git a/application/libraries/ofc-library/ofc_line_dot.php b/application/libraries/ofc-library/ofc_line_dot.php new file mode 100644 index 000000000..52f2ad0eb --- /dev/null +++ b/application/libraries/ofc-library/ofc_line_dot.php @@ -0,0 +1,33 @@ +value = $value; + $this->colour = $colour; + } + + function set_colour( $colour ) + { + $this->colour = $colour; + } + + function set_size( $size ) + { + $this->size = $size; + } + + function set_tooltip( $tip ) + { + $this->tip = $tip; + } +} + +class line_dot extends line_base +{ + function line_dot() + { + $this->type = "line_dot"; + } +} \ No newline at end of file diff --git a/application/libraries/ofc-library/ofc_line_hollow.php b/application/libraries/ofc-library/ofc_line_hollow.php new file mode 100644 index 000000000..783fdf778 --- /dev/null +++ b/application/libraries/ofc-library/ofc_line_hollow.php @@ -0,0 +1,9 @@ +type = "line_hollow"; + } +} \ No newline at end of file diff --git a/application/libraries/ofc-library/ofc_line_style.php b/application/libraries/ofc-library/ofc_line_style.php new file mode 100644 index 000000000..4ba5ff8b6 --- /dev/null +++ b/application/libraries/ofc-library/ofc_line_style.php @@ -0,0 +1,11 @@ +style = "dash"; + $this->on = $on; + $this->off = $off; + } +} \ No newline at end of file diff --git a/application/libraries/ofc-library/ofc_menu.php b/application/libraries/ofc-library/ofc_menu.php new file mode 100644 index 000000000..c44dd177a --- /dev/null +++ b/application/libraries/ofc-library/ofc_menu.php @@ -0,0 +1,56 @@ +type = "text"; + $this->text = $text; + $tmp = 'javascript-function'; + $this->$tmp = $javascript_function_name; + } +} + +class ofc_menu_item_camera +{ + /** + * @param $text as string. The menu item text. + * @param $javascript_function_name as string. The javascript function name, the + * js function takes one parameter, the chart ID. So for example, our js function + * could look like this: + * + * function save_image( chart_id ) + * { + * alert( chart_id ); + * } + * + * to make a menu item call this: ofc_menu_item_camera('Save chart', 'save_image'); + */ + function ofc_menu_item_camera($text, $javascript_function_name) + { + $this->type = "camera-icon"; + $this->text = $text; + $tmp = 'javascript-function'; + $this->$tmp = $javascript_function_name; + } +} + +class ofc_menu +{ + function ofc_menu($colour, $outline_colour) + { + $this->colour = $colour; + $this->outline_colour = $outline_colour; + } + + function values($values) + { + $this->values = $values; + } +} \ No newline at end of file diff --git a/application/libraries/ofc-library/ofc_pie.php b/application/libraries/ofc-library/ofc_pie.php new file mode 100644 index 000000000..f3b9d3ed7 --- /dev/null +++ b/application/libraries/ofc-library/ofc_pie.php @@ -0,0 +1,257 @@ +value = $value; + $this->label = $label; + } + + function set_colour( $colour ) + { + $this->colour = $colour; + } + + function set_label( $label, $label_colour, $font_size ) + { + $this->label = $label; + + $tmp = 'label-colour'; + $this->$tmp = $label_colour; + + $tmp = 'font-size'; + $this->$tmp = $font_size; + + } + + function set_tooltip( $tip ) + { + $this->tip = $tip; + } + + function on_click( $event ) + { + $tmp = 'on-click'; + $this->$tmp = $event; + } + + + /** + * An object that inherits from base_pie_animation + */ + function add_animation( $animation ) + { + if( !isset( $this->animate ) ) + $this->animate = array(); + + $this->animate[] = $animation; + + return $this; + } +} + +class base_pie_animation{} + +/** + * fade the pie slice from $alpha (pie set_alpha) to 100% opaque. + */ +class pie_fade extends base_pie_animation +{ + function pie_fade() + { + $this->type="fade"; + } +} + +/** + * Bounce the pie slice out a little + */ +class pie_bounce extends base_pie_animation +{ + /** + * @param $distance as integer, distance to bounce in pixels + */ + function pie_bounce( $distance ) + { + $this->type="bounce"; + $this->distance = $distance; + } +} + +/** + * Make a pie chart and fill it with pie slices + */ +class pie +{ + function pie() + { + $this->type = 'pie'; + } + + function set_colours( $colours ) + { + $this->colours = $colours; + } + + /** + * Sugar wrapped around set_colours + */ + function colours( $colours ) + { + $this->set_colours( $colours ); + return $this; + } + + /** + * @param $alpha as float (0-1) 0.75 = 3/4 visible + */ + function set_alpha( $alpha ) + { + $this->alpha = $alpha; + } + + /** + *sugar wrapped set_alpha + **/ + function alpha( $alpha ) + { + $this->set_alpha( $alpha ); + return $this; + } + + /** + * @param $v as array containing one of + * - null + * - real or integer number + * - a pie_value object + */ + function set_values( $v ) + { + $this->values = $v; + } + + /** + * sugar for set_values + */ + function values( $v ) + { + $this->set_values( $v ); + return $this; + } + + /** + * HACK to keep old code working. + */ + function set_animate( $bool ) + { + if( $bool ) + $this->add_animation( new pie_fade() ); + + } + + /** + * An object that inherits from base_pie_animation + */ + function add_animation( $animation ) + { + if( !isset( $this->animate ) ) + $this->animate = array(); + + $this->animate[] = $animation; + + return $this; + } + + /** + * @param $angle as real number + */ + function set_start_angle( $angle ) + { + $tmp = 'start-angle'; + $this->$tmp = $angle; + } + + /** + * sugar for set_start_angle + */ + function start_angle($angle) + { + $this->set_start_angle( $angle ); + return $this; + } + + /** + * @param $tip as string. The tooltip text. May contain magic varibles + */ + function set_tooltip( $tip ) + { + $this->tip = $tip; + } + + /** + * sugar for set_tooltip + */ + function tooltip( $tip ) + { + $this->set_tooltip( $tip ); + return $this; + } + + function set_gradient_fill() + { + $tmp = 'gradient-fill'; + $this->$tmp = true; + } + + function gradient_fill() + { + $this->set_gradient_fill(); + return $this; + } + + /** + * By default each label is the same colour as the slice, + * but you can ovveride that behaviour using this method. + * + * @param $label_colour as string HEX colour; + */ + function set_label_colour( $label_colour ) + { + $tmp = 'label-colour'; + $this->$tmp = $label_colour; + } + + function label_colour( $label_colour ) + { + $this->set_label_colour( $label_colour ); + return $this; + } + + /** + * Turn off the labels + */ + function set_no_labels() + { + $tmp = 'no-labels'; + $this->$tmp = true; + } + + function on_click( $event ) + { + $tmp = 'on-click'; + $this->$tmp = $event; + } + + /** + * Fix the radius of the pie chart. Take a look at the magic variable #radius# + * for helping figure out what radius to set it to. + * + * @param $radius as number + */ + function radius( $radius ) + { + $this->radius = $radius; + return $this; + } +} diff --git a/application/libraries/ofc-library/ofc_radar_axis.php b/application/libraries/ofc-library/ofc_radar_axis.php new file mode 100644 index 000000000..9c8d7885f --- /dev/null +++ b/application/libraries/ofc-library/ofc_radar_axis.php @@ -0,0 +1,47 @@ +set_max( $max ); + } + + function set_max( $max ) + { + $this->max = $max; + } + + function set_steps( $steps ) + { + $this->steps = $steps; + } + + function set_stroke( $s ) + { + $this->stroke = $s; + } + + function set_colour( $colour ) + { + $this->colour = $colour; + } + + function set_grid_colour( $colour ) + { + $tmp = 'grid-colour'; + $this->$tmp = $colour; + } + + function set_labels( $labels ) + { + $this->labels = $labels; + } + + function set_spoke_labels( $labels ) + { + $tmp = 'spoke-labels'; + $this->$tmp = $labels; + } +} + diff --git a/application/libraries/ofc-library/ofc_radar_axis_labels.php b/application/libraries/ofc-library/ofc_radar_axis_labels.php new file mode 100644 index 000000000..1c4321cce --- /dev/null +++ b/application/libraries/ofc-library/ofc_radar_axis_labels.php @@ -0,0 +1,15 @@ +labels = $labels; + } + + function set_colour( $colour ) + { + $this->colour = $colour; + } +} \ No newline at end of file diff --git a/application/libraries/ofc-library/ofc_radar_spoke_labels.php b/application/libraries/ofc-library/ofc_radar_spoke_labels.php new file mode 100644 index 000000000..11b6682f1 --- /dev/null +++ b/application/libraries/ofc-library/ofc_radar_spoke_labels.php @@ -0,0 +1,15 @@ +labels = $labels; + } + + function set_colour( $colour ) + { + $this->colour = $colour; + } +} \ No newline at end of file diff --git a/application/libraries/ofc-library/ofc_scatter.php b/application/libraries/ofc-library/ofc_scatter.php new file mode 100644 index 000000000..ab5f3ba01 --- /dev/null +++ b/application/libraries/ofc-library/ofc_scatter.php @@ -0,0 +1,47 @@ +x = $x; + $this->y = $y; + + if( $dot_size > 0 ) + { + $tmp = 'dot-size'; + $this->$tmp = $dot_size; + } + } +} + +class scatter +{ + function scatter( $colour ) + { + $this->type = "scatter"; + $this->set_colour( $colour ); + } + + function set_colour( $colour ) + { + $this->colour = $colour; + } + + function set_default_dot_style( $style ) + { + $tmp = 'dot-style'; + $this->$tmp = $style; + } + + /** + * @param $v as array, can contain any combination of: + * - integer, Y position of the point + * - any class that inherits from scatter_value + * - null + */ + function set_values( $values ) + { + $this->values = $values; + } +} diff --git a/application/libraries/ofc-library/ofc_scatter_line.php b/application/libraries/ofc-library/ofc_scatter_line.php new file mode 100644 index 000000000..c25401898 --- /dev/null +++ b/application/libraries/ofc-library/ofc_scatter_line.php @@ -0,0 +1,49 @@ +type = "scatter_line"; + $this->set_colour( $colour ); + $this->set_width( $width ); + } + + function set_default_dot_style( $style ) + { + $tmp = 'dot-style'; + $this->$tmp = $style; + } + + function set_colour( $colour ) + { + $this->colour = $colour; + } + + function set_width( $width ) + { + $this->width = $width; + } + + function set_values( $values ) + { + $this->values = $values; + } + + function set_step_horizontal() + { + $this->stepgraph = 'horizontal'; + } + + function set_step_vertical() + { + $this->stepgraph = 'vertical'; + } + + function set_key( $text, $font_size ) + { + $this->text = $text; + $tmp = 'font-size'; + $this->$tmp = $font_size; + } +} \ No newline at end of file diff --git a/application/libraries/ofc-library/ofc_shape.php b/application/libraries/ofc-library/ofc_shape.php new file mode 100644 index 000000000..3bab90790 --- /dev/null +++ b/application/libraries/ofc-library/ofc_shape.php @@ -0,0 +1,25 @@ +x = $x; + $this->y = $y; + } +} + +class shape +{ + function shape( $colour ) + { + $this->type = "shape"; + $this->colour = $colour; + $this->values = array(); + } + + function append_value( $p ) + { + $this->values[] = $p; + } +} \ No newline at end of file diff --git a/application/libraries/ofc-library/ofc_sugar.php b/application/libraries/ofc-library/ofc_sugar.php new file mode 100644 index 000000000..242182a4c --- /dev/null +++ b/application/libraries/ofc-library/ofc_sugar.php @@ -0,0 +1,43 @@ +colour($colour)->size($size); + } +} + +class s_box extends anchor +{ + /** + * I use this wrapper for default dot types, + * it just makes the code easier to read. + */ + function s_box($colour, $size) + { + parent::anchor(); + $this->colour($colour)->size($size)->rotation(45)->sides(4); + } +} + +class s_hollow_dot extends hollow_dot +{ + /** + * I use this wrapper for default dot types, + * it just makes the code easier to read. + */ + function s_hollow_dot($colour, $size) + { + parent::hollow_dot(); + $this->colour($colour)->size($size); + } +} \ No newline at end of file diff --git a/application/libraries/ofc-library/ofc_tags.php b/application/libraries/ofc-library/ofc_tags.php new file mode 100644 index 000000000..e31f7d65c --- /dev/null +++ b/application/libraries/ofc-library/ofc_tags.php @@ -0,0 +1,133 @@ +type = "tags"; + $this->values = array(); + } + + function colour( $colour ) + { + $this->colour = $colour; + return $this; + } + + /** + *@param $font as string. e.g. "Verdana" + *@param $size as integer. Size in px + */ + function font($font, $size) + { + $this->font = $font; + $this->{'font-size'} = $size; + return $this; + } + + /** + *@param $x as integer. Size of x padding in px + *@param $y as integer. Size of y padding in px + */ + function padding($x, $y) + { + $this->{"pad-x"} = $x; + $this->{"pad-y"} = $y; + return $this; + } + + function rotate($angle) + { + $this->rotate($angle); + return $this; + } + + function align_x_center() + { + $this->{"align-x"} = "center"; + return $this; + } + + function align_x_left() + { + $this->{"align-x"} = "left"; + return $this; + } + + function align_x_right() + { + $this->{"align-x"} = "right"; + return $this; + } + + function align_y_above() + { + $this->{"align-y"} = "above"; + return $this; + } + + function align_y_below() + { + $this->{"align-y"} = "below"; + return $this; + } + + function align_y_center() + { + $this->{"align-y"} = "center"; + return $this; + } + + /** + * This can contain some HTML, e.g: + * - "More info" + * - "ofc" + */ + function text($text) + { + $this->text = $text; + return $this; + } + + /** + * This works, but to get the mouse pointer to change + * to a little hand you need to use "stuff"-- see text() + */ + function on_click($on_click) + { + $this->{'on-click'} = $on_click; + return $this; + } + + /** + *@param $bold boolean. + *@param $underline boolean. + *@param $border boolean. + *@prarm $alpha real (0 to 1.0) + */ + function style($bold, $underline, $border, $alpha ) + { + $this->bold = $bold; + $this->border = $underline; + $this->underline = $border; + $this->alpha = $alpha; + return $this; + } + + /** + *@param $tag as ofc_tag + */ + function append_tag($tag) + { + $this->values[] = $tag; + } +} + +class ofc_tag extends ofc_tags +{ + function ofc_tag($x, $y) + { + $this->x = $x; + $this->y = $y; + } +} \ No newline at end of file diff --git a/application/libraries/ofc-library/ofc_title.php b/application/libraries/ofc-library/ofc_title.php new file mode 100644 index 000000000..58d817a81 --- /dev/null +++ b/application/libraries/ofc-library/ofc_title.php @@ -0,0 +1,39 @@ +text = $text; + } + + /** + * A css string. Can optionally contain: + * - font-size + * - font-family + * - font-weight + * - color + * - background-color + * - text-align + * - margin + * - margin-left + * - margin-right + * - margin-top + * - margin-bottom + * - padding + * - padding-left + * - padding-right + * - padding-top + * - padding-bottom + * just like the css we use all the time :-) + */ + function set_style( $css ) + { + $this->style = $css; + //"{font-size: 20px; color:#0000ff; font-family: Verdana; text-align: center;}"; + } +} \ No newline at end of file diff --git a/application/libraries/ofc-library/ofc_tooltip.php b/application/libraries/ofc-library/ofc_tooltip.php new file mode 100644 index 000000000..53ebb261a --- /dev/null +++ b/application/libraries/ofc-library/ofc_tooltip.php @@ -0,0 +1,67 @@ +shadow = $shadow; + } + + /** + * @param $stroke as integer, border width in pixels (e.g. 5 ) + */ + function set_stroke( $stroke ) + { + $this->stroke = $stroke; + } + + /** + * @param $colour as string, HEX colour e.g. '#0000ff' + */ + function set_colour( $colour ) + { + $this->colour = $colour; + } + + /** + * @param $bg as string, HEX colour e.g. '#0000ff' + */ + function set_background_colour( $bg ) + { + $this->background = $bg; + } + + /** + * @param $style as string. A css style. + */ + function set_title_style( $style ) + { + $this->title = $style; + } + + /** + * @param $style as string. A css style. + */ + function set_body_style( $style ) + { + $this->body = $style; + } + + function set_proximity() + { + $this->mouse = 1; + } + + function set_hover() + { + $this->mouse = 2; + } +} + diff --git a/application/libraries/ofc-library/ofc_upload_image.php b/application/libraries/ofc-library/ofc_upload_image.php new file mode 100644 index 000000000..7c5483150 --- /dev/null +++ b/application/libraries/ofc-library/ofc_upload_image.php @@ -0,0 +1,70 @@ + save_image debug mode, you +// will see the 'echo' text in a new window. +// + +/* + +print_r( $_GET ); +print_r( $_POST ); +print_r( $_FILES ); + +print_r( $GLOBALS ); +print_r( $GLOBALS["HTTP_RAW_POST_DATA"] ); + +*/ + + +// default path for the image to be stored // +$default_path = '../tmp-upload-images/'; + +if (!file_exists($default_path)) mkdir($default_path, 0777, true); + +// full path to the saved image including filename // +$destination = $default_path . basename( $_GET[ 'name' ] ); + +echo 'Saving your image to: '. $destination; +// print_r( $_POST ); +// print_r( $_SERVER ); +// echo $HTTP_RAW_POST_DATA; + +// +// POST data is usually string data, but we are passing a RAW .png +// so PHP is a bit confused and $_POST is empty. But it has saved +// the raw bits into $HTTP_RAW_POST_DATA +// + +$jfh = fopen($destination, 'w') or die("can't open file"); +fwrite($jfh, $HTTP_RAW_POST_DATA); +fclose($jfh); + +// +// LOOK: +// +exit(); + + +// +// PHP5: +// + + +// default path for the image to be stored // +$default_path = 'tmp-upload-images/'; + +if (!file_exists($default_path)) mkdir($default_path, 0777, true); + +// full path to the saved image including filename // +$destination = $default_path . basename( $_FILES[ 'Filedata' ][ 'name' ] ); + +// move the image into the specified directory // +if (move_uploaded_file($_FILES[ 'Filedata' ][ 'tmp_name' ], $destination)) { + echo "The file " . basename( $_FILES[ 'Filedata' ][ 'name' ] ) . " has been uploaded;"; +} else { + echo "FILE UPLOAD FAILED"; +} + + +?> diff --git a/application/libraries/ofc-library/ofc_x_axis.php b/application/libraries/ofc-library/ofc_x_axis.php new file mode 100644 index 000000000..3bbaa676d --- /dev/null +++ b/application/libraries/ofc-library/ofc_x_axis.php @@ -0,0 +1,140 @@ +stroke = $stroke; + } + + function stroke( $stroke ) + { + $this->set_stroke( $stroke ); + return $this; + } + + /** + *@param $colour as string HEX colour + *@param $grid_colour as string HEX colour + */ + function set_colours( $colour, $grid_colour ) + { + $this->set_colour( $colour ); + $this->set_grid_colour( $grid_colour ); + } + + /** + *@param $colour as string HEX colour + */ + function set_colour( $colour ) + { + $this->colour = $colour; + } + + function colour( $colour ) + { + $this->set_colour($colour); + return $this; + } + + function set_tick_height( $height ) + { + $tmp = 'tick-height'; + $this->$tmp = $height; + } + + function tick_height( $height ) + { + $this->set_tick_height($height); + return $this; + } + + function set_grid_colour( $colour ) + { + $tmp = 'grid-colour'; + $this->$tmp = $colour; + } + + function grid_colour( $colour ) + { + $this->set_grid_colour($colour); + return $this; + } + + /** + * @param $o is a boolean. If true, the X axis start half a step in + * This defaults to True + */ + function set_offset( $o ) + { + $this->offset = $o?true:false; + } + + function offset( $o ) + { + $this->set_offset($o); + return $this; + } + + /** + * @param $steps as integer. Which grid lines and ticks are visible. + */ + function set_steps( $steps ) + { + $this->steps = $steps; + } + + function steps( $steps ) + { + $this->set_steps($steps); + return $this; + } + + /** + * @param $val as an integer, the height in pixels of the 3D bar. Mostly + * used for the 3D bar chart. + */ + function set_3d( $val ) + { + $tmp = '3d'; + $this->$tmp = $val; + } + + /** + * @param $x_axis_labels as an x_axis_labels object + * Use this to customize the labels (colour, font, etc...) + */ + function set_labels( $x_axis_labels ) + { + //$this->labels = $v; + $this->labels = $x_axis_labels; + } + + /** + * Sugar syntax: helper function to make the examples simpler. + * @param $a is an array of labels + */ + function set_labels_from_array( $a ) + { + $x_axis_labels = new x_axis_labels(); + $x_axis_labels->set_labels( $a ); + $this->labels = $x_axis_labels; + + if( isset( $this->steps ) ) + $x_axis_labels->set_steps( $this->steps ); + } + + /** + * min and max. + */ + function set_range( $min, $max ) + { + $this->min = $min; + $this->max = $max; + } +} \ No newline at end of file diff --git a/application/libraries/ofc-library/ofc_x_axis_label.php b/application/libraries/ofc-library/ofc_x_axis_label.php new file mode 100644 index 000000000..2dc1492da --- /dev/null +++ b/application/libraries/ofc-library/ofc_x_axis_label.php @@ -0,0 +1,45 @@ +set_text( $text ); + $this->set_colour( $colour ); + $this->set_size( $size ); + $this->set_rotate( $rotate ); + } + + function set_text( $text ) + { + $this->text = $text; + } + + function set_colour( $colour ) + { + $this->colour = $colour; + } + + function set_size( $size ) + { + $this->size = $size; + } + + function set_rotate( $rotate ) + { + $this->rotate = $rotate; + } + + function set_vertical() + { + $this->rotate = "vertical"; + } + + function set_visible() + { + $this->visible = true; + } +} \ No newline at end of file diff --git a/application/libraries/ofc-library/ofc_x_axis_labels.php b/application/libraries/ofc-library/ofc_x_axis_labels.php new file mode 100644 index 000000000..fb8e7d7db --- /dev/null +++ b/application/libraries/ofc-library/ofc_x_axis_labels.php @@ -0,0 +1,69 @@ +steps = $steps; + } + + /** + * @param $steps as integer which labels are visible + */ + function visible_steps( $steps ) + { + $this->{"visible-steps"} = $steps; + return $this; + } + + /** + * + * @param $labels as an array of [x_axis_label or string] + */ + function set_labels( $labels ) + { + $this->labels = $labels; + } + + function set_colour( $colour ) + { + $this->colour = $colour; + } + + /** + * font size in pixels + */ + function set_size( $size ) + { + $this->size = $size; + } + + /** + * rotate labels + */ + function set_vertical() + { + $this->rotate = 270; + } + + /** + * @param @angle as real. The angle of the text. + */ + function rotate( $angle ) + { + $this->rotate = $angle; + } + + /** + * @param $text as string. Replace and magic variables with actual x axis position. + */ + function text( $text ) + { + $this->text = $text; + } +} \ No newline at end of file diff --git a/application/libraries/ofc-library/ofc_x_legend.php b/application/libraries/ofc-library/ofc_x_legend.php new file mode 100644 index 000000000..f36c017f4 --- /dev/null +++ b/application/libraries/ofc-library/ofc_x_legend.php @@ -0,0 +1,15 @@ +text = $text; + } + + function set_style( $css ) + { + $this->style = $css; + //"{font-size: 20px; color:#0000ff; font-family: Verdana; text-align: center;}"; + } +} \ No newline at end of file diff --git a/application/libraries/ofc-library/ofc_y_axis.php b/application/libraries/ofc-library/ofc_y_axis.php new file mode 100644 index 000000000..449bc295b --- /dev/null +++ b/application/libraries/ofc-library/ofc_y_axis.php @@ -0,0 +1,17 @@ +$tmp = $colour; + } + +} \ No newline at end of file diff --git a/application/libraries/ofc-library/ofc_y_axis_base.php b/application/libraries/ofc-library/ofc_y_axis_base.php new file mode 100644 index 000000000..b99519ec3 --- /dev/null +++ b/application/libraries/ofc-library/ofc_y_axis_base.php @@ -0,0 +1,116 @@ +stroke = $s; + } + + /** + * @param $val as integer. The length of the ticks in pixels + */ + function set_tick_length( $val ) + { + $tmp = 'tick-length'; + $this->$tmp = $val; + } + + function set_colours( $colour, $grid_colour ) + { + $this->set_colour( $colour ); + $this->set_grid_colour( $grid_colour ); + } + + function set_colour( $colour ) + { + $this->colour = $colour; + } + + function set_grid_colour( $colour ) + { + $tmp = 'grid-colour'; + $this->$tmp = $colour; + } + + /** + * Set min and max values, also (optionally) set the steps value. + * You can reverse the chart by setting min larger than max, e.g. min = 10 + * and max = 0. + * + * @param $min as integer + * @param $max as integer + * @param $steps as integer. + */ + function set_range( $min, $max, $steps=1 ) + { + $this->min = $min; + $this->max = $max; + $this->set_steps( $steps ); + } + + /** + * Sugar for set_range + */ + function range( $min, $max, $steps=1 ) + { + $this->set_range( $min, $max, $steps ); + return $this; + } + + /** + * @param $off as Boolean. If true the Y axis is nudged up half a step. + */ + function set_offset( $off ) + { + $this->offset = $off?1:0; + } + + /** + * @param $y_axis_labels as an y_axis_labels object + * Use this to customize the labels (colour, font, etc...) + */ + function set_labels( $y_axis_labels ) + { + $this->labels = $y_axis_labels; + } + + /** + * Pass in some text for each label. This can contain magic variables "#val#" which + * will get replaced with the value for that Y axis label. Useful for: + * - "#val#" + * - "#val#%" + * - "#val# million" + * + * @param $text as string. + */ + function set_label_text( $text ) + { + $tmp = new y_axis_labels(); + $tmp->set_text( $text ); + $this->labels = $tmp; + } + + /** + * @param $steps as integer. + * + * Only show every $steps label, e.g. every 10th + */ + function set_steps( $steps ) + { + $this->steps = $steps; + } + + /** + * Make the labels show vertical + */ + function set_vertical() + { + $this->rotate = "vertical"; + } +} \ No newline at end of file diff --git a/application/libraries/ofc-library/ofc_y_axis_label.php b/application/libraries/ofc-library/ofc_y_axis_label.php new file mode 100644 index 000000000..bded9b84e --- /dev/null +++ b/application/libraries/ofc-library/ofc_y_axis_label.php @@ -0,0 +1,38 @@ +y = $y; + $this->set_text( $text ); + } + + function set_text( $text ) + { + $this->text = $text; + } + + function set_colour( $colour ) + { + $this->colour = $colour; + } + + function set_size( $size ) + { + $this->size = $size; + } + + function set_rotate( $rotate ) + { + $this->rotate = $rotate; + } + + function set_vertical() + { + $this->rotate = "vertical"; + } +} \ No newline at end of file diff --git a/application/libraries/ofc-library/ofc_y_axis_labels.php b/application/libraries/ofc-library/ofc_y_axis_labels.php new file mode 100644 index 000000000..75f777e53 --- /dev/null +++ b/application/libraries/ofc-library/ofc_y_axis_labels.php @@ -0,0 +1,57 @@ +steps = $steps; + } + + /** + * + * @param $labels as an array of [y_axis_label or string] + */ + function set_labels( $labels ) + { + $this->labels = $labels; + } + + function set_colour( $colour ) + { + $this->colour = $colour; + } + + /** + * font size in pixels + */ + function set_size( $size ) + { + $this->size = $size; + } + + /** + * rotate labels + */ + function set_vertical() + { + $this->rotate = 270; + } + + function rotate( $angle ) + { + $this->rotate = $angle; + } + + /** + * @param $text default text that all labels inherit + */ + function set_text( $text ) + { + $this->text = $text; + } +} \ No newline at end of file diff --git a/application/libraries/ofc-library/ofc_y_axis_right.php b/application/libraries/ofc-library/ofc_y_axis_right.php new file mode 100644 index 000000000..1e0911194 --- /dev/null +++ b/application/libraries/ofc-library/ofc_y_axis_right.php @@ -0,0 +1,6 @@ +text = $text; + } + + function set_style( $css ) + { + $this->style = $css; + //"{font-size: 20px; color:#0000ff; font-family: Verdana; text-align: center;}"; + } +} \ No newline at end of file diff --git a/application/libraries/ofc-library/open-flash-chart-object.php b/application/libraries/ofc-library/open-flash-chart-object.php new file mode 100644 index 000000000..d3b64aa48 --- /dev/null +++ b/application/libraries/ofc-library/open-flash-chart-object.php @@ -0,0 +1,109 @@ +'; + + if( !isset( $open_flash_chart_seqno ) ) + { + $open_flash_chart_seqno = 1; + $out[] = ''; + } + else + { + $open_flash_chart_seqno++; + $obj_id .= '_'. $open_flash_chart_seqno; + $div_name .= '_'. $open_flash_chart_seqno; + } + + if( $use_swfobject ) + { + // Using library for auto-enabling Flash object on IE, disabled-Javascript proof + $out[] = '
'; + $out[] = ''; + $out[] = ''; + } + + return implode("\n",$out); +} +?> \ No newline at end of file diff --git a/application/libraries/ofc-library/open-flash-chart.php b/application/libraries/ofc-library/open-flash-chart.php new file mode 100644 index 000000000..2a90eaffb --- /dev/null +++ b/application/libraries/ofc-library/open-flash-chart.php @@ -0,0 +1,178 @@ +title = new title( "Many data lines" ); + $this->elements = array(); + } + + function set_title( $t ) + { + $this->title = $t; + } + + function set_x_axis( $x ) + { + $this->x_axis = $x; + } + + function set_y_axis( $y ) + { + $this->y_axis = $y; + } + + function add_y_axis( $y ) + { + $this->y_axis = $y; + } + + function set_y_axis_right( $y ) + { + $this->y_axis_right = $y; + } + + function add_element( $e ) + { + $this->elements[] = $e; + } + + function set_x_legend( $x ) + { + $this->x_legend = $x; + } + + function set_y_legend( $y ) + { + $this->y_legend = $y; + } + + function set_bg_colour( $colour ) + { + $this->bg_colour = $colour; + } + + function set_radar_axis( $radar ) + { + $this->radar_axis = $radar; + } + + function set_tooltip( $tooltip ) + { + $this->tooltip = $tooltip; + } + + /** + * This is a bit funky :( + * + * @param $num_decimals as integer. Truncate the decimals to $num_decimals, e.g. set it + * to 5 and 3.333333333 will display as 3.33333. 2.0 will display as 2 (or 2.00000 - see below) + * @param $is_fixed_num_decimals_forced as boolean. If true it will pad the decimals. + * @param $is_decimal_separator_comma as boolean + * @param $is_thousand_separator_disabled as boolean + * + * This needs a bit of love and attention + */ + function set_number_format($num_decimals, $is_fixed_num_decimals_forced, $is_decimal_separator_comma, $is_thousand_separator_disabled ) + { + $this->num_decimals = $num_decimals; + $this->is_fixed_num_decimals_forced = $is_fixed_num_decimals_forced; + $this->is_decimal_separator_comma = $is_decimal_separator_comma; + $this->is_thousand_separator_disabled = $is_thousand_separator_disabled; + } + + /** + * This is experimental and will change as we make it work + * + * @param $m as ofc_menu + */ + function set_menu($m) + { + $this->menu = $m; + } + + function toString() + { + if (function_exists('json_encode')) + { + return json_encode($this); + } + else + { + $json = new Services_JSON(); + return $json->encode( $this ); + } + } + + function toPrettyString() + { + return json_format( $this->toString() ); + } +} + + + +// +// there is no PHP end tag so we don't mess the headers up! +// \ No newline at end of file diff --git a/application/logs/index.html b/application/logs/index.html new file mode 100644 index 000000000..c942a79ce --- /dev/null +++ b/application/logs/index.html @@ -0,0 +1,10 @@ + + + 403 Forbidden + + + +

Directory access is forbidden.

+ + + \ No newline at end of file diff --git a/application/logs/log-2012-01-15.php b/application/logs/log-2012-01-15.php new file mode 100644 index 000000000..189288520 --- /dev/null +++ b/application/logs/log-2012-01-15.php @@ -0,0 +1,353 @@ + + +DEBUG - 2012-01-15 23:57:49 --> Config Class Initialized +DEBUG - 2012-01-15 23:57:49 --> Hooks Class Initialized +DEBUG - 2012-01-15 23:57:49 --> Utf8 Class Initialized +DEBUG - 2012-01-15 23:57:49 --> UTF-8 Support Enabled +DEBUG - 2012-01-15 23:57:49 --> URI Class Initialized +DEBUG - 2012-01-15 23:57:49 --> Router Class Initialized +DEBUG - 2012-01-15 23:57:49 --> No URI present. Default controller set. +DEBUG - 2012-01-15 23:57:49 --> Output Class Initialized +DEBUG - 2012-01-15 23:57:49 --> Security Class Initialized +DEBUG - 2012-01-15 23:57:49 --> Input Class Initialized +DEBUG - 2012-01-15 23:57:49 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-15 23:57:49 --> Language Class Initialized +DEBUG - 2012-01-15 23:57:49 --> Loader Class Initialized +DEBUG - 2012-01-15 23:57:49 --> Helper loaded: form_helper +DEBUG - 2012-01-15 23:57:49 --> Helper loaded: url_helper +DEBUG - 2012-01-15 23:57:49 --> Helper loaded: table_helper +DEBUG - 2012-01-15 23:57:49 --> Helper loaded: text_helper +DEBUG - 2012-01-15 23:57:49 --> Helper loaded: currency_helper +DEBUG - 2012-01-15 23:57:49 --> Helper loaded: html_helper +DEBUG - 2012-01-15 23:57:49 --> Helper loaded: download_helper +DEBUG - 2012-01-15 23:57:49 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-15 23:57:49 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-15 23:57:49 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-15 23:57:49 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-15 23:57:49 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-15 23:57:49 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-15 23:57:49 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-15 23:57:49 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-15 23:57:49 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-15 23:57:49 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-15 23:57:49 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-15 23:57:49 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-15 23:57:49 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-15 23:57:49 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-15 23:57:49 --> Database Driver Class Initialized +ERROR - 2012-01-15 23:57:49 --> Unable to select database: ospos +DEBUG - 2012-01-15 23:57:50 --> Language file loaded: language/english/db_lang.php +DEBUG - 2012-01-15 19:09:43 --> File loaded: application/views/login.php +DEBUG - 2012-01-15 19:09:43 --> Final output sent to browser +DEBUG - 2012-01-15 19:09:43 --> Total execution time: 0.9898 +DEBUG - 2012-01-15 19:09:50 --> Language file loaded: language/english/form_validation_lang.php +DEBUG - 2012-01-15 19:09:50 --> File loaded: application/views/partial/header.php +DEBUG - 2012-01-15 19:09:50 --> File loaded: application/views/partial/footer.php +DEBUG - 2012-01-15 19:09:50 --> File loaded: application/views/home.php +DEBUG - 2012-01-15 19:09:50 --> Final output sent to browser +DEBUG - 2012-01-15 19:09:51 --> Total execution time: 0.6865 +DEBUG - 2012-01-15 19:10:11 --> File loaded: application/views/partial/header.php +DEBUG - 2012-01-15 19:10:11 --> File loaded: application/views/partial/footer.php +DEBUG - 2012-01-15 19:10:11 --> File loaded: application/views/config.php +DEBUG - 2012-01-15 19:10:11 --> Final output sent to browser +DEBUG - 2012-01-15 19:10:11 --> Total execution time: 0.7374 +DEBUG - 2012-01-15 19:10:26 --> File loaded: application/views/partial/header.php +DEBUG - 2012-01-15 19:10:26 --> File loaded: application/views/partial/footer.php +DEBUG - 2012-01-15 19:10:26 --> File loaded: application/views/items/manage.php +DEBUG - 2012-01-15 19:10:26 --> Final output sent to browser +DEBUG - 2012-01-15 19:10:26 --> Total execution time: 0.7156 +ERROR - 2012-01-15 19:10:28 --> Could not find the language line "items_tax_percent_number" +DEBUG - 2012-01-15 19:10:28 --> File loaded: application/views/items/form.php +DEBUG - 2012-01-15 19:10:28 --> Final output sent to browser +DEBUG - 2012-01-15 19:10:28 --> Total execution time: 0.7557 +ERROR - 2012-01-15 19:10:37 --> Could not find the language line "items_tax_percent_number" +DEBUG - 2012-01-15 19:10:37 --> File loaded: application/views/items/form.php +DEBUG - 2012-01-15 19:10:37 --> Final output sent to browser +DEBUG - 2012-01-15 19:10:37 --> Total execution time: 0.6471 +DEBUG - 2012-01-15 19:10:38 --> Final output sent to browser +DEBUG - 2012-01-15 19:10:38 --> Total execution time: 0.6063 +ERROR - 2012-01-15 19:15:49 --> Could not find the language line "items_tax_percent_number" +DEBUG - 2012-01-15 19:15:49 --> File loaded: application/views/items/form.php +DEBUG - 2012-01-15 19:15:49 --> Final output sent to browser +DEBUG - 2012-01-15 19:15:49 --> Total execution time: 0.6389 +DEBUG - 2012-01-15 19:15:49 --> Final output sent to browser +DEBUG - 2012-01-15 19:15:49 --> Total execution time: 0.5884 +DEBUG - 2012-01-15 19:19:00 --> File loaded: application/views/partial/header.php +DEBUG - 2012-01-15 19:19:00 --> File loaded: application/views/partial/footer.php +DEBUG - 2012-01-15 19:19:00 --> File loaded: application/views/items/manage.php +DEBUG - 2012-01-15 19:19:00 --> Final output sent to browser +DEBUG - 2012-01-15 19:19:00 --> Total execution time: 0.6292 +ERROR - 2012-01-15 19:19:04 --> Could not find the language line "items_tax_percent_number" +DEBUG - 2012-01-15 19:19:04 --> File loaded: application/views/items/form.php +DEBUG - 2012-01-15 19:19:04 --> Final output sent to browser +DEBUG - 2012-01-15 19:19:04 --> Total execution time: 0.6289 +DEBUG - 2012-01-15 19:19:04 --> Final output sent to browser +DEBUG - 2012-01-15 19:19:04 --> Total execution time: 0.5737 +DEBUG - 2012-01-15 20:18:59 --> File loaded: application/views/partial/header.php +DEBUG - 2012-01-15 20:18:59 --> File loaded: application/views/partial/footer.php +DEBUG - 2012-01-15 20:18:59 --> File loaded: application/views/receivings/receiving.php +DEBUG - 2012-01-15 20:18:59 --> Final output sent to browser +DEBUG - 2012-01-15 20:18:59 --> Total execution time: 0.7316 +ERROR - 2012-01-15 20:19:07 --> Could not find the language line "items_tax_percent_number" +DEBUG - 2012-01-15 20:19:07 --> File loaded: application/views/items/form.php +DEBUG - 2012-01-15 20:19:07 --> Final output sent to browser +DEBUG - 2012-01-15 20:19:07 --> Total execution time: 0.6511 +DEBUG - 2012-01-15 20:19:08 --> Final output sent to browser +DEBUG - 2012-01-15 20:19:08 --> Total execution time: 0.5917 +DEBUG - 2012-01-15 20:21:59 --> File loaded: application/views/partial/header.php +DEBUG - 2012-01-15 20:21:59 --> File loaded: application/views/partial/footer.php +DEBUG - 2012-01-15 20:21:59 --> File loaded: application/views/receivings/receiving.php +DEBUG - 2012-01-15 20:21:59 --> Final output sent to browser +DEBUG - 2012-01-15 20:21:59 --> Total execution time: 0.4984 +ERROR - 2012-01-15 20:22:02 --> Could not find the language line "items_tax_percent_number" +DEBUG - 2012-01-15 20:22:02 --> File loaded: application/views/items/form.php +DEBUG - 2012-01-15 20:22:02 --> Final output sent to browser +DEBUG - 2012-01-15 20:22:02 --> Total execution time: 0.5382 +DEBUG - 2012-01-15 20:22:02 --> Final output sent to browser +DEBUG - 2012-01-15 20:22:02 --> Total execution time: 0.4697 +DEBUG - 2012-01-15 20:22:15 --> File loaded: application/views/partial/header.php +DEBUG - 2012-01-15 20:22:15 --> File loaded: application/views/partial/footer.php +DEBUG - 2012-01-15 20:22:15 --> File loaded: application/views/giftcards/manage.php +DEBUG - 2012-01-15 20:22:15 --> Final output sent to browser +DEBUG - 2012-01-15 20:22:15 --> Total execution time: 0.5862 +DEBUG - 2012-01-15 20:22:18 --> File loaded: application/views/giftcards/form.php +DEBUG - 2012-01-15 20:22:18 --> Final output sent to browser +DEBUG - 2012-01-15 20:22:18 --> Total execution time: 0.5048 +DEBUG - 2012-01-15 20:22:26 --> File loaded: application/views/partial/header.php +DEBUG - 2012-01-15 20:22:26 --> File loaded: application/views/partial/footer.php +DEBUG - 2012-01-15 20:22:26 --> File loaded: application/views/items/manage.php +DEBUG - 2012-01-15 20:22:26 --> Final output sent to browser +DEBUG - 2012-01-15 20:22:26 --> Total execution time: 0.4989 +ERROR - 2012-01-15 20:22:38 --> Could not find the language line "items_tax_percent_number" +DEBUG - 2012-01-15 20:22:38 --> File loaded: application/views/items/form.php +DEBUG - 2012-01-15 20:22:38 --> Final output sent to browser +DEBUG - 2012-01-15 20:22:38 --> Total execution time: 0.5520 +DEBUG - 2012-01-15 20:22:38 --> Final output sent to browser +DEBUG - 2012-01-15 20:22:38 --> Total execution time: 0.4637 +DEBUG - 2012-01-15 20:23:34 --> File loaded: application/views/partial/header.php +DEBUG - 2012-01-15 20:23:34 --> File loaded: application/views/partial/footer.php +DEBUG - 2012-01-15 20:23:34 --> File loaded: application/views/giftcards/manage.php +DEBUG - 2012-01-15 20:23:34 --> Final output sent to browser +DEBUG - 2012-01-15 20:23:34 --> Total execution time: 0.4888 +DEBUG - 2012-01-15 20:23:36 --> File loaded: application/views/giftcards/form.php +DEBUG - 2012-01-15 20:23:36 --> Final output sent to browser +DEBUG - 2012-01-15 20:23:36 --> Total execution time: 0.4935 +DEBUG - 2012-01-15 20:26:03 --> File loaded: application/views/partial/header.php +DEBUG - 2012-01-15 20:26:03 --> File loaded: application/views/partial/footer.php +DEBUG - 2012-01-15 20:26:03 --> File loaded: application/views/receivings/receiving.php +DEBUG - 2012-01-15 20:26:03 --> Final output sent to browser +DEBUG - 2012-01-15 20:26:03 --> Total execution time: 0.4975 +DEBUG - 2012-01-15 20:26:06 --> File loaded: application/views/partial/header.php +DEBUG - 2012-01-15 20:26:06 --> File loaded: application/views/partial/footer.php +DEBUG - 2012-01-15 20:26:06 --> File loaded: application/views/giftcards/manage.php +DEBUG - 2012-01-15 20:26:06 --> Final output sent to browser +DEBUG - 2012-01-15 20:26:06 --> Total execution time: 0.4991 +DEBUG - 2012-01-15 20:26:08 --> File loaded: application/views/giftcards/form.php +DEBUG - 2012-01-15 20:26:08 --> Final output sent to browser +DEBUG - 2012-01-15 20:26:08 --> Total execution time: 0.4948 +DEBUG - 2012-01-15 20:34:58 --> File loaded: application/views/partial/header.php +DEBUG - 2012-01-15 20:34:58 --> File loaded: application/views/partial/footer.php +DEBUG - 2012-01-15 20:34:58 --> File loaded: application/views/giftcards/manage.php +DEBUG - 2012-01-15 20:34:58 --> Final output sent to browser +DEBUG - 2012-01-15 20:34:58 --> Total execution time: 0.4805 +DEBUG - 2012-01-15 20:35:00 --> File loaded: application/views/giftcards/form.php +DEBUG - 2012-01-15 20:35:00 --> Final output sent to browser +DEBUG - 2012-01-15 20:35:00 --> Total execution time: 0.4892 +DEBUG - 2012-01-15 20:35:12 --> File loaded: application/views/partial/header.php +DEBUG - 2012-01-15 20:35:12 --> File loaded: application/views/partial/footer.php +DEBUG - 2012-01-15 20:35:12 --> File loaded: application/views/receivings/receiving.php +DEBUG - 2012-01-15 20:35:12 --> Final output sent to browser +DEBUG - 2012-01-15 20:35:12 --> Total execution time: 0.5037 +DEBUG - 2012-01-15 20:35:19 --> File loaded: application/views/partial/header.php +DEBUG - 2012-01-15 20:35:19 --> File loaded: application/views/partial/footer.php +DEBUG - 2012-01-15 20:35:19 --> File loaded: application/views/people/manage.php +DEBUG - 2012-01-15 20:35:19 --> Final output sent to browser +DEBUG - 2012-01-15 20:35:19 --> Total execution time: 0.4943 +DEBUG - 2012-01-15 20:35:21 --> File loaded: application/views/partial/header.php +DEBUG - 2012-01-15 20:35:21 --> File loaded: application/views/partial/footer.php +DEBUG - 2012-01-15 20:35:21 --> File loaded: application/views/giftcards/manage.php +DEBUG - 2012-01-15 20:35:21 --> Final output sent to browser +DEBUG - 2012-01-15 20:35:21 --> Total execution time: 0.4725 +DEBUG - 2012-01-15 20:35:22 --> File loaded: application/views/giftcards/form.php +DEBUG - 2012-01-15 20:35:22 --> Final output sent to browser +DEBUG - 2012-01-15 20:35:22 --> Total execution time: 0.4834 +DEBUG - 2012-01-15 20:36:29 --> File loaded: application/views/partial/header.php +DEBUG - 2012-01-15 20:36:29 --> File loaded: application/views/partial/footer.php +DEBUG - 2012-01-15 20:36:29 --> File loaded: application/views/receivings/receiving.php +DEBUG - 2012-01-15 20:36:29 --> Final output sent to browser +DEBUG - 2012-01-15 20:36:29 --> Total execution time: 0.4855 +DEBUG - 2012-01-15 20:36:32 --> File loaded: application/views/partial/header.php +DEBUG - 2012-01-15 20:36:32 --> File loaded: application/views/partial/footer.php +DEBUG - 2012-01-15 20:36:32 --> File loaded: application/views/giftcards/manage.php +DEBUG - 2012-01-15 20:36:32 --> Final output sent to browser +DEBUG - 2012-01-15 20:36:32 --> Total execution time: 0.4751 +DEBUG - 2012-01-15 20:36:33 --> File loaded: application/views/giftcards/form.php +DEBUG - 2012-01-15 20:36:33 --> Final output sent to browser +DEBUG - 2012-01-15 20:36:33 --> Total execution time: 0.4941 +DEBUG - 2012-01-15 20:36:44 --> File loaded: application/views/partial/header.php +DEBUG - 2012-01-15 20:36:44 --> File loaded: application/views/partial/footer.php +DEBUG - 2012-01-15 20:36:44 --> File loaded: application/views/receivings/receiving.php +DEBUG - 2012-01-15 20:36:44 --> Final output sent to browser +DEBUG - 2012-01-15 20:36:44 --> Total execution time: 0.4970 +DEBUG - 2012-01-15 20:36:47 --> File loaded: application/views/partial/header.php +DEBUG - 2012-01-15 20:36:47 --> File loaded: application/views/partial/footer.php +DEBUG - 2012-01-15 20:36:47 --> File loaded: application/views/giftcards/manage.php +DEBUG - 2012-01-15 20:36:47 --> Final output sent to browser +DEBUG - 2012-01-15 20:36:47 --> Total execution time: 0.4777 +DEBUG - 2012-01-15 20:36:48 --> File loaded: application/views/giftcards/form.php +DEBUG - 2012-01-15 20:36:48 --> Final output sent to browser +DEBUG - 2012-01-15 20:36:48 --> Total execution time: 0.4997 +DEBUG - 2012-01-15 20:38:23 --> File loaded: application/views/partial/header.php +DEBUG - 2012-01-15 20:38:23 --> File loaded: application/views/partial/footer.php +DEBUG - 2012-01-15 20:38:23 --> File loaded: application/views/receivings/receiving.php +DEBUG - 2012-01-15 20:38:23 --> Final output sent to browser +DEBUG - 2012-01-15 20:38:23 --> Total execution time: 0.5206 +DEBUG - 2012-01-15 20:38:24 --> File loaded: application/views/partial/header.php +DEBUG - 2012-01-15 20:38:24 --> File loaded: application/views/partial/footer.php +DEBUG - 2012-01-15 20:38:24 --> File loaded: application/views/giftcards/manage.php +DEBUG - 2012-01-15 20:38:24 --> Final output sent to browser +DEBUG - 2012-01-15 20:38:24 --> Total execution time: 0.4835 +DEBUG - 2012-01-15 20:38:26 --> File loaded: application/views/giftcards/form.php +DEBUG - 2012-01-15 20:38:27 --> Final output sent to browser +DEBUG - 2012-01-15 20:38:27 --> Total execution time: 0.4977 +DEBUG - 2012-01-15 20:38:46 --> File loaded: application/views/partial/header.php +DEBUG - 2012-01-15 20:38:46 --> File loaded: application/views/partial/footer.php +DEBUG - 2012-01-15 20:38:46 --> File loaded: application/views/receivings/receiving.php +DEBUG - 2012-01-15 20:38:46 --> Final output sent to browser +DEBUG - 2012-01-15 20:38:46 --> Total execution time: 0.4826 +DEBUG - 2012-01-15 20:38:48 --> File loaded: application/views/partial/header.php +DEBUG - 2012-01-15 20:38:48 --> File loaded: application/views/partial/footer.php +DEBUG - 2012-01-15 20:38:48 --> File loaded: application/views/giftcards/manage.php +DEBUG - 2012-01-15 20:38:48 --> Final output sent to browser +DEBUG - 2012-01-15 20:38:48 --> Total execution time: 0.4863 +DEBUG - 2012-01-15 20:38:55 --> File loaded: application/views/giftcards/form.php +DEBUG - 2012-01-15 20:38:55 --> Final output sent to browser +DEBUG - 2012-01-15 20:38:55 --> Total execution time: 0.4889 +DEBUG - 2012-01-15 20:41:15 --> File loaded: application/views/partial/header.php +DEBUG - 2012-01-15 20:41:15 --> File loaded: application/views/partial/footer.php +DEBUG - 2012-01-15 20:41:15 --> File loaded: application/views/home.php +DEBUG - 2012-01-15 20:41:15 --> Final output sent to browser +DEBUG - 2012-01-15 20:41:15 --> Total execution time: 0.4895 +DEBUG - 2012-01-15 20:41:18 --> File loaded: application/views/partial/header.php +DEBUG - 2012-01-15 20:41:18 --> File loaded: application/views/partial/footer.php +DEBUG - 2012-01-15 20:41:18 --> File loaded: application/views/giftcards/manage.php +DEBUG - 2012-01-15 20:41:18 --> Final output sent to browser +DEBUG - 2012-01-15 20:41:18 --> Total execution time: 0.4746 +DEBUG - 2012-01-15 20:41:20 --> File loaded: application/views/giftcards/form.php +DEBUG - 2012-01-15 20:41:20 --> Final output sent to browser +DEBUG - 2012-01-15 20:41:20 --> Total execution time: 0.4945 +DEBUG - 2012-01-15 20:41:26 --> File loaded: application/views/partial/header.php +DEBUG - 2012-01-15 20:41:26 --> File loaded: application/views/partial/footer.php +DEBUG - 2012-01-15 20:41:26 --> File loaded: application/views/items/manage.php +DEBUG - 2012-01-15 20:41:26 --> Final output sent to browser +DEBUG - 2012-01-15 20:41:26 --> Total execution time: 0.4842 +ERROR - 2012-01-15 20:41:28 --> Could not find the language line "items_tax_percent_number" +DEBUG - 2012-01-15 20:41:28 --> File loaded: application/views/items/form.php +DEBUG - 2012-01-15 20:41:28 --> Final output sent to browser +DEBUG - 2012-01-15 20:41:28 --> Total execution time: 0.6493 +DEBUG - 2012-01-15 20:41:28 --> Final output sent to browser +DEBUG - 2012-01-15 20:41:28 --> Total execution time: 0.4619 +DEBUG - 2012-01-15 20:41:47 --> File loaded: application/views/partial/header.php +DEBUG - 2012-01-15 20:41:47 --> File loaded: application/views/partial/footer.php +DEBUG - 2012-01-15 20:41:47 --> File loaded: application/views/suppliers/manage.php +DEBUG - 2012-01-15 20:41:47 --> Final output sent to browser +DEBUG - 2012-01-15 20:41:47 --> Total execution time: 0.4984 +DEBUG - 2012-01-15 20:41:48 --> File loaded: application/views/people/form_basic_info.php +DEBUG - 2012-01-15 20:41:48 --> File loaded: application/views/suppliers/form.php +DEBUG - 2012-01-15 20:41:48 --> Final output sent to browser +DEBUG - 2012-01-15 20:41:48 --> Total execution time: 0.5194 +DEBUG - 2012-01-15 20:42:10 --> File loaded: application/views/partial/header.php +DEBUG - 2012-01-15 20:42:10 --> File loaded: application/views/partial/footer.php +DEBUG - 2012-01-15 20:42:10 --> File loaded: application/views/receivings/receiving.php +DEBUG - 2012-01-15 20:42:10 --> Final output sent to browser +DEBUG - 2012-01-15 20:42:10 --> Total execution time: 0.4962 +DEBUG - 2012-01-15 20:42:15 --> File loaded: application/views/partial/header.php +DEBUG - 2012-01-15 20:42:15 --> File loaded: application/views/partial/footer.php +DEBUG - 2012-01-15 20:42:15 --> File loaded: application/views/items/manage.php +DEBUG - 2012-01-15 20:42:15 --> Final output sent to browser +DEBUG - 2012-01-15 20:42:15 --> Total execution time: 0.4781 +DEBUG - 2012-01-15 20:42:19 --> File loaded: application/views/partial/header.php +DEBUG - 2012-01-15 20:42:19 --> File loaded: application/views/partial/footer.php +DEBUG - 2012-01-15 20:42:19 --> File loaded: application/views/receivings/receiving.php +DEBUG - 2012-01-15 20:42:19 --> Final output sent to browser +DEBUG - 2012-01-15 20:42:19 --> Total execution time: 0.4900 +DEBUG - 2012-01-15 20:42:21 --> File loaded: application/views/partial/header.php +DEBUG - 2012-01-15 20:42:21 --> File loaded: application/views/partial/footer.php +DEBUG - 2012-01-15 20:42:21 --> File loaded: application/views/giftcards/manage.php +DEBUG - 2012-01-15 20:42:21 --> Final output sent to browser +DEBUG - 2012-01-15 20:42:21 --> Total execution time: 0.4839 +DEBUG - 2012-01-15 20:42:23 --> File loaded: application/views/giftcards/form.php +DEBUG - 2012-01-15 20:42:23 --> Final output sent to browser +DEBUG - 2012-01-15 20:42:23 --> Total execution time: 0.4914 +DEBUG - 2012-01-15 20:42:27 --> File loaded: application/views/partial/header.php +DEBUG - 2012-01-15 20:42:27 --> File loaded: application/views/partial/footer.php +DEBUG - 2012-01-15 20:42:27 --> File loaded: application/views/receivings/receiving.php +DEBUG - 2012-01-15 20:42:27 --> Final output sent to browser +DEBUG - 2012-01-15 20:42:27 --> Total execution time: 0.4872 +DEBUG - 2012-01-15 20:42:29 --> File loaded: application/views/partial/header.php +DEBUG - 2012-01-15 20:42:29 --> File loaded: application/views/partial/footer.php +DEBUG - 2012-01-15 20:42:29 --> File loaded: application/views/giftcards/manage.php +DEBUG - 2012-01-15 20:42:29 --> Final output sent to browser +DEBUG - 2012-01-15 20:42:29 --> Total execution time: 0.4879 +DEBUG - 2012-01-15 20:42:31 --> File loaded: application/views/giftcards/form.php +DEBUG - 2012-01-15 20:42:31 --> Final output sent to browser +DEBUG - 2012-01-15 20:42:31 --> Total execution time: 0.4787 +DEBUG - 2012-01-15 20:43:52 --> File loaded: application/views/partial/header.php +DEBUG - 2012-01-15 20:43:52 --> File loaded: application/views/partial/footer.php +DEBUG - 2012-01-15 20:43:52 --> File loaded: application/views/items/manage.php +DEBUG - 2012-01-15 20:43:52 --> Final output sent to browser +DEBUG - 2012-01-15 20:43:52 --> Total execution time: 0.4832 +ERROR - 2012-01-15 20:43:54 --> Could not find the language line "items_tax_percent_number" +DEBUG - 2012-01-15 20:43:54 --> File loaded: application/views/items/form.php +DEBUG - 2012-01-15 20:43:54 --> Final output sent to browser +DEBUG - 2012-01-15 20:43:54 --> Total execution time: 0.5124 +DEBUG - 2012-01-15 20:43:54 --> Final output sent to browser +DEBUG - 2012-01-15 20:43:54 --> Total execution time: 0.4638 +DEBUG - 2012-01-15 20:44:05 --> File loaded: application/views/partial/header.php +DEBUG - 2012-01-15 20:44:05 --> File loaded: application/views/partial/footer.php +DEBUG - 2012-01-15 20:44:05 --> File loaded: application/views/receivings/receiving.php +DEBUG - 2012-01-15 20:44:05 --> Final output sent to browser +DEBUG - 2012-01-15 20:44:05 --> Total execution time: 0.4938 +DEBUG - 2012-01-15 20:44:07 --> File loaded: application/views/partial/header.php +DEBUG - 2012-01-15 20:44:07 --> File loaded: application/views/partial/footer.php +DEBUG - 2012-01-15 20:44:07 --> File loaded: application/views/items/manage.php +DEBUG - 2012-01-15 20:44:07 --> Final output sent to browser +DEBUG - 2012-01-15 20:44:07 --> Total execution time: 0.4826 +ERROR - 2012-01-15 20:44:08 --> Could not find the language line "items_tax_percent_number" +DEBUG - 2012-01-15 20:44:08 --> File loaded: application/views/items/form.php +DEBUG - 2012-01-15 20:44:08 --> Final output sent to browser +DEBUG - 2012-01-15 20:44:08 --> Total execution time: 0.5351 +DEBUG - 2012-01-15 20:44:09 --> Final output sent to browser +DEBUG - 2012-01-15 20:44:09 --> Total execution time: 0.4610 +DEBUG - 2012-01-15 20:44:39 --> File loaded: application/views/partial/header.php +DEBUG - 2012-01-15 20:44:39 --> File loaded: application/views/partial/footer.php +DEBUG - 2012-01-15 20:44:39 --> File loaded: application/views/receivings/receiving.php +DEBUG - 2012-01-15 20:44:39 --> Final output sent to browser +DEBUG - 2012-01-15 20:44:39 --> Total execution time: 0.4935 +DEBUG - 2012-01-15 20:44:41 --> File loaded: application/views/partial/header.php +DEBUG - 2012-01-15 20:44:41 --> File loaded: application/views/partial/footer.php +DEBUG - 2012-01-15 20:44:41 --> File loaded: application/views/items/manage.php +DEBUG - 2012-01-15 20:44:41 --> Final output sent to browser +DEBUG - 2012-01-15 20:44:41 --> Total execution time: 0.4852 +ERROR - 2012-01-15 20:44:43 --> Could not find the language line "items_tax_percent_number" +DEBUG - 2012-01-15 20:44:43 --> File loaded: application/views/items/form.php +DEBUG - 2012-01-15 20:44:43 --> Final output sent to browser +DEBUG - 2012-01-15 20:44:43 --> Total execution time: 0.5346 +DEBUG - 2012-01-15 20:44:43 --> Final output sent to browser +DEBUG - 2012-01-15 20:44:43 --> Total execution time: 0.4569 +DEBUG - 2012-01-15 20:50:20 --> File loaded: application/views/partial/header.php +DEBUG - 2012-01-15 20:50:20 --> File loaded: application/views/partial/footer.php +DEBUG - 2012-01-15 20:50:20 --> File loaded: application/views/giftcards/manage.php +DEBUG - 2012-01-15 20:50:20 --> Final output sent to browser +DEBUG - 2012-01-15 20:50:20 --> Total execution time: 0.5647 +DEBUG - 2012-01-15 20:50:22 --> File loaded: application/views/giftcards/form.php +DEBUG - 2012-01-15 20:50:22 --> Final output sent to browser +DEBUG - 2012-01-15 20:50:22 --> Total execution time: 0.5828 +DEBUG - 2012-01-15 20:51:51 --> File loaded: application/views/partial/header.php +DEBUG - 2012-01-15 20:51:51 --> File loaded: application/views/partial/footer.php +DEBUG - 2012-01-15 20:51:51 --> File loaded: application/views/items/manage.php +DEBUG - 2012-01-15 20:51:51 --> Final output sent to browser +DEBUG - 2012-01-15 20:51:51 --> Total execution time: 0.5720 +DEBUG - 2012-01-15 20:52:29 --> File loaded: application/views/login.php +DEBUG - 2012-01-15 20:52:29 --> Final output sent to browser +DEBUG - 2012-01-15 20:52:29 --> Total execution time: 0.5412 diff --git a/application/logs/log-2012-01-16.php b/application/logs/log-2012-01-16.php new file mode 100644 index 000000000..844885eb5 --- /dev/null +++ b/application/logs/log-2012-01-16.php @@ -0,0 +1,4666 @@ + + +DEBUG - 2012-01-16 00:04:21 --> Config Class Initialized +DEBUG - 2012-01-16 00:04:21 --> Hooks Class Initialized +DEBUG - 2012-01-16 00:04:21 --> Utf8 Class Initialized +DEBUG - 2012-01-16 00:04:21 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 00:04:21 --> URI Class Initialized +DEBUG - 2012-01-16 00:04:21 --> Router Class Initialized +DEBUG - 2012-01-16 00:04:21 --> No URI present. Default controller set. +DEBUG - 2012-01-16 00:04:21 --> Output Class Initialized +DEBUG - 2012-01-16 00:04:21 --> Security Class Initialized +DEBUG - 2012-01-16 00:04:21 --> Input Class Initialized +DEBUG - 2012-01-16 00:04:21 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 00:04:21 --> Language Class Initialized +DEBUG - 2012-01-16 00:04:21 --> Loader Class Initialized +DEBUG - 2012-01-16 00:04:21 --> Helper loaded: form_helper +DEBUG - 2012-01-16 00:04:21 --> Helper loaded: url_helper +DEBUG - 2012-01-16 00:04:21 --> Helper loaded: table_helper +DEBUG - 2012-01-16 00:04:21 --> Helper loaded: text_helper +DEBUG - 2012-01-16 00:04:21 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 00:04:21 --> Helper loaded: html_helper +DEBUG - 2012-01-16 00:04:21 --> Helper loaded: download_helper +DEBUG - 2012-01-16 00:04:21 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 00:04:21 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 00:04:21 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 00:04:21 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 00:04:21 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 00:04:21 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 00:04:21 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 00:04:21 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 00:04:21 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 00:04:21 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 00:04:21 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 00:04:21 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 00:04:21 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 00:04:21 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 00:04:21 --> Database Driver Class Initialized +ERROR - 2012-01-16 00:04:21 --> Severity: Warning --> mysql_pconnect() [function.mysql-pconnect]: Access denied for user 'pos'@'localhost' (using password: YES) C:\webroot\CodeIgniter_2.1.0\system\database\drivers\mysql\mysql_driver.php 91 +ERROR - 2012-01-16 00:04:21 --> Unable to connect to the database +DEBUG - 2012-01-16 00:04:21 --> Language file loaded: language/english/db_lang.php +DEBUG - 2012-01-16 00:05:14 --> Config Class Initialized +DEBUG - 2012-01-16 00:05:14 --> Hooks Class Initialized +DEBUG - 2012-01-16 00:05:14 --> Utf8 Class Initialized +DEBUG - 2012-01-16 00:05:14 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 00:05:14 --> URI Class Initialized +DEBUG - 2012-01-16 00:05:14 --> Router Class Initialized +DEBUG - 2012-01-16 00:05:14 --> No URI present. Default controller set. +DEBUG - 2012-01-16 00:05:14 --> Output Class Initialized +DEBUG - 2012-01-16 00:05:14 --> Security Class Initialized +DEBUG - 2012-01-16 00:05:14 --> Input Class Initialized +DEBUG - 2012-01-16 00:05:14 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 00:05:14 --> Language Class Initialized +DEBUG - 2012-01-16 00:05:14 --> Loader Class Initialized +DEBUG - 2012-01-16 00:05:14 --> Helper loaded: form_helper +DEBUG - 2012-01-16 00:05:14 --> Helper loaded: url_helper +DEBUG - 2012-01-16 00:05:14 --> Helper loaded: table_helper +DEBUG - 2012-01-16 00:05:14 --> Helper loaded: text_helper +DEBUG - 2012-01-16 00:05:14 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 00:05:14 --> Helper loaded: html_helper +DEBUG - 2012-01-16 00:05:14 --> Helper loaded: download_helper +DEBUG - 2012-01-16 00:05:14 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 00:05:14 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 00:05:14 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 00:05:14 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 00:05:14 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 00:05:14 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 00:05:14 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 00:05:14 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 00:05:14 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 00:05:14 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 00:05:14 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 00:05:14 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 00:05:14 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 00:05:14 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 00:05:15 --> Database Driver Class Initialized +ERROR - 2012-01-16 00:05:15 --> Severity: Warning --> mysql_pconnect() [function.mysql-pconnect]: Access denied for user 'pos'@'localhost' (using password: YES) C:\webroot\CodeIgniter_2.1.0\system\database\drivers\mysql\mysql_driver.php 91 +ERROR - 2012-01-16 00:05:15 --> Unable to connect to the database +DEBUG - 2012-01-16 00:05:15 --> Language file loaded: language/english/db_lang.php +DEBUG - 2012-01-16 00:09:42 --> Config Class Initialized +DEBUG - 2012-01-16 00:09:42 --> Hooks Class Initialized +DEBUG - 2012-01-16 00:09:42 --> Utf8 Class Initialized +DEBUG - 2012-01-16 00:09:42 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 00:09:42 --> URI Class Initialized +DEBUG - 2012-01-16 00:09:42 --> Router Class Initialized +DEBUG - 2012-01-16 00:09:42 --> No URI present. Default controller set. +DEBUG - 2012-01-16 00:09:42 --> Output Class Initialized +DEBUG - 2012-01-16 00:09:42 --> Security Class Initialized +DEBUG - 2012-01-16 00:09:42 --> Input Class Initialized +DEBUG - 2012-01-16 00:09:42 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 00:09:42 --> Language Class Initialized +DEBUG - 2012-01-16 00:09:42 --> Loader Class Initialized +DEBUG - 2012-01-16 00:09:42 --> Helper loaded: form_helper +DEBUG - 2012-01-16 00:09:42 --> Helper loaded: url_helper +DEBUG - 2012-01-16 00:09:42 --> Helper loaded: table_helper +DEBUG - 2012-01-16 00:09:42 --> Helper loaded: text_helper +DEBUG - 2012-01-16 00:09:42 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 00:09:42 --> Helper loaded: html_helper +DEBUG - 2012-01-16 00:09:42 --> Helper loaded: download_helper +DEBUG - 2012-01-16 00:09:42 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 00:09:42 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 00:09:42 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 00:09:42 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 00:09:42 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 00:09:42 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 00:09:42 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 00:09:42 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 00:09:42 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 00:09:42 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 00:09:42 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 00:09:42 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 00:09:42 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 00:09:42 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 00:09:42 --> Database Driver Class Initialized +DEBUG - 2012-01-16 00:09:43 --> Form Validation Class Initialized +DEBUG - 2012-01-16 00:09:43 --> Session Class Initialized +DEBUG - 2012-01-16 00:09:43 --> Helper loaded: string_helper +DEBUG - 2012-01-16 00:09:43 --> A session cookie was not found. +DEBUG - 2012-01-16 00:09:43 --> Session routines successfully run +DEBUG - 2012-01-16 00:09:43 --> User Agent Class Initialized +DEBUG - 2012-01-16 00:09:43 --> Pagination Class Initialized +DEBUG - 2012-01-16 00:09:43 --> Model Class Initialized +DEBUG - 2012-01-16 00:09:43 --> Model Class Initialized +DEBUG - 2012-01-16 00:09:43 --> Model Class Initialized +DEBUG - 2012-01-16 00:09:43 --> Model Class Initialized +DEBUG - 2012-01-16 00:09:43 --> Model Class Initialized +DEBUG - 2012-01-16 00:09:43 --> Model Class Initialized +DEBUG - 2012-01-16 00:09:43 --> Model Class Initialized +DEBUG - 2012-01-16 00:09:43 --> Model Class Initialized +DEBUG - 2012-01-16 00:09:43 --> Model Class Initialized +DEBUG - 2012-01-16 00:09:43 --> Model Class Initialized +DEBUG - 2012-01-16 00:09:43 --> Model Class Initialized +DEBUG - 2012-01-16 00:09:43 --> Model Class Initialized +DEBUG - 2012-01-16 00:09:43 --> Model Class Initialized +DEBUG - 2012-01-16 00:09:43 --> Model Class Initialized +DEBUG - 2012-01-16 00:09:43 --> Model Class Initialized +DEBUG - 2012-01-16 00:09:43 --> Model Class Initialized +DEBUG - 2012-01-16 00:09:43 --> Controller Class Initialized +DEBUG - 2012-01-16 00:09:49 --> Config Class Initialized +DEBUG - 2012-01-16 00:09:49 --> Hooks Class Initialized +DEBUG - 2012-01-16 00:09:49 --> Utf8 Class Initialized +DEBUG - 2012-01-16 00:09:49 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 00:09:49 --> URI Class Initialized +DEBUG - 2012-01-16 00:09:49 --> Router Class Initialized +DEBUG - 2012-01-16 00:09:49 --> Output Class Initialized +DEBUG - 2012-01-16 00:09:49 --> Security Class Initialized +DEBUG - 2012-01-16 00:09:49 --> Input Class Initialized +DEBUG - 2012-01-16 00:09:49 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 00:09:49 --> Language Class Initialized +DEBUG - 2012-01-16 00:09:49 --> Loader Class Initialized +DEBUG - 2012-01-16 00:09:49 --> Helper loaded: form_helper +DEBUG - 2012-01-16 00:09:49 --> Helper loaded: url_helper +DEBUG - 2012-01-16 00:09:49 --> Helper loaded: table_helper +DEBUG - 2012-01-16 00:09:49 --> Helper loaded: text_helper +DEBUG - 2012-01-16 00:09:49 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 00:09:49 --> Helper loaded: html_helper +DEBUG - 2012-01-16 00:09:49 --> Helper loaded: download_helper +DEBUG - 2012-01-16 00:09:49 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 00:09:49 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 00:09:49 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 00:09:49 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 00:09:49 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 00:09:49 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 00:09:49 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 00:09:49 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 00:09:49 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 00:09:49 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 00:09:49 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 00:09:49 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 00:09:49 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 00:09:49 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 00:09:49 --> Database Driver Class Initialized +DEBUG - 2012-01-16 00:09:49 --> Form Validation Class Initialized +DEBUG - 2012-01-16 00:09:50 --> Session Class Initialized +DEBUG - 2012-01-16 00:09:50 --> Helper loaded: string_helper +DEBUG - 2012-01-16 00:09:50 --> Session routines successfully run +DEBUG - 2012-01-16 00:09:50 --> User Agent Class Initialized +DEBUG - 2012-01-16 00:09:50 --> Pagination Class Initialized +DEBUG - 2012-01-16 00:09:50 --> Model Class Initialized +DEBUG - 2012-01-16 00:09:50 --> Model Class Initialized +DEBUG - 2012-01-16 00:09:50 --> Model Class Initialized +DEBUG - 2012-01-16 00:09:50 --> Model Class Initialized +DEBUG - 2012-01-16 00:09:50 --> Model Class Initialized +DEBUG - 2012-01-16 00:09:50 --> Model Class Initialized +DEBUG - 2012-01-16 00:09:50 --> Model Class Initialized +DEBUG - 2012-01-16 00:09:50 --> Model Class Initialized +DEBUG - 2012-01-16 00:09:50 --> Model Class Initialized +DEBUG - 2012-01-16 00:09:50 --> Model Class Initialized +DEBUG - 2012-01-16 00:09:50 --> Model Class Initialized +DEBUG - 2012-01-16 00:09:50 --> Model Class Initialized +DEBUG - 2012-01-16 00:09:50 --> Model Class Initialized +DEBUG - 2012-01-16 00:09:50 --> Model Class Initialized +DEBUG - 2012-01-16 00:09:50 --> Model Class Initialized +DEBUG - 2012-01-16 00:09:50 --> Model Class Initialized +DEBUG - 2012-01-16 00:09:50 --> Controller Class Initialized +DEBUG - 2012-01-16 00:09:50 --> Config Class Initialized +DEBUG - 2012-01-16 00:09:50 --> Hooks Class Initialized +DEBUG - 2012-01-16 00:09:50 --> Utf8 Class Initialized +DEBUG - 2012-01-16 00:09:50 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 00:09:50 --> URI Class Initialized +DEBUG - 2012-01-16 00:09:50 --> Router Class Initialized +DEBUG - 2012-01-16 00:09:50 --> Output Class Initialized +DEBUG - 2012-01-16 00:09:50 --> Security Class Initialized +DEBUG - 2012-01-16 00:09:50 --> Input Class Initialized +DEBUG - 2012-01-16 00:09:50 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 00:09:50 --> Language Class Initialized +DEBUG - 2012-01-16 00:09:50 --> Loader Class Initialized +DEBUG - 2012-01-16 00:09:50 --> Helper loaded: form_helper +DEBUG - 2012-01-16 00:09:50 --> Helper loaded: url_helper +DEBUG - 2012-01-16 00:09:50 --> Helper loaded: table_helper +DEBUG - 2012-01-16 00:09:50 --> Helper loaded: text_helper +DEBUG - 2012-01-16 00:09:50 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 00:09:50 --> Helper loaded: html_helper +DEBUG - 2012-01-16 00:09:50 --> Helper loaded: download_helper +DEBUG - 2012-01-16 00:09:50 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 00:09:50 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 00:09:50 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 00:09:50 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 00:09:50 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 00:09:50 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 00:09:50 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 00:09:50 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 00:09:50 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 00:09:50 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 00:09:50 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 00:09:50 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 00:09:50 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 00:09:50 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 00:09:50 --> Database Driver Class Initialized +DEBUG - 2012-01-16 00:09:50 --> Form Validation Class Initialized +DEBUG - 2012-01-16 00:09:50 --> Session Class Initialized +DEBUG - 2012-01-16 00:09:50 --> Helper loaded: string_helper +DEBUG - 2012-01-16 00:09:50 --> Session routines successfully run +DEBUG - 2012-01-16 00:09:50 --> User Agent Class Initialized +DEBUG - 2012-01-16 00:09:50 --> Pagination Class Initialized +DEBUG - 2012-01-16 00:09:50 --> Model Class Initialized +DEBUG - 2012-01-16 00:09:50 --> Model Class Initialized +DEBUG - 2012-01-16 00:09:50 --> Model Class Initialized +DEBUG - 2012-01-16 00:09:50 --> Model Class Initialized +DEBUG - 2012-01-16 00:09:50 --> Model Class Initialized +DEBUG - 2012-01-16 00:09:50 --> Model Class Initialized +DEBUG - 2012-01-16 00:09:50 --> Model Class Initialized +DEBUG - 2012-01-16 00:09:50 --> Model Class Initialized +DEBUG - 2012-01-16 00:09:50 --> Model Class Initialized +DEBUG - 2012-01-16 00:09:50 --> Model Class Initialized +DEBUG - 2012-01-16 00:09:50 --> Model Class Initialized +DEBUG - 2012-01-16 00:09:50 --> Model Class Initialized +DEBUG - 2012-01-16 00:09:50 --> Model Class Initialized +DEBUG - 2012-01-16 00:09:50 --> Model Class Initialized +DEBUG - 2012-01-16 00:09:50 --> Model Class Initialized +DEBUG - 2012-01-16 00:09:50 --> Model Class Initialized +DEBUG - 2012-01-16 00:09:50 --> Controller Class Initialized +DEBUG - 2012-01-16 00:10:10 --> Config Class Initialized +DEBUG - 2012-01-16 00:10:10 --> Hooks Class Initialized +DEBUG - 2012-01-16 00:10:10 --> Utf8 Class Initialized +DEBUG - 2012-01-16 00:10:10 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 00:10:10 --> URI Class Initialized +DEBUG - 2012-01-16 00:10:10 --> Router Class Initialized +DEBUG - 2012-01-16 00:10:10 --> Output Class Initialized +DEBUG - 2012-01-16 00:10:10 --> Security Class Initialized +DEBUG - 2012-01-16 00:10:10 --> Input Class Initialized +DEBUG - 2012-01-16 00:10:10 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 00:10:10 --> Language Class Initialized +DEBUG - 2012-01-16 00:10:10 --> Loader Class Initialized +DEBUG - 2012-01-16 00:10:10 --> Helper loaded: form_helper +DEBUG - 2012-01-16 00:10:10 --> Helper loaded: url_helper +DEBUG - 2012-01-16 00:10:10 --> Helper loaded: table_helper +DEBUG - 2012-01-16 00:10:10 --> Helper loaded: text_helper +DEBUG - 2012-01-16 00:10:10 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 00:10:10 --> Helper loaded: html_helper +DEBUG - 2012-01-16 00:10:10 --> Helper loaded: download_helper +DEBUG - 2012-01-16 00:10:10 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 00:10:10 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 00:10:10 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 00:10:10 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 00:10:10 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 00:10:10 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 00:10:10 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 00:10:10 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 00:10:10 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 00:10:10 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 00:10:10 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 00:10:11 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 00:10:11 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 00:10:11 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 00:10:11 --> Database Driver Class Initialized +DEBUG - 2012-01-16 00:10:11 --> Form Validation Class Initialized +DEBUG - 2012-01-16 00:10:11 --> Session Class Initialized +DEBUG - 2012-01-16 00:10:11 --> Helper loaded: string_helper +DEBUG - 2012-01-16 00:10:11 --> Session routines successfully run +DEBUG - 2012-01-16 00:10:11 --> User Agent Class Initialized +DEBUG - 2012-01-16 00:10:11 --> Pagination Class Initialized +DEBUG - 2012-01-16 00:10:11 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:11 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:11 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:11 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:11 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:11 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:11 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:11 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:11 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:11 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:11 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:11 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:11 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:11 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:11 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:11 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:11 --> Controller Class Initialized +DEBUG - 2012-01-16 00:10:26 --> Config Class Initialized +DEBUG - 2012-01-16 00:10:26 --> Hooks Class Initialized +DEBUG - 2012-01-16 00:10:26 --> Utf8 Class Initialized +DEBUG - 2012-01-16 00:10:26 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 00:10:26 --> URI Class Initialized +DEBUG - 2012-01-16 00:10:26 --> Router Class Initialized +DEBUG - 2012-01-16 00:10:26 --> Output Class Initialized +DEBUG - 2012-01-16 00:10:26 --> Security Class Initialized +DEBUG - 2012-01-16 00:10:26 --> Input Class Initialized +DEBUG - 2012-01-16 00:10:26 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 00:10:26 --> Language Class Initialized +DEBUG - 2012-01-16 00:10:26 --> Loader Class Initialized +DEBUG - 2012-01-16 00:10:26 --> Helper loaded: form_helper +DEBUG - 2012-01-16 00:10:26 --> Helper loaded: url_helper +DEBUG - 2012-01-16 00:10:26 --> Helper loaded: table_helper +DEBUG - 2012-01-16 00:10:26 --> Helper loaded: text_helper +DEBUG - 2012-01-16 00:10:26 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 00:10:26 --> Helper loaded: html_helper +DEBUG - 2012-01-16 00:10:26 --> Helper loaded: download_helper +DEBUG - 2012-01-16 00:10:26 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 00:10:26 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 00:10:26 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 00:10:26 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 00:10:26 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 00:10:26 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 00:10:26 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 00:10:26 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 00:10:26 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 00:10:26 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 00:10:26 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 00:10:26 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 00:10:26 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 00:10:26 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 00:10:26 --> Database Driver Class Initialized +DEBUG - 2012-01-16 00:10:26 --> Form Validation Class Initialized +DEBUG - 2012-01-16 00:10:26 --> Session Class Initialized +DEBUG - 2012-01-16 00:10:26 --> Helper loaded: string_helper +DEBUG - 2012-01-16 00:10:26 --> Session routines successfully run +DEBUG - 2012-01-16 00:10:26 --> User Agent Class Initialized +DEBUG - 2012-01-16 00:10:26 --> Pagination Class Initialized +DEBUG - 2012-01-16 00:10:26 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:26 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:26 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:26 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:26 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:26 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:26 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:26 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:26 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:26 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:26 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:26 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:26 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:26 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:26 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:26 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:26 --> Controller Class Initialized +DEBUG - 2012-01-16 00:10:28 --> Config Class Initialized +DEBUG - 2012-01-16 00:10:28 --> Hooks Class Initialized +DEBUG - 2012-01-16 00:10:28 --> Utf8 Class Initialized +DEBUG - 2012-01-16 00:10:28 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 00:10:28 --> URI Class Initialized +DEBUG - 2012-01-16 00:10:28 --> Router Class Initialized +ERROR - 2012-01-16 00:10:28 --> Severity: Warning --> parse_url(/items/view/-1/width:360) [function.parse-url]: Unable to parse URL C:\webroot\CodeIgniter_2.1.0\system\core\URI.php 219 +DEBUG - 2012-01-16 00:10:28 --> Output Class Initialized +DEBUG - 2012-01-16 00:10:28 --> Security Class Initialized +DEBUG - 2012-01-16 00:10:28 --> Input Class Initialized +DEBUG - 2012-01-16 00:10:28 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 00:10:28 --> Language Class Initialized +DEBUG - 2012-01-16 00:10:28 --> Loader Class Initialized +DEBUG - 2012-01-16 00:10:28 --> Helper loaded: form_helper +DEBUG - 2012-01-16 00:10:28 --> Helper loaded: url_helper +DEBUG - 2012-01-16 00:10:28 --> Helper loaded: table_helper +DEBUG - 2012-01-16 00:10:28 --> Helper loaded: text_helper +DEBUG - 2012-01-16 00:10:28 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 00:10:28 --> Helper loaded: html_helper +DEBUG - 2012-01-16 00:10:28 --> Helper loaded: download_helper +DEBUG - 2012-01-16 00:10:28 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 00:10:28 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 00:10:28 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 00:10:28 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 00:10:28 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 00:10:28 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 00:10:28 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 00:10:28 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 00:10:28 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 00:10:28 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 00:10:28 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 00:10:28 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 00:10:28 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 00:10:28 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 00:10:28 --> Database Driver Class Initialized +DEBUG - 2012-01-16 00:10:28 --> Form Validation Class Initialized +DEBUG - 2012-01-16 00:10:28 --> Session Class Initialized +DEBUG - 2012-01-16 00:10:28 --> Helper loaded: string_helper +DEBUG - 2012-01-16 00:10:28 --> Session routines successfully run +DEBUG - 2012-01-16 00:10:28 --> User Agent Class Initialized +DEBUG - 2012-01-16 00:10:28 --> Pagination Class Initialized +DEBUG - 2012-01-16 00:10:28 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:28 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:28 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:28 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:28 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:28 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:28 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:28 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:28 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:28 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:28 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:28 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:28 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:28 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:28 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:28 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:28 --> Controller Class Initialized +DEBUG - 2012-01-16 00:10:36 --> Config Class Initialized +DEBUG - 2012-01-16 00:10:36 --> Hooks Class Initialized +DEBUG - 2012-01-16 00:10:36 --> Utf8 Class Initialized +DEBUG - 2012-01-16 00:10:36 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 00:10:36 --> URI Class Initialized +DEBUG - 2012-01-16 00:10:36 --> Router Class Initialized +ERROR - 2012-01-16 00:10:36 --> Severity: Warning --> parse_url(/items/view/-1/width:360/random:1326672668880) [function.parse-url]: Unable to parse URL C:\webroot\CodeIgniter_2.1.0\system\core\URI.php 219 +DEBUG - 2012-01-16 00:10:36 --> Output Class Initialized +DEBUG - 2012-01-16 00:10:36 --> Security Class Initialized +DEBUG - 2012-01-16 00:10:36 --> Input Class Initialized +DEBUG - 2012-01-16 00:10:36 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 00:10:36 --> Language Class Initialized +DEBUG - 2012-01-16 00:10:36 --> Loader Class Initialized +DEBUG - 2012-01-16 00:10:37 --> Helper loaded: form_helper +DEBUG - 2012-01-16 00:10:37 --> Helper loaded: url_helper +DEBUG - 2012-01-16 00:10:37 --> Helper loaded: table_helper +DEBUG - 2012-01-16 00:10:37 --> Helper loaded: text_helper +DEBUG - 2012-01-16 00:10:37 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 00:10:37 --> Helper loaded: html_helper +DEBUG - 2012-01-16 00:10:37 --> Helper loaded: download_helper +DEBUG - 2012-01-16 00:10:37 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 00:10:37 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 00:10:37 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 00:10:37 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 00:10:37 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 00:10:37 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 00:10:37 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 00:10:37 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 00:10:37 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 00:10:37 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 00:10:37 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 00:10:37 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 00:10:37 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 00:10:37 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 00:10:37 --> Database Driver Class Initialized +DEBUG - 2012-01-16 00:10:37 --> Form Validation Class Initialized +DEBUG - 2012-01-16 00:10:37 --> Session Class Initialized +DEBUG - 2012-01-16 00:10:37 --> Helper loaded: string_helper +DEBUG - 2012-01-16 00:10:37 --> Session routines successfully run +DEBUG - 2012-01-16 00:10:37 --> User Agent Class Initialized +DEBUG - 2012-01-16 00:10:37 --> Pagination Class Initialized +DEBUG - 2012-01-16 00:10:37 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:37 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:37 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:37 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:37 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:37 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:37 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:37 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:37 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:37 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:37 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:37 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:37 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:37 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:37 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:37 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:37 --> Controller Class Initialized +DEBUG - 2012-01-16 00:10:37 --> Config Class Initialized +DEBUG - 2012-01-16 00:10:37 --> Hooks Class Initialized +DEBUG - 2012-01-16 00:10:37 --> Utf8 Class Initialized +DEBUG - 2012-01-16 00:10:37 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 00:10:37 --> URI Class Initialized +DEBUG - 2012-01-16 00:10:37 --> Router Class Initialized +DEBUG - 2012-01-16 00:10:37 --> Output Class Initialized +DEBUG - 2012-01-16 00:10:37 --> Security Class Initialized +DEBUG - 2012-01-16 00:10:37 --> Input Class Initialized +DEBUG - 2012-01-16 00:10:37 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 00:10:37 --> Language Class Initialized +DEBUG - 2012-01-16 00:10:37 --> Loader Class Initialized +DEBUG - 2012-01-16 00:10:37 --> Helper loaded: form_helper +DEBUG - 2012-01-16 00:10:37 --> Helper loaded: url_helper +DEBUG - 2012-01-16 00:10:37 --> Helper loaded: table_helper +DEBUG - 2012-01-16 00:10:37 --> Helper loaded: text_helper +DEBUG - 2012-01-16 00:10:37 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 00:10:37 --> Helper loaded: html_helper +DEBUG - 2012-01-16 00:10:37 --> Helper loaded: download_helper +DEBUG - 2012-01-16 00:10:37 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 00:10:37 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 00:10:37 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 00:10:37 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 00:10:37 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 00:10:37 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 00:10:37 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 00:10:37 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 00:10:37 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 00:10:37 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 00:10:37 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 00:10:37 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 00:10:37 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 00:10:37 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 00:10:37 --> Database Driver Class Initialized +DEBUG - 2012-01-16 00:10:37 --> Form Validation Class Initialized +DEBUG - 2012-01-16 00:10:37 --> Session Class Initialized +DEBUG - 2012-01-16 00:10:37 --> Helper loaded: string_helper +DEBUG - 2012-01-16 00:10:37 --> Session routines successfully run +DEBUG - 2012-01-16 00:10:37 --> User Agent Class Initialized +DEBUG - 2012-01-16 00:10:37 --> Pagination Class Initialized +DEBUG - 2012-01-16 00:10:37 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:37 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:38 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:38 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:38 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:38 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:38 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:38 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:38 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:38 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:38 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:38 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:38 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:38 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:38 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:38 --> Model Class Initialized +DEBUG - 2012-01-16 00:10:38 --> Controller Class Initialized +DEBUG - 2012-01-16 00:15:48 --> Config Class Initialized +DEBUG - 2012-01-16 00:15:48 --> Hooks Class Initialized +DEBUG - 2012-01-16 00:15:48 --> Utf8 Class Initialized +DEBUG - 2012-01-16 00:15:48 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 00:15:48 --> URI Class Initialized +DEBUG - 2012-01-16 00:15:48 --> Router Class Initialized +ERROR - 2012-01-16 00:15:48 --> Severity: Warning --> parse_url(/items/view/-1/width:360/random:1326672980706) [function.parse-url]: Unable to parse URL C:\webroot\CodeIgniter_2.1.0\system\core\URI.php 219 +DEBUG - 2012-01-16 00:15:48 --> Output Class Initialized +DEBUG - 2012-01-16 00:15:48 --> Security Class Initialized +DEBUG - 2012-01-16 00:15:48 --> Input Class Initialized +DEBUG - 2012-01-16 00:15:48 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 00:15:48 --> Language Class Initialized +DEBUG - 2012-01-16 00:15:48 --> Loader Class Initialized +DEBUG - 2012-01-16 00:15:48 --> Helper loaded: form_helper +DEBUG - 2012-01-16 00:15:48 --> Helper loaded: url_helper +DEBUG - 2012-01-16 00:15:48 --> Helper loaded: table_helper +DEBUG - 2012-01-16 00:15:48 --> Helper loaded: text_helper +DEBUG - 2012-01-16 00:15:48 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 00:15:48 --> Helper loaded: html_helper +DEBUG - 2012-01-16 00:15:48 --> Helper loaded: download_helper +DEBUG - 2012-01-16 00:15:48 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 00:15:48 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 00:15:48 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 00:15:48 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 00:15:48 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 00:15:48 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 00:15:48 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 00:15:48 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 00:15:48 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 00:15:48 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 00:15:48 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 00:15:48 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 00:15:48 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 00:15:48 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 00:15:48 --> Database Driver Class Initialized +DEBUG - 2012-01-16 00:15:48 --> Form Validation Class Initialized +DEBUG - 2012-01-16 00:15:48 --> Session Class Initialized +DEBUG - 2012-01-16 00:15:48 --> Helper loaded: string_helper +DEBUG - 2012-01-16 00:15:48 --> Session routines successfully run +DEBUG - 2012-01-16 00:15:48 --> User Agent Class Initialized +DEBUG - 2012-01-16 00:15:48 --> Pagination Class Initialized +DEBUG - 2012-01-16 00:15:48 --> Model Class Initialized +DEBUG - 2012-01-16 00:15:48 --> Model Class Initialized +DEBUG - 2012-01-16 00:15:48 --> Model Class Initialized +DEBUG - 2012-01-16 00:15:48 --> Model Class Initialized +DEBUG - 2012-01-16 00:15:48 --> Model Class Initialized +DEBUG - 2012-01-16 00:15:48 --> Model Class Initialized +DEBUG - 2012-01-16 00:15:48 --> Model Class Initialized +DEBUG - 2012-01-16 00:15:48 --> Model Class Initialized +DEBUG - 2012-01-16 00:15:48 --> Model Class Initialized +DEBUG - 2012-01-16 00:15:48 --> Model Class Initialized +DEBUG - 2012-01-16 00:15:48 --> Model Class Initialized +DEBUG - 2012-01-16 00:15:48 --> Model Class Initialized +DEBUG - 2012-01-16 00:15:48 --> Model Class Initialized +DEBUG - 2012-01-16 00:15:48 --> Model Class Initialized +DEBUG - 2012-01-16 00:15:49 --> Model Class Initialized +DEBUG - 2012-01-16 00:15:49 --> Model Class Initialized +DEBUG - 2012-01-16 00:15:49 --> Controller Class Initialized +DEBUG - 2012-01-16 00:15:49 --> Config Class Initialized +DEBUG - 2012-01-16 00:15:49 --> Hooks Class Initialized +DEBUG - 2012-01-16 00:15:49 --> Utf8 Class Initialized +DEBUG - 2012-01-16 00:15:49 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 00:15:49 --> URI Class Initialized +DEBUG - 2012-01-16 00:15:49 --> Router Class Initialized +DEBUG - 2012-01-16 00:15:49 --> Output Class Initialized +DEBUG - 2012-01-16 00:15:49 --> Security Class Initialized +DEBUG - 2012-01-16 00:15:49 --> Input Class Initialized +DEBUG - 2012-01-16 00:15:49 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 00:15:49 --> Language Class Initialized +DEBUG - 2012-01-16 00:15:49 --> Loader Class Initialized +DEBUG - 2012-01-16 00:15:49 --> Helper loaded: form_helper +DEBUG - 2012-01-16 00:15:49 --> Helper loaded: url_helper +DEBUG - 2012-01-16 00:15:49 --> Helper loaded: table_helper +DEBUG - 2012-01-16 00:15:49 --> Helper loaded: text_helper +DEBUG - 2012-01-16 00:15:49 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 00:15:49 --> Helper loaded: html_helper +DEBUG - 2012-01-16 00:15:49 --> Helper loaded: download_helper +DEBUG - 2012-01-16 00:15:49 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 00:15:49 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 00:15:49 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 00:15:49 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 00:15:49 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 00:15:49 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 00:15:49 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 00:15:49 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 00:15:49 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 00:15:49 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 00:15:49 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 00:15:49 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 00:15:49 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 00:15:49 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 00:15:49 --> Database Driver Class Initialized +DEBUG - 2012-01-16 00:15:49 --> Form Validation Class Initialized +DEBUG - 2012-01-16 00:15:49 --> Session Class Initialized +DEBUG - 2012-01-16 00:15:49 --> Helper loaded: string_helper +DEBUG - 2012-01-16 00:15:49 --> Session routines successfully run +DEBUG - 2012-01-16 00:15:49 --> User Agent Class Initialized +DEBUG - 2012-01-16 00:15:49 --> Pagination Class Initialized +DEBUG - 2012-01-16 00:15:49 --> Model Class Initialized +DEBUG - 2012-01-16 00:15:49 --> Model Class Initialized +DEBUG - 2012-01-16 00:15:49 --> Model Class Initialized +DEBUG - 2012-01-16 00:15:49 --> Model Class Initialized +DEBUG - 2012-01-16 00:15:49 --> Model Class Initialized +DEBUG - 2012-01-16 00:15:49 --> Model Class Initialized +DEBUG - 2012-01-16 00:15:49 --> Model Class Initialized +DEBUG - 2012-01-16 00:15:49 --> Model Class Initialized +DEBUG - 2012-01-16 00:15:49 --> Model Class Initialized +DEBUG - 2012-01-16 00:15:49 --> Model Class Initialized +DEBUG - 2012-01-16 00:15:49 --> Model Class Initialized +DEBUG - 2012-01-16 00:15:49 --> Model Class Initialized +DEBUG - 2012-01-16 00:15:49 --> Model Class Initialized +DEBUG - 2012-01-16 00:15:49 --> Model Class Initialized +DEBUG - 2012-01-16 00:15:49 --> Model Class Initialized +DEBUG - 2012-01-16 00:15:49 --> Model Class Initialized +DEBUG - 2012-01-16 00:15:49 --> Controller Class Initialized +DEBUG - 2012-01-16 00:18:59 --> Config Class Initialized +DEBUG - 2012-01-16 00:19:00 --> Hooks Class Initialized +DEBUG - 2012-01-16 00:19:00 --> Utf8 Class Initialized +DEBUG - 2012-01-16 00:19:00 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 00:19:00 --> URI Class Initialized +DEBUG - 2012-01-16 00:19:00 --> Router Class Initialized +DEBUG - 2012-01-16 00:19:00 --> Output Class Initialized +DEBUG - 2012-01-16 00:19:00 --> Security Class Initialized +DEBUG - 2012-01-16 00:19:00 --> Input Class Initialized +DEBUG - 2012-01-16 00:19:00 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 00:19:00 --> Language Class Initialized +DEBUG - 2012-01-16 00:19:00 --> Loader Class Initialized +DEBUG - 2012-01-16 00:19:00 --> Helper loaded: form_helper +DEBUG - 2012-01-16 00:19:00 --> Helper loaded: url_helper +DEBUG - 2012-01-16 00:19:00 --> Helper loaded: table_helper +DEBUG - 2012-01-16 00:19:00 --> Helper loaded: text_helper +DEBUG - 2012-01-16 00:19:00 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 00:19:00 --> Helper loaded: html_helper +DEBUG - 2012-01-16 00:19:00 --> Helper loaded: download_helper +DEBUG - 2012-01-16 00:19:00 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 00:19:00 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 00:19:00 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 00:19:00 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 00:19:00 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 00:19:00 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 00:19:00 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 00:19:00 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 00:19:00 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 00:19:00 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 00:19:00 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 00:19:00 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 00:19:00 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 00:19:00 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 00:19:00 --> Database Driver Class Initialized +DEBUG - 2012-01-16 00:19:00 --> Form Validation Class Initialized +DEBUG - 2012-01-16 00:19:00 --> Session Class Initialized +DEBUG - 2012-01-16 00:19:00 --> Helper loaded: string_helper +DEBUG - 2012-01-16 00:19:00 --> Session routines successfully run +DEBUG - 2012-01-16 00:19:00 --> User Agent Class Initialized +DEBUG - 2012-01-16 00:19:00 --> Pagination Class Initialized +DEBUG - 2012-01-16 00:19:00 --> Model Class Initialized +DEBUG - 2012-01-16 00:19:00 --> Model Class Initialized +DEBUG - 2012-01-16 00:19:00 --> Model Class Initialized +DEBUG - 2012-01-16 00:19:00 --> Model Class Initialized +DEBUG - 2012-01-16 00:19:00 --> Model Class Initialized +DEBUG - 2012-01-16 00:19:00 --> Model Class Initialized +DEBUG - 2012-01-16 00:19:00 --> Model Class Initialized +DEBUG - 2012-01-16 00:19:00 --> Model Class Initialized +DEBUG - 2012-01-16 00:19:00 --> Model Class Initialized +DEBUG - 2012-01-16 00:19:00 --> Model Class Initialized +DEBUG - 2012-01-16 00:19:00 --> Model Class Initialized +DEBUG - 2012-01-16 00:19:00 --> Model Class Initialized +DEBUG - 2012-01-16 00:19:00 --> Model Class Initialized +DEBUG - 2012-01-16 00:19:00 --> Model Class Initialized +DEBUG - 2012-01-16 00:19:00 --> Model Class Initialized +DEBUG - 2012-01-16 00:19:00 --> Model Class Initialized +DEBUG - 2012-01-16 00:19:00 --> Controller Class Initialized +DEBUG - 2012-01-16 00:19:03 --> Config Class Initialized +DEBUG - 2012-01-16 00:19:03 --> Hooks Class Initialized +DEBUG - 2012-01-16 00:19:03 --> Utf8 Class Initialized +DEBUG - 2012-01-16 00:19:03 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 00:19:03 --> URI Class Initialized +DEBUG - 2012-01-16 00:19:03 --> Router Class Initialized +DEBUG - 2012-01-16 00:19:03 --> Output Class Initialized +DEBUG - 2012-01-16 00:19:03 --> Security Class Initialized +DEBUG - 2012-01-16 00:19:03 --> Input Class Initialized +DEBUG - 2012-01-16 00:19:03 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 00:19:03 --> Language Class Initialized +DEBUG - 2012-01-16 00:19:03 --> Loader Class Initialized +DEBUG - 2012-01-16 00:19:03 --> Helper loaded: form_helper +DEBUG - 2012-01-16 00:19:03 --> Helper loaded: url_helper +DEBUG - 2012-01-16 00:19:03 --> Helper loaded: table_helper +DEBUG - 2012-01-16 00:19:03 --> Helper loaded: text_helper +DEBUG - 2012-01-16 00:19:03 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 00:19:03 --> Helper loaded: html_helper +DEBUG - 2012-01-16 00:19:03 --> Helper loaded: download_helper +DEBUG - 2012-01-16 00:19:03 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 00:19:03 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 00:19:03 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 00:19:03 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 00:19:03 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 00:19:03 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 00:19:03 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 00:19:03 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 00:19:03 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 00:19:03 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 00:19:03 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 00:19:03 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 00:19:03 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 00:19:03 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 00:19:03 --> Database Driver Class Initialized +DEBUG - 2012-01-16 00:19:03 --> Form Validation Class Initialized +DEBUG - 2012-01-16 00:19:03 --> Session Class Initialized +DEBUG - 2012-01-16 00:19:03 --> Helper loaded: string_helper +DEBUG - 2012-01-16 00:19:03 --> Session routines successfully run +DEBUG - 2012-01-16 00:19:03 --> User Agent Class Initialized +DEBUG - 2012-01-16 00:19:03 --> Pagination Class Initialized +DEBUG - 2012-01-16 00:19:03 --> Model Class Initialized +DEBUG - 2012-01-16 00:19:03 --> Model Class Initialized +DEBUG - 2012-01-16 00:19:03 --> Model Class Initialized +DEBUG - 2012-01-16 00:19:03 --> Model Class Initialized +DEBUG - 2012-01-16 00:19:03 --> Model Class Initialized +DEBUG - 2012-01-16 00:19:03 --> Model Class Initialized +DEBUG - 2012-01-16 00:19:03 --> Model Class Initialized +DEBUG - 2012-01-16 00:19:03 --> Model Class Initialized +DEBUG - 2012-01-16 00:19:03 --> Model Class Initialized +DEBUG - 2012-01-16 00:19:03 --> Model Class Initialized +DEBUG - 2012-01-16 00:19:03 --> Model Class Initialized +DEBUG - 2012-01-16 00:19:03 --> Model Class Initialized +DEBUG - 2012-01-16 00:19:03 --> Model Class Initialized +DEBUG - 2012-01-16 00:19:03 --> Model Class Initialized +DEBUG - 2012-01-16 00:19:03 --> Model Class Initialized +DEBUG - 2012-01-16 00:19:04 --> Model Class Initialized +DEBUG - 2012-01-16 00:19:04 --> Controller Class Initialized +DEBUG - 2012-01-16 00:19:04 --> Config Class Initialized +DEBUG - 2012-01-16 00:19:04 --> Hooks Class Initialized +DEBUG - 2012-01-16 00:19:04 --> Utf8 Class Initialized +DEBUG - 2012-01-16 00:19:04 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 00:19:04 --> URI Class Initialized +DEBUG - 2012-01-16 00:19:04 --> Router Class Initialized +DEBUG - 2012-01-16 00:19:04 --> Output Class Initialized +DEBUG - 2012-01-16 00:19:04 --> Security Class Initialized +DEBUG - 2012-01-16 00:19:04 --> Input Class Initialized +DEBUG - 2012-01-16 00:19:04 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 00:19:04 --> Language Class Initialized +DEBUG - 2012-01-16 00:19:04 --> Loader Class Initialized +DEBUG - 2012-01-16 00:19:04 --> Helper loaded: form_helper +DEBUG - 2012-01-16 00:19:04 --> Helper loaded: url_helper +DEBUG - 2012-01-16 00:19:04 --> Helper loaded: table_helper +DEBUG - 2012-01-16 00:19:04 --> Helper loaded: text_helper +DEBUG - 2012-01-16 00:19:04 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 00:19:04 --> Helper loaded: html_helper +DEBUG - 2012-01-16 00:19:04 --> Helper loaded: download_helper +DEBUG - 2012-01-16 00:19:04 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 00:19:04 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 00:19:04 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 00:19:04 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 00:19:04 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 00:19:04 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 00:19:04 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 00:19:04 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 00:19:04 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 00:19:04 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 00:19:04 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 00:19:04 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 00:19:04 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 00:19:04 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 00:19:04 --> Database Driver Class Initialized +DEBUG - 2012-01-16 00:19:04 --> Form Validation Class Initialized +DEBUG - 2012-01-16 00:19:04 --> Session Class Initialized +DEBUG - 2012-01-16 00:19:04 --> Helper loaded: string_helper +DEBUG - 2012-01-16 00:19:04 --> Session routines successfully run +DEBUG - 2012-01-16 00:19:04 --> User Agent Class Initialized +DEBUG - 2012-01-16 00:19:04 --> Pagination Class Initialized +DEBUG - 2012-01-16 00:19:04 --> Model Class Initialized +DEBUG - 2012-01-16 00:19:04 --> Model Class Initialized +DEBUG - 2012-01-16 00:19:04 --> Model Class Initialized +DEBUG - 2012-01-16 00:19:04 --> Model Class Initialized +DEBUG - 2012-01-16 00:19:04 --> Model Class Initialized +DEBUG - 2012-01-16 00:19:04 --> Model Class Initialized +DEBUG - 2012-01-16 00:19:04 --> Model Class Initialized +DEBUG - 2012-01-16 00:19:04 --> Model Class Initialized +DEBUG - 2012-01-16 00:19:04 --> Model Class Initialized +DEBUG - 2012-01-16 00:19:04 --> Model Class Initialized +DEBUG - 2012-01-16 00:19:04 --> Model Class Initialized +DEBUG - 2012-01-16 00:19:04 --> Model Class Initialized +DEBUG - 2012-01-16 00:19:04 --> Model Class Initialized +DEBUG - 2012-01-16 00:19:04 --> Model Class Initialized +DEBUG - 2012-01-16 00:19:04 --> Model Class Initialized +DEBUG - 2012-01-16 00:19:04 --> Model Class Initialized +DEBUG - 2012-01-16 00:19:04 --> Controller Class Initialized +DEBUG - 2012-01-16 01:18:59 --> Config Class Initialized +DEBUG - 2012-01-16 01:18:59 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:18:59 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:18:59 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:18:59 --> URI Class Initialized +DEBUG - 2012-01-16 01:18:59 --> Router Class Initialized +DEBUG - 2012-01-16 01:18:59 --> Output Class Initialized +DEBUG - 2012-01-16 01:18:59 --> Security Class Initialized +DEBUG - 2012-01-16 01:18:59 --> Input Class Initialized +DEBUG - 2012-01-16 01:18:59 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:18:59 --> Language Class Initialized +DEBUG - 2012-01-16 01:18:59 --> Loader Class Initialized +DEBUG - 2012-01-16 01:18:59 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:18:59 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:18:59 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:18:59 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:18:59 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:18:59 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:18:59 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:18:59 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:18:59 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:18:59 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:18:59 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:18:59 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:18:59 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:18:59 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:18:59 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:18:59 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:18:59 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:18:59 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:18:59 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:18:59 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:18:59 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:18:59 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:18:59 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:18:59 --> Session Class Initialized +DEBUG - 2012-01-16 01:18:59 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:18:59 --> Session routines successfully run +DEBUG - 2012-01-16 01:18:59 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:18:59 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:18:59 --> Model Class Initialized +DEBUG - 2012-01-16 01:18:59 --> Model Class Initialized +DEBUG - 2012-01-16 01:18:59 --> Model Class Initialized +DEBUG - 2012-01-16 01:18:59 --> Model Class Initialized +DEBUG - 2012-01-16 01:18:59 --> Model Class Initialized +DEBUG - 2012-01-16 01:18:59 --> Model Class Initialized +DEBUG - 2012-01-16 01:18:59 --> Model Class Initialized +DEBUG - 2012-01-16 01:18:59 --> Model Class Initialized +DEBUG - 2012-01-16 01:18:59 --> Model Class Initialized +DEBUG - 2012-01-16 01:18:59 --> Model Class Initialized +DEBUG - 2012-01-16 01:18:59 --> Model Class Initialized +DEBUG - 2012-01-16 01:18:59 --> Model Class Initialized +DEBUG - 2012-01-16 01:18:59 --> Model Class Initialized +DEBUG - 2012-01-16 01:18:59 --> Model Class Initialized +DEBUG - 2012-01-16 01:18:59 --> Model Class Initialized +DEBUG - 2012-01-16 01:18:59 --> Model Class Initialized +DEBUG - 2012-01-16 01:18:59 --> Controller Class Initialized +DEBUG - 2012-01-16 01:19:06 --> Config Class Initialized +DEBUG - 2012-01-16 01:19:06 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:19:06 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:19:06 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:19:06 --> URI Class Initialized +DEBUG - 2012-01-16 01:19:06 --> Router Class Initialized +ERROR - 2012-01-16 01:19:06 --> Severity: Warning --> parse_url(/items/view/-1/width:360/random:1326676782426) [function.parse-url]: Unable to parse URL C:\webroot\CodeIgniter_2.1.0\system\core\URI.php 219 +DEBUG - 2012-01-16 01:19:06 --> Output Class Initialized +DEBUG - 2012-01-16 01:19:06 --> Security Class Initialized +DEBUG - 2012-01-16 01:19:06 --> Input Class Initialized +DEBUG - 2012-01-16 01:19:06 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:19:07 --> Language Class Initialized +DEBUG - 2012-01-16 01:19:07 --> Loader Class Initialized +DEBUG - 2012-01-16 01:19:07 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:19:07 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:19:07 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:19:07 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:19:07 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:19:07 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:19:07 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:19:07 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:19:07 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:19:07 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:19:07 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:19:07 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:19:07 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:19:07 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:19:07 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:19:07 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:19:07 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:19:07 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:19:07 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:19:07 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:19:07 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:19:07 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:19:07 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:19:07 --> Session Class Initialized +DEBUG - 2012-01-16 01:19:07 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:19:07 --> Session routines successfully run +DEBUG - 2012-01-16 01:19:07 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:19:07 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:19:07 --> Model Class Initialized +DEBUG - 2012-01-16 01:19:07 --> Model Class Initialized +DEBUG - 2012-01-16 01:19:07 --> Model Class Initialized +DEBUG - 2012-01-16 01:19:07 --> Model Class Initialized +DEBUG - 2012-01-16 01:19:07 --> Model Class Initialized +DEBUG - 2012-01-16 01:19:07 --> Model Class Initialized +DEBUG - 2012-01-16 01:19:07 --> Model Class Initialized +DEBUG - 2012-01-16 01:19:07 --> Model Class Initialized +DEBUG - 2012-01-16 01:19:07 --> Model Class Initialized +DEBUG - 2012-01-16 01:19:07 --> Model Class Initialized +DEBUG - 2012-01-16 01:19:07 --> Model Class Initialized +DEBUG - 2012-01-16 01:19:07 --> Model Class Initialized +DEBUG - 2012-01-16 01:19:07 --> Model Class Initialized +DEBUG - 2012-01-16 01:19:07 --> Model Class Initialized +DEBUG - 2012-01-16 01:19:07 --> Model Class Initialized +DEBUG - 2012-01-16 01:19:07 --> Model Class Initialized +DEBUG - 2012-01-16 01:19:07 --> Controller Class Initialized +DEBUG - 2012-01-16 01:19:07 --> Config Class Initialized +DEBUG - 2012-01-16 01:19:07 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:19:07 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:19:07 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:19:07 --> URI Class Initialized +DEBUG - 2012-01-16 01:19:07 --> Router Class Initialized +DEBUG - 2012-01-16 01:19:07 --> Output Class Initialized +DEBUG - 2012-01-16 01:19:07 --> Security Class Initialized +DEBUG - 2012-01-16 01:19:07 --> Input Class Initialized +DEBUG - 2012-01-16 01:19:07 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:19:07 --> Language Class Initialized +DEBUG - 2012-01-16 01:19:07 --> Loader Class Initialized +DEBUG - 2012-01-16 01:19:07 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:19:07 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:19:07 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:19:07 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:19:07 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:19:07 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:19:07 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:19:07 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:19:07 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:19:07 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:19:07 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:19:07 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:19:07 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:19:07 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:19:07 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:19:07 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:19:07 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:19:07 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:19:07 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:19:07 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:19:07 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:19:07 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:19:07 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:19:07 --> Session Class Initialized +DEBUG - 2012-01-16 01:19:07 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:19:07 --> Session routines successfully run +DEBUG - 2012-01-16 01:19:08 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:19:08 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:19:08 --> Model Class Initialized +DEBUG - 2012-01-16 01:19:08 --> Model Class Initialized +DEBUG - 2012-01-16 01:19:08 --> Model Class Initialized +DEBUG - 2012-01-16 01:19:08 --> Model Class Initialized +DEBUG - 2012-01-16 01:19:08 --> Model Class Initialized +DEBUG - 2012-01-16 01:19:08 --> Model Class Initialized +DEBUG - 2012-01-16 01:19:08 --> Model Class Initialized +DEBUG - 2012-01-16 01:19:08 --> Model Class Initialized +DEBUG - 2012-01-16 01:19:08 --> Model Class Initialized +DEBUG - 2012-01-16 01:19:08 --> Model Class Initialized +DEBUG - 2012-01-16 01:19:08 --> Model Class Initialized +DEBUG - 2012-01-16 01:19:08 --> Model Class Initialized +DEBUG - 2012-01-16 01:19:08 --> Model Class Initialized +DEBUG - 2012-01-16 01:19:08 --> Model Class Initialized +DEBUG - 2012-01-16 01:19:08 --> Model Class Initialized +DEBUG - 2012-01-16 01:19:08 --> Model Class Initialized +DEBUG - 2012-01-16 01:19:08 --> Controller Class Initialized +DEBUG - 2012-01-16 01:21:59 --> Config Class Initialized +DEBUG - 2012-01-16 01:21:59 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:21:59 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:21:59 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:21:59 --> URI Class Initialized +DEBUG - 2012-01-16 01:21:59 --> Router Class Initialized +DEBUG - 2012-01-16 01:21:59 --> Output Class Initialized +DEBUG - 2012-01-16 01:21:59 --> Security Class Initialized +DEBUG - 2012-01-16 01:21:59 --> Input Class Initialized +DEBUG - 2012-01-16 01:21:59 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:21:59 --> Language Class Initialized +DEBUG - 2012-01-16 01:21:59 --> Loader Class Initialized +DEBUG - 2012-01-16 01:21:59 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:21:59 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:21:59 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:21:59 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:21:59 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:21:59 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:21:59 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:21:59 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:21:59 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:21:59 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:21:59 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:21:59 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:21:59 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:21:59 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:21:59 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:21:59 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:21:59 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:21:59 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:21:59 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:21:59 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:21:59 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:21:59 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:21:59 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:21:59 --> Session Class Initialized +DEBUG - 2012-01-16 01:21:59 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:21:59 --> Session routines successfully run +DEBUG - 2012-01-16 01:21:59 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:21:59 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:21:59 --> Model Class Initialized +DEBUG - 2012-01-16 01:21:59 --> Model Class Initialized +DEBUG - 2012-01-16 01:21:59 --> Model Class Initialized +DEBUG - 2012-01-16 01:21:59 --> Model Class Initialized +DEBUG - 2012-01-16 01:21:59 --> Model Class Initialized +DEBUG - 2012-01-16 01:21:59 --> Model Class Initialized +DEBUG - 2012-01-16 01:21:59 --> Model Class Initialized +DEBUG - 2012-01-16 01:21:59 --> Model Class Initialized +DEBUG - 2012-01-16 01:21:59 --> Model Class Initialized +DEBUG - 2012-01-16 01:21:59 --> Model Class Initialized +DEBUG - 2012-01-16 01:21:59 --> Model Class Initialized +DEBUG - 2012-01-16 01:21:59 --> Model Class Initialized +DEBUG - 2012-01-16 01:21:59 --> Model Class Initialized +DEBUG - 2012-01-16 01:21:59 --> Model Class Initialized +DEBUG - 2012-01-16 01:21:59 --> Model Class Initialized +DEBUG - 2012-01-16 01:21:59 --> Model Class Initialized +DEBUG - 2012-01-16 01:21:59 --> Controller Class Initialized +DEBUG - 2012-01-16 01:22:01 --> Config Class Initialized +DEBUG - 2012-01-16 01:22:01 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:22:01 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:22:01 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:22:01 --> URI Class Initialized +DEBUG - 2012-01-16 01:22:01 --> Router Class Initialized +ERROR - 2012-01-16 01:22:01 --> Severity: Warning --> parse_url(/items/view/-1/width:360/random:1326676957404) [function.parse-url]: Unable to parse URL C:\webroot\CodeIgniter_2.1.0\system\core\URI.php 219 +DEBUG - 2012-01-16 01:22:01 --> Output Class Initialized +DEBUG - 2012-01-16 01:22:01 --> Security Class Initialized +DEBUG - 2012-01-16 01:22:01 --> Input Class Initialized +DEBUG - 2012-01-16 01:22:01 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:22:01 --> Language Class Initialized +DEBUG - 2012-01-16 01:22:01 --> Loader Class Initialized +DEBUG - 2012-01-16 01:22:01 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:22:01 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:22:01 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:22:01 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:22:01 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:22:01 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:22:01 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:22:01 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:22:01 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:22:01 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:22:01 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:22:01 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:22:01 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:22:01 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:22:01 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:22:01 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:22:01 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:22:01 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:22:01 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:22:01 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:22:01 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:22:01 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:22:01 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:22:01 --> Session Class Initialized +DEBUG - 2012-01-16 01:22:01 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:22:01 --> Session routines successfully run +DEBUG - 2012-01-16 01:22:01 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:22:01 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:22:01 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:02 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:02 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:02 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:02 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:02 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:02 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:02 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:02 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:02 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:02 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:02 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:02 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:02 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:02 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:02 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:02 --> Controller Class Initialized +DEBUG - 2012-01-16 01:22:02 --> Config Class Initialized +DEBUG - 2012-01-16 01:22:02 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:22:02 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:22:02 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:22:02 --> URI Class Initialized +DEBUG - 2012-01-16 01:22:02 --> Router Class Initialized +DEBUG - 2012-01-16 01:22:02 --> Output Class Initialized +DEBUG - 2012-01-16 01:22:02 --> Security Class Initialized +DEBUG - 2012-01-16 01:22:02 --> Input Class Initialized +DEBUG - 2012-01-16 01:22:02 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:22:02 --> Language Class Initialized +DEBUG - 2012-01-16 01:22:02 --> Loader Class Initialized +DEBUG - 2012-01-16 01:22:02 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:22:02 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:22:02 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:22:02 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:22:02 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:22:02 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:22:02 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:22:02 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:22:02 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:22:02 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:22:02 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:22:02 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:22:02 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:22:02 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:22:02 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:22:02 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:22:02 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:22:02 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:22:02 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:22:02 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:22:02 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:22:02 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:22:02 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:22:02 --> Session Class Initialized +DEBUG - 2012-01-16 01:22:02 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:22:02 --> Session routines successfully run +DEBUG - 2012-01-16 01:22:02 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:22:02 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:22:02 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:02 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:02 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:02 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:02 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:02 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:02 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:02 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:02 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:02 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:02 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:02 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:02 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:02 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:02 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:02 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:02 --> Controller Class Initialized +DEBUG - 2012-01-16 01:22:15 --> Config Class Initialized +DEBUG - 2012-01-16 01:22:15 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:22:15 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:22:15 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:22:15 --> URI Class Initialized +DEBUG - 2012-01-16 01:22:15 --> Router Class Initialized +DEBUG - 2012-01-16 01:22:15 --> Output Class Initialized +DEBUG - 2012-01-16 01:22:15 --> Security Class Initialized +DEBUG - 2012-01-16 01:22:15 --> Input Class Initialized +DEBUG - 2012-01-16 01:22:15 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:22:15 --> Language Class Initialized +DEBUG - 2012-01-16 01:22:15 --> Loader Class Initialized +DEBUG - 2012-01-16 01:22:15 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:22:15 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:22:15 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:22:15 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:22:15 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:22:15 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:22:15 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:22:15 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:22:15 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:22:15 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:22:15 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:22:15 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:22:15 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:22:15 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:22:15 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:22:15 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:22:15 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:22:15 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:22:15 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:22:15 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:22:15 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:22:15 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:22:15 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:22:15 --> Session Class Initialized +DEBUG - 2012-01-16 01:22:15 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:22:15 --> Session routines successfully run +DEBUG - 2012-01-16 01:22:15 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:22:15 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:22:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:15 --> Controller Class Initialized +DEBUG - 2012-01-16 01:22:17 --> Config Class Initialized +DEBUG - 2012-01-16 01:22:17 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:22:17 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:22:17 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:22:17 --> URI Class Initialized +DEBUG - 2012-01-16 01:22:17 --> Router Class Initialized +ERROR - 2012-01-16 01:22:17 --> Severity: Warning --> parse_url(/giftcards/view/-1/width:360/random:1326676973710) [function.parse-url]: Unable to parse URL C:\webroot\CodeIgniter_2.1.0\system\core\URI.php 219 +DEBUG - 2012-01-16 01:22:17 --> Output Class Initialized +DEBUG - 2012-01-16 01:22:17 --> Security Class Initialized +DEBUG - 2012-01-16 01:22:17 --> Input Class Initialized +DEBUG - 2012-01-16 01:22:17 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:22:17 --> Language Class Initialized +DEBUG - 2012-01-16 01:22:17 --> Loader Class Initialized +DEBUG - 2012-01-16 01:22:17 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:22:17 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:22:17 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:22:17 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:22:17 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:22:17 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:22:17 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:22:17 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:22:17 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:22:17 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:22:17 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:22:17 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:22:17 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:22:17 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:22:17 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:22:18 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:22:18 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:22:18 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:22:18 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:22:18 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:22:18 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:22:18 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:22:18 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:22:18 --> Session Class Initialized +DEBUG - 2012-01-16 01:22:18 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:22:18 --> Session routines successfully run +DEBUG - 2012-01-16 01:22:18 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:22:18 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:22:18 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:18 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:18 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:18 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:18 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:18 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:18 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:18 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:18 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:18 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:18 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:18 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:18 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:18 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:18 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:18 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:18 --> Controller Class Initialized +DEBUG - 2012-01-16 01:22:25 --> Config Class Initialized +DEBUG - 2012-01-16 01:22:25 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:22:25 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:22:25 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:22:25 --> URI Class Initialized +DEBUG - 2012-01-16 01:22:25 --> Router Class Initialized +DEBUG - 2012-01-16 01:22:25 --> Output Class Initialized +DEBUG - 2012-01-16 01:22:25 --> Security Class Initialized +DEBUG - 2012-01-16 01:22:25 --> Input Class Initialized +DEBUG - 2012-01-16 01:22:25 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:22:25 --> Language Class Initialized +DEBUG - 2012-01-16 01:22:25 --> Loader Class Initialized +DEBUG - 2012-01-16 01:22:25 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:22:25 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:22:25 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:22:25 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:22:25 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:22:25 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:22:25 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:22:25 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:22:25 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:22:25 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:22:25 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:22:25 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:22:25 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:22:25 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:22:25 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:22:25 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:22:25 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:22:25 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:22:25 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:22:25 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:22:25 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:22:25 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:22:25 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:22:25 --> Session Class Initialized +DEBUG - 2012-01-16 01:22:25 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:22:25 --> Session routines successfully run +DEBUG - 2012-01-16 01:22:25 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:22:25 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:22:25 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:25 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:25 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:25 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:25 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:25 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:25 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:25 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:25 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:25 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:25 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:25 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:25 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:26 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:26 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:26 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:26 --> Controller Class Initialized +DEBUG - 2012-01-16 01:22:37 --> Config Class Initialized +DEBUG - 2012-01-16 01:22:37 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:22:37 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:22:37 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:22:37 --> URI Class Initialized +DEBUG - 2012-01-16 01:22:37 --> Router Class Initialized +ERROR - 2012-01-16 01:22:37 --> Severity: Warning --> parse_url(/items/view/-1/width:360/random:1326676993576) [function.parse-url]: Unable to parse URL C:\webroot\CodeIgniter_2.1.0\system\core\URI.php 219 +DEBUG - 2012-01-16 01:22:37 --> Output Class Initialized +DEBUG - 2012-01-16 01:22:37 --> Security Class Initialized +DEBUG - 2012-01-16 01:22:37 --> Input Class Initialized +DEBUG - 2012-01-16 01:22:37 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:22:37 --> Language Class Initialized +DEBUG - 2012-01-16 01:22:37 --> Loader Class Initialized +DEBUG - 2012-01-16 01:22:37 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:22:37 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:22:37 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:22:37 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:22:37 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:22:37 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:22:37 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:22:37 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:22:37 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:22:37 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:22:37 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:22:37 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:22:37 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:22:37 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:22:37 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:22:37 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:22:37 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:22:37 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:22:37 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:22:37 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:22:37 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:22:37 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:22:37 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:22:37 --> Session Class Initialized +DEBUG - 2012-01-16 01:22:37 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:22:37 --> Session routines successfully run +DEBUG - 2012-01-16 01:22:37 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:22:37 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:22:37 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:37 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:38 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:38 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:38 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:38 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:38 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:38 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:38 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:38 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:38 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:38 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:38 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:38 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:38 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:38 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:38 --> Controller Class Initialized +DEBUG - 2012-01-16 01:22:38 --> Config Class Initialized +DEBUG - 2012-01-16 01:22:38 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:22:38 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:22:38 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:22:38 --> URI Class Initialized +DEBUG - 2012-01-16 01:22:38 --> Router Class Initialized +DEBUG - 2012-01-16 01:22:38 --> Output Class Initialized +DEBUG - 2012-01-16 01:22:38 --> Security Class Initialized +DEBUG - 2012-01-16 01:22:38 --> Input Class Initialized +DEBUG - 2012-01-16 01:22:38 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:22:38 --> Language Class Initialized +DEBUG - 2012-01-16 01:22:38 --> Loader Class Initialized +DEBUG - 2012-01-16 01:22:38 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:22:38 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:22:38 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:22:38 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:22:38 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:22:38 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:22:38 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:22:38 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:22:38 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:22:38 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:22:38 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:22:38 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:22:38 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:22:38 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:22:38 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:22:38 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:22:38 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:22:38 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:22:38 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:22:38 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:22:38 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:22:38 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:22:38 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:22:38 --> Session Class Initialized +DEBUG - 2012-01-16 01:22:38 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:22:38 --> Session routines successfully run +DEBUG - 2012-01-16 01:22:38 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:22:38 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:22:38 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:38 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:38 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:38 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:38 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:38 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:38 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:38 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:38 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:38 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:38 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:38 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:38 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:38 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:38 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:38 --> Model Class Initialized +DEBUG - 2012-01-16 01:22:38 --> Controller Class Initialized +DEBUG - 2012-01-16 01:23:34 --> Config Class Initialized +DEBUG - 2012-01-16 01:23:34 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:23:34 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:23:34 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:23:34 --> URI Class Initialized +DEBUG - 2012-01-16 01:23:34 --> Router Class Initialized +DEBUG - 2012-01-16 01:23:34 --> Output Class Initialized +DEBUG - 2012-01-16 01:23:34 --> Security Class Initialized +DEBUG - 2012-01-16 01:23:34 --> Input Class Initialized +DEBUG - 2012-01-16 01:23:34 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:23:34 --> Language Class Initialized +DEBUG - 2012-01-16 01:23:34 --> Loader Class Initialized +DEBUG - 2012-01-16 01:23:34 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:23:34 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:23:34 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:23:34 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:23:34 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:23:34 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:23:34 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:23:34 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:23:34 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:23:34 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:23:34 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:23:34 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:23:34 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:23:34 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:23:34 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:23:34 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:23:34 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:23:34 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:23:34 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:23:34 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:23:34 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:23:34 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:23:34 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:23:34 --> Session Class Initialized +DEBUG - 2012-01-16 01:23:34 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:23:34 --> Session routines successfully run +DEBUG - 2012-01-16 01:23:34 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:23:34 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:23:34 --> Model Class Initialized +DEBUG - 2012-01-16 01:23:34 --> Model Class Initialized +DEBUG - 2012-01-16 01:23:34 --> Model Class Initialized +DEBUG - 2012-01-16 01:23:34 --> Model Class Initialized +DEBUG - 2012-01-16 01:23:34 --> Model Class Initialized +DEBUG - 2012-01-16 01:23:34 --> Model Class Initialized +DEBUG - 2012-01-16 01:23:34 --> Model Class Initialized +DEBUG - 2012-01-16 01:23:34 --> Model Class Initialized +DEBUG - 2012-01-16 01:23:34 --> Model Class Initialized +DEBUG - 2012-01-16 01:23:34 --> Model Class Initialized +DEBUG - 2012-01-16 01:23:34 --> Model Class Initialized +DEBUG - 2012-01-16 01:23:34 --> Model Class Initialized +DEBUG - 2012-01-16 01:23:34 --> Model Class Initialized +DEBUG - 2012-01-16 01:23:34 --> Model Class Initialized +DEBUG - 2012-01-16 01:23:34 --> Model Class Initialized +DEBUG - 2012-01-16 01:23:34 --> Model Class Initialized +DEBUG - 2012-01-16 01:23:34 --> Controller Class Initialized +DEBUG - 2012-01-16 01:23:35 --> Config Class Initialized +DEBUG - 2012-01-16 01:23:35 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:23:35 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:23:35 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:23:35 --> URI Class Initialized +DEBUG - 2012-01-16 01:23:35 --> Router Class Initialized +ERROR - 2012-01-16 01:23:35 --> Severity: Warning --> parse_url(/giftcards/view/-1/width:360/random:1326677051729) [function.parse-url]: Unable to parse URL C:\webroot\CodeIgniter_2.1.0\system\core\URI.php 219 +DEBUG - 2012-01-16 01:23:35 --> Output Class Initialized +DEBUG - 2012-01-16 01:23:35 --> Security Class Initialized +DEBUG - 2012-01-16 01:23:35 --> Input Class Initialized +DEBUG - 2012-01-16 01:23:35 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:23:35 --> Language Class Initialized +DEBUG - 2012-01-16 01:23:35 --> Loader Class Initialized +DEBUG - 2012-01-16 01:23:35 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:23:35 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:23:35 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:23:35 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:23:35 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:23:35 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:23:35 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:23:35 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:23:35 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:23:35 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:23:35 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:23:35 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:23:35 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:23:35 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:23:35 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:23:35 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:23:35 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:23:35 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:23:35 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:23:35 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:23:35 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:23:36 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:23:36 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:23:36 --> Session Class Initialized +DEBUG - 2012-01-16 01:23:36 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:23:36 --> Session routines successfully run +DEBUG - 2012-01-16 01:23:36 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:23:36 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:23:36 --> Model Class Initialized +DEBUG - 2012-01-16 01:23:36 --> Model Class Initialized +DEBUG - 2012-01-16 01:23:36 --> Model Class Initialized +DEBUG - 2012-01-16 01:23:36 --> Model Class Initialized +DEBUG - 2012-01-16 01:23:36 --> Model Class Initialized +DEBUG - 2012-01-16 01:23:36 --> Model Class Initialized +DEBUG - 2012-01-16 01:23:36 --> Model Class Initialized +DEBUG - 2012-01-16 01:23:36 --> Model Class Initialized +DEBUG - 2012-01-16 01:23:36 --> Model Class Initialized +DEBUG - 2012-01-16 01:23:36 --> Model Class Initialized +DEBUG - 2012-01-16 01:23:36 --> Model Class Initialized +DEBUG - 2012-01-16 01:23:36 --> Model Class Initialized +DEBUG - 2012-01-16 01:23:36 --> Model Class Initialized +DEBUG - 2012-01-16 01:23:36 --> Model Class Initialized +DEBUG - 2012-01-16 01:23:36 --> Model Class Initialized +DEBUG - 2012-01-16 01:23:36 --> Model Class Initialized +DEBUG - 2012-01-16 01:23:36 --> Controller Class Initialized +DEBUG - 2012-01-16 01:26:03 --> Config Class Initialized +DEBUG - 2012-01-16 01:26:03 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:26:03 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:26:03 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:26:03 --> URI Class Initialized +DEBUG - 2012-01-16 01:26:03 --> Router Class Initialized +DEBUG - 2012-01-16 01:26:03 --> Output Class Initialized +DEBUG - 2012-01-16 01:26:03 --> Security Class Initialized +DEBUG - 2012-01-16 01:26:03 --> Input Class Initialized +DEBUG - 2012-01-16 01:26:03 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:26:03 --> Language Class Initialized +DEBUG - 2012-01-16 01:26:03 --> Loader Class Initialized +DEBUG - 2012-01-16 01:26:03 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:26:03 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:26:03 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:26:03 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:26:03 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:26:03 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:26:03 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:26:03 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:26:03 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:26:03 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:26:03 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:26:03 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:26:03 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:26:03 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:26:03 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:26:03 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:26:03 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:26:03 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:26:03 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:26:03 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:26:03 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:26:03 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:26:03 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:26:03 --> Session Class Initialized +DEBUG - 2012-01-16 01:26:03 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:26:03 --> Session routines successfully run +DEBUG - 2012-01-16 01:26:03 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:26:03 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:26:03 --> Model Class Initialized +DEBUG - 2012-01-16 01:26:03 --> Model Class Initialized +DEBUG - 2012-01-16 01:26:03 --> Model Class Initialized +DEBUG - 2012-01-16 01:26:03 --> Model Class Initialized +DEBUG - 2012-01-16 01:26:03 --> Model Class Initialized +DEBUG - 2012-01-16 01:26:03 --> Model Class Initialized +DEBUG - 2012-01-16 01:26:03 --> Model Class Initialized +DEBUG - 2012-01-16 01:26:03 --> Model Class Initialized +DEBUG - 2012-01-16 01:26:03 --> Model Class Initialized +DEBUG - 2012-01-16 01:26:03 --> Model Class Initialized +DEBUG - 2012-01-16 01:26:03 --> Model Class Initialized +DEBUG - 2012-01-16 01:26:03 --> Model Class Initialized +DEBUG - 2012-01-16 01:26:03 --> Model Class Initialized +DEBUG - 2012-01-16 01:26:03 --> Model Class Initialized +DEBUG - 2012-01-16 01:26:03 --> Model Class Initialized +DEBUG - 2012-01-16 01:26:03 --> Model Class Initialized +DEBUG - 2012-01-16 01:26:03 --> Controller Class Initialized +DEBUG - 2012-01-16 01:26:06 --> Config Class Initialized +DEBUG - 2012-01-16 01:26:06 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:26:06 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:26:06 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:26:06 --> URI Class Initialized +DEBUG - 2012-01-16 01:26:06 --> Router Class Initialized +DEBUG - 2012-01-16 01:26:06 --> Output Class Initialized +DEBUG - 2012-01-16 01:26:06 --> Security Class Initialized +DEBUG - 2012-01-16 01:26:06 --> Input Class Initialized +DEBUG - 2012-01-16 01:26:06 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:26:06 --> Language Class Initialized +DEBUG - 2012-01-16 01:26:06 --> Loader Class Initialized +DEBUG - 2012-01-16 01:26:06 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:26:06 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:26:06 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:26:06 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:26:06 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:26:06 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:26:06 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:26:06 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:26:06 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:26:06 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:26:06 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:26:06 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:26:06 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:26:06 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:26:06 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:26:06 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:26:06 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:26:06 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:26:06 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:26:06 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:26:06 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:26:06 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:26:06 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:26:06 --> Session Class Initialized +DEBUG - 2012-01-16 01:26:06 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:26:06 --> Session routines successfully run +DEBUG - 2012-01-16 01:26:06 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:26:06 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:26:06 --> Model Class Initialized +DEBUG - 2012-01-16 01:26:06 --> Model Class Initialized +DEBUG - 2012-01-16 01:26:06 --> Model Class Initialized +DEBUG - 2012-01-16 01:26:06 --> Model Class Initialized +DEBUG - 2012-01-16 01:26:06 --> Model Class Initialized +DEBUG - 2012-01-16 01:26:06 --> Model Class Initialized +DEBUG - 2012-01-16 01:26:06 --> Model Class Initialized +DEBUG - 2012-01-16 01:26:06 --> Model Class Initialized +DEBUG - 2012-01-16 01:26:06 --> Model Class Initialized +DEBUG - 2012-01-16 01:26:06 --> Model Class Initialized +DEBUG - 2012-01-16 01:26:06 --> Model Class Initialized +DEBUG - 2012-01-16 01:26:06 --> Model Class Initialized +DEBUG - 2012-01-16 01:26:06 --> Model Class Initialized +DEBUG - 2012-01-16 01:26:06 --> Model Class Initialized +DEBUG - 2012-01-16 01:26:06 --> Model Class Initialized +DEBUG - 2012-01-16 01:26:06 --> Model Class Initialized +DEBUG - 2012-01-16 01:26:06 --> Controller Class Initialized +DEBUG - 2012-01-16 01:26:08 --> Config Class Initialized +DEBUG - 2012-01-16 01:26:08 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:26:08 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:26:08 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:26:08 --> URI Class Initialized +DEBUG - 2012-01-16 01:26:08 --> Router Class Initialized +ERROR - 2012-01-16 01:26:08 --> Severity: Warning --> parse_url(/giftcards/view/-1/width:360/random:1326677204457) [function.parse-url]: Unable to parse URL C:\webroot\CodeIgniter_2.1.0\system\core\URI.php 219 +DEBUG - 2012-01-16 01:26:08 --> Output Class Initialized +DEBUG - 2012-01-16 01:26:08 --> Security Class Initialized +DEBUG - 2012-01-16 01:26:08 --> Input Class Initialized +DEBUG - 2012-01-16 01:26:08 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:26:08 --> Language Class Initialized +DEBUG - 2012-01-16 01:26:08 --> Loader Class Initialized +DEBUG - 2012-01-16 01:26:08 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:26:08 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:26:08 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:26:08 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:26:08 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:26:08 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:26:08 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:26:08 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:26:08 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:26:08 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:26:08 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:26:08 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:26:08 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:26:08 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:26:08 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:26:08 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:26:08 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:26:08 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:26:08 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:26:08 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:26:08 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:26:08 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:26:08 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:26:08 --> Session Class Initialized +DEBUG - 2012-01-16 01:26:08 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:26:08 --> Session routines successfully run +DEBUG - 2012-01-16 01:26:08 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:26:08 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:26:08 --> Model Class Initialized +DEBUG - 2012-01-16 01:26:08 --> Model Class Initialized +DEBUG - 2012-01-16 01:26:08 --> Model Class Initialized +DEBUG - 2012-01-16 01:26:08 --> Model Class Initialized +DEBUG - 2012-01-16 01:26:08 --> Model Class Initialized +DEBUG - 2012-01-16 01:26:08 --> Model Class Initialized +DEBUG - 2012-01-16 01:26:08 --> Model Class Initialized +DEBUG - 2012-01-16 01:26:08 --> Model Class Initialized +DEBUG - 2012-01-16 01:26:08 --> Model Class Initialized +DEBUG - 2012-01-16 01:26:08 --> Model Class Initialized +DEBUG - 2012-01-16 01:26:08 --> Model Class Initialized +DEBUG - 2012-01-16 01:26:08 --> Model Class Initialized +DEBUG - 2012-01-16 01:26:08 --> Model Class Initialized +DEBUG - 2012-01-16 01:26:08 --> Model Class Initialized +DEBUG - 2012-01-16 01:26:08 --> Model Class Initialized +DEBUG - 2012-01-16 01:26:08 --> Model Class Initialized +DEBUG - 2012-01-16 01:26:08 --> Controller Class Initialized +DEBUG - 2012-01-16 01:34:58 --> Config Class Initialized +DEBUG - 2012-01-16 01:34:58 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:34:58 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:34:58 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:34:58 --> URI Class Initialized +DEBUG - 2012-01-16 01:34:58 --> Router Class Initialized +DEBUG - 2012-01-16 01:34:58 --> Output Class Initialized +DEBUG - 2012-01-16 01:34:58 --> Security Class Initialized +DEBUG - 2012-01-16 01:34:58 --> Input Class Initialized +DEBUG - 2012-01-16 01:34:58 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:34:58 --> Language Class Initialized +DEBUG - 2012-01-16 01:34:58 --> Loader Class Initialized +DEBUG - 2012-01-16 01:34:58 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:34:58 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:34:58 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:34:58 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:34:58 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:34:58 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:34:58 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:34:58 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:34:58 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:34:58 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:34:58 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:34:58 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:34:58 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:34:58 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:34:58 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:34:58 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:34:58 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:34:58 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:34:58 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:34:58 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:34:58 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:34:58 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:34:58 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:34:58 --> Session Class Initialized +DEBUG - 2012-01-16 01:34:58 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:34:58 --> Session routines successfully run +DEBUG - 2012-01-16 01:34:58 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:34:58 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:34:58 --> Model Class Initialized +DEBUG - 2012-01-16 01:34:58 --> Model Class Initialized +DEBUG - 2012-01-16 01:34:58 --> Model Class Initialized +DEBUG - 2012-01-16 01:34:58 --> Model Class Initialized +DEBUG - 2012-01-16 01:34:58 --> Model Class Initialized +DEBUG - 2012-01-16 01:34:58 --> Model Class Initialized +DEBUG - 2012-01-16 01:34:58 --> Model Class Initialized +DEBUG - 2012-01-16 01:34:58 --> Model Class Initialized +DEBUG - 2012-01-16 01:34:58 --> Model Class Initialized +DEBUG - 2012-01-16 01:34:58 --> Model Class Initialized +DEBUG - 2012-01-16 01:34:58 --> Model Class Initialized +DEBUG - 2012-01-16 01:34:58 --> Model Class Initialized +DEBUG - 2012-01-16 01:34:58 --> Model Class Initialized +DEBUG - 2012-01-16 01:34:58 --> Model Class Initialized +DEBUG - 2012-01-16 01:34:58 --> Model Class Initialized +DEBUG - 2012-01-16 01:34:58 --> Model Class Initialized +DEBUG - 2012-01-16 01:34:58 --> Controller Class Initialized +DEBUG - 2012-01-16 01:34:59 --> Config Class Initialized +DEBUG - 2012-01-16 01:34:59 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:34:59 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:34:59 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:34:59 --> URI Class Initialized +DEBUG - 2012-01-16 01:34:59 --> Router Class Initialized +ERROR - 2012-01-16 01:34:59 --> Severity: Warning --> parse_url(/giftcards/view/-1/width:360/random:1326677736165) [function.parse-url]: Unable to parse URL C:\webroot\CodeIgniter_2.1.0\system\core\URI.php 219 +DEBUG - 2012-01-16 01:34:59 --> Output Class Initialized +DEBUG - 2012-01-16 01:34:59 --> Security Class Initialized +DEBUG - 2012-01-16 01:34:59 --> Input Class Initialized +DEBUG - 2012-01-16 01:34:59 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:34:59 --> Language Class Initialized +DEBUG - 2012-01-16 01:34:59 --> Loader Class Initialized +DEBUG - 2012-01-16 01:34:59 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:34:59 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:34:59 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:34:59 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:34:59 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:34:59 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:34:59 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:34:59 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:34:59 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:34:59 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:34:59 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:34:59 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:34:59 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:34:59 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:34:59 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:34:59 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:34:59 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:34:59 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:34:59 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:34:59 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:34:59 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:34:59 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:34:59 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:34:59 --> Session Class Initialized +DEBUG - 2012-01-16 01:34:59 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:34:59 --> Session routines successfully run +DEBUG - 2012-01-16 01:34:59 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:34:59 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:34:59 --> Model Class Initialized +DEBUG - 2012-01-16 01:34:59 --> Model Class Initialized +DEBUG - 2012-01-16 01:34:59 --> Model Class Initialized +DEBUG - 2012-01-16 01:34:59 --> Model Class Initialized +DEBUG - 2012-01-16 01:34:59 --> Model Class Initialized +DEBUG - 2012-01-16 01:34:59 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:00 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:00 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:00 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:00 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:00 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:00 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:00 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:00 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:00 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:00 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:00 --> Controller Class Initialized +DEBUG - 2012-01-16 01:35:12 --> Config Class Initialized +DEBUG - 2012-01-16 01:35:12 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:35:12 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:35:12 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:35:12 --> URI Class Initialized +DEBUG - 2012-01-16 01:35:12 --> Router Class Initialized +DEBUG - 2012-01-16 01:35:12 --> Output Class Initialized +DEBUG - 2012-01-16 01:35:12 --> Security Class Initialized +DEBUG - 2012-01-16 01:35:12 --> Input Class Initialized +DEBUG - 2012-01-16 01:35:12 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:35:12 --> Language Class Initialized +DEBUG - 2012-01-16 01:35:12 --> Loader Class Initialized +DEBUG - 2012-01-16 01:35:12 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:35:12 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:35:12 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:35:12 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:35:12 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:35:12 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:35:12 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:35:12 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:35:12 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:35:12 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:35:12 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:35:12 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:35:12 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:35:12 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:35:12 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:35:12 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:35:12 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:35:12 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:35:12 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:35:12 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:35:12 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:35:12 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:35:12 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:35:12 --> Session Class Initialized +DEBUG - 2012-01-16 01:35:12 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:35:12 --> Session routines successfully run +DEBUG - 2012-01-16 01:35:12 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:35:12 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:35:12 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:12 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:12 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:12 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:12 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:12 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:12 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:12 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:12 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:12 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:12 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:12 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:12 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:12 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:12 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:12 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:12 --> Controller Class Initialized +DEBUG - 2012-01-16 01:35:19 --> Config Class Initialized +DEBUG - 2012-01-16 01:35:19 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:35:19 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:35:19 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:35:19 --> URI Class Initialized +DEBUG - 2012-01-16 01:35:19 --> Router Class Initialized +DEBUG - 2012-01-16 01:35:19 --> Output Class Initialized +DEBUG - 2012-01-16 01:35:19 --> Security Class Initialized +DEBUG - 2012-01-16 01:35:19 --> Input Class Initialized +DEBUG - 2012-01-16 01:35:19 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:35:19 --> Language Class Initialized +DEBUG - 2012-01-16 01:35:19 --> Loader Class Initialized +DEBUG - 2012-01-16 01:35:19 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:35:19 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:35:19 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:35:19 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:35:19 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:35:19 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:35:19 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:35:19 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:35:19 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:35:19 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:35:19 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:35:19 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:35:19 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:35:19 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:35:19 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:35:19 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:35:19 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:35:19 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:35:19 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:35:19 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:35:19 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:35:19 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:35:19 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:35:19 --> Session Class Initialized +DEBUG - 2012-01-16 01:35:19 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:35:19 --> Session routines successfully run +DEBUG - 2012-01-16 01:35:19 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:35:19 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:35:19 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:19 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:19 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:19 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:19 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:19 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:19 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:19 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:19 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:19 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:19 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:19 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:19 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:19 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:19 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:19 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:19 --> Controller Class Initialized +DEBUG - 2012-01-16 01:35:20 --> Config Class Initialized +DEBUG - 2012-01-16 01:35:20 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:35:20 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:35:20 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:35:20 --> URI Class Initialized +DEBUG - 2012-01-16 01:35:20 --> Router Class Initialized +DEBUG - 2012-01-16 01:35:20 --> Output Class Initialized +DEBUG - 2012-01-16 01:35:20 --> Security Class Initialized +DEBUG - 2012-01-16 01:35:20 --> Input Class Initialized +DEBUG - 2012-01-16 01:35:20 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:35:20 --> Language Class Initialized +DEBUG - 2012-01-16 01:35:20 --> Loader Class Initialized +DEBUG - 2012-01-16 01:35:20 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:35:20 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:35:20 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:35:20 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:35:20 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:35:20 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:35:20 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:35:20 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:35:20 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:35:20 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:35:20 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:35:20 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:35:20 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:35:20 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:35:20 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:35:20 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:35:20 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:35:20 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:35:20 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:35:20 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:35:20 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:35:20 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:35:20 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:35:20 --> Session Class Initialized +DEBUG - 2012-01-16 01:35:20 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:35:20 --> Session routines successfully run +DEBUG - 2012-01-16 01:35:20 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:35:21 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:35:21 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:21 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:21 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:21 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:21 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:21 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:21 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:21 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:21 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:21 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:21 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:21 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:21 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:21 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:21 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:21 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:21 --> Controller Class Initialized +DEBUG - 2012-01-16 01:35:22 --> Config Class Initialized +DEBUG - 2012-01-16 01:35:22 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:35:22 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:35:22 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:35:22 --> URI Class Initialized +DEBUG - 2012-01-16 01:35:22 --> Router Class Initialized +ERROR - 2012-01-16 01:35:22 --> Severity: Warning --> parse_url(/giftcards/view/-1/width:360/random:1326677758649) [function.parse-url]: Unable to parse URL C:\webroot\CodeIgniter_2.1.0\system\core\URI.php 219 +DEBUG - 2012-01-16 01:35:22 --> Output Class Initialized +DEBUG - 2012-01-16 01:35:22 --> Security Class Initialized +DEBUG - 2012-01-16 01:35:22 --> Input Class Initialized +DEBUG - 2012-01-16 01:35:22 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:35:22 --> Language Class Initialized +DEBUG - 2012-01-16 01:35:22 --> Loader Class Initialized +DEBUG - 2012-01-16 01:35:22 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:35:22 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:35:22 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:35:22 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:35:22 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:35:22 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:35:22 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:35:22 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:35:22 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:35:22 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:35:22 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:35:22 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:35:22 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:35:22 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:35:22 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:35:22 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:35:22 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:35:22 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:35:22 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:35:22 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:35:22 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:35:22 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:35:22 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:35:22 --> Session Class Initialized +DEBUG - 2012-01-16 01:35:22 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:35:22 --> Session routines successfully run +DEBUG - 2012-01-16 01:35:22 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:35:22 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:35:22 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:22 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:22 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:22 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:22 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:22 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:22 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:22 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:22 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:22 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:22 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:22 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:22 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:22 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:22 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:22 --> Model Class Initialized +DEBUG - 2012-01-16 01:35:22 --> Controller Class Initialized +DEBUG - 2012-01-16 01:36:28 --> Config Class Initialized +DEBUG - 2012-01-16 01:36:28 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:36:28 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:36:28 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:36:28 --> URI Class Initialized +DEBUG - 2012-01-16 01:36:28 --> Router Class Initialized +DEBUG - 2012-01-16 01:36:28 --> Output Class Initialized +DEBUG - 2012-01-16 01:36:28 --> Security Class Initialized +DEBUG - 2012-01-16 01:36:28 --> Input Class Initialized +DEBUG - 2012-01-16 01:36:28 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:36:28 --> Language Class Initialized +DEBUG - 2012-01-16 01:36:28 --> Loader Class Initialized +DEBUG - 2012-01-16 01:36:28 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:36:28 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:36:28 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:36:28 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:36:28 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:36:28 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:36:28 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:36:28 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:36:29 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:36:29 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:36:29 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:36:29 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:36:29 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:36:29 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:36:29 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:36:29 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:36:29 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:36:29 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:36:29 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:36:29 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:36:29 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:36:29 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:36:29 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:36:29 --> Session Class Initialized +DEBUG - 2012-01-16 01:36:29 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:36:29 --> Session routines successfully run +DEBUG - 2012-01-16 01:36:29 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:36:29 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:36:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:29 --> Controller Class Initialized +DEBUG - 2012-01-16 01:36:31 --> Config Class Initialized +DEBUG - 2012-01-16 01:36:31 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:36:31 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:36:31 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:36:31 --> URI Class Initialized +DEBUG - 2012-01-16 01:36:31 --> Router Class Initialized +DEBUG - 2012-01-16 01:36:31 --> Output Class Initialized +DEBUG - 2012-01-16 01:36:31 --> Security Class Initialized +DEBUG - 2012-01-16 01:36:31 --> Input Class Initialized +DEBUG - 2012-01-16 01:36:31 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:36:31 --> Language Class Initialized +DEBUG - 2012-01-16 01:36:31 --> Loader Class Initialized +DEBUG - 2012-01-16 01:36:31 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:36:31 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:36:31 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:36:31 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:36:31 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:36:31 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:36:31 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:36:31 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:36:31 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:36:31 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:36:31 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:36:31 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:36:31 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:36:31 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:36:31 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:36:31 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:36:31 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:36:31 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:36:31 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:36:31 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:36:31 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:36:31 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:36:31 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:36:31 --> Session Class Initialized +DEBUG - 2012-01-16 01:36:31 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:36:31 --> Session routines successfully run +DEBUG - 2012-01-16 01:36:32 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:36:32 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:36:32 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:32 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:32 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:32 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:32 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:32 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:32 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:32 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:32 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:32 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:32 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:32 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:32 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:32 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:32 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:32 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:32 --> Controller Class Initialized +DEBUG - 2012-01-16 01:36:33 --> Config Class Initialized +DEBUG - 2012-01-16 01:36:33 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:36:33 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:36:33 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:36:33 --> URI Class Initialized +DEBUG - 2012-01-16 01:36:33 --> Router Class Initialized +ERROR - 2012-01-16 01:36:33 --> Severity: Warning --> parse_url(/giftcards/view/-1/width:360/random:1326677829806) [function.parse-url]: Unable to parse URL C:\webroot\CodeIgniter_2.1.0\system\core\URI.php 219 +DEBUG - 2012-01-16 01:36:33 --> Output Class Initialized +DEBUG - 2012-01-16 01:36:33 --> Security Class Initialized +DEBUG - 2012-01-16 01:36:33 --> Input Class Initialized +DEBUG - 2012-01-16 01:36:33 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:36:33 --> Language Class Initialized +DEBUG - 2012-01-16 01:36:33 --> Loader Class Initialized +DEBUG - 2012-01-16 01:36:33 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:36:33 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:36:33 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:36:33 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:36:33 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:36:33 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:36:33 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:36:33 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:36:33 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:36:33 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:36:33 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:36:33 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:36:33 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:36:33 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:36:33 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:36:33 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:36:33 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:36:33 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:36:33 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:36:33 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:36:33 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:36:33 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:36:33 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:36:33 --> Session Class Initialized +DEBUG - 2012-01-16 01:36:33 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:36:33 --> Session routines successfully run +DEBUG - 2012-01-16 01:36:33 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:36:33 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:36:33 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:33 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:33 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:33 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:33 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:33 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:33 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:33 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:33 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:33 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:33 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:33 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:33 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:33 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:33 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:33 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:33 --> Controller Class Initialized +DEBUG - 2012-01-16 01:36:44 --> Config Class Initialized +DEBUG - 2012-01-16 01:36:44 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:36:44 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:36:44 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:36:44 --> URI Class Initialized +DEBUG - 2012-01-16 01:36:44 --> Router Class Initialized +DEBUG - 2012-01-16 01:36:44 --> Output Class Initialized +DEBUG - 2012-01-16 01:36:44 --> Security Class Initialized +DEBUG - 2012-01-16 01:36:44 --> Input Class Initialized +DEBUG - 2012-01-16 01:36:44 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:36:44 --> Language Class Initialized +DEBUG - 2012-01-16 01:36:44 --> Loader Class Initialized +DEBUG - 2012-01-16 01:36:44 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:36:44 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:36:44 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:36:44 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:36:44 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:36:44 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:36:44 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:36:44 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:36:44 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:36:44 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:36:44 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:36:44 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:36:44 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:36:44 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:36:44 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:36:44 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:36:44 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:36:44 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:36:44 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:36:44 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:36:44 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:36:44 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:36:44 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:36:44 --> Session Class Initialized +DEBUG - 2012-01-16 01:36:44 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:36:44 --> Session routines successfully run +DEBUG - 2012-01-16 01:36:44 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:36:44 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:36:44 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:44 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:44 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:44 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:44 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:44 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:44 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:44 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:44 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:44 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:44 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:44 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:44 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:44 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:44 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:44 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:44 --> Controller Class Initialized +DEBUG - 2012-01-16 01:36:46 --> Config Class Initialized +DEBUG - 2012-01-16 01:36:46 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:36:46 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:36:46 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:36:46 --> URI Class Initialized +DEBUG - 2012-01-16 01:36:46 --> Router Class Initialized +DEBUG - 2012-01-16 01:36:46 --> Output Class Initialized +DEBUG - 2012-01-16 01:36:46 --> Security Class Initialized +DEBUG - 2012-01-16 01:36:46 --> Input Class Initialized +DEBUG - 2012-01-16 01:36:46 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:36:46 --> Language Class Initialized +DEBUG - 2012-01-16 01:36:46 --> Loader Class Initialized +DEBUG - 2012-01-16 01:36:46 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:36:46 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:36:46 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:36:46 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:36:46 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:36:46 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:36:46 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:36:46 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:36:46 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:36:46 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:36:46 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:36:46 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:36:46 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:36:46 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:36:46 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:36:46 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:36:46 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:36:46 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:36:46 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:36:46 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:36:46 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:36:46 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:36:46 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:36:46 --> Session Class Initialized +DEBUG - 2012-01-16 01:36:46 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:36:46 --> Session routines successfully run +DEBUG - 2012-01-16 01:36:46 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:36:46 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:36:46 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:46 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:46 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:46 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:46 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:46 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:47 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:47 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:47 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:47 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:47 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:47 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:47 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:47 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:47 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:47 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:47 --> Controller Class Initialized +DEBUG - 2012-01-16 01:36:48 --> Config Class Initialized +DEBUG - 2012-01-16 01:36:48 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:36:48 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:36:48 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:36:48 --> URI Class Initialized +DEBUG - 2012-01-16 01:36:48 --> Router Class Initialized +ERROR - 2012-01-16 01:36:48 --> Severity: Warning --> parse_url(/giftcards/view/-1/width:360/random:1326677844882) [function.parse-url]: Unable to parse URL C:\webroot\CodeIgniter_2.1.0\system\core\URI.php 219 +DEBUG - 2012-01-16 01:36:48 --> Output Class Initialized +DEBUG - 2012-01-16 01:36:48 --> Security Class Initialized +DEBUG - 2012-01-16 01:36:48 --> Input Class Initialized +DEBUG - 2012-01-16 01:36:48 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:36:48 --> Language Class Initialized +DEBUG - 2012-01-16 01:36:48 --> Loader Class Initialized +DEBUG - 2012-01-16 01:36:48 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:36:48 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:36:48 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:36:48 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:36:48 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:36:48 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:36:48 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:36:48 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:36:48 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:36:48 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:36:48 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:36:48 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:36:48 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:36:48 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:36:48 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:36:48 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:36:48 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:36:48 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:36:48 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:36:48 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:36:48 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:36:48 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:36:48 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:36:48 --> Session Class Initialized +DEBUG - 2012-01-16 01:36:48 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:36:48 --> Session routines successfully run +DEBUG - 2012-01-16 01:36:48 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:36:48 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:36:48 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:48 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:48 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:48 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:48 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:48 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:48 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:48 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:48 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:48 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:48 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:48 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:48 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:48 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:48 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:48 --> Model Class Initialized +DEBUG - 2012-01-16 01:36:48 --> Controller Class Initialized +DEBUG - 2012-01-16 01:38:22 --> Config Class Initialized +DEBUG - 2012-01-16 01:38:22 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:38:22 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:38:22 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:38:22 --> URI Class Initialized +DEBUG - 2012-01-16 01:38:22 --> Router Class Initialized +DEBUG - 2012-01-16 01:38:22 --> Output Class Initialized +DEBUG - 2012-01-16 01:38:22 --> Security Class Initialized +DEBUG - 2012-01-16 01:38:22 --> Input Class Initialized +DEBUG - 2012-01-16 01:38:22 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:38:22 --> Language Class Initialized +DEBUG - 2012-01-16 01:38:22 --> Loader Class Initialized +DEBUG - 2012-01-16 01:38:22 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:38:22 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:38:22 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:38:22 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:38:22 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:38:22 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:38:22 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:38:22 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:38:22 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:38:22 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:38:22 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:38:22 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:38:22 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:38:22 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:38:22 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:38:22 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:38:22 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:38:22 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:38:22 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:38:22 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:38:22 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:38:22 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:38:22 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:38:22 --> Session Class Initialized +DEBUG - 2012-01-16 01:38:22 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:38:22 --> Session routines successfully run +DEBUG - 2012-01-16 01:38:22 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:38:22 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:38:22 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:22 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:22 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:22 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:22 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:22 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:22 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:23 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:23 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:23 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:23 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:23 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:23 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:23 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:23 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:23 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:23 --> Controller Class Initialized +DEBUG - 2012-01-16 01:38:24 --> Config Class Initialized +DEBUG - 2012-01-16 01:38:24 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:38:24 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:38:24 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:38:24 --> URI Class Initialized +DEBUG - 2012-01-16 01:38:24 --> Router Class Initialized +DEBUG - 2012-01-16 01:38:24 --> Output Class Initialized +DEBUG - 2012-01-16 01:38:24 --> Security Class Initialized +DEBUG - 2012-01-16 01:38:24 --> Input Class Initialized +DEBUG - 2012-01-16 01:38:24 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:38:24 --> Language Class Initialized +DEBUG - 2012-01-16 01:38:24 --> Loader Class Initialized +DEBUG - 2012-01-16 01:38:24 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:38:24 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:38:24 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:38:24 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:38:24 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:38:24 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:38:24 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:38:24 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:38:24 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:38:24 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:38:24 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:38:24 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:38:24 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:38:24 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:38:24 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:38:24 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:38:24 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:38:24 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:38:24 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:38:24 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:38:24 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:38:24 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:38:24 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:38:24 --> Session Class Initialized +DEBUG - 2012-01-16 01:38:24 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:38:24 --> Session routines successfully run +DEBUG - 2012-01-16 01:38:24 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:38:24 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:38:24 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:24 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:24 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:24 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:24 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:24 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:24 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:24 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:24 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:24 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:24 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:24 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:24 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:24 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:24 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:24 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:24 --> Controller Class Initialized +DEBUG - 2012-01-16 01:38:26 --> Config Class Initialized +DEBUG - 2012-01-16 01:38:26 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:38:26 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:38:26 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:38:26 --> URI Class Initialized +DEBUG - 2012-01-16 01:38:26 --> Router Class Initialized +ERROR - 2012-01-16 01:38:26 --> Severity: Warning --> parse_url(/giftcards/view/-1/width:360/random:1326677943098) [function.parse-url]: Unable to parse URL C:\webroot\CodeIgniter_2.1.0\system\core\URI.php 219 +DEBUG - 2012-01-16 01:38:26 --> Output Class Initialized +DEBUG - 2012-01-16 01:38:26 --> Security Class Initialized +DEBUG - 2012-01-16 01:38:26 --> Input Class Initialized +DEBUG - 2012-01-16 01:38:26 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:38:26 --> Language Class Initialized +DEBUG - 2012-01-16 01:38:26 --> Loader Class Initialized +DEBUG - 2012-01-16 01:38:26 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:38:26 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:38:26 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:38:26 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:38:26 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:38:26 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:38:26 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:38:26 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:38:26 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:38:26 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:38:26 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:38:26 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:38:26 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:38:26 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:38:26 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:38:26 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:38:26 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:38:26 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:38:26 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:38:26 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:38:26 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:38:26 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:38:26 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:38:26 --> Session Class Initialized +DEBUG - 2012-01-16 01:38:26 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:38:26 --> Session routines successfully run +DEBUG - 2012-01-16 01:38:26 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:38:26 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:38:26 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:26 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:26 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:26 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:26 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:26 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:26 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:26 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:26 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:26 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:26 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:26 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:26 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:26 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:26 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:26 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:26 --> Controller Class Initialized +DEBUG - 2012-01-16 01:38:45 --> Config Class Initialized +DEBUG - 2012-01-16 01:38:45 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:38:45 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:38:45 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:38:46 --> URI Class Initialized +DEBUG - 2012-01-16 01:38:46 --> Router Class Initialized +DEBUG - 2012-01-16 01:38:46 --> Output Class Initialized +DEBUG - 2012-01-16 01:38:46 --> Security Class Initialized +DEBUG - 2012-01-16 01:38:46 --> Input Class Initialized +DEBUG - 2012-01-16 01:38:46 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:38:46 --> Language Class Initialized +DEBUG - 2012-01-16 01:38:46 --> Loader Class Initialized +DEBUG - 2012-01-16 01:38:46 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:38:46 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:38:46 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:38:46 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:38:46 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:38:46 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:38:46 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:38:46 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:38:46 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:38:46 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:38:46 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:38:46 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:38:46 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:38:46 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:38:46 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:38:46 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:38:46 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:38:46 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:38:46 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:38:46 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:38:46 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:38:46 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:38:46 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:38:46 --> Session Class Initialized +DEBUG - 2012-01-16 01:38:46 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:38:46 --> Session routines successfully run +DEBUG - 2012-01-16 01:38:46 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:38:46 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:38:46 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:46 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:46 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:46 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:46 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:46 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:46 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:46 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:46 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:46 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:46 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:46 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:46 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:46 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:46 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:46 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:46 --> Controller Class Initialized +DEBUG - 2012-01-16 01:38:48 --> Config Class Initialized +DEBUG - 2012-01-16 01:38:48 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:38:48 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:38:48 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:38:48 --> URI Class Initialized +DEBUG - 2012-01-16 01:38:48 --> Router Class Initialized +DEBUG - 2012-01-16 01:38:48 --> Output Class Initialized +DEBUG - 2012-01-16 01:38:48 --> Security Class Initialized +DEBUG - 2012-01-16 01:38:48 --> Input Class Initialized +DEBUG - 2012-01-16 01:38:48 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:38:48 --> Language Class Initialized +DEBUG - 2012-01-16 01:38:48 --> Loader Class Initialized +DEBUG - 2012-01-16 01:38:48 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:38:48 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:38:48 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:38:48 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:38:48 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:38:48 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:38:48 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:38:48 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:38:48 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:38:48 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:38:48 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:38:48 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:38:48 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:38:48 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:38:48 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:38:48 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:38:48 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:38:48 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:38:48 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:38:48 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:38:48 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:38:48 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:38:48 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:38:48 --> Session Class Initialized +DEBUG - 2012-01-16 01:38:48 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:38:48 --> Session routines successfully run +DEBUG - 2012-01-16 01:38:48 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:38:48 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:38:48 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:48 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:48 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:48 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:48 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:48 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:48 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:48 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:48 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:48 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:48 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:48 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:48 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:48 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:48 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:48 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:48 --> Controller Class Initialized +DEBUG - 2012-01-16 01:38:54 --> Config Class Initialized +DEBUG - 2012-01-16 01:38:54 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:38:54 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:38:54 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:38:54 --> URI Class Initialized +DEBUG - 2012-01-16 01:38:54 --> Router Class Initialized +ERROR - 2012-01-16 01:38:54 --> Severity: Warning --> parse_url(/giftcards/view/-1/width:360/random:1326677971235) [function.parse-url]: Unable to parse URL C:\webroot\CodeIgniter_2.1.0\system\core\URI.php 219 +DEBUG - 2012-01-16 01:38:54 --> Output Class Initialized +DEBUG - 2012-01-16 01:38:54 --> Security Class Initialized +DEBUG - 2012-01-16 01:38:54 --> Input Class Initialized +DEBUG - 2012-01-16 01:38:54 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:38:54 --> Language Class Initialized +DEBUG - 2012-01-16 01:38:54 --> Loader Class Initialized +DEBUG - 2012-01-16 01:38:54 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:38:54 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:38:54 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:38:54 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:38:54 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:38:54 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:38:54 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:38:54 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:38:54 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:38:54 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:38:54 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:38:54 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:38:54 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:38:54 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:38:54 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:38:54 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:38:54 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:38:54 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:38:54 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:38:54 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:38:54 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:38:54 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:38:54 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:38:54 --> Session Class Initialized +DEBUG - 2012-01-16 01:38:54 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:38:54 --> Session routines successfully run +DEBUG - 2012-01-16 01:38:54 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:38:54 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:38:54 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:54 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:54 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:54 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:54 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:54 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:54 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:54 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:54 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:54 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:54 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:54 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:54 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:54 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:54 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:54 --> Model Class Initialized +DEBUG - 2012-01-16 01:38:54 --> Controller Class Initialized +DEBUG - 2012-01-16 01:41:14 --> Config Class Initialized +DEBUG - 2012-01-16 01:41:14 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:41:14 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:41:14 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:41:14 --> URI Class Initialized +DEBUG - 2012-01-16 01:41:14 --> Router Class Initialized +DEBUG - 2012-01-16 01:41:14 --> No URI present. Default controller set. +DEBUG - 2012-01-16 01:41:14 --> Output Class Initialized +DEBUG - 2012-01-16 01:41:14 --> Security Class Initialized +DEBUG - 2012-01-16 01:41:14 --> Input Class Initialized +DEBUG - 2012-01-16 01:41:14 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:41:14 --> Language Class Initialized +DEBUG - 2012-01-16 01:41:15 --> Loader Class Initialized +DEBUG - 2012-01-16 01:41:15 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:41:15 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:41:15 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:41:15 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:41:15 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:41:15 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:41:15 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:41:15 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:41:15 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:41:15 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:41:15 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:41:15 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:41:15 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:41:15 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:41:15 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:41:15 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:41:15 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:41:15 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:41:15 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:41:15 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:41:15 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:41:15 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:41:15 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:41:15 --> Session Class Initialized +DEBUG - 2012-01-16 01:41:15 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:41:15 --> Session routines successfully run +DEBUG - 2012-01-16 01:41:15 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:41:15 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:41:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:15 --> Controller Class Initialized +DEBUG - 2012-01-16 01:41:15 --> Config Class Initialized +DEBUG - 2012-01-16 01:41:15 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:41:15 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:41:15 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:41:15 --> URI Class Initialized +DEBUG - 2012-01-16 01:41:15 --> Router Class Initialized +DEBUG - 2012-01-16 01:41:15 --> Output Class Initialized +DEBUG - 2012-01-16 01:41:15 --> Security Class Initialized +DEBUG - 2012-01-16 01:41:15 --> Input Class Initialized +DEBUG - 2012-01-16 01:41:15 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:41:15 --> Language Class Initialized +DEBUG - 2012-01-16 01:41:15 --> Loader Class Initialized +DEBUG - 2012-01-16 01:41:15 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:41:15 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:41:15 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:41:15 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:41:15 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:41:15 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:41:15 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:41:15 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:41:15 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:41:15 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:41:15 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:41:15 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:41:15 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:41:15 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:41:15 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:41:15 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:41:15 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:41:15 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:41:15 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:41:15 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:41:15 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:41:15 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:41:15 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:41:15 --> Session Class Initialized +DEBUG - 2012-01-16 01:41:15 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:41:15 --> Session routines successfully run +DEBUG - 2012-01-16 01:41:15 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:41:15 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:41:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:15 --> Controller Class Initialized +DEBUG - 2012-01-16 01:41:17 --> Config Class Initialized +DEBUG - 2012-01-16 01:41:17 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:41:17 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:41:17 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:41:17 --> URI Class Initialized +DEBUG - 2012-01-16 01:41:17 --> Router Class Initialized +DEBUG - 2012-01-16 01:41:17 --> Output Class Initialized +DEBUG - 2012-01-16 01:41:17 --> Security Class Initialized +DEBUG - 2012-01-16 01:41:17 --> Input Class Initialized +DEBUG - 2012-01-16 01:41:17 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:41:17 --> Language Class Initialized +DEBUG - 2012-01-16 01:41:17 --> Loader Class Initialized +DEBUG - 2012-01-16 01:41:17 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:41:17 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:41:17 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:41:17 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:41:17 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:41:17 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:41:17 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:41:17 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:41:17 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:41:17 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:41:17 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:41:17 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:41:17 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:41:17 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:41:17 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:41:17 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:41:17 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:41:17 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:41:17 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:41:17 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:41:18 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:41:18 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:41:18 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:41:18 --> Session Class Initialized +DEBUG - 2012-01-16 01:41:18 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:41:18 --> Session routines successfully run +DEBUG - 2012-01-16 01:41:18 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:41:18 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:41:18 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:18 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:18 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:18 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:18 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:18 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:18 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:18 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:18 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:18 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:18 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:18 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:18 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:18 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:18 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:18 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:18 --> Controller Class Initialized +DEBUG - 2012-01-16 01:41:19 --> Config Class Initialized +DEBUG - 2012-01-16 01:41:19 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:41:19 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:41:19 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:41:19 --> URI Class Initialized +DEBUG - 2012-01-16 01:41:19 --> Router Class Initialized +ERROR - 2012-01-16 01:41:19 --> Severity: Warning --> parse_url(/giftcards/view/-1/width:360/random:1326678116395) [function.parse-url]: Unable to parse URL C:\webroot\CodeIgniter_2.1.0\system\core\URI.php 219 +DEBUG - 2012-01-16 01:41:19 --> Output Class Initialized +DEBUG - 2012-01-16 01:41:19 --> Security Class Initialized +DEBUG - 2012-01-16 01:41:19 --> Input Class Initialized +DEBUG - 2012-01-16 01:41:19 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:41:19 --> Language Class Initialized +DEBUG - 2012-01-16 01:41:19 --> Loader Class Initialized +DEBUG - 2012-01-16 01:41:19 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:41:19 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:41:19 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:41:19 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:41:19 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:41:19 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:41:19 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:41:19 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:41:19 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:41:19 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:41:19 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:41:19 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:41:19 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:41:19 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:41:19 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:41:19 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:41:19 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:41:19 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:41:19 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:41:19 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:41:19 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:41:19 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:41:19 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:41:19 --> Session Class Initialized +DEBUG - 2012-01-16 01:41:19 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:41:19 --> Session routines successfully run +DEBUG - 2012-01-16 01:41:19 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:41:19 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:41:19 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:19 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:19 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:19 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:19 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:19 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:19 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:20 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:20 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:20 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:20 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:20 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:20 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:20 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:20 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:20 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:20 --> Controller Class Initialized +DEBUG - 2012-01-16 01:41:25 --> Config Class Initialized +DEBUG - 2012-01-16 01:41:25 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:41:25 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:41:25 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:41:25 --> URI Class Initialized +DEBUG - 2012-01-16 01:41:26 --> Router Class Initialized +DEBUG - 2012-01-16 01:41:26 --> Output Class Initialized +DEBUG - 2012-01-16 01:41:26 --> Security Class Initialized +DEBUG - 2012-01-16 01:41:26 --> Input Class Initialized +DEBUG - 2012-01-16 01:41:26 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:41:26 --> Language Class Initialized +DEBUG - 2012-01-16 01:41:26 --> Loader Class Initialized +DEBUG - 2012-01-16 01:41:26 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:41:26 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:41:26 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:41:26 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:41:26 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:41:26 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:41:26 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:41:26 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:41:26 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:41:26 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:41:26 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:41:26 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:41:26 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:41:26 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:41:26 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:41:26 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:41:26 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:41:26 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:41:26 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:41:26 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:41:26 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:41:26 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:41:26 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:41:26 --> Session Class Initialized +DEBUG - 2012-01-16 01:41:26 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:41:26 --> Session routines successfully run +DEBUG - 2012-01-16 01:41:26 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:41:26 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:41:26 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:26 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:26 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:26 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:26 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:26 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:26 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:26 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:26 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:26 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:26 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:26 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:26 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:26 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:26 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:26 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:26 --> Controller Class Initialized +DEBUG - 2012-01-16 01:41:27 --> Config Class Initialized +DEBUG - 2012-01-16 01:41:27 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:41:27 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:41:27 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:41:27 --> URI Class Initialized +DEBUG - 2012-01-16 01:41:27 --> Router Class Initialized +ERROR - 2012-01-16 01:41:27 --> Severity: Warning --> parse_url(/items/view/-1/width:360/random:1326678124433) [function.parse-url]: Unable to parse URL C:\webroot\CodeIgniter_2.1.0\system\core\URI.php 219 +DEBUG - 2012-01-16 01:41:27 --> Output Class Initialized +DEBUG - 2012-01-16 01:41:27 --> Security Class Initialized +DEBUG - 2012-01-16 01:41:27 --> Input Class Initialized +DEBUG - 2012-01-16 01:41:27 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:41:27 --> Language Class Initialized +DEBUG - 2012-01-16 01:41:27 --> Loader Class Initialized +DEBUG - 2012-01-16 01:41:27 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:41:27 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:41:27 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:41:27 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:41:27 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:41:27 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:41:27 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:41:27 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:41:27 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:41:27 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:41:27 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:41:27 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:41:27 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:41:27 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:41:27 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:41:27 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:41:27 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:41:27 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:41:27 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:41:27 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:41:27 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:41:27 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:41:27 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:41:27 --> Session Class Initialized +DEBUG - 2012-01-16 01:41:27 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:41:27 --> Session routines successfully run +DEBUG - 2012-01-16 01:41:27 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:41:27 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:41:27 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:27 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:27 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:27 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:27 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:27 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:27 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:27 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:27 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:27 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:28 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:28 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:28 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:28 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:28 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:28 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:28 --> Controller Class Initialized +DEBUG - 2012-01-16 01:41:28 --> Config Class Initialized +DEBUG - 2012-01-16 01:41:28 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:41:28 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:41:28 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:41:28 --> URI Class Initialized +DEBUG - 2012-01-16 01:41:28 --> Router Class Initialized +DEBUG - 2012-01-16 01:41:28 --> Output Class Initialized +DEBUG - 2012-01-16 01:41:28 --> Security Class Initialized +DEBUG - 2012-01-16 01:41:28 --> Input Class Initialized +DEBUG - 2012-01-16 01:41:28 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:41:28 --> Language Class Initialized +DEBUG - 2012-01-16 01:41:28 --> Loader Class Initialized +DEBUG - 2012-01-16 01:41:28 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:41:28 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:41:28 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:41:28 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:41:28 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:41:28 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:41:28 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:41:28 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:41:28 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:41:28 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:41:28 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:41:28 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:41:28 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:41:28 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:41:28 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:41:28 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:41:28 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:41:28 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:41:28 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:41:28 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:41:28 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:41:28 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:41:28 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:41:28 --> Session Class Initialized +DEBUG - 2012-01-16 01:41:28 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:41:28 --> Session routines successfully run +DEBUG - 2012-01-16 01:41:28 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:41:28 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:41:28 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:28 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:28 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:28 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:28 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:28 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:28 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:28 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:28 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:28 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:28 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:28 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:28 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:28 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:28 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:28 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:28 --> Controller Class Initialized +DEBUG - 2012-01-16 01:41:46 --> Config Class Initialized +DEBUG - 2012-01-16 01:41:46 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:41:46 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:41:46 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:41:46 --> URI Class Initialized +DEBUG - 2012-01-16 01:41:46 --> Router Class Initialized +DEBUG - 2012-01-16 01:41:46 --> Output Class Initialized +DEBUG - 2012-01-16 01:41:46 --> Security Class Initialized +DEBUG - 2012-01-16 01:41:46 --> Input Class Initialized +DEBUG - 2012-01-16 01:41:46 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:41:46 --> Language Class Initialized +DEBUG - 2012-01-16 01:41:46 --> Loader Class Initialized +DEBUG - 2012-01-16 01:41:46 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:41:46 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:41:46 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:41:46 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:41:46 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:41:46 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:41:46 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:41:46 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:41:46 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:41:46 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:41:46 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:41:46 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:41:46 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:41:46 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:41:46 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:41:46 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:41:46 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:41:46 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:41:46 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:41:46 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:41:46 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:41:46 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:41:46 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:41:46 --> Session Class Initialized +DEBUG - 2012-01-16 01:41:46 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:41:46 --> Session routines successfully run +DEBUG - 2012-01-16 01:41:46 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:41:46 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:41:46 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:46 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:46 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:46 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:46 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:46 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:47 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:47 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:47 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:47 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:47 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:47 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:47 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:47 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:47 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:47 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:47 --> Controller Class Initialized +DEBUG - 2012-01-16 01:41:48 --> Config Class Initialized +DEBUG - 2012-01-16 01:41:48 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:41:48 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:41:48 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:41:48 --> URI Class Initialized +DEBUG - 2012-01-16 01:41:48 --> Router Class Initialized +ERROR - 2012-01-16 01:41:48 --> Severity: Warning --> parse_url(/suppliers/view/-1/width:360/random:1326678145178) [function.parse-url]: Unable to parse URL C:\webroot\CodeIgniter_2.1.0\system\core\URI.php 219 +DEBUG - 2012-01-16 01:41:48 --> Output Class Initialized +DEBUG - 2012-01-16 01:41:48 --> Security Class Initialized +DEBUG - 2012-01-16 01:41:48 --> Input Class Initialized +DEBUG - 2012-01-16 01:41:48 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:41:48 --> Language Class Initialized +DEBUG - 2012-01-16 01:41:48 --> Loader Class Initialized +DEBUG - 2012-01-16 01:41:48 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:41:48 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:41:48 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:41:48 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:41:48 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:41:48 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:41:48 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:41:48 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:41:48 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:41:48 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:41:48 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:41:48 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:41:48 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:41:48 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:41:48 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:41:48 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:41:48 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:41:48 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:41:48 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:41:48 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:41:48 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:41:48 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:41:48 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:41:48 --> Session Class Initialized +DEBUG - 2012-01-16 01:41:48 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:41:48 --> Session routines successfully run +DEBUG - 2012-01-16 01:41:48 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:41:48 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:41:48 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:48 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:48 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:48 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:48 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:48 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:48 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:48 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:48 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:48 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:48 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:48 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:48 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:48 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:48 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:48 --> Model Class Initialized +DEBUG - 2012-01-16 01:41:48 --> Controller Class Initialized +DEBUG - 2012-01-16 01:42:09 --> Config Class Initialized +DEBUG - 2012-01-16 01:42:09 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:42:09 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:42:09 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:42:09 --> URI Class Initialized +DEBUG - 2012-01-16 01:42:09 --> Router Class Initialized +DEBUG - 2012-01-16 01:42:09 --> Output Class Initialized +DEBUG - 2012-01-16 01:42:09 --> Security Class Initialized +DEBUG - 2012-01-16 01:42:09 --> Input Class Initialized +DEBUG - 2012-01-16 01:42:09 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:42:09 --> Language Class Initialized +DEBUG - 2012-01-16 01:42:09 --> Loader Class Initialized +DEBUG - 2012-01-16 01:42:09 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:42:09 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:42:09 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:42:09 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:42:09 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:42:09 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:42:09 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:42:09 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:42:09 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:42:09 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:42:09 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:42:09 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:42:09 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:42:09 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:42:09 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:42:09 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:42:09 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:42:09 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:42:09 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:42:09 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:42:09 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:42:09 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:42:09 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:42:09 --> Session Class Initialized +DEBUG - 2012-01-16 01:42:09 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:42:09 --> Session routines successfully run +DEBUG - 2012-01-16 01:42:09 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:42:09 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:42:09 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:09 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:09 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:09 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:09 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:09 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:09 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:09 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:09 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:09 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:09 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:09 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:09 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:09 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:09 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:09 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:09 --> Controller Class Initialized +DEBUG - 2012-01-16 01:42:15 --> Config Class Initialized +DEBUG - 2012-01-16 01:42:15 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:42:15 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:42:15 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:42:15 --> URI Class Initialized +DEBUG - 2012-01-16 01:42:15 --> Router Class Initialized +DEBUG - 2012-01-16 01:42:15 --> Output Class Initialized +DEBUG - 2012-01-16 01:42:15 --> Security Class Initialized +DEBUG - 2012-01-16 01:42:15 --> Input Class Initialized +DEBUG - 2012-01-16 01:42:15 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:42:15 --> Language Class Initialized +DEBUG - 2012-01-16 01:42:15 --> Loader Class Initialized +DEBUG - 2012-01-16 01:42:15 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:42:15 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:42:15 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:42:15 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:42:15 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:42:15 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:42:15 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:42:15 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:42:15 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:42:15 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:42:15 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:42:15 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:42:15 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:42:15 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:42:15 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:42:15 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:42:15 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:42:15 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:42:15 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:42:15 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:42:15 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:42:15 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:42:15 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:42:15 --> Session Class Initialized +DEBUG - 2012-01-16 01:42:15 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:42:15 --> Session routines successfully run +DEBUG - 2012-01-16 01:42:15 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:42:15 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:42:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:15 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:15 --> Controller Class Initialized +DEBUG - 2012-01-16 01:42:19 --> Config Class Initialized +DEBUG - 2012-01-16 01:42:19 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:42:19 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:42:19 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:42:19 --> URI Class Initialized +DEBUG - 2012-01-16 01:42:19 --> Router Class Initialized +DEBUG - 2012-01-16 01:42:19 --> Output Class Initialized +DEBUG - 2012-01-16 01:42:19 --> Security Class Initialized +DEBUG - 2012-01-16 01:42:19 --> Input Class Initialized +DEBUG - 2012-01-16 01:42:19 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:42:19 --> Language Class Initialized +DEBUG - 2012-01-16 01:42:19 --> Loader Class Initialized +DEBUG - 2012-01-16 01:42:19 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:42:19 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:42:19 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:42:19 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:42:19 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:42:19 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:42:19 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:42:19 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:42:19 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:42:19 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:42:19 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:42:19 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:42:19 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:42:19 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:42:19 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:42:19 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:42:19 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:42:19 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:42:19 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:42:19 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:42:19 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:42:19 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:42:19 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:42:19 --> Session Class Initialized +DEBUG - 2012-01-16 01:42:19 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:42:19 --> Session routines successfully run +DEBUG - 2012-01-16 01:42:19 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:42:19 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:42:19 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:19 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:19 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:19 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:19 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:19 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:19 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:19 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:19 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:19 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:19 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:19 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:19 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:19 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:19 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:19 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:19 --> Controller Class Initialized +DEBUG - 2012-01-16 01:42:21 --> Config Class Initialized +DEBUG - 2012-01-16 01:42:21 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:42:21 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:42:21 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:42:21 --> URI Class Initialized +DEBUG - 2012-01-16 01:42:21 --> Router Class Initialized +DEBUG - 2012-01-16 01:42:21 --> Output Class Initialized +DEBUG - 2012-01-16 01:42:21 --> Security Class Initialized +DEBUG - 2012-01-16 01:42:21 --> Input Class Initialized +DEBUG - 2012-01-16 01:42:21 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:42:21 --> Language Class Initialized +DEBUG - 2012-01-16 01:42:21 --> Loader Class Initialized +DEBUG - 2012-01-16 01:42:21 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:42:21 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:42:21 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:42:21 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:42:21 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:42:21 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:42:21 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:42:21 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:42:21 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:42:21 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:42:21 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:42:21 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:42:21 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:42:21 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:42:21 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:42:21 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:42:21 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:42:21 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:42:21 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:42:21 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:42:21 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:42:21 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:42:21 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:42:21 --> Session Class Initialized +DEBUG - 2012-01-16 01:42:21 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:42:21 --> Session routines successfully run +DEBUG - 2012-01-16 01:42:21 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:42:21 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:42:21 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:21 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:21 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:21 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:21 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:21 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:21 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:21 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:21 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:21 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:21 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:21 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:21 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:21 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:21 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:21 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:21 --> Controller Class Initialized +DEBUG - 2012-01-16 01:42:23 --> Config Class Initialized +DEBUG - 2012-01-16 01:42:23 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:42:23 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:42:23 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:42:23 --> URI Class Initialized +DEBUG - 2012-01-16 01:42:23 --> Router Class Initialized +ERROR - 2012-01-16 01:42:23 --> Severity: Warning --> parse_url(/giftcards/view/-1/width:360/random:1326678180033) [function.parse-url]: Unable to parse URL C:\webroot\CodeIgniter_2.1.0\system\core\URI.php 219 +DEBUG - 2012-01-16 01:42:23 --> Output Class Initialized +DEBUG - 2012-01-16 01:42:23 --> Security Class Initialized +DEBUG - 2012-01-16 01:42:23 --> Input Class Initialized +DEBUG - 2012-01-16 01:42:23 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:42:23 --> Language Class Initialized +DEBUG - 2012-01-16 01:42:23 --> Loader Class Initialized +DEBUG - 2012-01-16 01:42:23 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:42:23 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:42:23 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:42:23 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:42:23 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:42:23 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:42:23 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:42:23 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:42:23 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:42:23 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:42:23 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:42:23 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:42:23 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:42:23 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:42:23 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:42:23 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:42:23 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:42:23 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:42:23 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:42:23 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:42:23 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:42:23 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:42:23 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:42:23 --> Session Class Initialized +DEBUG - 2012-01-16 01:42:23 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:42:23 --> Session routines successfully run +DEBUG - 2012-01-16 01:42:23 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:42:23 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:42:23 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:23 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:23 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:23 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:23 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:23 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:23 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:23 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:23 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:23 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:23 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:23 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:23 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:23 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:23 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:23 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:23 --> Controller Class Initialized +DEBUG - 2012-01-16 01:42:26 --> Config Class Initialized +DEBUG - 2012-01-16 01:42:26 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:42:26 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:42:26 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:42:26 --> URI Class Initialized +DEBUG - 2012-01-16 01:42:26 --> Router Class Initialized +DEBUG - 2012-01-16 01:42:26 --> Output Class Initialized +DEBUG - 2012-01-16 01:42:26 --> Security Class Initialized +DEBUG - 2012-01-16 01:42:26 --> Input Class Initialized +DEBUG - 2012-01-16 01:42:26 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:42:26 --> Language Class Initialized +DEBUG - 2012-01-16 01:42:26 --> Loader Class Initialized +DEBUG - 2012-01-16 01:42:26 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:42:26 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:42:26 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:42:26 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:42:26 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:42:26 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:42:26 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:42:26 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:42:26 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:42:26 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:42:26 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:42:26 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:42:26 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:42:26 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:42:26 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:42:26 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:42:26 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:42:26 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:42:26 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:42:26 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:42:26 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:42:26 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:42:26 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:42:27 --> Session Class Initialized +DEBUG - 2012-01-16 01:42:27 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:42:27 --> Session routines successfully run +DEBUG - 2012-01-16 01:42:27 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:42:27 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:42:27 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:27 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:27 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:27 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:27 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:27 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:27 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:27 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:27 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:27 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:27 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:27 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:27 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:27 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:27 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:27 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:27 --> Controller Class Initialized +DEBUG - 2012-01-16 01:42:29 --> Config Class Initialized +DEBUG - 2012-01-16 01:42:29 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:42:29 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:42:29 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:42:29 --> URI Class Initialized +DEBUG - 2012-01-16 01:42:29 --> Router Class Initialized +DEBUG - 2012-01-16 01:42:29 --> Output Class Initialized +DEBUG - 2012-01-16 01:42:29 --> Security Class Initialized +DEBUG - 2012-01-16 01:42:29 --> Input Class Initialized +DEBUG - 2012-01-16 01:42:29 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:42:29 --> Language Class Initialized +DEBUG - 2012-01-16 01:42:29 --> Loader Class Initialized +DEBUG - 2012-01-16 01:42:29 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:42:29 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:42:29 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:42:29 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:42:29 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:42:29 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:42:29 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:42:29 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:42:29 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:42:29 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:42:29 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:42:29 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:42:29 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:42:29 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:42:29 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:42:29 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:42:29 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:42:29 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:42:29 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:42:29 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:42:29 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:42:29 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:42:29 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:42:29 --> Session Class Initialized +DEBUG - 2012-01-16 01:42:29 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:42:29 --> Session routines successfully run +DEBUG - 2012-01-16 01:42:29 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:42:29 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:42:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:29 --> Controller Class Initialized +DEBUG - 2012-01-16 01:42:31 --> Config Class Initialized +DEBUG - 2012-01-16 01:42:31 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:42:31 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:42:31 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:42:31 --> URI Class Initialized +DEBUG - 2012-01-16 01:42:31 --> Router Class Initialized +ERROR - 2012-01-16 01:42:31 --> Severity: Warning --> parse_url(/giftcards/view/-1/width:360/random:1326678187867) [function.parse-url]: Unable to parse URL C:\webroot\CodeIgniter_2.1.0\system\core\URI.php 219 +DEBUG - 2012-01-16 01:42:31 --> Output Class Initialized +DEBUG - 2012-01-16 01:42:31 --> Security Class Initialized +DEBUG - 2012-01-16 01:42:31 --> Input Class Initialized +DEBUG - 2012-01-16 01:42:31 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:42:31 --> Language Class Initialized +DEBUG - 2012-01-16 01:42:31 --> Loader Class Initialized +DEBUG - 2012-01-16 01:42:31 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:42:31 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:42:31 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:42:31 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:42:31 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:42:31 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:42:31 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:42:31 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:42:31 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:42:31 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:42:31 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:42:31 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:42:31 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:42:31 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:42:31 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:42:31 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:42:31 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:42:31 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:42:31 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:42:31 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:42:31 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:42:31 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:42:31 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:42:31 --> Session Class Initialized +DEBUG - 2012-01-16 01:42:31 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:42:31 --> Session routines successfully run +DEBUG - 2012-01-16 01:42:31 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:42:31 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:42:31 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:31 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:31 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:31 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:31 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:31 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:31 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:31 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:31 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:31 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:31 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:31 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:31 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:31 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:31 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:31 --> Model Class Initialized +DEBUG - 2012-01-16 01:42:31 --> Controller Class Initialized +DEBUG - 2012-01-16 01:43:51 --> Config Class Initialized +DEBUG - 2012-01-16 01:43:51 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:43:51 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:43:51 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:43:51 --> URI Class Initialized +DEBUG - 2012-01-16 01:43:51 --> Router Class Initialized +DEBUG - 2012-01-16 01:43:52 --> Output Class Initialized +DEBUG - 2012-01-16 01:43:52 --> Security Class Initialized +DEBUG - 2012-01-16 01:43:52 --> Input Class Initialized +DEBUG - 2012-01-16 01:43:52 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:43:52 --> Language Class Initialized +DEBUG - 2012-01-16 01:43:52 --> Loader Class Initialized +DEBUG - 2012-01-16 01:43:52 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:43:52 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:43:52 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:43:52 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:43:52 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:43:52 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:43:52 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:43:52 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:43:52 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:43:52 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:43:52 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:43:52 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:43:52 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:43:52 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:43:52 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:43:52 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:43:52 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:43:52 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:43:52 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:43:52 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:43:52 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:43:52 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:43:52 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:43:52 --> Session Class Initialized +DEBUG - 2012-01-16 01:43:52 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:43:52 --> Session routines successfully run +DEBUG - 2012-01-16 01:43:52 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:43:52 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:43:52 --> Model Class Initialized +DEBUG - 2012-01-16 01:43:52 --> Model Class Initialized +DEBUG - 2012-01-16 01:43:52 --> Model Class Initialized +DEBUG - 2012-01-16 01:43:52 --> Model Class Initialized +DEBUG - 2012-01-16 01:43:52 --> Model Class Initialized +DEBUG - 2012-01-16 01:43:52 --> Model Class Initialized +DEBUG - 2012-01-16 01:43:52 --> Model Class Initialized +DEBUG - 2012-01-16 01:43:52 --> Model Class Initialized +DEBUG - 2012-01-16 01:43:52 --> Model Class Initialized +DEBUG - 2012-01-16 01:43:52 --> Model Class Initialized +DEBUG - 2012-01-16 01:43:52 --> Model Class Initialized +DEBUG - 2012-01-16 01:43:52 --> Model Class Initialized +DEBUG - 2012-01-16 01:43:52 --> Model Class Initialized +DEBUG - 2012-01-16 01:43:52 --> Model Class Initialized +DEBUG - 2012-01-16 01:43:52 --> Model Class Initialized +DEBUG - 2012-01-16 01:43:52 --> Model Class Initialized +DEBUG - 2012-01-16 01:43:52 --> Controller Class Initialized +DEBUG - 2012-01-16 01:43:53 --> Config Class Initialized +DEBUG - 2012-01-16 01:43:53 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:43:53 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:43:53 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:43:53 --> URI Class Initialized +DEBUG - 2012-01-16 01:43:53 --> Router Class Initialized +ERROR - 2012-01-16 01:43:53 --> Severity: Warning --> parse_url(/items/view/-1/width:360/random:1326678270589) [function.parse-url]: Unable to parse URL C:\webroot\CodeIgniter_2.1.0\system\core\URI.php 219 +DEBUG - 2012-01-16 01:43:53 --> Output Class Initialized +DEBUG - 2012-01-16 01:43:53 --> Security Class Initialized +DEBUG - 2012-01-16 01:43:53 --> Input Class Initialized +DEBUG - 2012-01-16 01:43:53 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:43:53 --> Language Class Initialized +DEBUG - 2012-01-16 01:43:53 --> Loader Class Initialized +DEBUG - 2012-01-16 01:43:53 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:43:53 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:43:53 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:43:53 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:43:53 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:43:53 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:43:53 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:43:53 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:43:53 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:43:53 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:43:53 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:43:53 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:43:53 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:43:53 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:43:53 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:43:53 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:43:53 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:43:53 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:43:53 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:43:53 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:43:53 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:43:53 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:43:53 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:43:53 --> Session Class Initialized +DEBUG - 2012-01-16 01:43:53 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:43:54 --> Session routines successfully run +DEBUG - 2012-01-16 01:43:54 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:43:54 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:43:54 --> Model Class Initialized +DEBUG - 2012-01-16 01:43:54 --> Model Class Initialized +DEBUG - 2012-01-16 01:43:54 --> Model Class Initialized +DEBUG - 2012-01-16 01:43:54 --> Model Class Initialized +DEBUG - 2012-01-16 01:43:54 --> Model Class Initialized +DEBUG - 2012-01-16 01:43:54 --> Model Class Initialized +DEBUG - 2012-01-16 01:43:54 --> Model Class Initialized +DEBUG - 2012-01-16 01:43:54 --> Model Class Initialized +DEBUG - 2012-01-16 01:43:54 --> Model Class Initialized +DEBUG - 2012-01-16 01:43:54 --> Model Class Initialized +DEBUG - 2012-01-16 01:43:54 --> Model Class Initialized +DEBUG - 2012-01-16 01:43:54 --> Model Class Initialized +DEBUG - 2012-01-16 01:43:54 --> Model Class Initialized +DEBUG - 2012-01-16 01:43:54 --> Model Class Initialized +DEBUG - 2012-01-16 01:43:54 --> Model Class Initialized +DEBUG - 2012-01-16 01:43:54 --> Model Class Initialized +DEBUG - 2012-01-16 01:43:54 --> Controller Class Initialized +DEBUG - 2012-01-16 01:43:54 --> Config Class Initialized +DEBUG - 2012-01-16 01:43:54 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:43:54 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:43:54 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:43:54 --> URI Class Initialized +DEBUG - 2012-01-16 01:43:54 --> Router Class Initialized +DEBUG - 2012-01-16 01:43:54 --> Output Class Initialized +DEBUG - 2012-01-16 01:43:54 --> Security Class Initialized +DEBUG - 2012-01-16 01:43:54 --> Input Class Initialized +DEBUG - 2012-01-16 01:43:54 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:43:54 --> Language Class Initialized +DEBUG - 2012-01-16 01:43:54 --> Loader Class Initialized +DEBUG - 2012-01-16 01:43:54 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:43:54 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:43:54 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:43:54 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:43:54 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:43:54 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:43:54 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:43:54 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:43:54 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:43:54 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:43:54 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:43:54 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:43:54 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:43:54 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:43:54 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:43:54 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:43:54 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:43:54 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:43:54 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:43:54 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:43:54 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:43:54 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:43:54 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:43:54 --> Session Class Initialized +DEBUG - 2012-01-16 01:43:54 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:43:54 --> Session routines successfully run +DEBUG - 2012-01-16 01:43:54 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:43:54 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:43:54 --> Model Class Initialized +DEBUG - 2012-01-16 01:43:54 --> Model Class Initialized +DEBUG - 2012-01-16 01:43:54 --> Model Class Initialized +DEBUG - 2012-01-16 01:43:54 --> Model Class Initialized +DEBUG - 2012-01-16 01:43:54 --> Model Class Initialized +DEBUG - 2012-01-16 01:43:54 --> Model Class Initialized +DEBUG - 2012-01-16 01:43:54 --> Model Class Initialized +DEBUG - 2012-01-16 01:43:54 --> Model Class Initialized +DEBUG - 2012-01-16 01:43:54 --> Model Class Initialized +DEBUG - 2012-01-16 01:43:54 --> Model Class Initialized +DEBUG - 2012-01-16 01:43:54 --> Model Class Initialized +DEBUG - 2012-01-16 01:43:54 --> Model Class Initialized +DEBUG - 2012-01-16 01:43:54 --> Model Class Initialized +DEBUG - 2012-01-16 01:43:54 --> Model Class Initialized +DEBUG - 2012-01-16 01:43:54 --> Model Class Initialized +DEBUG - 2012-01-16 01:43:54 --> Model Class Initialized +DEBUG - 2012-01-16 01:43:54 --> Controller Class Initialized +DEBUG - 2012-01-16 01:44:04 --> Config Class Initialized +DEBUG - 2012-01-16 01:44:04 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:44:04 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:44:04 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:44:04 --> URI Class Initialized +DEBUG - 2012-01-16 01:44:04 --> Router Class Initialized +DEBUG - 2012-01-16 01:44:04 --> Output Class Initialized +DEBUG - 2012-01-16 01:44:04 --> Security Class Initialized +DEBUG - 2012-01-16 01:44:04 --> Input Class Initialized +DEBUG - 2012-01-16 01:44:04 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:44:04 --> Language Class Initialized +DEBUG - 2012-01-16 01:44:04 --> Loader Class Initialized +DEBUG - 2012-01-16 01:44:04 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:44:04 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:44:04 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:44:04 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:44:04 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:44:04 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:44:04 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:44:04 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:44:04 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:44:04 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:44:04 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:44:04 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:44:04 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:44:04 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:44:04 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:44:04 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:44:04 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:44:04 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:44:04 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:44:04 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:44:04 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:44:04 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:44:04 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:44:04 --> Session Class Initialized +DEBUG - 2012-01-16 01:44:04 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:44:04 --> Session routines successfully run +DEBUG - 2012-01-16 01:44:04 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:44:04 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:44:04 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:04 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:04 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:04 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:04 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:04 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:04 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:04 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:04 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:04 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:04 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:04 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:04 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:04 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:04 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:04 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:04 --> Controller Class Initialized +DEBUG - 2012-01-16 01:44:06 --> Config Class Initialized +DEBUG - 2012-01-16 01:44:06 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:44:06 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:44:06 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:44:06 --> URI Class Initialized +DEBUG - 2012-01-16 01:44:06 --> Router Class Initialized +DEBUG - 2012-01-16 01:44:06 --> Output Class Initialized +DEBUG - 2012-01-16 01:44:06 --> Security Class Initialized +DEBUG - 2012-01-16 01:44:06 --> Input Class Initialized +DEBUG - 2012-01-16 01:44:06 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:44:06 --> Language Class Initialized +DEBUG - 2012-01-16 01:44:06 --> Loader Class Initialized +DEBUG - 2012-01-16 01:44:06 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:44:06 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:44:06 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:44:06 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:44:06 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:44:06 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:44:06 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:44:06 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:44:06 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:44:06 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:44:06 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:44:06 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:44:06 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:44:06 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:44:06 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:44:06 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:44:06 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:44:06 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:44:06 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:44:06 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:44:06 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:44:06 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:44:06 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:44:06 --> Session Class Initialized +DEBUG - 2012-01-16 01:44:06 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:44:07 --> Session routines successfully run +DEBUG - 2012-01-16 01:44:07 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:44:07 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:44:07 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:07 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:07 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:07 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:07 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:07 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:07 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:07 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:07 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:07 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:07 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:07 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:07 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:07 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:07 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:07 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:07 --> Controller Class Initialized +DEBUG - 2012-01-16 01:44:08 --> Config Class Initialized +DEBUG - 2012-01-16 01:44:08 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:44:08 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:44:08 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:44:08 --> URI Class Initialized +DEBUG - 2012-01-16 01:44:08 --> Router Class Initialized +ERROR - 2012-01-16 01:44:08 --> Severity: Warning --> parse_url(/items/view/-1/width:360/random:1326678285347) [function.parse-url]: Unable to parse URL C:\webroot\CodeIgniter_2.1.0\system\core\URI.php 219 +DEBUG - 2012-01-16 01:44:08 --> Output Class Initialized +DEBUG - 2012-01-16 01:44:08 --> Security Class Initialized +DEBUG - 2012-01-16 01:44:08 --> Input Class Initialized +DEBUG - 2012-01-16 01:44:08 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:44:08 --> Language Class Initialized +DEBUG - 2012-01-16 01:44:08 --> Loader Class Initialized +DEBUG - 2012-01-16 01:44:08 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:44:08 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:44:08 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:44:08 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:44:08 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:44:08 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:44:08 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:44:08 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:44:08 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:44:08 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:44:08 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:44:08 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:44:08 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:44:08 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:44:08 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:44:08 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:44:08 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:44:08 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:44:08 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:44:08 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:44:08 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:44:08 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:44:08 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:44:08 --> Session Class Initialized +DEBUG - 2012-01-16 01:44:08 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:44:08 --> Session routines successfully run +DEBUG - 2012-01-16 01:44:08 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:44:08 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:44:08 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:08 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:08 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:08 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:08 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:08 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:08 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:08 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:08 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:08 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:08 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:08 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:08 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:08 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:08 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:08 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:08 --> Controller Class Initialized +DEBUG - 2012-01-16 01:44:09 --> Config Class Initialized +DEBUG - 2012-01-16 01:44:09 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:44:09 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:44:09 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:44:09 --> URI Class Initialized +DEBUG - 2012-01-16 01:44:09 --> Router Class Initialized +DEBUG - 2012-01-16 01:44:09 --> Output Class Initialized +DEBUG - 2012-01-16 01:44:09 --> Security Class Initialized +DEBUG - 2012-01-16 01:44:09 --> Input Class Initialized +DEBUG - 2012-01-16 01:44:09 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:44:09 --> Language Class Initialized +DEBUG - 2012-01-16 01:44:09 --> Loader Class Initialized +DEBUG - 2012-01-16 01:44:09 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:44:09 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:44:09 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:44:09 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:44:09 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:44:09 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:44:09 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:44:09 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:44:09 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:44:09 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:44:09 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:44:09 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:44:09 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:44:09 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:44:09 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:44:09 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:44:09 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:44:09 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:44:09 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:44:09 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:44:09 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:44:09 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:44:09 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:44:09 --> Session Class Initialized +DEBUG - 2012-01-16 01:44:09 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:44:09 --> Session routines successfully run +DEBUG - 2012-01-16 01:44:09 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:44:09 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:44:09 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:09 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:09 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:09 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:09 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:09 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:09 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:09 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:09 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:09 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:09 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:09 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:09 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:09 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:09 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:09 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:09 --> Controller Class Initialized +DEBUG - 2012-01-16 01:44:39 --> Config Class Initialized +DEBUG - 2012-01-16 01:44:39 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:44:39 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:44:39 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:44:39 --> URI Class Initialized +DEBUG - 2012-01-16 01:44:39 --> Router Class Initialized +DEBUG - 2012-01-16 01:44:39 --> Output Class Initialized +DEBUG - 2012-01-16 01:44:39 --> Security Class Initialized +DEBUG - 2012-01-16 01:44:39 --> Input Class Initialized +DEBUG - 2012-01-16 01:44:39 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:44:39 --> Language Class Initialized +DEBUG - 2012-01-16 01:44:39 --> Loader Class Initialized +DEBUG - 2012-01-16 01:44:39 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:44:39 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:44:39 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:44:39 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:44:39 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:44:39 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:44:39 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:44:39 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:44:39 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:44:39 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:44:39 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:44:39 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:44:39 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:44:39 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:44:39 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:44:39 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:44:39 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:44:39 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:44:39 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:44:39 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:44:39 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:44:39 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:44:39 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:44:39 --> Session Class Initialized +DEBUG - 2012-01-16 01:44:39 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:44:39 --> Session routines successfully run +DEBUG - 2012-01-16 01:44:39 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:44:39 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:44:39 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:39 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:39 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:39 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:39 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:39 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:39 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:39 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:39 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:39 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:39 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:39 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:39 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:39 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:39 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:39 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:39 --> Controller Class Initialized +DEBUG - 2012-01-16 01:44:40 --> Config Class Initialized +DEBUG - 2012-01-16 01:44:40 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:44:40 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:44:40 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:44:40 --> URI Class Initialized +DEBUG - 2012-01-16 01:44:40 --> Router Class Initialized +DEBUG - 2012-01-16 01:44:40 --> Output Class Initialized +DEBUG - 2012-01-16 01:44:40 --> Security Class Initialized +DEBUG - 2012-01-16 01:44:40 --> Input Class Initialized +DEBUG - 2012-01-16 01:44:40 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:44:40 --> Language Class Initialized +DEBUG - 2012-01-16 01:44:40 --> Loader Class Initialized +DEBUG - 2012-01-16 01:44:40 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:44:40 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:44:40 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:44:40 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:44:40 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:44:40 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:44:40 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:44:40 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:44:40 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:44:40 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:44:40 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:44:40 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:44:40 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:44:40 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:44:40 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:44:40 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:44:40 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:44:40 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:44:40 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:44:40 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:44:40 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:44:41 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:44:41 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:44:41 --> Session Class Initialized +DEBUG - 2012-01-16 01:44:41 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:44:41 --> Session routines successfully run +DEBUG - 2012-01-16 01:44:41 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:44:41 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:44:41 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:41 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:41 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:41 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:41 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:41 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:41 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:41 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:41 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:41 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:41 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:41 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:41 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:41 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:41 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:41 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:41 --> Controller Class Initialized +DEBUG - 2012-01-16 01:44:42 --> Config Class Initialized +DEBUG - 2012-01-16 01:44:42 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:44:42 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:44:42 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:44:42 --> URI Class Initialized +DEBUG - 2012-01-16 01:44:42 --> Router Class Initialized +ERROR - 2012-01-16 01:44:42 --> Severity: Warning --> parse_url(/items/view/-1/width:360/random:1326678319665) [function.parse-url]: Unable to parse URL C:\webroot\CodeIgniter_2.1.0\system\core\URI.php 219 +DEBUG - 2012-01-16 01:44:42 --> Output Class Initialized +DEBUG - 2012-01-16 01:44:42 --> Security Class Initialized +DEBUG - 2012-01-16 01:44:42 --> Input Class Initialized +DEBUG - 2012-01-16 01:44:42 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:44:42 --> Language Class Initialized +DEBUG - 2012-01-16 01:44:42 --> Loader Class Initialized +DEBUG - 2012-01-16 01:44:42 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:44:42 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:44:42 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:44:42 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:44:42 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:44:42 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:44:42 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:44:42 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:44:42 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:44:42 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:44:42 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:44:42 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:44:42 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:44:42 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:44:42 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:44:42 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:44:42 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:44:42 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:44:42 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:44:42 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:44:42 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:44:42 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:44:42 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:44:42 --> Session Class Initialized +DEBUG - 2012-01-16 01:44:42 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:44:42 --> Session routines successfully run +DEBUG - 2012-01-16 01:44:42 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:44:42 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:44:42 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:42 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:42 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:42 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:42 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:42 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:42 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:42 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:43 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:43 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:43 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:43 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:43 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:43 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:43 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:43 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:43 --> Controller Class Initialized +DEBUG - 2012-01-16 01:44:43 --> Config Class Initialized +DEBUG - 2012-01-16 01:44:43 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:44:43 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:44:43 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:44:43 --> URI Class Initialized +DEBUG - 2012-01-16 01:44:43 --> Router Class Initialized +DEBUG - 2012-01-16 01:44:43 --> Output Class Initialized +DEBUG - 2012-01-16 01:44:43 --> Security Class Initialized +DEBUG - 2012-01-16 01:44:43 --> Input Class Initialized +DEBUG - 2012-01-16 01:44:43 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:44:43 --> Language Class Initialized +DEBUG - 2012-01-16 01:44:43 --> Loader Class Initialized +DEBUG - 2012-01-16 01:44:43 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:44:43 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:44:43 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:44:43 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:44:43 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:44:43 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:44:43 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:44:43 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:44:43 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:44:43 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:44:43 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:44:43 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:44:43 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:44:43 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:44:43 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:44:43 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:44:43 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:44:43 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:44:43 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:44:43 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:44:43 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:44:43 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:44:43 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:44:43 --> Session Class Initialized +DEBUG - 2012-01-16 01:44:43 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:44:43 --> Session routines successfully run +DEBUG - 2012-01-16 01:44:43 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:44:43 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:44:43 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:43 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:43 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:43 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:43 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:43 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:43 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:43 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:43 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:43 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:43 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:43 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:43 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:43 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:43 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:43 --> Model Class Initialized +DEBUG - 2012-01-16 01:44:43 --> Controller Class Initialized +DEBUG - 2012-01-16 01:50:20 --> Config Class Initialized +DEBUG - 2012-01-16 01:50:20 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:50:20 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:50:20 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:50:20 --> URI Class Initialized +DEBUG - 2012-01-16 01:50:20 --> Router Class Initialized +DEBUG - 2012-01-16 01:50:20 --> Output Class Initialized +DEBUG - 2012-01-16 01:50:20 --> Security Class Initialized +DEBUG - 2012-01-16 01:50:20 --> Input Class Initialized +DEBUG - 2012-01-16 01:50:20 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:50:20 --> Language Class Initialized +DEBUG - 2012-01-16 01:50:20 --> Loader Class Initialized +DEBUG - 2012-01-16 01:50:20 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:50:20 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:50:20 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:50:20 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:50:20 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:50:20 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:50:20 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:50:20 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:50:20 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:50:20 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:50:20 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:50:20 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:50:20 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:50:20 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:50:20 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:50:20 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:50:20 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:50:20 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:50:20 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:50:20 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:50:20 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:50:20 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:50:20 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:50:20 --> Session Class Initialized +DEBUG - 2012-01-16 01:50:20 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:50:20 --> Session routines successfully run +DEBUG - 2012-01-16 01:50:20 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:50:20 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:50:20 --> Model Class Initialized +DEBUG - 2012-01-16 01:50:20 --> Model Class Initialized +DEBUG - 2012-01-16 01:50:20 --> Model Class Initialized +DEBUG - 2012-01-16 01:50:20 --> Model Class Initialized +DEBUG - 2012-01-16 01:50:20 --> Model Class Initialized +DEBUG - 2012-01-16 01:50:20 --> Model Class Initialized +DEBUG - 2012-01-16 01:50:20 --> Model Class Initialized +DEBUG - 2012-01-16 01:50:20 --> Model Class Initialized +DEBUG - 2012-01-16 01:50:20 --> Model Class Initialized +DEBUG - 2012-01-16 01:50:20 --> Model Class Initialized +DEBUG - 2012-01-16 01:50:20 --> Model Class Initialized +DEBUG - 2012-01-16 01:50:20 --> Model Class Initialized +DEBUG - 2012-01-16 01:50:20 --> Model Class Initialized +DEBUG - 2012-01-16 01:50:20 --> Model Class Initialized +DEBUG - 2012-01-16 01:50:20 --> Model Class Initialized +DEBUG - 2012-01-16 01:50:20 --> Model Class Initialized +DEBUG - 2012-01-16 01:50:20 --> Controller Class Initialized +DEBUG - 2012-01-16 01:50:21 --> Config Class Initialized +DEBUG - 2012-01-16 01:50:21 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:50:21 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:50:21 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:50:21 --> URI Class Initialized +DEBUG - 2012-01-16 01:50:21 --> Router Class Initialized +ERROR - 2012-01-16 01:50:21 --> Severity: Warning --> parse_url(/giftcards/view/-1/width:360/random:1326678659161) [function.parse-url]: Unable to parse URL C:\webroot\CodeIgniter_2.1.0\system\core\URI.php 219 +DEBUG - 2012-01-16 01:50:21 --> Output Class Initialized +DEBUG - 2012-01-16 01:50:21 --> Security Class Initialized +DEBUG - 2012-01-16 01:50:21 --> Input Class Initialized +DEBUG - 2012-01-16 01:50:21 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:50:21 --> Language Class Initialized +DEBUG - 2012-01-16 01:50:21 --> Loader Class Initialized +DEBUG - 2012-01-16 01:50:22 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:50:22 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:50:22 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:50:22 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:50:22 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:50:22 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:50:22 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:50:22 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:50:22 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:50:22 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:50:22 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:50:22 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:50:22 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:50:22 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:50:22 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:50:22 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:50:22 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:50:22 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:50:22 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:50:22 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:50:22 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:50:22 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:50:22 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:50:22 --> Session Class Initialized +DEBUG - 2012-01-16 01:50:22 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:50:22 --> Session routines successfully run +DEBUG - 2012-01-16 01:50:22 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:50:22 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:50:22 --> Model Class Initialized +DEBUG - 2012-01-16 01:50:22 --> Model Class Initialized +DEBUG - 2012-01-16 01:50:22 --> Model Class Initialized +DEBUG - 2012-01-16 01:50:22 --> Model Class Initialized +DEBUG - 2012-01-16 01:50:22 --> Model Class Initialized +DEBUG - 2012-01-16 01:50:22 --> Model Class Initialized +DEBUG - 2012-01-16 01:50:22 --> Model Class Initialized +DEBUG - 2012-01-16 01:50:22 --> Model Class Initialized +DEBUG - 2012-01-16 01:50:22 --> Model Class Initialized +DEBUG - 2012-01-16 01:50:22 --> Model Class Initialized +DEBUG - 2012-01-16 01:50:22 --> Model Class Initialized +DEBUG - 2012-01-16 01:50:22 --> Model Class Initialized +DEBUG - 2012-01-16 01:50:22 --> Model Class Initialized +DEBUG - 2012-01-16 01:50:22 --> Model Class Initialized +DEBUG - 2012-01-16 01:50:22 --> Model Class Initialized +DEBUG - 2012-01-16 01:50:22 --> Model Class Initialized +DEBUG - 2012-01-16 01:50:22 --> Controller Class Initialized +DEBUG - 2012-01-16 01:51:50 --> Config Class Initialized +DEBUG - 2012-01-16 01:51:50 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:51:50 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:51:50 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:51:50 --> URI Class Initialized +DEBUG - 2012-01-16 01:51:50 --> Router Class Initialized +DEBUG - 2012-01-16 01:51:50 --> Output Class Initialized +DEBUG - 2012-01-16 01:51:50 --> Security Class Initialized +DEBUG - 2012-01-16 01:51:50 --> Input Class Initialized +DEBUG - 2012-01-16 01:51:50 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:51:50 --> Language Class Initialized +DEBUG - 2012-01-16 01:51:50 --> Loader Class Initialized +DEBUG - 2012-01-16 01:51:50 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:51:50 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:51:50 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:51:50 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:51:50 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:51:50 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:51:50 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:51:50 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:51:50 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:51:50 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:51:50 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:51:50 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:51:50 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:51:50 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:51:50 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:51:50 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:51:50 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:51:50 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:51:50 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:51:50 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:51:50 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:51:50 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:51:51 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:51:51 --> Session Class Initialized +DEBUG - 2012-01-16 01:51:51 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:51:51 --> Session routines successfully run +DEBUG - 2012-01-16 01:51:51 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:51:51 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:51:51 --> Model Class Initialized +DEBUG - 2012-01-16 01:51:51 --> Model Class Initialized +DEBUG - 2012-01-16 01:51:51 --> Model Class Initialized +DEBUG - 2012-01-16 01:51:51 --> Model Class Initialized +DEBUG - 2012-01-16 01:51:51 --> Model Class Initialized +DEBUG - 2012-01-16 01:51:51 --> Model Class Initialized +DEBUG - 2012-01-16 01:51:51 --> Model Class Initialized +DEBUG - 2012-01-16 01:51:51 --> Model Class Initialized +DEBUG - 2012-01-16 01:51:51 --> Model Class Initialized +DEBUG - 2012-01-16 01:51:51 --> Model Class Initialized +DEBUG - 2012-01-16 01:51:51 --> Model Class Initialized +DEBUG - 2012-01-16 01:51:51 --> Model Class Initialized +DEBUG - 2012-01-16 01:51:51 --> Model Class Initialized +DEBUG - 2012-01-16 01:51:51 --> Model Class Initialized +DEBUG - 2012-01-16 01:51:51 --> Model Class Initialized +DEBUG - 2012-01-16 01:51:51 --> Model Class Initialized +DEBUG - 2012-01-16 01:51:51 --> Controller Class Initialized +DEBUG - 2012-01-16 01:52:28 --> Config Class Initialized +DEBUG - 2012-01-16 01:52:28 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:52:28 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:52:28 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:52:28 --> URI Class Initialized +DEBUG - 2012-01-16 01:52:28 --> Router Class Initialized +DEBUG - 2012-01-16 01:52:28 --> Output Class Initialized +DEBUG - 2012-01-16 01:52:28 --> Security Class Initialized +DEBUG - 2012-01-16 01:52:28 --> Input Class Initialized +DEBUG - 2012-01-16 01:52:28 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:52:28 --> Language Class Initialized +DEBUG - 2012-01-16 01:52:28 --> Loader Class Initialized +DEBUG - 2012-01-16 01:52:28 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:52:28 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:52:28 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:52:28 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:52:28 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:52:28 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:52:28 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:52:28 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:52:28 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:52:28 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:52:28 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:52:28 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:52:28 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:52:28 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:52:28 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:52:28 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:52:28 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:52:29 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:52:29 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:52:29 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:52:29 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:52:29 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:52:29 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:52:29 --> Session Class Initialized +DEBUG - 2012-01-16 01:52:29 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:52:29 --> Session routines successfully run +DEBUG - 2012-01-16 01:52:29 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:52:29 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:52:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:52:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:52:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:52:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:52:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:52:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:52:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:52:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:52:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:52:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:52:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:52:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:52:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:52:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:52:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:52:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:52:29 --> Controller Class Initialized +DEBUG - 2012-01-16 01:52:29 --> Config Class Initialized +DEBUG - 2012-01-16 01:52:29 --> Hooks Class Initialized +DEBUG - 2012-01-16 01:52:29 --> Utf8 Class Initialized +DEBUG - 2012-01-16 01:52:29 --> UTF-8 Support Enabled +DEBUG - 2012-01-16 01:52:29 --> URI Class Initialized +DEBUG - 2012-01-16 01:52:29 --> Router Class Initialized +DEBUG - 2012-01-16 01:52:29 --> Output Class Initialized +DEBUG - 2012-01-16 01:52:29 --> Security Class Initialized +DEBUG - 2012-01-16 01:52:29 --> Input Class Initialized +DEBUG - 2012-01-16 01:52:29 --> Global POST and COOKIE data sanitized +DEBUG - 2012-01-16 01:52:29 --> Language Class Initialized +DEBUG - 2012-01-16 01:52:29 --> Loader Class Initialized +DEBUG - 2012-01-16 01:52:29 --> Helper loaded: form_helper +DEBUG - 2012-01-16 01:52:29 --> Helper loaded: url_helper +DEBUG - 2012-01-16 01:52:29 --> Helper loaded: table_helper +DEBUG - 2012-01-16 01:52:29 --> Helper loaded: text_helper +DEBUG - 2012-01-16 01:52:29 --> Helper loaded: currency_helper +DEBUG - 2012-01-16 01:52:29 --> Helper loaded: html_helper +DEBUG - 2012-01-16 01:52:29 --> Helper loaded: download_helper +DEBUG - 2012-01-16 01:52:29 --> Language file loaded: language/english/common_lang.php +DEBUG - 2012-01-16 01:52:29 --> Language file loaded: language/english/config_lang.php +DEBUG - 2012-01-16 01:52:29 --> Language file loaded: language/english/customers_lang.php +DEBUG - 2012-01-16 01:52:29 --> Language file loaded: language/english/employees_lang.php +DEBUG - 2012-01-16 01:52:29 --> Language file loaded: language/english/error_lang.php +DEBUG - 2012-01-16 01:52:29 --> Language file loaded: language/english/items_lang.php +DEBUG - 2012-01-16 01:52:29 --> Language file loaded: language/english/login_lang.php +DEBUG - 2012-01-16 01:52:29 --> Language file loaded: language/english/module_lang.php +DEBUG - 2012-01-16 01:52:29 --> Language file loaded: language/english/reports_lang.php +DEBUG - 2012-01-16 01:52:29 --> Language file loaded: language/english/sales_lang.php +DEBUG - 2012-01-16 01:52:29 --> Language file loaded: language/english/suppliers_lang.php +DEBUG - 2012-01-16 01:52:29 --> Language file loaded: language/english/receivings_lang.php +DEBUG - 2012-01-16 01:52:29 --> Language file loaded: language/english/giftcards_lang.php +DEBUG - 2012-01-16 01:52:29 --> Language file loaded: language/english/item_kits_lang.php +DEBUG - 2012-01-16 01:52:29 --> Database Driver Class Initialized +DEBUG - 2012-01-16 01:52:29 --> Form Validation Class Initialized +DEBUG - 2012-01-16 01:52:29 --> Session Class Initialized +DEBUG - 2012-01-16 01:52:29 --> Helper loaded: string_helper +DEBUG - 2012-01-16 01:52:29 --> A session cookie was not found. +DEBUG - 2012-01-16 01:52:29 --> Session routines successfully run +DEBUG - 2012-01-16 01:52:29 --> User Agent Class Initialized +DEBUG - 2012-01-16 01:52:29 --> Pagination Class Initialized +DEBUG - 2012-01-16 01:52:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:52:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:52:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:52:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:52:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:52:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:52:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:52:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:52:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:52:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:52:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:52:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:52:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:52:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:52:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:52:29 --> Model Class Initialized +DEBUG - 2012-01-16 01:52:29 --> Controller Class Initialized diff --git a/application/models/appconfig.php b/application/models/appconfig.php new file mode 100644 index 000000000..6f0879148 --- /dev/null +++ b/application/models/appconfig.php @@ -0,0 +1,81 @@ +db->from('app_config'); + $this->db->where('app_config.key',$key); + $query = $this->db->get(); + + return ($query->num_rows()==1); + } + + function get_all() + { + $this->db->from('app_config'); + $this->db->order_by("key", "asc"); + return $this->db->get(); + } + + function get($key) + { + $query = $this->db->get_where('app_config', array('key' => $key), 1); + + if($query->num_rows()==1) + { + return $query->row()->value; + } + + return ""; + + } + + function save($key,$value) + { + $config_data=array( + 'key'=>$key, + 'value'=>$value + ); + + if (!$this->exists($key)) + { + return $this->db->insert('app_config',$config_data); + } + + $this->db->where('key', $key); + return $this->db->update('app_config',$config_data); + } + + function batch_save($data) + { + $success=true; + + //Run these queries as a transaction, we want to make sure we do all or nothing + $this->db->trans_start(); + foreach($data as $key=>$value) + { + if(!$this->save($key,$value)) + { + $success=false; + break; + } + } + + $this->db->trans_complete(); + return $success; + + } + + function delete($key) + { + return $this->db->delete('app_config', array('key' => $key)); + } + + function delete_all() + { + return $this->db->empty_table('app_config'); + } +} + +?> \ No newline at end of file diff --git a/application/models/customer.php b/application/models/customer.php new file mode 100644 index 000000000..9c083ea5d --- /dev/null +++ b/application/models/customer.php @@ -0,0 +1,246 @@ +db->from('customers'); + $this->db->join('people', 'people.person_id = customers.person_id'); + $this->db->where('customers.person_id',$person_id); + $query = $this->db->get(); + + return ($query->num_rows()==1); + } + + /* + Returns all the customers + */ + function get_all($limit=10000, $offset=0) + { + $this->db->from('customers'); + $this->db->join('people','customers.person_id=people.person_id'); + $this->db->where('deleted',0); + $this->db->order_by("last_name", "asc"); + $this->db->limit($limit); + $this->db->offset($offset); + return $this->db->get(); + } + + function count_all() + { + $this->db->from('customers'); + $this->db->where('deleted',0); + return $this->db->count_all_results(); + } + + /* + Gets information about a particular customer + */ + function get_info($customer_id) + { + $this->db->from('customers'); + $this->db->join('people', 'people.person_id = customers.person_id'); + $this->db->where('customers.person_id',$customer_id); + $query = $this->db->get(); + + if($query->num_rows()==1) + { + return $query->row(); + } + else + { + //Get empty base parent object, as $customer_id is NOT an customer + $person_obj=parent::get_info(-1); + + //Get all the fields from customer table + $fields = $this->db->list_fields('customers'); + + //append those fields to base parent object, we we have a complete empty object + foreach ($fields as $field) + { + $person_obj->$field=''; + } + + return $person_obj; + } + } + + /* + Gets information about multiple customers + */ + function get_multiple_info($customer_ids) + { + $this->db->from('customers'); + $this->db->join('people', 'people.person_id = customers.person_id'); + $this->db->where_in('customers.person_id',$customer_ids); + $this->db->order_by("last_name", "asc"); + return $this->db->get(); + } + + /* + Inserts or updates a customer + */ + function save(&$person_data, &$customer_data,$customer_id=false) + { + $success=false; + //Run these queries as a transaction, we want to make sure we do all or nothing + $this->db->trans_start(); + + if(parent::save($person_data,$customer_id)) + { + if (!$customer_id or !$this->exists($customer_id)) + { + $customer_data['person_id'] = $person_data['person_id']; + $success = $this->db->insert('customers',$customer_data); + } + else + { + $this->db->where('person_id', $customer_id); + $success = $this->db->update('customers',$customer_data); + } + + } + + $this->db->trans_complete(); + return $success; + } + + /* + Deletes one customer + */ + function delete($customer_id) + { + $this->db->where('person_id', $customer_id); + return $this->db->update('customers', array('deleted' => 1)); + } + + /* + Deletes a list of customers + */ + function delete_list($customer_ids) + { + $this->db->where_in('person_id',$customer_ids); + return $this->db->update('customers', array('deleted' => 1)); + } + + /* + Get search suggestions to find customers + */ + function get_search_suggestions($search,$limit=25) + { + $suggestions = array(); + + $this->db->from('customers'); + $this->db->join('people','customers.person_id=people.person_id'); + $this->db->where("(first_name LIKE '%".$this->db->escape_like_str($search)."%' or + last_name LIKE '%".$this->db->escape_like_str($search)."%' or + CONCAT(`first_name`,' ',`last_name`) LIKE '%".$this->db->escape_like_str($search)."%') and deleted=0"); + $this->db->order_by("last_name", "asc"); + $by_name = $this->db->get(); + foreach($by_name->result() as $row) + { + $suggestions[]=$row->first_name.' '.$row->last_name; + } + + $this->db->from('customers'); + $this->db->join('people','customers.person_id=people.person_id'); + $this->db->where('deleted',0); + $this->db->like("email",$search); + $this->db->order_by("email", "asc"); + $by_email = $this->db->get(); + foreach($by_email->result() as $row) + { + $suggestions[]=$row->email; + } + + $this->db->from('customers'); + $this->db->join('people','customers.person_id=people.person_id'); + $this->db->where('deleted',0); + $this->db->like("phone_number",$search); + $this->db->order_by("phone_number", "asc"); + $by_phone = $this->db->get(); + foreach($by_phone->result() as $row) + { + $suggestions[]=$row->phone_number; + } + + $this->db->from('customers'); + $this->db->join('people','customers.person_id=people.person_id'); + $this->db->where('deleted',0); + $this->db->like("account_number",$search); + $this->db->order_by("account_number", "asc"); + $by_account_number = $this->db->get(); + foreach($by_account_number->result() as $row) + { + $suggestions[]=$row->account_number; + } + + //only return $limit suggestions + if(count($suggestions > $limit)) + { + $suggestions = array_slice($suggestions, 0,$limit); + } + return $suggestions; + + } + + /* + Get search suggestions to find customers + */ + function get_customer_search_suggestions($search,$limit=25) + { + $suggestions = array(); + + $this->db->from('customers'); + $this->db->join('people','customers.person_id=people.person_id'); + $this->db->where("(first_name LIKE '%".$this->db->escape_like_str($search)."%' or + last_name LIKE '%".$this->db->escape_like_str($search)."%' or + CONCAT(`first_name`,' ',`last_name`) LIKE '%".$this->db->escape_like_str($search)."%') and deleted=0"); + $this->db->order_by("last_name", "asc"); + $by_name = $this->db->get(); + foreach($by_name->result() as $row) + { + $suggestions[]=$row->person_id.'|'.$row->first_name.' '.$row->last_name; + } + + $this->db->from('customers'); + $this->db->join('people','customers.person_id=people.person_id'); + $this->db->where('deleted',0); + $this->db->like("account_number",$search); + $this->db->order_by("account_number", "asc"); + $by_account_number = $this->db->get(); + foreach($by_account_number->result() as $row) + { + $suggestions[]=$row->person_id.'|'.$row->account_number; + } + + //only return $limit suggestions + if(count($suggestions > $limit)) + { + $suggestions = array_slice($suggestions, 0,$limit); + } + return $suggestions; + + } + /* + Preform a search on customers + */ + function search($search) + { + $this->db->from('customers'); + $this->db->join('people','customers.person_id=people.person_id'); + $this->db->where("(first_name LIKE '%".$this->db->escape_like_str($search)."%' or + last_name LIKE '%".$this->db->escape_like_str($search)."%' or + email LIKE '%".$this->db->escape_like_str($search)."%' or + phone_number LIKE '%".$this->db->escape_like_str($search)."%' or + account_number LIKE '%".$this->db->escape_like_str($search)."%' or + CONCAT(`first_name`,' ',`last_name`) LIKE '%".$this->db->escape_like_str($search)."%') and deleted=0"); + $this->db->order_by("last_name", "asc"); + + return $this->db->get(); + } + +} +?> diff --git a/application/models/employee.php b/application/models/employee.php new file mode 100644 index 000000000..e0d0b3606 --- /dev/null +++ b/application/models/employee.php @@ -0,0 +1,325 @@ +db->from('employees'); + $this->db->join('people', 'people.person_id = employees.person_id'); + $this->db->where('employees.person_id',$person_id); + $query = $this->db->get(); + + return ($query->num_rows()==1); + } + + /* + Returns all the employees + */ + function get_all($limit=10000, $offset=0) + { + $this->db->from('employees'); + $this->db->where('deleted',0); + $this->db->join('people','employees.person_id=people.person_id'); + $this->db->order_by("last_name", "asc"); + $this->db->limit($limit); + $this->db->offset($offset); + return $this->db->get(); + } + + function count_all() + { + $this->db->from('employees'); + $this->db->where('deleted',0); + return $this->db->count_all_results(); + } + + /* + Gets information about a particular employee + */ + function get_info($employee_id) + { + $this->db->from('employees'); + $this->db->join('people', 'people.person_id = employees.person_id'); + $this->db->where('employees.person_id',$employee_id); + $query = $this->db->get(); + + if($query->num_rows()==1) + { + return $query->row(); + } + else + { + //Get empty base parent object, as $employee_id is NOT an employee + $person_obj=parent::get_info(-1); + + //Get all the fields from employee table + $fields = $this->db->list_fields('employees'); + + //append those fields to base parent object, we we have a complete empty object + foreach ($fields as $field) + { + $person_obj->$field=''; + } + + return $person_obj; + } + } + + /* + Gets information about multiple employees + */ + function get_multiple_info($employee_ids) + { + $this->db->from('employees'); + $this->db->join('people', 'people.person_id = employees.person_id'); + $this->db->where_in('employees.person_id',$employee_ids); + $this->db->order_by("last_name", "asc"); + return $this->db->get(); + } + + /* + Inserts or updates an employee + */ + function save(&$person_data, &$employee_data,&$permission_data,$employee_id=false) + { + $success=false; + + //Run these queries as a transaction, we want to make sure we do all or nothing + $this->db->trans_start(); + + if(parent::save($person_data,$employee_id)) + { + if (!$employee_id or !$this->exists($employee_id)) + { + $employee_data['person_id'] = $employee_id = $person_data['person_id']; + $success = $this->db->insert('employees',$employee_data); + } + else + { + $this->db->where('person_id', $employee_id); + $success = $this->db->update('employees',$employee_data); + } + + //We have either inserted or updated a new employee, now lets set permissions. + if($success) + { + //First lets clear out any permissions the employee currently has. + $success=$this->db->delete('permissions', array('person_id' => $employee_id)); + + //Now insert the new permissions + if($success) + { + foreach($permission_data as $allowed_module) + { + $success = $this->db->insert('permissions', + array( + 'module_id'=>$allowed_module, + 'person_id'=>$employee_id)); + } + } + } + + } + + $this->db->trans_complete(); + return $success; + } + + /* + Deletes one employee + */ + function delete($employee_id) + { + $success=false; + + //Don't let employee delete their self + if($employee_id==$this->get_logged_in_employee_info()->person_id) + return false; + + //Run these queries as a transaction, we want to make sure we do all or nothing + $this->db->trans_start(); + + //Delete permissions + if($this->db->delete('permissions', array('person_id' => $employee_id))) + { + $this->db->where('person_id', $employee_id); + $success = $this->db->update('employees', array('deleted' => 1)); + } + $this->db->trans_complete(); + return $success; + } + + /* + Deletes a list of employees + */ + function delete_list($employee_ids) + { + $success=false; + + //Don't let employee delete their self + if(in_array($this->get_logged_in_employee_info()->person_id,$employee_ids)) + return false; + + //Run these queries as a transaction, we want to make sure we do all or nothing + $this->db->trans_start(); + + $this->db->where_in('person_id',$employee_ids); + //Delete permissions + if ($this->db->delete('permissions')) + { + //delete from employee table + $this->db->where_in('person_id',$employee_ids); + $success = $this->db->update('employees', array('deleted' => 1)); + } + $this->db->trans_complete(); + return $success; + } + + /* + Get search suggestions to find employees + */ + function get_search_suggestions($search,$limit=5) + { + $suggestions = array(); + + $this->db->from('employees'); + $this->db->join('people','employees.person_id=people.person_id'); + $this->db->where("(first_name LIKE '%".$this->db->escape_like_str($search)."%' or + last_name LIKE '%".$this->db->escape_like_str($search)."%' or + CONCAT(`first_name`,' ',`last_name`) LIKE '%".$this->db->escape_like_str($search)."%') and deleted=0"); + $this->db->order_by("last_name", "asc"); + $by_name = $this->db->get(); + foreach($by_name->result() as $row) + { + $suggestions[]=$row->first_name.' '.$row->last_name; + } + + $this->db->from('employees'); + $this->db->join('people','employees.person_id=people.person_id'); + $this->db->where('deleted', 0); + $this->db->like("email",$search); + $this->db->order_by("email", "asc"); + $by_email = $this->db->get(); + foreach($by_email->result() as $row) + { + $suggestions[]=$row->email; + } + + $this->db->from('employees'); + $this->db->join('people','employees.person_id=people.person_id'); + $this->db->where('deleted', 0); + $this->db->like("username",$search); + $this->db->order_by("username", "asc"); + $by_username = $this->db->get(); + foreach($by_username->result() as $row) + { + $suggestions[]=$row->username; + } + + + $this->db->from('employees'); + $this->db->join('people','employees.person_id=people.person_id'); + $this->db->where('deleted', 0); + $this->db->like("phone_number",$search); + $this->db->order_by("phone_number", "asc"); + $by_phone = $this->db->get(); + foreach($by_phone->result() as $row) + { + $suggestions[]=$row->phone_number; + } + + + //only return $limit suggestions + if(count($suggestions > $limit)) + { + $suggestions = array_slice($suggestions, 0,$limit); + } + return $suggestions; + + } + + /* + Preform a search on employees + */ + function search($search) + { + $this->db->from('employees'); + $this->db->join('people','employees.person_id=people.person_id'); + $this->db->where("(first_name LIKE '%".$this->db->escape_like_str($search)."%' or + last_name LIKE '%".$this->db->escape_like_str($search)."%' or + email LIKE '%".$this->db->escape_like_str($search)."%' or + phone_number LIKE '%".$this->db->escape_like_str($search)."%' or + username LIKE '%".$this->db->escape_like_str($search)."%' or + CONCAT(`first_name`,' ',`last_name`) LIKE '%".$this->db->escape_like_str($search)."%') and deleted=0"); + $this->db->order_by("last_name", "asc"); + + return $this->db->get(); + } + + /* + Attempts to login employee and set session. Returns boolean based on outcome. + */ + function login($username, $password) + { + $query = $this->db->get_where('employees', array('username' => $username,'password'=>md5($password), 'deleted'=>0), 1); + if ($query->num_rows() ==1) + { + $row=$query->row(); + $this->session->set_userdata('person_id', $row->person_id); + return true; + } + return false; + } + + /* + Logs out a user by destorying all session data and redirect to login + */ + function logout() + { + $this->session->sess_destroy(); + redirect('login'); + } + + /* + Determins if a employee is logged in + */ + function is_logged_in() + { + return $this->session->userdata('person_id')!=false; + } + + /* + Gets information about the currently logged in employee. + */ + function get_logged_in_employee_info() + { + if($this->is_logged_in()) + { + return $this->get_info($this->session->userdata('person_id')); + } + + return false; + } + + /* + Determins whether the employee specified employee has access the specific module. + */ + function has_permission($module_id,$person_id) + { + //if no module_id is null, allow access + if($module_id==null) + { + return true; + } + + $query = $this->db->get_where('permissions', array('person_id' => $person_id,'module_id'=>$module_id), 1); + return $query->num_rows() == 1; + + + return false; + } + +} +?> diff --git a/application/models/giftcard.php b/application/models/giftcard.php new file mode 100644 index 000000000..4edad6a9f --- /dev/null +++ b/application/models/giftcard.php @@ -0,0 +1,199 @@ +db->from('giftcards'); + $this->db->where('giftcard_id',$giftcard_id); + $this->db->where('deleted',0); + $query = $this->db->get(); + + return ($query->num_rows()==1); + } + + /* + Returns all the giftcards + */ + function get_all($limit=10000, $offset=0) + { + $this->db->from('giftcards'); + $this->db->where('deleted',0); + $this->db->order_by("giftcard_number", "asc"); + $this->db->limit($limit); + $this->db->offset($offset); + return $this->db->get(); + } + + function count_all() + { + $this->db->from('giftcards'); + $this->db->where('deleted',0); + return $this->db->count_all_results(); + } + + /* + Gets information about a particular giftcard + */ + function get_info($giftcard_id) + { + $this->db->from('giftcards'); + $this->db->where('giftcard_id',$giftcard_id); + $this->db->where('deleted',0); + + $query = $this->db->get(); + + if($query->num_rows()==1) + { + return $query->row(); + } + else + { + //Get empty base parent object, as $giftcard_id is NOT an giftcard + $giftcard_obj=new stdClass(); + + //Get all the fields from giftcards table + $fields = $this->db->list_fields('giftcards'); + + foreach ($fields as $field) + { + $giftcard_obj->$field=''; + } + + return $giftcard_obj; + } + } + + /* + Get an giftcard id given an giftcard number + */ + function get_giftcard_id($giftcard_number) + { + $this->db->from('giftcards'); + $this->db->where('giftcard_number',$giftcard_number); + $this->db->where('deleted',0); + + $query = $this->db->get(); + + if($query->num_rows()==1) + { + return $query->row()->giftcard_id; + } + + return false; + } + + /* + Gets information about multiple giftcards + */ + function get_multiple_info($giftcard_ids) + { + $this->db->from('giftcards'); + $this->db->where_in('giftcard_id',$giftcard_ids); + $this->db->where('deleted',0); + $this->db->order_by("giftcard_number", "asc"); + return $this->db->get(); + } + + /* + Inserts or updates a giftcard + */ + function save(&$giftcard_data,$giftcard_id=false) + { + if (!$giftcard_id or !$this->exists($giftcard_id)) + { + if($this->db->insert('giftcards',$giftcard_data)) + { + $giftcard_data['giftcard_id']=$this->db->insert_id(); + return true; + } + return false; + } + + $this->db->where('giftcard_id', $giftcard_id); + return $this->db->update('giftcards',$giftcard_data); + } + + /* + Updates multiple giftcards at once + */ + function update_multiple($giftcard_data,$giftcard_ids) + { + $this->db->where_in('giftcard_id',$giftcard_ids); + return $this->db->update('giftcards',$giftcard_data); + } + + /* + Deletes one giftcard + */ + function delete($giftcard_id) + { + $this->db->where('giftcard_id', $giftcard_id); + return $this->db->update('giftcards', array('deleted' => 1)); + } + + /* + Deletes a list of giftcards + */ + function delete_list($giftcard_ids) + { + $this->db->where_in('giftcard_id',$giftcard_ids); + return $this->db->update('giftcards', array('deleted' => 1)); + } + + /* + Get search suggestions to find giftcards + */ + function get_search_suggestions($search,$limit=25) + { + $suggestions = array(); + + $this->db->from('giftcards'); + $this->db->like('giftcard_number', $search); + $this->db->where('deleted',0); + $this->db->order_by("giftcard_number", "asc"); + $by_number = $this->db->get(); + foreach($by_number->result() as $row) + { + $suggestions[]=$row->giftcard_number; + } + + //only return $limit suggestions + if(count($suggestions > $limit)) + { + $suggestions = array_slice($suggestions, 0,$limit); + } + return $suggestions; + + } + + /* + Preform a search on giftcards + */ + function search($search) + { + $this->db->from('giftcards'); + $this->db->where("giftcard_number LIKE '%".$this->db->escape_like_str($search)."%' and deleted=0"); + $this->db->order_by("giftcard_number", "asc"); + return $this->db->get(); + } + + public function get_giftcard_value( $giftcard_number ) + { + if ( !$this->exists( $this->get_giftcard_id($giftcard_number))) + return 0; + + $this->db->from('giftcards'); + $this->db->where('giftcard_number',$giftcard_number); + return $this->db->get()->row()->value; + } + + function update_giftcard_value( $giftcard_number, $value ) + { + $this->db->where('giftcard_number', $giftcard_number); + $this->db->update('giftcards', array('value' => $value)); + } +} +?> diff --git a/application/models/index.html b/application/models/index.html new file mode 100644 index 000000000..c942a79ce --- /dev/null +++ b/application/models/index.html @@ -0,0 +1,10 @@ + + + 403 Forbidden + + + +

Directory access is forbidden.

+ + + \ No newline at end of file diff --git a/application/models/inventory.php b/application/models/inventory.php new file mode 100644 index 000000000..2c18e0277 --- /dev/null +++ b/application/models/inventory.php @@ -0,0 +1,18 @@ +db->insert('inventory',$inventory_data); + } + + function get_inventory_data_for_item($item_id) + { + $this->db->from('inventory'); + $this->db->where('trans_items',$item_id); + $this->db->order_by("trans_date", "desc"); + return $this->db->get(); + } +} + +?> \ No newline at end of file diff --git a/application/models/item.php b/application/models/item.php new file mode 100644 index 000000000..23a6dc9b8 --- /dev/null +++ b/application/models/item.php @@ -0,0 +1,286 @@ +db->from('items'); + $this->db->where('item_id',$item_id); + $query = $this->db->get(); + + return ($query->num_rows()==1); + } + + /* + Returns all the items + */ + function get_all($limit=10000, $offset=0) + { + $this->db->from('items'); + $this->db->where('deleted',0); + $this->db->order_by("name", "asc"); + $this->db->limit($limit); + $this->db->offset($offset); + return $this->db->get(); + } + + function count_all() + { + $this->db->from('items'); + $this->db->where('deleted',0); + return $this->db->count_all_results(); + } + + function get_all_filtered($low_inventory=0,$is_serialized=0,$no_description) + { + $this->db->from('items'); + if ($low_inventory !=0 ) + { + $this->db->where('quantity <=','reorder_level', false); + } + if ($is_serialized !=0 ) + { + $this->db->where('is_serialized',1); + } + if ($no_description!=0 ) + { + $this->db->where('description',''); + } + $this->db->where('deleted',0); + $this->db->order_by("name", "asc"); + return $this->db->get(); + } + + /* + Gets information about a particular item + */ + function get_info($item_id) + { + $this->db->from('items'); + $this->db->where('item_id',$item_id); + + $query = $this->db->get(); + + if($query->num_rows()==1) + { + return $query->row(); + } + else + { + //Get empty base parent object, as $item_id is NOT an item + $item_obj=new stdClass(); + + //Get all the fields from items table + $fields = $this->db->list_fields('items'); + + foreach ($fields as $field) + { + $item_obj->$field=''; + } + + return $item_obj; + } + } + + /* + Get an item id given an item number + */ + function get_item_id($item_number) + { + $this->db->from('items'); + $this->db->where('item_number',$item_number); + + $query = $this->db->get(); + + if($query->num_rows()==1) + { + return $query->row()->item_id; + } + + return false; + } + + /* + Gets information about multiple items + */ + function get_multiple_info($item_ids) + { + $this->db->from('items'); + $this->db->where_in('item_id',$item_ids); + $this->db->order_by("item", "asc"); + return $this->db->get(); + } + + /* + Inserts or updates a item + */ + function save(&$item_data,$item_id=false) + { + if (!$item_id or !$this->exists($item_id)) + { + if($this->db->insert('items',$item_data)) + { + $item_data['item_id']=$this->db->insert_id(); + return true; + } + return false; + } + + $this->db->where('item_id', $item_id); + return $this->db->update('items',$item_data); + } + + /* + Updates multiple items at once + */ + function update_multiple($item_data,$item_ids) + { + $this->db->where_in('item_id',$item_ids); + return $this->db->update('items',$item_data); + } + + /* + Deletes one item + */ + function delete($item_id) + { + $this->db->where('item_id', $item_id); + return $this->db->update('items', array('deleted' => 1)); + } + + /* + Deletes a list of items + */ + function delete_list($item_ids) + { + $this->db->where_in('item_id',$item_ids); + return $this->db->update('items', array('deleted' => 1)); + } + + /* + Get search suggestions to find items + */ + function get_search_suggestions($search,$limit=25) + { + $suggestions = array(); + + $this->db->from('items'); + $this->db->like('name', $search); + $this->db->where('deleted',0); + $this->db->order_by("name", "asc"); + $by_name = $this->db->get(); + foreach($by_name->result() as $row) + { + $suggestions[]=$row->name; + } + + $this->db->select('category'); + $this->db->from('items'); + $this->db->where('deleted',0); + $this->db->distinct(); + $this->db->like('category', $search); + $this->db->order_by("category", "asc"); + $by_category = $this->db->get(); + foreach($by_category->result() as $row) + { + $suggestions[]=$row->category; + } + + $this->db->from('items'); + $this->db->like('item_number', $search); + $this->db->where('deleted',0); + $this->db->order_by("item_number", "asc"); + $by_item_number = $this->db->get(); + foreach($by_item_number->result() as $row) + { + $suggestions[]=$row->item_number; + } + + + //only return $limit suggestions + if(count($suggestions > $limit)) + { + $suggestions = array_slice($suggestions, 0,$limit); + } + return $suggestions; + + } + + function get_item_search_suggestions($search,$limit=25) + { + $suggestions = array(); + + $this->db->from('items'); + $this->db->where('deleted',0); + $this->db->like('name', $search); + $this->db->order_by("name", "asc"); + $by_name = $this->db->get(); + foreach($by_name->result() as $row) + { + $suggestions[]=$row->item_id.'|'.$row->name; + } + + $this->db->from('items'); + $this->db->where('deleted',0); + $this->db->like('item_number', $search); + $this->db->order_by("item_number", "asc"); + $by_item_number = $this->db->get(); + foreach($by_item_number->result() as $row) + { + $suggestions[]=$row->item_id.'|'.$row->item_number; + } + + //only return $limit suggestions + if(count($suggestions > $limit)) + { + $suggestions = array_slice($suggestions, 0,$limit); + } + return $suggestions; + + } + + function get_category_suggestions($search) + { + $suggestions = array(); + $this->db->distinct(); + $this->db->select('category'); + $this->db->from('items'); + $this->db->like('category', $search); + $this->db->where('deleted', 0); + $this->db->order_by("category", "asc"); + $by_category = $this->db->get(); + foreach($by_category->result() as $row) + { + $suggestions[]=$row->category; + } + + return $suggestions; + } + + /* + Preform a search on items + */ + function search($search) + { + $this->db->from('items'); + $this->db->where("(name LIKE '%".$this->db->escape_like_str($search)."%' or + item_number LIKE '%".$this->db->escape_like_str($search)."%' or + category LIKE '%".$this->db->escape_like_str($search)."%') and deleted=0"); + $this->db->order_by("name", "asc"); + return $this->db->get(); + } + + function get_categories() + { + $this->db->select('category'); + $this->db->from('items'); + $this->db->where('deleted',0); + $this->db->distinct(); + $this->db->order_by("category", "asc"); + + return $this->db->get(); + } +} +?> diff --git a/application/models/item_kit.php b/application/models/item_kit.php new file mode 100644 index 000000000..84fcc7807 --- /dev/null +++ b/application/models/item_kit.php @@ -0,0 +1,171 @@ +db->from('item_kits'); + $this->db->where('item_kit_id',$item_kit_id); + $query = $this->db->get(); + + return ($query->num_rows()==1); + } + + /* + Returns all the item kits + */ + function get_all($limit=10000, $offset=0) + { + $this->db->from('item_kits'); + $this->db->order_by("name", "asc"); + $this->db->limit($limit); + $this->db->offset($offset); + return $this->db->get(); + } + + function count_all() + { + $this->db->from('item_kits'); + return $this->db->count_all_results(); + } + + /* + Gets information about a particular item kit + */ + function get_info($item_kit_id) + { + $this->db->from('item_kits'); + $this->db->where('item_kit_id',$item_kit_id); + + $query = $this->db->get(); + + if($query->num_rows()==1) + { + return $query->row(); + } + else + { + //Get empty base parent object, as $item_kit_id is NOT an item kit + $item_obj=new stdClass(); + + //Get all the fields from items table + $fields = $this->db->list_fields('item_kits'); + + foreach ($fields as $field) + { + $item_obj->$field=''; + } + + return $item_obj; + } + } + + /* + Gets information about multiple item kits + */ + function get_multiple_info($item_kit_ids) + { + $this->db->from('item_kits'); + $this->db->where_in('item_kit_id',$item_kit_ids); + $this->db->order_by("name", "asc"); + return $this->db->get(); + } + + /* + Inserts or updates an item kit + */ + function save(&$item_kit_data,$item_kit_id=false) + { + if (!$item_kit_id or !$this->exists($item_kit_id)) + { + if($this->db->insert('item_kits',$item_kit_data)) + { + $item_kit_data['item_kit_id']=$this->db->insert_id(); + return true; + } + return false; + } + + $this->db->where('item_kit_id', $item_kit_id); + return $this->db->update('item_kits',$item_kit_data); + } + + /* + Deletes one item kit + */ + function delete($item_kit_id) + { + return $this->db->delete('item_kits', array('item_kit_id' => $id)); + } + + /* + Deletes a list of item kits + */ + function delete_list($item_kit_ids) + { + $this->db->where_in('item_kit_id',$item_kit_ids); + return $this->db->delete('item_kits'); + } + + /* + Get search suggestions to find kits + */ + function get_search_suggestions($search,$limit=25) + { + $suggestions = array(); + + $this->db->from('item_kits'); + $this->db->like('name', $search); + $this->db->order_by("name", "asc"); + $by_name = $this->db->get(); + foreach($by_name->result() as $row) + { + $suggestions[]=$row->name; + } + + //only return $limit suggestions + if(count($suggestions > $limit)) + { + $suggestions = array_slice($suggestions, 0,$limit); + } + return $suggestions; + + } + + function get_item_kit_search_suggestions($search, $limit=25) + { + $suggestions = array(); + + $this->db->from('item_kits'); + $this->db->like('name', $search); + $this->db->order_by("name", "asc"); + $by_name = $this->db->get(); + foreach($by_name->result() as $row) + { + $suggestions[]='KIT '.$row->item_kit_id.'|'.$row->name; + } + + //only return $limit suggestions + if(count($suggestions > $limit)) + { + $suggestions = array_slice($suggestions, 0,$limit); + } + return $suggestions; + + } + + /* + Preform a search on items + */ + function search($search) + { + $this->db->from('item_kits'); + $this->db->where("name LIKE '%".$this->db->escape_like_str($search)."%' or + description LIKE '%".$this->db->escape_like_str($search)."%'"); + $this->db->order_by("name", "asc"); + return $this->db->get(); + } +} +?> \ No newline at end of file diff --git a/application/models/item_kit_items.php b/application/models/item_kit_items.php new file mode 100644 index 000000000..e69598b7e --- /dev/null +++ b/application/models/item_kit_items.php @@ -0,0 +1,43 @@ +db->from('item_kit_items'); + $this->db->where('item_kit_id',$item_kit_id); + //return an array of item kit items for an item + return $this->db->get()->result_array(); + } + + /* + Inserts or updates an item kit's items + */ + function save(&$item_kit_items_data, $item_kit_id) + { + //Run these queries as a transaction, we want to make sure we do all or nothing + $this->db->trans_start(); + + $this->delete($item_kit_id); + + foreach ($item_kit_items_data as $row) + { + $row['item_kit_id'] = $item_kit_id; + $this->db->insert('item_kit_items',$row); + } + + $this->db->trans_complete(); + return true; + } + + /* + Deletes item kit items given an item kit + */ + function delete($item_kit_id) + { + return $this->db->delete('item_kit_items', array('item_kit_id' => $item_kit_id)); + } +} +?> diff --git a/application/models/item_taxes.php b/application/models/item_taxes.php new file mode 100644 index 000000000..18033baa7 --- /dev/null +++ b/application/models/item_taxes.php @@ -0,0 +1,51 @@ +db->from('items_taxes'); + $this->db->where('item_id',$item_id); + //return an array of taxes for an item + return $this->db->get()->result_array(); + } + + /* + Inserts or updates an item's taxes + */ + function save(&$items_taxes_data, $item_id) + { + //Run these queries as a transaction, we want to make sure we do all or nothing + $this->db->trans_start(); + + $this->delete($item_id); + + foreach ($items_taxes_data as $row) + { + $row['item_id'] = $item_id; + $this->db->insert('items_taxes',$row); + } + + $this->db->trans_complete(); + return true; + } + + function save_multiple(&$items_taxes_data, $item_ids) + { + foreach($item_ids as $item_id) + { + $this->save($items_taxes_data, $item_id); + } + } + + /* + Deletes taxes given an item + */ + function delete($item_id) + { + return $this->db->delete('items_taxes', array('item_id' => $item_id)); + } +} +?> diff --git a/application/models/module.php b/application/models/module.php new file mode 100644 index 000000000..1e14c6d85 --- /dev/null +++ b/application/models/module.php @@ -0,0 +1,50 @@ +db->get_where('modules', array('module_id' => $module_id), 1); + + if ($query->num_rows() ==1) + { + $row = $query->row(); + return $this->lang->line($row->name_lang_key); + } + + return $this->lang->line('error_unknown'); + } + + function get_module_desc($module_id) + { + $query = $this->db->get_where('modules', array('module_id' => $module_id), 1); + if ($query->num_rows() ==1) + { + $row = $query->row(); + return $this->lang->line($row->desc_lang_key); + } + + return $this->lang->line('error_unknown'); + } + + function get_all_modules() + { + $this->db->from('modules'); + $this->db->order_by("sort", "asc"); + return $this->db->get(); + } + + function get_allowed_modules($person_id) + { + $this->db->from('modules'); + $this->db->join('permissions','permissions.module_id=modules.module_id'); + $this->db->where("permissions.person_id",$person_id); + $this->db->order_by("sort", "asc"); + return $this->db->get(); + } +} +?> diff --git a/application/models/person.php b/application/models/person.php new file mode 100644 index 000000000..f906cf063 --- /dev/null +++ b/application/models/person.php @@ -0,0 +1,105 @@ +db->from('people'); + $this->db->where('people.person_id',$person_id); + $query = $this->db->get(); + + return ($query->num_rows()==1); + } + + /*Gets all people*/ + function get_all($limit=10000, $offset=0) + { + $this->db->from('people'); + $this->db->order_by("last_name", "asc"); + $this->db->limit($limit); + $this->db->offset($offset); + return $this->db->get(); + } + + function count_all() + { + $this->db->from('people'); + $this->db->where('deleted',0); + return $this->db->count_all_results(); + } + + /* + Gets information about a person as an array. + */ + function get_info($person_id) + { + $query = $this->db->get_where('people', array('person_id' => $person_id), 1); + + if($query->num_rows()==1) + { + return $query->row(); + } + else + { + //create object with empty properties. + $fields = $this->db->list_fields('people'); + $person_obj = new stdClass; + + foreach ($fields as $field) + { + $person_obj->$field=''; + } + + return $person_obj; + } + } + + /* + Get people with specific ids + */ + function get_multiple_info($person_ids) + { + $this->db->from('people'); + $this->db->where_in('person_id',$person_ids); + $this->db->order_by("last_name", "asc"); + return $this->db->get(); + } + + /* + Inserts or updates a person + */ + function save(&$person_data,$person_id=false) + { + if (!$person_id or !$this->exists($person_id)) + { + if ($this->db->insert('people',$person_data)) + { + $person_data['person_id']=$this->db->insert_id(); + return true; + } + + return false; + } + + $this->db->where('person_id', $person_id); + return $this->db->update('people',$person_data); + } + + /* + Deletes one Person (doesn't actually do anything) + */ + function delete($person_id) + { + return true;; + } + + /* + Deletes a list of people (doesn't actually do anything) + */ + function delete_list($person_ids) + { + return true; + } + +} +?> diff --git a/application/models/receiving.php b/application/models/receiving.php new file mode 100644 index 000000000..868aea60c --- /dev/null +++ b/application/models/receiving.php @@ -0,0 +1,118 @@ +db->from('receivings'); + $this->db->where('receiving_id',$receiving_id); + return $this->db->get(); + } + + function exists($receiving_id) + { + $this->db->from('receivings'); + $this->db->where('receiving_id',$receiving_id); + $query = $this->db->get(); + + return ($query->num_rows()==1); + } + + function save ($items,$supplier_id,$employee_id,$comment,$payment_type,$receiving_id=false) + { + if(count($items)==0) + return -1; + + $receivings_data = array( + 'supplier_id'=> $this->Supplier->exists($supplier_id) ? $supplier_id : null, + 'employee_id'=>$employee_id, + 'payment_type'=>$payment_type, + 'comment'=>$comment + ); + + //Run these queries as a transaction, we want to make sure we do all or nothing + $this->db->trans_start(); + + $this->db->insert('receivings',$receivings_data); + $receiving_id = $this->db->insert_id(); + + + foreach($items as $line=>$item) + { + $cur_item_info = $this->Item->get_info($item['item_id']); + + $receivings_items_data = array + ( + 'receiving_id'=>$receiving_id, + 'item_id'=>$item['item_id'], + 'line'=>$item['line'], + 'description'=>$item['description'], + 'serialnumber'=>$item['serialnumber'], + 'quantity_purchased'=>$item['quantity'], + 'discount_percent'=>$item['discount'], + 'item_cost_price' => $cur_item_info->cost_price, + 'item_unit_price'=>$item['price'] + ); + + $this->db->insert('receivings_items',$receivings_items_data); + + //Update stock quantity + $item_data = array('quantity'=>$cur_item_info->quantity + $item['quantity']); + $this->Item->save($item_data,$item['item_id']); + + $qty_recv = $item['quantity']; + $recv_remarks ='RECV '.$receiving_id; + $inv_data = array + ( + 'trans_date'=>date('Y-m-d H:i:s'), + 'trans_items'=>$item['item_id'], + 'trans_user'=>$employee_id, + 'trans_comment'=>$recv_remarks, + 'trans_inventory'=>$qty_recv + ); + $this->Inventory->insert($inv_data); + + $supplier = $this->Supplier->get_info($supplier_id); + } + $this->db->trans_complete(); + + if ($this->db->trans_status() === FALSE) + { + return -1; + } + + return $receiving_id; + } + + function get_receiving_items($receiving_id) + { + $this->db->from('receivings_items'); + $this->db->where('receiving_id',$receiving_id); + return $this->db->get(); + } + + function get_supplier($receiving_id) + { + $this->db->from('receivings'); + $this->db->where('receiving_id',$receiving_id); + return $this->Supplier->get_info($this->db->get()->row()->supplier_id); + } + + //We create a temp table that allows us to do easy report/receiving queries + public function create_receivings_items_temp_table() + { + $this->db->query("CREATE TEMPORARY TABLE ".$this->db->dbprefix('receivings_items_temp')." + (SELECT date(receiving_time) as receiving_date, ".$this->db->dbprefix('receivings_items').".receiving_id, comment,payment_type, employee_id, + ".$this->db->dbprefix('items').".item_id, ".$this->db->dbprefix('receivings').".supplier_id, quantity_purchased, item_cost_price, item_unit_price, + discount_percent, (item_unit_price*quantity_purchased-item_unit_price*quantity_purchased*discount_percent/100) as subtotal, + ".$this->db->dbprefix('receivings_items').".line as line, serialnumber, ".$this->db->dbprefix('receivings_items').".description as description, + ROUND((item_unit_price*quantity_purchased-item_unit_price*quantity_purchased*discount_percent/100),2) as total, + (item_unit_price*quantity_purchased-item_unit_price*quantity_purchased*discount_percent/100) - (item_cost_price*quantity_purchased) as profit + FROM ".$this->db->dbprefix('receivings_items')." + INNER JOIN ".$this->db->dbprefix('receivings')." ON ".$this->db->dbprefix('receivings_items').'.receiving_id='.$this->db->dbprefix('receivings').'.receiving_id'." + INNER JOIN ".$this->db->dbprefix('items')." ON ".$this->db->dbprefix('receivings_items').'.item_id='.$this->db->dbprefix('items').'.item_id'." + GROUP BY receiving_id, item_id, line)"); + } + + +} +?> diff --git a/application/models/reports/detailed_receivings.php b/application/models/reports/detailed_receivings.php new file mode 100644 index 000000000..0af71d504 --- /dev/null +++ b/application/models/reports/detailed_receivings.php @@ -0,0 +1,67 @@ + array($this->lang->line('reports_receiving_id'), $this->lang->line('reports_date'), $this->lang->line('reports_items_received'), $this->lang->line('reports_received_by'), $this->lang->line('reports_supplied_by'), $this->lang->line('reports_total'), $this->lang->line('reports_payment_type'), $this->lang->line('reports_comments')), + 'details' => array($this->lang->line('reports_name'), $this->lang->line('reports_category'), $this->lang->line('reports_quantity_purchased'), $this->lang->line('reports_total'), $this->lang->line('reports_discount')) + ); + } + + public function getData(array $inputs) + { + $this->db->select('receiving_id, receiving_date, sum(quantity_purchased) as items_purchased, CONCAT(employee.first_name," ",employee.last_name) as employee_name, CONCAT(supplier.first_name," ",supplier.last_name) as supplier_name, sum(total) as total, sum(profit) as profit, payment_type, comment', false); + $this->db->from('receivings_items_temp'); + $this->db->join('people as employee', 'receivings_items_temp.employee_id = employee.person_id'); + $this->db->join('people as supplier', 'receivings_items_temp.supplier_id = supplier.person_id', 'left'); + $this->db->where('receiving_date BETWEEN "'. $inputs['start_date']. '" and "'. $inputs['end_date'].'"'); + if ($inputs['sale_type'] == 'sales') + { + $this->db->where('quantity_purchased > 0'); + } + elseif ($inputs['sale_type'] == 'returns') + { + $this->db->where('quantity_purchased < 0'); + } + $this->db->group_by('receiving_id'); + $this->db->order_by('receiving_date'); + + $data = array(); + $data['summary'] = $this->db->get()->result_array(); + $data['details'] = array(); + + foreach($data['summary'] as $key=>$value) + { + $this->db->select('name, category, quantity_purchased, serialnumber,total, discount_percent'); + $this->db->from('receivings_items_temp'); + $this->db->join('items', 'receivings_items_temp.item_id = items.item_id'); + $this->db->where('receiving_id = '.$value['receiving_id']); + $data['details'][$key] = $this->db->get()->result_array(); + } + + return $data; + } + + public function getSummaryData(array $inputs) + { + $this->db->select('sum(total) as total'); + $this->db->from('receivings_items_temp'); + $this->db->where('receiving_date BETWEEN "'. $inputs['start_date']. '" and "'. $inputs['end_date'].'"'); + if ($inputs['sale_type'] == 'sales') + { + $this->db->where('quantity_purchased > 0'); + } + elseif ($inputs['sale_type'] == 'returns') + { + $this->db->where('quantity_purchased < 0'); + } + return $this->db->get()->row_array(); + } +} +?> \ No newline at end of file diff --git a/application/models/reports/detailed_sales.php b/application/models/reports/detailed_sales.php new file mode 100644 index 000000000..a1776c8fa --- /dev/null +++ b/application/models/reports/detailed_sales.php @@ -0,0 +1,68 @@ + array($this->lang->line('reports_sale_id'), $this->lang->line('reports_date'), $this->lang->line('reports_items_purchased'), $this->lang->line('reports_sold_by'), $this->lang->line('reports_sold_to'), $this->lang->line('reports_subtotal'), $this->lang->line('reports_total'), $this->lang->line('reports_tax'), $this->lang->line('reports_profit'), $this->lang->line('reports_payment_type'), $this->lang->line('reports_comments')), + 'details' => array($this->lang->line('reports_name'), $this->lang->line('reports_category'), $this->lang->line('reports_serial_number'), $this->lang->line('reports_description'), $this->lang->line('reports_quantity_purchased'), $this->lang->line('reports_subtotal'), $this->lang->line('reports_total'), $this->lang->line('reports_tax'), $this->lang->line('reports_profit'),$this->lang->line('reports_discount')) + ); + } + + public function getData(array $inputs) + { + $this->db->select('sale_id, sale_date, sum(quantity_purchased) as items_purchased, CONCAT(employee.first_name," ",employee.last_name) as employee_name, CONCAT(customer.first_name," ",customer.last_name) as customer_name, sum(subtotal) as subtotal, sum(total) as total, sum(tax) as tax, sum(profit) as profit, payment_type, comment', false); + $this->db->from('sales_items_temp'); + $this->db->join('people as employee', 'sales_items_temp.employee_id = employee.person_id'); + $this->db->join('people as customer', 'sales_items_temp.customer_id = customer.person_id', 'left'); + $this->db->where('sale_date BETWEEN "'. $inputs['start_date']. '" and "'. $inputs['end_date'].'"'); + if ($inputs['sale_type'] == 'sales') + { + $this->db->where('quantity_purchased > 0'); + } + elseif ($inputs['sale_type'] == 'returns') + { + $this->db->where('quantity_purchased < 0'); + } + $this->db->group_by('sale_id'); + $this->db->order_by('sale_date'); + + $data = array(); + $data['summary'] = $this->db->get()->result_array(); + $data['details'] = array(); + + foreach($data['summary'] as $key=>$value) + { + $this->db->select('name, category, quantity_purchased, serialnumber, sales_items_temp.description, subtotal,total, tax, profit, discount_percent'); + $this->db->from('sales_items_temp'); + $this->db->join('items', 'sales_items_temp.item_id = items.item_id'); + $this->db->where('sale_id = '.$value['sale_id']); + $data['details'][$key] = $this->db->get()->result_array(); + } + + return $data; + } + + public function getSummaryData(array $inputs) + { + $this->db->select('sum(subtotal) as subtotal, sum(total) as total, sum(tax) as tax, sum(profit) as profit'); + $this->db->from('sales_items_temp'); + $this->db->where('sale_date BETWEEN "'. $inputs['start_date']. '" and "'. $inputs['end_date'].'"'); + if ($inputs['sale_type'] == 'sales') + { + $this->db->where('quantity_purchased > 0'); + } + elseif ($inputs['sale_type'] == 'returns') + { + $this->db->where('quantity_purchased < 0'); + } + + return $this->db->get()->row_array(); + } +} +?> \ No newline at end of file diff --git a/application/models/reports/inventory_low.php b/application/models/reports/inventory_low.php new file mode 100644 index 000000000..98652e6a7 --- /dev/null +++ b/application/models/reports/inventory_low.php @@ -0,0 +1,31 @@ +lang->line('reports_item_name'), $this->lang->line('reports_item_number'), $this->lang->line('reports_description'), $this->lang->line('reports_count'), $this->lang->line('reports_reorder_level')); + } + + public function getData(array $inputs) + { + $this->db->select('name, item_number, quantity, reorder_level, description'); + $this->db->from('items'); + $this->db->where('quantity <= reorder_level and deleted=0'); + $this->db->order_by('name'); + + return $this->db->get()->result_array(); + + } + + public function getSummaryData(array $inputs) + { + return array(); + } +} +?> \ No newline at end of file diff --git a/application/models/reports/inventory_summary.php b/application/models/reports/inventory_summary.php new file mode 100644 index 000000000..a6130f891 --- /dev/null +++ b/application/models/reports/inventory_summary.php @@ -0,0 +1,31 @@ +lang->line('reports_item_name'), $this->lang->line('reports_item_number'), $this->lang->line('reports_description'), $this->lang->line('reports_count'), $this->lang->line('reports_reorder_level')); + } + + public function getData(array $inputs) + { + $this->db->select('name, item_number, quantity, reorder_level, description'); + $this->db->from('items'); + $this->db->where('deleted', 0); + $this->db->order_by('name'); + + return $this->db->get()->result_array(); + + } + + public function getSummaryData(array $inputs) + { + return array(); + } +} +?> \ No newline at end of file diff --git a/application/models/reports/report.php b/application/models/reports/report.php new file mode 100644 index 000000000..0a7f6e31a --- /dev/null +++ b/application/models/reports/report.php @@ -0,0 +1,28 @@ +output->set_header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); + $this->output->set_header("Cache-Control: no-store, no-cache, must-revalidate"); + $this->output->set_header("Cache-Control: post-check=0, pre-check=0", false); + $this->output->set_header("Pragma: no-cache"); + + //Create our temp tables to work with the data in our report + $this->Sale->create_sales_items_temp_table(); + $this->Receiving->create_receivings_items_temp_table(); + } + + //Returns the column names used for the report + public abstract function getDataColumns(); + + //Returns all the data to be populated into the report + public abstract function getData(array $inputs); + + //Returns key=>value pairing of summary data for the report + public abstract function getSummaryData(array $inputs); +} +?> \ No newline at end of file diff --git a/application/models/reports/specific_customer.php b/application/models/reports/specific_customer.php new file mode 100644 index 000000000..0b2f8c342 --- /dev/null +++ b/application/models/reports/specific_customer.php @@ -0,0 +1,66 @@ + array($this->lang->line('reports_sale_id'), $this->lang->line('reports_date'), $this->lang->line('reports_items_purchased'), $this->lang->line('reports_sold_by'), $this->lang->line('reports_subtotal'), $this->lang->line('reports_total'), $this->lang->line('reports_tax'), $this->lang->line('reports_profit'), $this->lang->line('reports_payment_type'), $this->lang->line('reports_comments')), + 'details' => array($this->lang->line('reports_name'), $this->lang->line('reports_category'),$this->lang->line('reports_serial_number'), $this->lang->line('reports_description'), $this->lang->line('reports_quantity_purchased'), $this->lang->line('reports_subtotal'), $this->lang->line('reports_total'), $this->lang->line('reports_tax'), $this->lang->line('reports_profit'),$this->lang->line('reports_discount')) + ); + } + + public function getData(array $inputs) + { + $this->db->select('sale_id, sale_date, sum(quantity_purchased) as items_purchased, CONCAT(first_name," ",last_name) as employee_name, sum(subtotal) as subtotal, sum(total) as total, sum(tax) as tax, sum(profit) as profit, payment_type, comment', false); + $this->db->from('sales_items_temp'); + $this->db->join('people', 'sales_items_temp.employee_id = people.person_id'); + $this->db->where('sale_date BETWEEN "'. $inputs['start_date']. '" and "'. $inputs['end_date'].'" and customer_id='.$inputs['customer_id']); + if ($inputs['sale_type'] == 'sales') + { + $this->db->where('quantity_purchased > 0'); + } + elseif ($inputs['sale_type'] == 'returns') + { + $this->db->where('quantity_purchased < 0'); + } + $this->db->group_by('sale_id'); + $this->db->order_by('sale_date'); + + $data = array(); + $data['summary'] = $this->db->get()->result_array(); + $data['details'] = array(); + + foreach($data['summary'] as $key=>$value) + { + $this->db->select('name, category, serialnumber, sales_items_temp.description, quantity_purchased, subtotal,total, tax, profit, discount_percent'); + $this->db->from('sales_items_temp'); + $this->db->join('items', 'sales_items_temp.item_id = items.item_id'); + $this->db->where('sale_id = '.$value['sale_id']); + $data['details'][$key] = $this->db->get()->result_array(); + } + + return $data; + } + + public function getSummaryData(array $inputs) + { + $this->db->select('sum(subtotal) as subtotal, sum(total) as total, sum(tax) as tax, sum(profit) as profit'); + $this->db->from('sales_items_temp'); + $this->db->where('sale_date BETWEEN "'. $inputs['start_date']. '" and "'. $inputs['end_date'].'" and customer_id='.$inputs['customer_id']); + if ($inputs['sale_type'] == 'sales') + { + $this->db->where('quantity_purchased > 0'); + } + elseif ($inputs['sale_type'] == 'returns') + { + $this->db->where('quantity_purchased < 0'); + } + return $this->db->get()->row_array(); + } +} +?> \ No newline at end of file diff --git a/application/models/reports/specific_employee.php b/application/models/reports/specific_employee.php new file mode 100644 index 000000000..39fff80f9 --- /dev/null +++ b/application/models/reports/specific_employee.php @@ -0,0 +1,68 @@ + array($this->lang->line('reports_sale_id'), $this->lang->line('reports_date'), $this->lang->line('reports_items_purchased'), $this->lang->line('reports_sold_to'), $this->lang->line('reports_subtotal'), $this->lang->line('reports_total'), $this->lang->line('reports_tax'), $this->lang->line('reports_profit'), $this->lang->line('reports_payment_type'), $this->lang->line('reports_comments')), + 'details' => array($this->lang->line('reports_name'), $this->lang->line('reports_category'), $this->lang->line('reports_serial_number'), $this->lang->line('reports_description'), $this->lang->line('reports_quantity_purchased'), $this->lang->line('reports_subtotal'), $this->lang->line('reports_total'), $this->lang->line('reports_tax'), $this->lang->line('reports_profit'),$this->lang->line('reports_discount')) + ); + } + + public function getData(array $inputs) + { + $this->db->select('sale_id, sale_date, sum(quantity_purchased) as items_purchased, CONCAT(first_name," ",last_name) as customer_name, sum(subtotal) as subtotal, sum(total) as total, sum(tax) as tax, sum(profit) as profit, payment_type, comment', false); + $this->db->from('sales_items_temp'); + $this->db->join('people', 'sales_items_temp.customer_id = people.person_id', 'left'); + $this->db->where('sale_date BETWEEN "'. $inputs['start_date']. '" and "'. $inputs['end_date'].'" and employee_id='.$inputs['employee_id']); + + if ($inputs['sale_type'] == 'sales') + { + $this->db->where('quantity_purchased > 0'); + } + elseif ($inputs['sale_type'] == 'returns') + { + $this->db->where('quantity_purchased < 0'); + } + + $this->db->group_by('sale_id'); + $this->db->order_by('sale_date'); + + $data = array(); + $data['summary'] = $this->db->get()->result_array(); + $data['details'] = array(); + + foreach($data['summary'] as $key=>$value) + { + $this->db->select('name, category, serialnumber, sales_items_temp.description, quantity_purchased, subtotal,total, tax, profit, discount_percent'); + $this->db->from('sales_items_temp'); + $this->db->join('items', 'sales_items_temp.item_id = items.item_id'); + $this->db->where('sale_id = '.$value['sale_id']); + $data['details'][$key] = $this->db->get()->result_array(); + } + + return $data; + } + + public function getSummaryData(array $inputs) + { + $this->db->select('sum(subtotal) as subtotal, sum(total) as total, sum(tax) as tax, sum(profit) as profit'); + $this->db->from('sales_items_temp'); + $this->db->where('sale_date BETWEEN "'. $inputs['start_date']. '" and "'. $inputs['end_date'].'" and employee_id='.$inputs['employee_id']); + if ($inputs['sale_type'] == 'sales') + { + $this->db->where('quantity_purchased > 0'); + } + elseif ($inputs['sale_type'] == 'returns') + { + $this->db->where('quantity_purchased < 0'); + } + return $this->db->get()->row_array(); + } +} +?> \ No newline at end of file diff --git a/application/models/reports/summary_categories.php b/application/models/reports/summary_categories.php new file mode 100644 index 000000000..27c30ae46 --- /dev/null +++ b/application/models/reports/summary_categories.php @@ -0,0 +1,53 @@ +lang->line('reports_category'), $this->lang->line('reports_subtotal'), $this->lang->line('reports_total'), $this->lang->line('reports_tax'), $this->lang->line('reports_profit')); + } + + public function getData(array $inputs) + { + $this->db->select('category, sum(subtotal) as subtotal, sum(total) as total, sum(tax) as tax, sum(profit) as profit'); + $this->db->from('sales_items_temp'); + $this->db->join('items', 'sales_items_temp.item_id = items.item_id'); + $this->db->where('sale_date BETWEEN "'. $inputs['start_date']. '" and "'. $inputs['end_date'].'"'); + if ($inputs['sale_type'] == 'sales') + { + $this->db->where('quantity_purchased > 0'); + } + elseif ($inputs['sale_type'] == 'returns') + { + $this->db->where('quantity_purchased < 0'); + } + $this->db->group_by('category'); + $this->db->order_by('category'); + + return $this->db->get()->result_array(); + } + + public function getSummaryData(array $inputs) + { + $this->db->select('sum(subtotal) as subtotal, sum(total) as total, sum(tax) as tax, sum(profit) as profit'); + $this->db->from('sales_items_temp'); + $this->db->join('items', 'sales_items_temp.item_id = items.item_id'); + $this->db->where('sale_date BETWEEN "'. $inputs['start_date']. '" and "'. $inputs['end_date'].'"'); + if ($inputs['sale_type'] == 'sales') + { + $this->db->where('quantity_purchased > 0'); + } + elseif ($inputs['sale_type'] == 'returns') + { + $this->db->where('quantity_purchased < 0'); + } + + return $this->db->get()->row_array(); + } +} +?> \ No newline at end of file diff --git a/application/models/reports/summary_customers.php b/application/models/reports/summary_customers.php new file mode 100644 index 000000000..1f8fa6aea --- /dev/null +++ b/application/models/reports/summary_customers.php @@ -0,0 +1,54 @@ +lang->line('reports_customer'), $this->lang->line('reports_subtotal'), $this->lang->line('reports_total'), $this->lang->line('reports_tax'), $this->lang->line('reports_profit')); + } + + public function getData(array $inputs) + { + $this->db->select('CONCAT(first_name, " ",last_name) as customer, sum(subtotal) as subtotal, sum(total) as total, sum(tax) as tax,sum(profit) as profit', false); + $this->db->from('sales_items_temp'); + $this->db->join('customers', 'customers.person_id = sales_items_temp.customer_id'); + $this->db->join('people', 'customers.person_id = people.person_id'); + $this->db->where('sale_date BETWEEN "'. $inputs['start_date']. '" and "'. $inputs['end_date'].'"'); + if ($inputs['sale_type'] == 'sales') + { + $this->db->where('quantity_purchased > 0'); + } + elseif ($inputs['sale_type'] == 'returns') + { + $this->db->where('quantity_purchased < 0'); + } + $this->db->group_by('customer_id'); + $this->db->order_by('last_name'); + + return $this->db->get()->result_array(); + } + + public function getSummaryData(array $inputs) + { + $this->db->select('sum(subtotal) as subtotal, sum(total) as total, sum(tax) as tax, sum(profit) as profit'); + $this->db->from('sales_items_temp'); + $this->db->join('customers', 'customers.person_id = sales_items_temp.customer_id'); + $this->db->join('people', 'customers.person_id = people.person_id'); + $this->db->where('sale_date BETWEEN "'. $inputs['start_date']. '" and "'. $inputs['end_date'].'"'); + if ($inputs['sale_type'] == 'sales') + { + $this->db->where('quantity_purchased > 0'); + } + elseif ($inputs['sale_type'] == 'returns') + { + $this->db->where('quantity_purchased < 0'); + } + return $this->db->get()->row_array(); + } +} +?> \ No newline at end of file diff --git a/application/models/reports/summary_discounts.php b/application/models/reports/summary_discounts.php new file mode 100644 index 000000000..6b3949eb0 --- /dev/null +++ b/application/models/reports/summary_discounts.php @@ -0,0 +1,49 @@ +lang->line('reports_discount_percent'),$this->lang->line('reports_count')); + } + + public function getData(array $inputs) + { + $this->db->select('CONCAT(discount_percent, "%") as discount_percent, count(*) as count', false); + $this->db->from('sales_items_temp'); + $this->db->where('sale_date BETWEEN "'. $inputs['start_date']. '" and "'. $inputs['end_date'].'" and discount_percent > 0'); + if ($inputs['sale_type'] == 'sales') + { + $this->db->where('quantity_purchased > 0'); + } + elseif ($inputs['sale_type'] == 'returns') + { + $this->db->where('quantity_purchased < 0'); + } + $this->db->group_by('sales_items_temp.discount_percent'); + $this->db->order_by('discount_percent'); + return $this->db->get()->result_array(); + } + + public function getSummaryData(array $inputs) + { + $this->db->select('sum(subtotal) as subtotal, sum(total) as total, sum(tax) as tax,sum(profit) as profit'); + $this->db->from('sales_items_temp'); + $this->db->where('sale_date BETWEEN "'. $inputs['start_date']. '" and "'. $inputs['end_date'].'"'); + if ($inputs['sale_type'] == 'sales') + { + $this->db->where('quantity_purchased > 0'); + } + elseif ($inputs['sale_type'] == 'returns') + { + $this->db->where('quantity_purchased < 0'); + } + return $this->db->get()->row_array(); + } +} +?> \ No newline at end of file diff --git a/application/models/reports/summary_employees.php b/application/models/reports/summary_employees.php new file mode 100644 index 000000000..5308e8e95 --- /dev/null +++ b/application/models/reports/summary_employees.php @@ -0,0 +1,55 @@ +lang->line('reports_employee'), $this->lang->line('reports_subtotal'), $this->lang->line('reports_total'), $this->lang->line('reports_tax'), $this->lang->line('reports_profit')); + } + + public function getData(array $inputs) + { + $this->db->select('CONCAT(first_name, " ",last_name) as employee, sum(subtotal) as subtotal, sum(total) as total, sum(tax) as tax, sum(profit) as profit', false); + $this->db->from('sales_items_temp'); + $this->db->join('employees', 'employees.person_id = sales_items_temp.employee_id'); + $this->db->join('people', 'employees.person_id = people.person_id'); + $this->db->where('sale_date BETWEEN "'. $inputs['start_date']. '" and "'. $inputs['end_date'].'"'); + if ($inputs['sale_type'] == 'sales') + { + $this->db->where('quantity_purchased > 0'); + } + elseif ($inputs['sale_type'] == 'returns') + { + $this->db->where('quantity_purchased < 0'); + } + $this->db->group_by('employee_id'); + $this->db->order_by('last_name'); + + return $this->db->get()->result_array(); + } + + public function getSummaryData(array $inputs) + { + $this->db->select('sum(subtotal) as subtotal, sum(total) as total, sum(tax) as tax, sum(profit) as profit'); + $this->db->from('sales_items_temp'); + $this->db->join('employees', 'employees.person_id = sales_items_temp.employee_id'); + $this->db->join('people', 'employees.person_id = people.person_id'); + $this->db->where('sale_date BETWEEN "'. $inputs['start_date']. '" and "'. $inputs['end_date'].'"'); + if ($inputs['sale_type'] == 'sales') + { + $this->db->where('quantity_purchased > 0'); + } + elseif ($inputs['sale_type'] == 'returns') + { + $this->db->where('quantity_purchased < 0'); + } + + return $this->db->get()->row_array(); + } +} +?> \ No newline at end of file diff --git a/application/models/reports/summary_items.php b/application/models/reports/summary_items.php new file mode 100644 index 000000000..8aefb5475 --- /dev/null +++ b/application/models/reports/summary_items.php @@ -0,0 +1,52 @@ +lang->line('reports_item'),$this->lang->line('reports_quantity_purchased'), $this->lang->line('reports_subtotal'), $this->lang->line('reports_total'), $this->lang->line('reports_tax'),$this->lang->line('reports_profit')); + } + + public function getData(array $inputs) + { + $this->db->select('name, sum(quantity_purchased) as quantity_purchased, sum(subtotal) as subtotal, sum(total) as total, sum(tax) as tax, sum(profit) as profit'); + $this->db->from('sales_items_temp'); + $this->db->join('items', 'sales_items_temp.item_id = items.item_id'); + $this->db->where('sale_date BETWEEN "'. $inputs['start_date']. '" and "'. $inputs['end_date'].'"'); + if ($inputs['sale_type'] == 'sales') + { + $this->db->where('quantity_purchased > 0'); + } + elseif ($inputs['sale_type'] == 'returns') + { + $this->db->where('quantity_purchased < 0'); + } + $this->db->group_by('items.item_id'); + $this->db->order_by('name'); + + return $this->db->get()->result_array(); + } + + public function getSummaryData(array $inputs) + { + $this->db->select('sum(subtotal) as subtotal, sum(total) as total, sum(tax) as tax, sum(profit) as profit'); + $this->db->from('sales_items_temp'); + $this->db->join('items', 'sales_items_temp.item_id = items.item_id'); + $this->db->where('sale_date BETWEEN "'. $inputs['start_date']. '" and "'. $inputs['end_date'].'"'); + if ($inputs['sale_type'] == 'sales') + { + $this->db->where('quantity_purchased > 0'); + } + elseif ($inputs['sale_type'] == 'returns') + { + $this->db->where('quantity_purchased < 0'); + } + return $this->db->get()->row_array(); + } +} +?> \ No newline at end of file diff --git a/application/models/reports/summary_payments.php b/application/models/reports/summary_payments.php new file mode 100644 index 000000000..2c95ac69c --- /dev/null +++ b/application/models/reports/summary_payments.php @@ -0,0 +1,50 @@ +lang->line('reports_payment_type'), $this->lang->line('reports_total')); + } + + public function getData(array $inputs) + { + $this->db->select('sales_payments.payment_type, SUM(payment_amount) as payment_amount', false); + $this->db->from('sales_payments'); + $this->db->join('sales', 'sales.sale_id=sales_payments.sale_id'); + $this->db->where('date(sale_time) BETWEEN "'. $inputs['start_date']. '" and "'. $inputs['end_date'].'"'); + if ($inputs['sale_type'] == 'sales') + { + $this->db->where('payment_amount > 0'); + } + elseif ($inputs['sale_type'] == 'returns') + { + $this->db->where('payment_amount < 0'); + } + $this->db->group_by("payment_type"); + return $this->db->get()->result_array(); + } + + public function getSummaryData(array $inputs) + { + $this->db->select('sum(subtotal) as subtotal, sum(total) as total, sum(tax) as tax, sum(profit) as profit'); + $this->db->from('sales_items_temp'); + $this->db->join('items', 'sales_items_temp.item_id = items.item_id'); + $this->db->where('sale_date BETWEEN "'. $inputs['start_date']. '" and "'. $inputs['end_date'].'"'); + if ($inputs['sale_type'] == 'sales') + { + $this->db->where('quantity_purchased > 0'); + } + elseif ($inputs['sale_type'] == 'returns') + { + $this->db->where('quantity_purchased < 0'); + } + return $this->db->get()->row_array(); + } +} +?> \ No newline at end of file diff --git a/application/models/reports/summary_sales.php b/application/models/reports/summary_sales.php new file mode 100644 index 000000000..e7914a9ee --- /dev/null +++ b/application/models/reports/summary_sales.php @@ -0,0 +1,51 @@ +lang->line('reports_date'), $this->lang->line('reports_subtotal'), $this->lang->line('reports_total'), $this->lang->line('reports_tax'), $this->lang->line('reports_profit')); + } + + public function getData(array $inputs) + { + $this->db->select('sale_date, sum(subtotal) as subtotal, sum(total) as total, sum(tax) as tax,sum(profit) as profit'); + $this->db->from('sales_items_temp'); + if ($inputs['sale_type'] == 'sales') + { + $this->db->where('quantity_purchased > 0'); + } + elseif ($inputs['sale_type'] == 'returns') + { + $this->db->where('quantity_purchased < 0'); + } + + $this->db->group_by('sale_date'); + $this->db->having('sale_date BETWEEN "'. $inputs['start_date']. '" and "'. $inputs['end_date'].'"'); + $this->db->order_by('sale_date'); + return $this->db->get()->result_array(); + } + + public function getSummaryData(array $inputs) + { + $this->db->select('sum(subtotal) as subtotal, sum(total) as total, sum(tax) as tax,sum(profit) as profit'); + $this->db->from('sales_items_temp'); + $this->db->where('sale_date BETWEEN "'. $inputs['start_date']. '" and "'. $inputs['end_date'].'"'); + if ($inputs['sale_type'] == 'sales') + { + $this->db->where('quantity_purchased > 0'); + } + elseif ($inputs['sale_type'] == 'returns') + { + $this->db->where('quantity_purchased < 0'); + } + return $this->db->get()->row_array(); + } + +} +?> \ No newline at end of file diff --git a/application/models/reports/summary_suppliers.php b/application/models/reports/summary_suppliers.php new file mode 100644 index 000000000..98566c343 --- /dev/null +++ b/application/models/reports/summary_suppliers.php @@ -0,0 +1,55 @@ +lang->line('reports_supplier'), $this->lang->line('reports_subtotal'), $this->lang->line('reports_total'), $this->lang->line('reports_tax'), $this->lang->line('reports_profit')); + } + + public function getData(array $inputs) + { + $this->db->select('CONCAT(first_name, " ",last_name) as supplier, sum(subtotal) as subtotal, sum(total) as total, sum(tax) as tax,sum(profit) as profit', false); + $this->db->from('sales_items_temp'); + $this->db->join('suppliers', 'suppliers.person_id = sales_items_temp.supplier_id'); + $this->db->join('people', 'suppliers.person_id = people.person_id'); + $this->db->where('sale_date BETWEEN "'. $inputs['start_date']. '" and "'. $inputs['end_date'].'"'); + if ($inputs['sale_type'] == 'sales') + { + $this->db->where('quantity_purchased > 0'); + } + elseif ($inputs['sale_type'] == 'returns') + { + $this->db->where('quantity_purchased < 0'); + } + $this->db->group_by('supplier_id'); + $this->db->order_by('last_name'); + + return $this->db->get()->result_array(); + } + + public function getSummaryData(array $inputs) + { + $this->db->select('sum(subtotal) as subtotal, sum(total) as total, sum(tax) as tax, sum(profit) as profit'); + $this->db->from('sales_items_temp'); + $this->db->join('suppliers', 'suppliers.person_id = sales_items_temp.supplier_id'); + $this->db->join('people', 'suppliers.person_id = people.person_id'); + $this->db->where('sale_date BETWEEN "'. $inputs['start_date']. '" and "'. $inputs['end_date'].'"'); + if ($inputs['sale_type'] == 'sales') + { + $this->db->where('quantity_purchased > 0'); + } + elseif ($inputs['sale_type'] == 'returns') + { + $this->db->where('quantity_purchased < 0'); + } + + return $this->db->get()->row_array(); + } +} +?> \ No newline at end of file diff --git a/application/models/reports/summary_taxes.php b/application/models/reports/summary_taxes.php new file mode 100644 index 000000000..824a72749 --- /dev/null +++ b/application/models/reports/summary_taxes.php @@ -0,0 +1,66 @@ +lang->line('reports_tax_percent'), $this->lang->line('reports_subtotal'), $this->lang->line('reports_total'), $this->lang->line('reports_tax')); + } + + public function getData(array $inputs) + { + + $quanitity_cond = ''; + if ($inputs['sale_type'] == 'sales') + { + $quanitity_cond = 'and quantity_purchased > 0'; + } + elseif ($inputs['sale_type'] == 'returns') + { + $quanitity_cond = 'and quantity_purchased < 0'; + } + + $query = $this->db->query("SELECT percent, SUM(subtotal) as subtotal, sum(total) as total, sum(tax) as tax + FROM (SELECT name, CONCAT( percent, '%' ) AS percent, ( + item_unit_price * quantity_purchased - item_unit_price * quantity_purchased * discount_percent /100 + ) AS subtotal, ROUND( ( + item_unit_price * quantity_purchased - item_unit_price * quantity_purchased * discount_percent /100 + ) * ( 1 + ( percent /100 ) ) , 2 ) AS total, ROUND( ( + item_unit_price * quantity_purchased - item_unit_price * quantity_purchased * discount_percent /100 + ) * ( percent /100 ) , 2 ) AS tax + FROM ".$this->db->dbprefix('sales_items_taxes')." + JOIN ".$this->db->dbprefix('sales_items')." ON " + .$this->db->dbprefix('sales_items').'.sale_id='.$this->db->dbprefix('sales_items_taxes').'.sale_id'." and " + .$this->db->dbprefix('sales_items').'.item_id='.$this->db->dbprefix('sales_items_taxes').'.item_id'." and " + .$this->db->dbprefix('sales_items').'.line='.$this->db->dbprefix('sales_items_taxes').'.line' + ." JOIN ".$this->db->dbprefix('sales')." ON ".$this->db->dbprefix('sales_items_taxes').".sale_id=".$this->db->dbprefix('sales').".sale_id + WHERE date(sale_time) BETWEEN '".$inputs['start_date']."' and '".$inputs['end_date']."' $quanitity_cond) as temp_taxes + GROUP BY percent"); + return $query->result_array(); + } + + public function getSummaryData(array $inputs) + { + $this->db->select('sum(subtotal) as subtotal, sum(total) as total, sum(tax) as tax, sum(profit) as profit'); + $this->db->from('sales_items_temp'); + $this->db->join('items', 'sales_items_temp.item_id = items.item_id'); + $this->db->where('sale_date BETWEEN "'. $inputs['start_date']. '" and "'. $inputs['end_date'].'"'); + + if ($inputs['sale_type'] == 'sales') + { + $this->db->where('quantity_purchased > 0'); + } + elseif ($inputs['sale_type'] == 'returns') + { + $this->db->where('quantity_purchased < 0'); + } + + return $this->db->get()->row_array(); + } +} +?> \ No newline at end of file diff --git a/application/models/sale.php b/application/models/sale.php new file mode 100644 index 000000000..6867fc803 --- /dev/null +++ b/application/models/sale.php @@ -0,0 +1,216 @@ +db->from('sales'); + $this->db->where('sale_id',$sale_id); + return $this->db->get(); + } + + function exists($sale_id) + { + $this->db->from('sales'); + $this->db->where('sale_id',$sale_id); + $query = $this->db->get(); + + return ($query->num_rows()==1); + } + + function update($sale_data, $sale_id) + { + $this->db->where('sale_id', $sale_id); + $success = $this->db->update('sales',$sale_data); + + return $success; + } + + function save ($items,$customer_id,$employee_id,$comment,$payments,$sale_id=false) + { + if(count($items)==0) + return -1; + + //Alain Multiple payments + //Build payment types string + $payment_types=''; + foreach($payments as $payment_id=>$payment) + { + $payment_types=$payment_types.$payment['payment_type'].': '.to_currency($payment['payment_amount']).'
'; + } + + $sales_data = array( + 'sale_time' => date('Y-m-d H:i:s'), + 'customer_id'=> $this->Customer->exists($customer_id) ? $customer_id : null, + 'employee_id'=>$employee_id, + 'payment_type'=>$payment_types, + 'comment'=>$comment + ); + + //Run these queries as a transaction, we want to make sure we do all or nothing + $this->db->trans_start(); + + $this->db->insert('sales',$sales_data); + $sale_id = $this->db->insert_id(); + + foreach($payments as $payment_id=>$payment) + { + if ( substr( $payment['payment_type'], 0, strlen( $this->lang->line('sales_giftcard') ) ) == $this->lang->line('sales_giftcard') ) + { + /* We have a gift card and we have to deduct the used value from the total value of the card. */ + $splitpayment = explode( ':', $payment['payment_type'] ); + $cur_giftcard_value = $this->Giftcard->get_giftcard_value( $splitpayment[1] ); + $this->Giftcard->update_giftcard_value( $splitpayment[1], $cur_giftcard_value - $payment['payment_amount'] ); + } + + $sales_payments_data = array + ( + 'sale_id'=>$sale_id, + 'payment_type'=>$payment['payment_type'], + 'payment_amount'=>$payment['payment_amount'] + ); + $this->db->insert('sales_payments',$sales_payments_data); + } + + foreach($items as $line=>$item) + { + $cur_item_info = $this->Item->get_info($item['item_id']); + + $sales_items_data = array + ( + 'sale_id'=>$sale_id, + 'item_id'=>$item['item_id'], + 'line'=>$item['line'], + 'description'=>$item['description'], + 'serialnumber'=>$item['serialnumber'], + 'quantity_purchased'=>$item['quantity'], + 'discount_percent'=>$item['discount'], + 'item_cost_price' => $cur_item_info->cost_price, + 'item_unit_price'=>$item['price'] + ); + + $this->db->insert('sales_items',$sales_items_data); + + //Update stock quantity + $item_data = array('quantity'=>$cur_item_info->quantity - $item['quantity']); + $this->Item->save($item_data,$item['item_id']); + + //Ramel Inventory Tracking + //Inventory Count Details + $qty_buy = -$item['quantity']; + $sale_remarks ='POS '.$sale_id; + $inv_data = array + ( + 'trans_date'=>date('Y-m-d H:i:s'), + 'trans_items'=>$item['item_id'], + 'trans_user'=>$employee_id, + 'trans_comment'=>$sale_remarks, + 'trans_inventory'=>$qty_buy + ); + $this->Inventory->insert($inv_data); + //------------------------------------Ramel + + $customer = $this->Customer->get_info($customer_id); + if ($customer_id == -1 or $customer->taxable) + { + foreach($this->Item_taxes->get_info($item['item_id']) as $row) + { + $this->db->insert('sales_items_taxes', array( + 'sale_id' =>$sale_id, + 'item_id' =>$item['item_id'], + 'line' =>$item['line'], + 'name' =>$row['name'], + 'percent' =>$row['percent'] + )); + } + } + } + $this->db->trans_complete(); + + if ($this->db->trans_status() === FALSE) + { + return -1; + } + + return $sale_id; + } + + function delete($sale_id) + { + //Run these queries as a transaction, we want to make sure we do all or nothing + $this->db->trans_start(); + + $this->db->delete('sales_payments', array('sale_id' => $sale_id)); + $this->db->delete('sales_items_taxes', array('sale_id' => $sale_id)); + $this->db->delete('sales_items', array('sale_id' => $sale_id)); + $this->db->delete('sales', array('sale_id' => $sale_id)); + + $this->db->trans_complete(); + + return $this->db->trans_status(); + } + + function get_sale_items($sale_id) + { + $this->db->from('sales_items'); + $this->db->where('sale_id',$sale_id); + return $this->db->get(); + } + + function get_sale_payments($sale_id) + { + $this->db->from('sales_payments'); + $this->db->where('sale_id',$sale_id); + return $this->db->get(); + } + + function get_customer($sale_id) + { + $this->db->from('sales'); + $this->db->where('sale_id',$sale_id); + return $this->Customer->get_info($this->db->get()->row()->customer_id); + } + + //We create a temp table that allows us to do easy report/sales queries + public function create_sales_items_temp_table() + { + $this->db->query("CREATE TEMPORARY TABLE ".$this->db->dbprefix('sales_items_temp')." + (SELECT date(sale_time) as sale_date, ".$this->db->dbprefix('sales_items').".sale_id, comment,payment_type, customer_id, employee_id, + ".$this->db->dbprefix('items').".item_id, supplier_id, quantity_purchased, item_cost_price, item_unit_price, SUM(percent) as item_tax_percent, + discount_percent, (item_unit_price*quantity_purchased-item_unit_price*quantity_purchased*discount_percent/100) as subtotal, + ".$this->db->dbprefix('sales_items').".line as line, serialnumber, ".$this->db->dbprefix('sales_items').".description as description, + ROUND((item_unit_price*quantity_purchased-item_unit_price*quantity_purchased*discount_percent/100)*(1+(SUM(percent)/100)),2) as total, + ROUND((item_unit_price*quantity_purchased-item_unit_price*quantity_purchased*discount_percent/100)*(SUM(percent)/100),2) as tax, + (item_unit_price*quantity_purchased-item_unit_price*quantity_purchased*discount_percent/100) - (item_cost_price*quantity_purchased) as profit + FROM ".$this->db->dbprefix('sales_items')." + INNER JOIN ".$this->db->dbprefix('sales')." ON ".$this->db->dbprefix('sales_items').'.sale_id='.$this->db->dbprefix('sales').'.sale_id'." + INNER JOIN ".$this->db->dbprefix('items')." ON ".$this->db->dbprefix('sales_items').'.item_id='.$this->db->dbprefix('items').'.item_id'." + LEFT OUTER JOIN ".$this->db->dbprefix('suppliers')." ON ".$this->db->dbprefix('items').'.supplier_id='.$this->db->dbprefix('suppliers').'.person_id'." + LEFT OUTER JOIN ".$this->db->dbprefix('sales_items_taxes')." ON " + .$this->db->dbprefix('sales_items').'.sale_id='.$this->db->dbprefix('sales_items_taxes').'.sale_id'." and " + .$this->db->dbprefix('sales_items').'.item_id='.$this->db->dbprefix('sales_items_taxes').'.item_id'." and " + .$this->db->dbprefix('sales_items').'.line='.$this->db->dbprefix('sales_items_taxes').'.line'." + GROUP BY sale_id, item_id, line)"); + + //Update null item_tax_percents to be 0 instead of null + $this->db->where('item_tax_percent IS NULL'); + $this->db->update('sales_items_temp', array('item_tax_percent' => 0)); + + //Update null tax to be 0 instead of null + $this->db->where('tax IS NULL'); + $this->db->update('sales_items_temp', array('tax' => 0)); + + //Update null subtotals to be equal to the total as these don't have tax + $this->db->query('UPDATE '.$this->db->dbprefix('sales_items_temp'). ' SET total=subtotal WHERE total IS NULL'); + } + + public function get_giftcard_value( $giftcardNumber ) + { + if ( !$this->Giftcard->exists( $this->Giftcard->get_giftcard_id($giftcardNumber))) + return 0; + + $this->db->from('giftcards'); + $this->db->where('giftcard_number',$giftcardNumber); + return $this->db->get()->row()->value; + } +} +?> diff --git a/application/models/sale_suspended.php b/application/models/sale_suspended.php new file mode 100644 index 000000000..3c46b6274 --- /dev/null +++ b/application/models/sale_suspended.php @@ -0,0 +1,160 @@ +db->from('sales_suspended'); + $this->db->order_by('sale_id'); + return $this->db->get(); + } + + public function get_info($sale_id) + { + $this->db->from('sales_suspended'); + $this->db->where('sale_id',$sale_id); + return $this->db->get(); + } + + function exists($sale_id) + { + $this->db->from('sales_suspended'); + $this->db->where('sale_id',$sale_id); + $query = $this->db->get(); + + return ($query->num_rows()==1); + } + + function update($sale_data, $sale_id) + { + $this->db->where('sale_id', $sale_id); + $success = $this->db->update('sales_suspended',$sale_data); + + return $success; + } + + function save ($items,$customer_id,$employee_id,$comment,$payments,$sale_id=false) + { + if(count($items)==0) + return -1; + + //Alain Multiple payments + //Build payment types string + $payment_types=''; + foreach($payments as $payment_id=>$payment) + { + $payment_types=$payment_types.$payment['payment_type'].': '.to_currency($payment['payment_amount']).'
'; + } + + $sales_data = array( + 'sale_time' => date('Y-m-d H:i:s'), + 'customer_id'=> $this->Customer->exists($customer_id) ? $customer_id : null, + 'employee_id'=>$employee_id, + 'payment_type'=>$payment_types, + 'comment'=>$comment + ); + + //Run these queries as a transaction, we want to make sure we do all or nothing + $this->db->trans_start(); + + $this->db->insert('sales_suspended',$sales_data); + $sale_id = $this->db->insert_id(); + + foreach($payments as $payment_id=>$payment) + { + $sales_payments_data = array + ( + 'sale_id'=>$sale_id, + 'payment_type'=>$payment['payment_type'], + 'payment_amount'=>$payment['payment_amount'] + ); + $this->db->insert('sales_suspended_payments',$sales_payments_data); + } + + foreach($items as $line=>$item) + { + $cur_item_info = $this->Item->get_info($item['item_id']); + + $sales_items_data = array + ( + 'sale_id'=>$sale_id, + 'item_id'=>$item['item_id'], + 'line'=>$item['line'], + 'description'=>$item['description'], + 'serialnumber'=>$item['serialnumber'], + 'quantity_purchased'=>$item['quantity'], + 'discount_percent'=>$item['discount'], + 'item_cost_price' => $cur_item_info->cost_price, + 'item_unit_price'=>$item['price'] + ); + + $this->db->insert('sales_suspended_items',$sales_items_data); + + $customer = $this->Customer->get_info($customer_id); + if ($customer_id == -1 or $customer->taxable) + { + foreach($this->Item_taxes->get_info($item['item_id']) as $row) + { + $this->db->insert('sales_suspended_items_taxes', array( + 'sale_id' =>$sale_id, + 'item_id' =>$item['item_id'], + 'line' =>$item['line'], + 'name' =>$row['name'], + 'percent' =>$row['percent'] + )); + } + } + } + $this->db->trans_complete(); + + if ($this->db->trans_status() === FALSE) + { + return -1; + } + + return $sale_id; + } + + function delete($sale_id) + { + //Run these queries as a transaction, we want to make sure we do all or nothing + $this->db->trans_start(); + + $this->db->delete('sales_suspended_payments', array('sale_id' => $sale_id)); + $this->db->delete('sales_suspended_items_taxes', array('sale_id' => $sale_id)); + $this->db->delete('sales_suspended_items', array('sale_id' => $sale_id)); + $this->db->delete('sales_suspended', array('sale_id' => $sale_id)); + + $this->db->trans_complete(); + + return $this->db->trans_status(); + } + + function get_sale_items($sale_id) + { + $this->db->from('sales_suspended_items'); + $this->db->where('sale_id',$sale_id); + return $this->db->get(); + } + + function get_sale_payments($sale_id) + { + $this->db->from('sales_suspended_payments'); + $this->db->where('sale_id',$sale_id); + return $this->db->get(); + } + + function get_customer($sale_id) + { + $this->db->from('sales_suspended'); + $this->db->where('sale_id',$sale_id); + return $this->Customer->get_info($this->db->get()->row()->customer_id); + } + + function get_comment($sale_id) + { + $this->db->from('sales_suspended'); + $this->db->where('sale_id',$sale_id); + return $this->db->get()->row()->comment; + } +} +?> diff --git a/application/models/supplier.php b/application/models/supplier.php new file mode 100644 index 000000000..f3b356d95 --- /dev/null +++ b/application/models/supplier.php @@ -0,0 +1,260 @@ +db->from('suppliers'); + $this->db->join('people', 'people.person_id = suppliers.person_id'); + $this->db->where('suppliers.person_id',$person_id); + $query = $this->db->get(); + + return ($query->num_rows()==1); + } + + /* + Returns all the suppliers + */ + function get_all($limit=10000, $offset=0) + { + $this->db->from('suppliers'); + $this->db->join('people','suppliers.person_id=people.person_id'); + $this->db->where('deleted', 0); + $this->db->order_by("last_name", "asc"); + $this->db->limit($limit); + $this->db->offset($offset); + return $this->db->get(); + } + + function count_all() + { + $this->db->from('suppliers'); + $this->db->where('deleted',0); + return $this->db->count_all_results(); + } + + /* + Gets information about a particular supplier + */ + function get_info($supplier_id) + { + $this->db->from('suppliers'); + $this->db->join('people', 'people.person_id = suppliers.person_id'); + $this->db->where('suppliers.person_id',$supplier_id); + $query = $this->db->get(); + + if($query->num_rows()==1) + { + return $query->row(); + } + else + { + //Get empty base parent object, as $supplier_id is NOT an supplier + $person_obj=parent::get_info(-1); + + //Get all the fields from supplier table + $fields = $this->db->list_fields('suppliers'); + + //append those fields to base parent object, we we have a complete empty object + foreach ($fields as $field) + { + $person_obj->$field=''; + } + + return $person_obj; + } + } + + /* + Gets information about multiple suppliers + */ + function get_multiple_info($suppliers_ids) + { + $this->db->from('suppliers'); + $this->db->join('people', 'people.person_id = suppliers.person_id'); + $this->db->where_in('suppliers.person_id',$suppliers_ids); + $this->db->order_by("last_name", "asc"); + return $this->db->get(); + } + + /* + Inserts or updates a suppliers + */ + function save(&$person_data, &$supplier_data,$supplier_id=false) + { + $success=false; + //Run these queries as a transaction, we want to make sure we do all or nothing + $this->db->trans_start(); + + if(parent::save($person_data,$supplier_id)) + { + if (!$supplier_id or !$this->exists($supplier_id)) + { + $supplier_data['person_id'] = $person_data['person_id']; + $success = $this->db->insert('suppliers',$supplier_data); + } + else + { + $this->db->where('person_id', $supplier_id); + $success = $this->db->update('suppliers',$supplier_data); + } + + } + + $this->db->trans_complete(); + return $success; + } + + /* + Deletes one supplier + */ + function delete($supplier_id) + { + $this->db->where('person_id', $supplier_id); + return $this->db->update('suppliers', array('deleted' => 1)); + } + + /* + Deletes a list of suppliers + */ + function delete_list($supplier_ids) + { + $this->db->where_in('person_id',$supplier_ids); + return $this->db->update('suppliers', array('deleted' => 1)); + } + + /* + Get search suggestions to find suppliers + */ + function get_search_suggestions($search,$limit=25) + { + $suggestions = array(); + + $this->db->from('suppliers'); + $this->db->join('people','suppliers.person_id=people.person_id'); + $this->db->where('deleted', 0); + $this->db->like("company_name",$search); + $this->db->order_by("company_name", "asc"); + $by_company_name = $this->db->get(); + foreach($by_company_name->result() as $row) + { + $suggestions[]=$row->company_name; + } + + + $this->db->from('suppliers'); + $this->db->join('people','suppliers.person_id=people.person_id'); + $this->db->where("(first_name LIKE '%".$this->db->escape_like_str($search)."%' or + last_name LIKE '%".$this->db->escape_like_str($search)."%' or + CONCAT(`first_name`,' ',`last_name`) LIKE '%".$this->db->escape_like_str($search)."%') and deleted=0"); + $this->db->order_by("last_name", "asc"); + $by_name = $this->db->get(); + foreach($by_name->result() as $row) + { + $suggestions[]=$row->first_name.' '.$row->last_name; + } + + $this->db->from('suppliers'); + $this->db->join('people','suppliers.person_id=people.person_id'); + $this->db->where('deleted', 0); + $this->db->like("email",$search); + $this->db->order_by("email", "asc"); + $by_email = $this->db->get(); + foreach($by_email->result() as $row) + { + $suggestions[]=$row->email; + } + + $this->db->from('suppliers'); + $this->db->join('people','suppliers.person_id=people.person_id'); + $this->db->where('deleted', 0); + $this->db->like("phone_number",$search); + $this->db->order_by("phone_number", "asc"); + $by_phone = $this->db->get(); + foreach($by_phone->result() as $row) + { + $suggestions[]=$row->phone_number; + } + + $this->db->from('suppliers'); + $this->db->join('people','suppliers.person_id=people.person_id'); + $this->db->where('deleted', 0); + $this->db->like("account_number",$search); + $this->db->order_by("account_number", "asc"); + $by_account_number = $this->db->get(); + foreach($by_account_number->result() as $row) + { + $suggestions[]=$row->account_number; + } + + //only return $limit suggestions + if(count($suggestions > $limit)) + { + $suggestions = array_slice($suggestions, 0,$limit); + } + return $suggestions; + + } + + /* + Get search suggestions to find suppliers + */ + function get_suppliers_search_suggestions($search,$limit=25) + { + $suggestions = array(); + + $this->db->from('suppliers'); + $this->db->join('people','suppliers.person_id=people.person_id'); + $this->db->where('deleted', 0); + $this->db->like("company_name",$search); + $this->db->order_by("company_name", "asc"); + $by_company_name = $this->db->get(); + foreach($by_company_name->result() as $row) + { + $suggestions[]=$row->person_id.'|'.$row->company_name; + } + + + $this->db->from('suppliers'); + $this->db->join('people','suppliers.person_id=people.person_id'); + $this->db->where("(first_name LIKE '%".$this->db->escape_like_str($search)."%' or + last_name LIKE '%".$this->db->escape_like_str($search)."%' or + CONCAT(`first_name`,' ',`last_name`) LIKE '%".$this->db->escape_like_str($search)."%') and deleted=0"); + $this->db->order_by("last_name", "asc"); + $by_name = $this->db->get(); + foreach($by_name->result() as $row) + { + $suggestions[]=$row->person_id.'|'.$row->first_name.' '.$row->last_name; + } + + //only return $limit suggestions + if(count($suggestions > $limit)) + { + $suggestions = array_slice($suggestions, 0,$limit); + } + return $suggestions; + + } + /* + Perform a search on suppliers + */ + function search($search) + { + $this->db->from('suppliers'); + $this->db->join('people','suppliers.person_id=people.person_id'); + $this->db->where("(first_name LIKE '%".$this->db->escape_like_str($search)."%' or + last_name LIKE '%".$this->db->escape_like_str($search)."%' or + company_name LIKE '%".$this->db->escape_like_str($search)."%' or + email LIKE '%".$this->db->escape_like_str($search)."%' or + phone_number LIKE '%".$this->db->escape_like_str($search)."%' or + account_number LIKE '%".$this->db->escape_like_str($search)."%' or + CONCAT(`first_name`,' ',`last_name`) LIKE '%".$this->db->escape_like_str($search)."%') and deleted=0"); + $this->db->order_by("last_name", "asc"); + + return $this->db->get(); + } + +} +?> diff --git a/application/third_party/index.html b/application/third_party/index.html new file mode 100644 index 000000000..c942a79ce --- /dev/null +++ b/application/third_party/index.html @@ -0,0 +1,10 @@ + + + 403 Forbidden + + + +

Directory access is forbidden.

+ + + \ No newline at end of file diff --git a/application/views/barcode.php b/application/views/barcode.php new file mode 100644 index 000000000..26e8998b8 --- /dev/null +++ b/application/views/barcode.php @@ -0,0 +1,340 @@ + + + + + + +*/ +/*=============================================================================*/ + + +//----------------------------------------------------------------------------- +// Startup code +//----------------------------------------------------------------------------- + + +if(isset($_GET["text"])) $text=$_GET["text"]; +if(isset($_GET["format"])) $format=$_GET["format"]; +if(isset($_GET["quality"])) $quality=$_GET["quality"]; +if(isset($_GET["width"])) $width=$_GET["width"]; +if(isset($_GET["height"])) $height=$_GET["height"]; +if(isset($_GET["type"])) $type=$_GET["type"]; +if(isset($_GET["barcode"])) $barcode=$_GET["barcode"]; + + + + +if (!isset ($text)) $text = ''; +if (!isset ($type)) $type = 1; +if (empty ($quality)) $quality = 100; +if (empty ($width)) $width = 160; +if (empty ($height)) $height = 80; +if (!empty ($format)) $format = strtoupper ($format); + else $format="PNG"; + + +switch ($type) +{ + default: + $type = 1; + case 1: + Barcode39 ($barcode, $width, $height, $quality, $format, $text); + break; +} + + +//----------------------------------------------------------------------------- +// Generate a Code 3 of 9 barcode +//----------------------------------------------------------------------------- +function Barcode39 ($barcode, $width, $height, $quality, $format, $text) +{ + switch ($format) + { + default: + $format = "JPEG"; + case "JPEG": + header ("Content-type: image/jpeg"); + break; + case "PNG": + header ("Content-type: image/png"); + break; + case "GIF": + header ("Content-type: image/gif"); + break; + } + + + $im = ImageCreate ($width, $height) + or die ("Cannot Initialize new GD image stream"); + $White = ImageColorAllocate ($im, 255, 255, 255); + $Black = ImageColorAllocate ($im, 0, 0, 0); + //ImageColorTransparent ($im, $White); + ImageInterLace ($im, 1); + + + + $NarrowRatio = 20; + $WideRatio = 55; + $QuietRatio = 35; + + + $nChars = (strlen($barcode)+2) * ((6 * $NarrowRatio) + (3 * $WideRatio) + ($QuietRatio)); + $Pixels = $width / $nChars; + $NarrowBar = (int)(20 * $Pixels); + $WideBar = (int)(55 * $Pixels); + $QuietBar = (int)(35 * $Pixels); + + + $ActualWidth = (($NarrowBar * 6) + ($WideBar*3) + $QuietBar) * (strlen ($barcode)+2); + + if (($NarrowBar == 0) || ($NarrowBar == $WideBar) || ($NarrowBar == $QuietBar) || ($WideBar == 0) || ($WideBar == $QuietBar) || ($QuietBar == 0)) + { + ImageString ($im, 1, 0, 0, "Image is too small!", $Black); + OutputImage ($im, $format, $quality); + exit; + } + + $CurrentBarX = (int)(($width - $ActualWidth) / 2); + $Color = $White; + $BarcodeFull = "*".strtoupper ($barcode)."*"; + settype ($BarcodeFull, "string"); + + $FontNum = 3; + $FontHeight = ImageFontHeight ($FontNum); + $FontWidth = ImageFontWidth ($FontNum); + + if ($text != '') + { + $CenterLoc = (int)(($width) / 2) - (int)(($FontWidth * strlen($text)) / 2); + ImageString ($im, $FontNum, $CenterLoc, $height-$FontHeight, "$text", $Black); + } + + + for ($i=0; $i \ No newline at end of file diff --git a/application/views/barcode_sheet.php b/application/views/barcode_sheet.php new file mode 100644 index 000000000..1930ef49a --- /dev/null +++ b/application/views/barcode_sheet.php @@ -0,0 +1,28 @@ + + + + <?php echo $this->lang->line('items_generate_barcodes'); ?> + + + + +'; + } + echo ""; + $count++; +} +?> + +
+ + diff --git a/application/views/config.php b/application/views/config.php new file mode 100644 index 000000000..f4cf564d0 --- /dev/null +++ b/application/views/config.php @@ -0,0 +1,324 @@ +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('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', + 'indonesia' => 'Indonesia', + 'spanish' => 'Spanish'), $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/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()); + ?> +
    +
    + +
    +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')));?> +
    +
    + + +'submit', + 'id'=>'submit', + 'value'=>$this->lang->line('common_submit'), + 'class'=>'submit_button float_right') +); +?> +
    +
    + +
    + +load->view("partial/footer"); ?> diff --git a/application/views/customers/excel_import.php b/application/views/customers/excel_import.php new file mode 100644 index 000000000..d46c54a2d --- /dev/null +++ b/application/views/customers/excel_import.php @@ -0,0 +1,63 @@ +'item_form')); +?> +
    Import customers from Excel sheet
    +
      +Download Import Excel Template (CSV) +
      +Import + +
      +'wide')); ?> +
      + 'file_path', + 'id'=>'file_path', + 'value'=>'') + );?> +
      +
      + +'submitf', + 'id'=>'submitf', + 'value'=>$this->lang->line('common_submit'), + 'class'=>'submit_button float_right') +); +?> +
      + + \ No newline at end of file diff --git a/application/views/customers/form.php b/application/views/customers/form.php new file mode 100644 index 000000000..2a1906a7a --- /dev/null +++ b/application/views/customers/form.php @@ -0,0 +1,73 @@ +person_id,array('id'=>'customer_form')); +?> +
      lang->line('common_fields_required_message'); ?>
      +
        +
        +lang->line("customers_basic_information"); ?> +load->view("people/form_basic_info"); ?> +
        +lang->line('customers_account_number').':', 'account_number'); ?> +
        + 'account_number', + 'id'=>'account_number', + 'value'=>$person_info->account_number) + );?> +
        +
        + +
        +lang->line('customers_taxable').':', 'taxable'); ?> +
        + taxable == '' ? TRUE : (boolean)$person_info->taxable);?> +
        +
        + +'submit', + 'id'=>'submit', + 'value'=>$this->lang->line('common_submit'), + 'class'=>'submit_button float_right') +); +?> +
        + + \ No newline at end of file diff --git a/application/views/employees/form.php b/application/views/employees/form.php new file mode 100644 index 000000000..389c04612 --- /dev/null +++ b/application/views/employees/form.php @@ -0,0 +1,158 @@ +person_id,array('id'=>'employee_form')); +?> +
        lang->line('common_fields_required_message'); ?>
        +
          +
          +lang->line("employees_basic_information"); ?> +load->view("people/form_basic_info"); ?> +
          + +
          +lang->line("employees_login_info"); ?> +
          +lang->line('employees_username').':', 'username',array('class'=>'required')); ?> +
          + 'username', + 'id'=>'username', + 'value'=>$person_info->username));?> +
          +
          + +person_id == "" ? array('class'=>'required'):array(); +?> + +
          +lang->line('employees_password').':', 'password',$password_label_attributes); ?> +
          + 'password', + 'id'=>'password' + ));?> +
          +
          + + +
          +lang->line('employees_repeat_password').':', 'repeat_password',$password_label_attributes); ?> +
          + 'repeat_password', + 'id'=>'repeat_password' + ));?> +
          +
          +
          + +
          +lang->line("employees_permission_info"); ?> +

          lang->line("employees_permission_desc"); ?>

          + +
            +result() as $module) +{ +?> +
          • +module_id,$this->Employee->has_permission($module->module_id,$person_info->person_id)); ?> +lang->line('module_'.$module->module_id);?>: +lang->line('module_'.$module->module_id.'_desc');?> +
          • + +
          +'submit', + 'id'=>'submit', + 'value'=>$this->lang->line('common_submit'), + 'class'=>'submit_button float_right') +); + +?> +
          + + \ No newline at end of file diff --git a/application/views/giftcards/form.php b/application/views/giftcards/form.php new file mode 100644 index 000000000..e9d930640 --- /dev/null +++ b/application/views/giftcards/form.php @@ -0,0 +1,91 @@ +
          lang->line('common_fields_required_message'); ?>
          +
            +giftcard_id,array('id'=>'giftcard_form')); +?> +
            +lang->line("giftcards_basic_information"); ?> + +
            +lang->line('giftcards_giftcard_number').':', 'name',array('class'=>'required wide')); ?> +
            + 'giftcard_number', + 'id'=>'giftcard_number', + 'value'=>$giftcard_info->giftcard_number) + );?> +
            +
            + +
            +lang->line('giftcards_card_value').':', 'name',array('class'=>'required wide')); ?> +
            + 'value', + 'id'=>'value', + 'value'=>$giftcard_info->value) + );?> +
            +
            + +'submit', + 'id'=>'submit', + 'value'=>$this->lang->line('common_submit'), + 'class'=>'submit_button float_right') +); +?> +
            + + \ No newline at end of file diff --git a/application/views/giftcards/manage.php b/application/views/giftcards/manage.php new file mode 100644 index 000000000..0a3d49fe8 --- /dev/null +++ b/application/views/giftcards/manage.php @@ -0,0 +1,86 @@ +load->view("partial/header"); ?> + + +
            +
            lang->line('common_list_of').' '.$this->lang->line('module_'.$controller_name); ?>
            +
            + ".$this->lang->line($controller_name.'_new')."
            ", + array('class'=>'thickbox none','title'=>$this->lang->line($controller_name.'_new'))); + ?> +
            + +pagination->create_links();?> +
            +
              +
            • lang->line("common_delete"),array('id'=>'delete')); ?>
            • +
            • + spinner + 'search_form')); ?> + + +
            • +
            +
            + +
            + +
            +
            +load->view("partial/footer"); ?> \ No newline at end of file diff --git a/application/views/home.php b/application/views/home.php new file mode 100644 index 000000000..caaccb417 --- /dev/null +++ b/application/views/home.php @@ -0,0 +1,19 @@ +load->view("partial/header"); ?> +
            +

            lang->line('common_welcome_message'); ?>

            +
            + result() as $module) + { + ?> +
            + module_id");?>"> + Menubar Image
            + module_id");?>">lang->line("module_".$module->module_id) ?> + - lang->line('module_'.$module->module_id.'_desc');?> +
            + +
            +load->view("partial/footer"); ?> \ No newline at end of file diff --git a/application/views/index.html b/application/views/index.html new file mode 100644 index 000000000..c942a79ce --- /dev/null +++ b/application/views/index.html @@ -0,0 +1,10 @@ + + + 403 Forbidden + + + +

            Directory access is forbidden.

            + + + \ No newline at end of file diff --git a/application/views/item_kits/form.php b/application/views/item_kits/form.php new file mode 100644 index 000000000..f6fb20f37 --- /dev/null +++ b/application/views/item_kits/form.php @@ -0,0 +1,138 @@ +
            lang->line('common_fields_required_message'); ?>
            +
              +item_kit_id,array('id'=>'item_kit_form')); +?> +
              +lang->line("item_kits_info"); ?> + +
              +lang->line('item_kits_name').':', 'name',array('class'=>'wide required')); ?> +
              + 'name', + 'id'=>'name', + 'value'=>$item_kit_info->name) + );?> +
              +
              + +
              +lang->line('item_kits_description').':', 'description',array('class'=>'wide')); ?> +
              + 'description', + 'id'=>'description', + 'value'=>$item_kit_info->description, + 'rows'=>'5', + 'cols'=>'17') + );?> +
              +
              + + +
              +lang->line('item_kits_add_item').':', 'item',array('class'=>'wide')); ?> +
              + 'item', + 'id'=>'item' + ));?> +
              +
              + + + + + + + + + Item_kit_items->get_info($item_kit_info->item_kit_id) as $item_kit_item) {?> + + Item->get_info($item_kit_item['item_id']); + ?> + + + + + +
              lang->line('common_delete');?>lang->line('item_kits_item');?>lang->line('item_kits_quantity');?>
              Xname; ?>' type='text' size='3' name=item_kit_item[] value=''/>
              +'submit', + 'id'=>'submit', + 'value'=>$this->lang->line('common_submit'), + 'class'=>'submit_button float_right') +); +?> +
              + + \ No newline at end of file diff --git a/application/views/item_kits/manage.php b/application/views/item_kits/manage.php new file mode 100644 index 000000000..a731a9263 --- /dev/null +++ b/application/views/item_kits/manage.php @@ -0,0 +1,99 @@ +load->view("partial/header"); ?> + + +
              +
              lang->line('common_list_of').' '.$this->lang->line('module_'.$controller_name); ?>
              +
              + ".$this->lang->line($controller_name.'_new')."
              ", + array('class'=>'thickbox none','title'=>$this->lang->line($controller_name.'_new'))); + ?> +
              + + +pagination->create_links();?> +
              +
                +
              • lang->line("common_delete"),array('id'=>'delete')); ?>
              • +
              • lang->line("items_generate_barcodes"),array('id'=>'generate_barcodes', 'target' =>'_blank','title'=>$this->lang->line('items_generate_barcodes'))); ?>
              • +
              • + spinner + 'search_form')); ?> + + +
              • +
              +
              + +
              + +
              +
              +load->view("partial/footer"); ?> \ No newline at end of file diff --git a/application/views/items/count_details.php b/application/views/items/count_details.php new file mode 100644 index 000000000..22b48115c --- /dev/null +++ b/application/views/items/count_details.php @@ -0,0 +1,114 @@ +item_id,array('id'=>'item_form')); +?> +
              +lang->line("items_basic_information"); ?> + + +
              +
              + + + + + + + + + + + + + + + + +
              +lang->line('items_item_number').':', 'name',array('class'=>'wide')); ?> + + 'item_number', + 'id'=>'item_number', + 'value'=>$item_info->item_number, + 'style' => 'border:none', + 'readonly' => 'readonly' + ); + + echo form_input($inumber) + ?> +
              +lang->line('items_name').':', 'name',array('class'=>'wide')); ?> + + 'name', + 'id'=>'name', + 'value'=>$item_info->name, + 'style' => 'border:none', + 'readonly' => 'readonly' + ); + echo form_input($iname); + ?> +
              +lang->line('items_category').':', 'category',array('class'=>'wide')); ?> + + 'category', + 'id'=>'category', + 'value'=>$item_info->category, + 'style' => 'border:none', + 'readonly' => 'readonly' + ); + + echo form_input($cat); + ?> +
              +lang->line('items_current_quantity').':', 'quantity',array('class'=>'wide')); ?> + + 'quantity', + 'id'=>'quantity', + 'value'=>$item_info->quantity, + 'style' => 'border:none', + 'readonly' => 'readonly' + ); + + echo form_input($qty); + ?> +
              + +
              +
              +
              + +
              +
              +
              +
              + + + + +Inventory->get_inventory_data_for_item($item_info->item_id)->result_array() as $row) +{ +?> + + + + + + + + +
              Inventory Data Tracking
              DateEmployeeIn/Out QtyRemarks
              Employee->get_info($person_id); + echo $employee->first_name." ".$employee->last_name; + ?> +
              \ No newline at end of file diff --git a/application/views/items/excel_import.php b/application/views/items/excel_import.php new file mode 100644 index 000000000..2816cd04d --- /dev/null +++ b/application/views/items/excel_import.php @@ -0,0 +1,63 @@ +'item_form')); +?> +
              Import items from Excel sheet
              +
                +Download Import Excel Template (CSV) +
                +Import + +
                +'wide')); ?> +
                + 'file_path', + 'id'=>'file_path', + 'value'=>'') + );?> +
                +
                + +'submitf', + 'id'=>'submitf', + 'value'=>$this->lang->line('common_submit'), + 'class'=>'submit_button float_right') +); +?> +
                + + \ No newline at end of file diff --git a/application/views/items/form.php b/application/views/items/form.php new file mode 100644 index 000000000..369e7240d --- /dev/null +++ b/application/views/items/form.php @@ -0,0 +1,292 @@ +
                lang->line('common_fields_required_message'); ?>
                +
                  +item_id,array('id'=>'item_form')); +?> +
                  +lang->line("items_basic_information"); ?> + +
                  +lang->line('items_item_number').':', 'name',array('class'=>'wide')); ?> +
                  + 'item_number', + 'id'=>'item_number', + 'value'=>$item_info->item_number) + );?> +
                  +
                  + +
                  +lang->line('items_name').':', 'name',array('class'=>'required wide')); ?> +
                  + 'name', + 'id'=>'name', + 'value'=>$item_info->name) + );?> +
                  +
                  + +
                  +lang->line('items_category').':', 'category',array('class'=>'required wide')); ?> +
                  + 'category', + 'id'=>'category', + 'value'=>$item_info->category) + );?> +
                  +
                  + +
                  +lang->line('items_supplier').':', 'supplier',array('class'=>'required wide')); ?> +
                  + +
                  +
                  + +
                  +lang->line('items_cost_price').':', 'cost_price',array('class'=>'required wide')); ?> +
                  + 'cost_price', + 'size'=>'8', + 'id'=>'cost_price', + 'value'=>$item_info->cost_price) + );?> +
                  +
                  + +
                  +lang->line('items_unit_price').':', 'unit_price',array('class'=>'required wide')); ?> +
                  + 'unit_price', + 'size'=>'8', + 'id'=>'unit_price', + 'value'=>$item_info->unit_price) + );?> +
                  +
                  + +
                  +lang->line('items_tax_1').':', 'tax_percent_1',array('class'=>'wide')); ?> +
                  + 'tax_names[]', + 'id'=>'tax_name_1', + 'size'=>'8', + 'value'=> isset($item_tax_info[0]['name']) ? $item_tax_info[0]['name'] : $this->config->item('default_tax_1_name')) + );?> +
                  +
                  + 'tax_percents[]', + 'id'=>'tax_percent_name_1', + 'size'=>'3', + 'value'=> isset($item_tax_info[0]['percent']) ? $item_tax_info[0]['percent'] : $default_tax_1_rate) + );?> + % +
                  +
                  + +
                  +lang->line('items_tax_2').':', 'tax_percent_2',array('class'=>'wide')); ?> +
                  + 'tax_names[]', + 'id'=>'tax_name_2', + 'size'=>'8', + 'value'=> isset($item_tax_info[1]['name']) ? $item_tax_info[1]['name'] : $this->config->item('default_tax_2_name')) + );?> +
                  +
                  + 'tax_percents[]', + 'id'=>'tax_percent_name_2', + 'size'=>'3', + 'value'=> isset($item_tax_info[1]['percent']) ? $item_tax_info[1]['percent'] : $default_tax_2_rate) + );?> + % +
                  +
                  + + +
                  +lang->line('items_quantity').':', 'quantity',array('class'=>'required wide')); ?> +
                  + 'quantity', + 'id'=>'quantity', + 'value'=>$item_info->quantity) + );?> +
                  +
                  + +
                  +lang->line('items_reorder_level').':', 'reorder_level',array('class'=>'required wide')); ?> +
                  + 'reorder_level', + 'id'=>'reorder_level', + 'value'=>$item_info->reorder_level) + );?> +
                  +
                  + +
                  +lang->line('items_location').':', 'location',array('class'=>'wide')); ?> +
                  + 'location', + 'id'=>'location', + 'value'=>$item_info->location) + );?> +
                  +
                  + +
                  +lang->line('items_description').':', 'description',array('class'=>'wide')); ?> +
                  + 'description', + 'id'=>'description', + 'value'=>$item_info->description, + 'rows'=>'5', + 'cols'=>'17') + );?> +
                  +
                  + +
                  +lang->line('items_allow_alt_desciption').':', 'allow_alt_description',array('class'=>'wide')); ?> +
                  + 'allow_alt_description', + 'id'=>'allow_alt_description', + 'value'=>1, + 'checked'=>($item_info->allow_alt_description)? 1 :0) + );?> +
                  +
                  + +
                  +lang->line('items_is_serialized').':', 'is_serialized',array('class'=>'wide')); ?> +
                  + 'is_serialized', + 'id'=>'is_serialized', + 'value'=>1, + 'checked'=>($item_info->is_serialized)? 1 : 0) + );?> +
                  +
                  + +'submit', + 'id'=>'submit', + 'value'=>$this->lang->line('common_submit'), + 'class'=>'submit_button float_right') +); +?> +
                  + + \ No newline at end of file diff --git a/application/views/items/form_bulk.php b/application/views/items/form_bulk.php new file mode 100644 index 000000000..5bfedc9b2 --- /dev/null +++ b/application/views/items/form_bulk.php @@ -0,0 +1,244 @@ +
                  lang->line('items_edit_fields_you_want_to_update'); ?>
                  +
                    +'item_form')); +?> +
                    +lang->line("items_basic_information"); ?> + +
                    +lang->line('items_name').':', 'name',array('class'=>'wide')); ?> +
                    + 'name', + 'id'=>'name') + );?> +
                    +
                    + +
                    +lang->line('items_category').':', 'category',array('class'=>'wide')); ?> +
                    + 'category', + 'id'=>'category') + );?> +
                    +
                    + +
                    +lang->line('items_supplier').':', 'supplier',array('class'=>'wide')); ?> +
                    + +
                    +
                    + + +
                    +lang->line('items_cost_price').':', 'cost_price',array('class'=>'wide')); ?> +
                    + 'cost_price', + 'size'=>'8', + 'id'=>'cost_price') + );?> +
                    +
                    + +
                    +lang->line('items_unit_price').':', 'unit_price',array('class'=>'wide')); ?> +
                    + 'unit_price', + 'size'=>'8', + 'id'=>'unit_price') + );?> +
                    +
                    + +
                    +lang->line('items_tax_1').':', 'tax_percent_1',array('class'=>'wide')); ?> +
                    + 'tax_names[]', + 'id'=>'tax_name_1', + 'size'=>'8', + 'value'=> isset($item_tax_info[0]['name']) ? $item_tax_info[0]['name'] : $this->lang->line('items_sales_tax')) + );?> +
                    +
                    + 'tax_percents[]', + 'id'=>'tax_percent_name_1', + 'size'=>'3', + 'value'=> isset($item_tax_info[0]['percent']) ? $item_tax_info[0]['percent'] : '') + );?> + % +
                    +
                    + +
                    +lang->line('items_tax_2').':', 'tax_percent_2',array('class'=>'wide')); ?> +
                    + 'tax_names[]', + 'id'=>'tax_name_2', + 'size'=>'8', + 'value'=> isset($item_tax_info[1]['name']) ? $item_tax_info[1]['name'] : '') + );?> +
                    +
                    + 'tax_percents[]', + 'id'=>'tax_percent_name_2', + 'size'=>'3', + 'value'=> isset($item_tax_info[1]['percent']) ? $item_tax_info[1]['percent'] : '') + );?> + % +
                    +
                    +
                    +lang->line('items_reorder_level').':', 'reorder_level',array('class'=>'wide')); ?> +
                    + 'reorder_level', + 'id'=>'reorder_level') + );?> +
                    +
                    + +
                    +lang->line('items_location').':', 'location',array('class'=>'wide')); ?> +
                    + 'location', + 'id'=>'location') + );?> +
                    +
                    + +
                    +lang->line('items_description').':', 'description',array('class'=>'wide')); ?> +
                    + 'description', + 'id'=>'description', + 'rows'=>'5', + 'cols'=>'17') + );?> +
                    +
                    + +
                    + +lang->line('items_allow_alt_desciption').':', 'allow_alt_description',array('class'=>'wide')); ?> +
                    + + +
                    + +
                    + + + +
                    + +lang->line('items_is_serialized').':', 'is_serialized',array('class'=>'wide')); ?> +
                    + + +
                    + +
                    + +'submit', + 'id'=>'submit', + 'value'=>$this->lang->line('common_submit'), + 'class'=>'submit_button float_right') +); +?> +
                    + + \ No newline at end of file diff --git a/application/views/items/inventory.php b/application/views/items/inventory.php new file mode 100644 index 000000000..178c2d3b4 --- /dev/null +++ b/application/views/items/inventory.php @@ -0,0 +1,157 @@ +
                    lang->line('common_fields_required_message'); ?>
                    +
                      +item_id,array('id'=>'item_form')); +?> +
                      +lang->line("items_basic_information"); ?> + + +
                      +
                      + + + + + + + + + + + + + + + + +
                      +lang->line('items_item_number').':', 'name',array('class'=>'wide')); ?> + + 'item_number', + 'id'=>'item_number', + 'value'=>$item_info->item_number, + 'style' => 'border:none', + 'readonly' => 'readonly' + ); + + echo form_input($inumber) + ?> +
                      +lang->line('items_name').':', 'name',array('class'=>'wide')); ?> + + 'name', + 'id'=>'name', + 'value'=>$item_info->name, + 'style' => 'border:none', + 'readonly' => 'readonly' + ); + echo form_input($iname); + ?> +
                      +lang->line('items_category').':', 'category',array('class'=>'wide')); ?> + + 'category', + 'id'=>'category', + 'value'=>$item_info->category, + 'style' => 'border:none', + 'readonly' => 'readonly' + ); + + echo form_input($cat); + ?> +
                      +lang->line('items_current_quantity').':', 'quantity',array('class'=>'wide')); ?> + + 'quantity', + 'id'=>'quantity', + 'value'=>$item_info->quantity, + 'style' => 'border:none', + 'readonly' => 'readonly' + ); + + echo form_input($qty); + ?> +
                      + +
                      +lang->line('items_add_minus').':', 'quantity',array('class'=>'required wide')); ?> +
                      + 'newquantity', + 'id'=>'newquantity' + ) + );?> +
                      +
                      + +
                      +lang->line('items_inventory_comments').':', 'description',array('class'=>'wide')); ?> +
                      + 'trans_comment', + 'id'=>'trans_comment', + 'rows'=>'3', + 'cols'=>'17') + );?> +
                      +
                      +'submit', + 'id'=>'submit', + 'value'=>$this->lang->line('common_submit'), + 'class'=>'submit_button float_right') +); +?> +
                      + + \ No newline at end of file diff --git a/application/views/items/manage.php b/application/views/items/manage.php new file mode 100644 index 000000000..e1afc2053 --- /dev/null +++ b/application/views/items/manage.php @@ -0,0 +1,176 @@ +load->view("partial/header"); ?> + + +
                      +
                      lang->line('common_list_of').' '.$this->lang->line('module_'.$controller_name); ?>
                      +
                      + ".$this->lang->line($controller_name.'_new')."
                      ", + array('class'=>'thickbox none','title'=>$this->lang->line($controller_name.'_new'))); + ?> + Excel Import
                      ", + array('class'=>'thickbox none','title'=>'Import Items from Excel')); + ?> + + + +
                      +
                      Search Options :
                      + + +
                      + +
                      + 'items_filter_form')); ?> + lang->line('items_low_inventory_items').' '.':', 'low_inventory');?> + 'low_inventory','id'=>'low_inventory','value'=>1,'checked'=> isset($low_inventory)? ( ($low_inventory)? 1 : 0) : 0)).' | ';?> + lang->line('items_serialized_items').' '.':', 'is_serialized');?> + 'is_serialized','id'=>'is_serialized','value'=>1,'checked'=> isset($is_serialized)? ( ($is_serialized)? 1 : 0) : 0)).' | ';?> + lang->line('items_no_description_items').' '.':', 'no_description');?> + 'no_description','id'=>'no_description','value'=>1,'checked'=> isset($no_description)? ( ($no_description)? 1 : 0) : 0)).' | ';?> + + +
                      +pagination->create_links();?> +
                      +
                        +
                      • lang->line("common_delete"),array('id'=>'delete')); ?>
                      • +
                      • lang->line("items_bulk_edit"),array('id'=>'bulk_edit','title'=>$this->lang->line('items_edit_multiple_items'))); ?>
                      • +
                      • lang->line("items_generate_barcodes"),array('id'=>'generate_barcodes', 'target' =>'_blank','title'=>$this->lang->line('items_generate_barcodes'))); ?>
                      • +
                      • + spinner + 'search_form')); ?> + + +
                      • +
                      +
                      + +
                      + +
                      +
                      +load->view("partial/footer"); ?> \ No newline at end of file diff --git a/application/views/login.php b/application/views/login.php new file mode 100644 index 000000000..049acbed0 --- /dev/null +++ b/application/views/login.php @@ -0,0 +1,61 @@ + + + + + + +Open Source Point Of Sale <?php echo $this->lang->line('login_login'); ?> + + + + +

                      Open Source Point Of Sale config->item('application_version'); ?>

                      + +

                      Press login to continue

                      + + +
                      + +
                      + lang->line('login_login'); ?> +
                      +
                      +
                      + lang->line('login_welcome_message'); ?> +
                      + +
                      lang->line('login_username'); ?>:
                      +
                      + 'username', + 'value'=> $_SERVER['HTTP_HOST'] == 'ospos.pappastech.com' ? 'admin' : '', + 'size'=>'20')); ?> +
                      + +
                      lang->line('login_password'); ?>:
                      +
                      + 'password', + 'value'=>$_SERVER['HTTP_HOST'] == 'ospos.pappastech.com' ? 'pointofsale' : '', + 'size'=>'20')); ?> + +
                      + +
                      + +
                      +
                      +
                      + + + diff --git a/application/views/no_access.php b/application/views/no_access.php new file mode 100644 index 000000000..bd0db7601 --- /dev/null +++ b/application/views/no_access.php @@ -0,0 +1,3 @@ +lang->line('error_no_permission_module').' '.$module_name; +?> \ No newline at end of file diff --git a/application/views/partial/footer.php b/application/views/partial/footer.php new file mode 100644 index 000000000..7683c1005 --- /dev/null +++ b/application/views/partial/footer.php @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/application/views/partial/footer_excel.php b/application/views/partial/footer_excel.php new file mode 100644 index 000000000..69fb64a9b --- /dev/null +++ b/application/views/partial/footer_excel.php @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/application/views/partial/header.php b/application/views/partial/header.php new file mode 100644 index 000000000..722c5ac8a --- /dev/null +++ b/application/views/partial/header.php @@ -0,0 +1,70 @@ + + + + + + <?php echo $this->config->item('company').' -- '.$this->lang->line('common_powered_by').' Open Source Point Of Sale' ?> + + + + + + + + + + + + + + + + + + + + + + + + + +
                      +
                      diff --git a/application/views/partial/header_excel.php b/application/views/partial/header_excel.php new file mode 100644 index 000000000..c60a36c20 --- /dev/null +++ b/application/views/partial/header_excel.php @@ -0,0 +1,54 @@ + + + + + <?php echo $this->config->item('company').' -- '.$this->lang->line('common_powered_by').' Open Source Point Of Sale' ?> + + + diff --git a/application/views/people/form_basic_info.php b/application/views/people/form_basic_info.php new file mode 100644 index 000000000..3e36f4889 --- /dev/null +++ b/application/views/people/form_basic_info.php @@ -0,0 +1,114 @@ +
                      +lang->line('common_first_name').':', 'first_name',array('class'=>'required')); ?> +
                      + 'first_name', + 'id'=>'first_name', + 'value'=>$person_info->first_name) + );?> +
                      +
                      +
                      +lang->line('common_last_name').':', 'last_name',array('class'=>'required')); ?> +
                      + 'last_name', + 'id'=>'last_name', + 'value'=>$person_info->last_name) + );?> +
                      +
                      + +
                      +lang->line('common_email').':', 'email'); ?> +
                      + 'email', + 'id'=>'email', + 'value'=>$person_info->email) + );?> +
                      +
                      + +
                      +lang->line('common_phone_number').':', 'phone_number'); ?> +
                      + 'phone_number', + 'id'=>'phone_number', + 'value'=>$person_info->phone_number));?> +
                      +
                      + +
                      +lang->line('common_address_1').':', 'address_1'); ?> +
                      + 'address_1', + 'id'=>'address_1', + 'value'=>$person_info->address_1));?> +
                      +
                      + +
                      +lang->line('common_address_2').':', 'address_2'); ?> +
                      + 'address_2', + 'id'=>'address_2', + 'value'=>$person_info->address_2));?> +
                      +
                      + +
                      +lang->line('common_city').':', 'city'); ?> +
                      + 'city', + 'id'=>'city', + 'value'=>$person_info->city));?> +
                      +
                      + +
                      +lang->line('common_state').':', 'state'); ?> +
                      + 'state', + 'id'=>'state', + 'value'=>$person_info->state));?> +
                      +
                      + +
                      +lang->line('common_zip').':', 'zip'); ?> +
                      + 'zip', + 'id'=>'zip', + 'value'=>$person_info->zip));?> +
                      +
                      + +
                      +lang->line('common_country').':', 'country'); ?> +
                      + 'country', + 'id'=>'country', + 'value'=>$person_info->country));?> +
                      +
                      + +
                      +lang->line('common_comments').':', 'comments'); ?> +
                      + 'comments', + 'id'=>'comments', + 'value'=>$person_info->comments, + 'rows'=>'5', + 'cols'=>'17') + );?> +
                      +
                      \ No newline at end of file diff --git a/application/views/people/manage.php b/application/views/people/manage.php new file mode 100644 index 000000000..8679a7c7a --- /dev/null +++ b/application/views/people/manage.php @@ -0,0 +1,91 @@ +load->view("partial/header"); ?> + + +
                      +
                      lang->line('common_list_of').' '.$this->lang->line('module_'.$controller_name); ?>
                      +
                      + ".$this->lang->line($controller_name.'_new')."
                      ", + array('class'=>'thickbox none','title'=>$this->lang->line($controller_name.'_new'))); + ?> + + Excel Import
                      ", + array('class'=>'thickbox none','title'=>'Import Items from Excel')); + ?> + +
                      +
                      +pagination->create_links();?> +
                      + +
                      +
                      + +
                      +
                      +load->view("partial/footer"); ?> \ No newline at end of file diff --git a/application/views/receivings/receipt.php b/application/views/receivings/receipt.php new file mode 100644 index 000000000..8efc5f307 --- /dev/null +++ b/application/views/receivings/receipt.php @@ -0,0 +1,104 @@ +load->view("partial/header"); ?> +'.$error_message.''; + exit; +} +?> +
                      +
                      +
                      config->item('company'); ?>
                      +
                      config->item('address')); ?>
                      +
                      config->item('phone'); ?>
                      +
                      +
                      +
                      +
                      + +
                      lang->line('suppliers_supplier').": ".$supplier; ?>
                      + +
                      lang->line('recvs_id').": ".$receiving_id; ?>
                      +
                      lang->line('employees_employee').": ".$employee; ?>
                      +
                      + + + + + + + + + + $item) + { + ?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                      lang->line('items_item'); ?>lang->line('common_price'); ?>lang->line('sales_quantity'); ?>lang->line('sales_discount'); ?>lang->line('sales_total'); ?>
                      lang->line('sales_total'); ?>
                      lang->line('sales_payment'); ?>
                      lang->line('sales_amount_tendered'); ?>
                      lang->line('sales_change_due'); ?>
                      + +
                      + config->item('return_policy')); ?> +
                      +
                      + "; ?> +
                      +
                      +load->view("partial/footer"); ?> + +Appconfig->get('print_after_sale')) +{ +?> + + \ No newline at end of file diff --git a/application/views/receivings/receiving.php b/application/views/receivings/receiving.php new file mode 100644 index 000000000..09912398f --- /dev/null +++ b/application/views/receivings/receiving.php @@ -0,0 +1,294 @@ +load->view("partial/header"); ?> + +
                      lang->line('recvs_register'); ?>
                      + +".$error.""; +} +?> + + + +
                      + 'mode_form')); ?> + lang->line('recvs_mode') ?> + + + 'add_item_form')); ?> + +'item','id'=>'item','size'=>'40'));?> +
                      + ".$this->lang->line('sales_new_item')."
                      ", + array('class'=>'thickbox none','title'=>$this->lang->line('sales_new_item'))); + ?> +
                      + + + + + + + + + + + + + + + + + + + + + +$item) + { + echo form_open("receivings/edit_item/$line"); + ?> + + + + + + + + + + + + + + + + + + +
                      lang->line('common_delete'); ?>lang->line('recvs_item_name'); ?>lang->line('recvs_cost'); ?>lang->line('recvs_quantity'); ?>lang->line('recvs_discount'); ?>lang->line('recvs_total'); ?>lang->line('recvs_edit'); ?>
                      +
                      lang->line('sales_no_items_in_cart'); ?>
                      +
                      lang->line('common_delete').']');?>
                      + + +
                      + + + +
                      'price','value'=>$item['price'],'size'=>'6'));?> + 'quantity','value'=>$item['quantity'],'size'=>'2')); + ?> + 'discount','value'=>$item['discount'],'size'=>'3'));?>lang->line('sales_edit_item'));?>
                      + + + + +
                      + lang->line("recvs_supplier").': '.$supplier. '
                      '; + echo anchor("receivings/delete_supplier",'['.$this->lang->line('common_delete').' '.$this->lang->line('suppliers_supplier').']'); + } + else + { + echo form_open("receivings/select_supplier",array('id'=>'select_supplier_form')); ?> + + 'supplier','id'=>'supplier','size'=>'30','value'=>$this->lang->line('recvs_start_typing_supplier_name')));?> + +
                      +

                      lang->line('common_or'); ?>

                      + ".$this->lang->line('recvs_new_supplier')."
                      ", + array('class'=>'thickbox none','title'=>$this->lang->line('recvs_new_supplier'))); + ?> +
                      +
                       
                      + + +
                      +
                      lang->line('sales_total'); ?>:
                      +
                      +
                      + 0) + { + ?> +
                      + 'finish_sale_form')); ?> +
                      + + 'comment','value'=>'','rows'=>'4','cols'=>'23'));?> +

                      + + + + + + + +
                      + lang->line('sales_payment').': ';?> + + +
                      + lang->line('sales_amount_tendered').': ';?> + + 'amount_tendered','value'=>'','size'=>'10')); + ?> +
                      +
                      + ".$this->lang->line('recvs_complete_receiving')."
                      "; + ?> + + + + + 'cancel_sale_form')); ?> +
                      + Cancel +
                      + + + + + +
                       
                      + + +load->view("partial/footer"); ?> + + + \ No newline at end of file diff --git a/application/views/reports/date_input.php b/application/views/reports/date_input.php new file mode 100644 index 000000000..7e98c9bed --- /dev/null +++ b/application/views/reports/date_input.php @@ -0,0 +1,72 @@ +load->view("partial/header"); ?> +
                      lang->line('reports_report_input'); ?>
                      +".$error.""; +} +?> + lang->line('reports_date_range'), 'report_date_range_label', array('class'=>'required')); ?> +
                      + + +
                      + +
                      + + + + + - + + + +
                      + + 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"'); ?> +
                      +'generate_report', + 'id'=>'generate_report', + 'content'=>$this->lang->line('common_submit'), + 'class'=>'submit_button') +); +?> + +load->view("partial/footer"); ?> + + \ No newline at end of file diff --git a/application/views/reports/date_input_excel_export.php b/application/views/reports/date_input_excel_export.php new file mode 100644 index 000000000..188e26b79 --- /dev/null +++ b/application/views/reports/date_input_excel_export.php @@ -0,0 +1,83 @@ +load->view("partial/header"); ?> +
                      lang->line('reports_report_input'); ?>
                      +".$error.""; +} +?> + lang->line('reports_date_range'), 'report_date_range_label', array('class'=>'required')); ?> +
                      + + +
                      + +
                      + + + + + - + + + +
                      + + 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 +
                      + +'generate_report', + 'id'=>'generate_report', + 'content'=>$this->lang->line('common_submit'), + 'class'=>'submit_button') +); +?> + +load->view("partial/footer"); ?> + + \ No newline at end of file diff --git a/application/views/reports/excel_export.php b/application/views/reports/excel_export.php new file mode 100644 index 000000000..ab628c26a --- /dev/null +++ b/application/views/reports/excel_export.php @@ -0,0 +1,39 @@ +load->view("partial/header"); ?> +
                      lang->line('reports_report_input'); ?>
                      +".$error.""; +} +?> +
                      + Export to Excel: Yes + No +
                      + +'generate_report', + 'id'=>'generate_report', + 'content'=>$this->lang->line('common_submit'), + 'class'=>'submit_button') +); +?> + +load->view("partial/footer"); ?> + + \ No newline at end of file diff --git a/application/views/reports/graphical.php b/application/views/reports/graphical.php new file mode 100644 index 000000000..cab02c029 --- /dev/null +++ b/application/views/reports/graphical.php @@ -0,0 +1,27 @@ +load->view("partial/header"); +?> +
                      +
                      +
                      + + + +
                      +
                      +
                      +
                      +
                      +$value) { ?> +
                      lang->line('reports_'.$name). ': '.to_currency($value); ?>
                      + +
                      +load->view("partial/footer"); +?> \ No newline at end of file diff --git a/application/views/reports/graphs/bar.php b/application/views/reports/graphs/bar.php new file mode 100644 index 000000000..c42baf1cf --- /dev/null +++ b/application/views/reports/graphs/bar.php @@ -0,0 +1,46 @@ +output->set_header("Cache-Control: no-store, no-cache, must-revalidate"); +$this->output->set_header("Pragma: public"); +$bar = new bar_filled( '#4386a1', '#577261' ); + +$bar_labels = array(); +$bar_values = array(); + +foreach($data as $label=>$value) +{ + $bar_labels[] = (string)$label; + $bar_values[] = (float)$value; +} + +$bar->set_values($bar_values); + +$chart = new open_flash_chart(); +$chart->set_title(new title($title)); +$x = new x_axis(); +$x->steps(1); +$x->set_labels_from_array($bar_labels); +$chart->set_x_axis( $x ); + +$y = new y_axis(); +$y->set_tick_length(7); +$y->set_range(0, (count($data) > 0 ? max($data) : 0) + 25, ((count($data) > 0 ? max($data) : 0)+25)/10); +$chart->set_y_axis( $y ); +$chart->set_bg_colour("#f3f3f3"); + +$chart->add_element($bar); + +if (isset($yaxis_label)) +{ + $y_legend = new y_legend($yaxis_label ); + $y_legend->set_style( '{font-size: 20px; color: #000000}' ); + $chart->set_y_legend( $y_legend ); +} + +if (isset($xaxis_label)) +{ + $x_legend = new x_legend($xaxis_label ); + $x_legend->set_style( '{font-size: 20px; color: #000000}' ); + $chart->set_x_legend( $x_legend ); +} +echo $chart->toPrettyString(); +?> \ No newline at end of file diff --git a/application/views/reports/graphs/hbar.php b/application/views/reports/graphs/hbar.php new file mode 100644 index 000000000..10463f5c4 --- /dev/null +++ b/application/views/reports/graphs/hbar.php @@ -0,0 +1,61 @@ +output->set_header("Cache-Control: no-store, no-cache, must-revalidate"); +$this->output->set_header("Pragma: public"); + +$title = new title($title); + +$hbar = new hbar( '#86BBEF' ); +$hbar->set_tooltip($this->lang->line('reports_revenue').': #val#' ); +$y_labels = array(); +$max_value = 0; +foreach($data as $label=>$value) +{ + if ($max_value < $value) + { + $max_value = $value; + } + $y_labels[] = (string)$label; + $hbar->append_value( new hbar_value(0,(float)$value) ); +} +$chart = new open_flash_chart(); +$chart->set_title( $title ); +$chart->add_element( $hbar ); + +$step_count = $max_value > 0 ? $max_value/10 : 1; +$x = new x_axis(); +$x->set_offset( false ); +$x->set_steps($max_value/10); + +$chart->set_x_axis( $x ); + +$y = new y_axis(); +$y->set_offset( true ); +$y->set_labels(array_reverse($y_labels)); +$chart->add_y_axis( $y ); + +if (isset($yaxis_label)) +{ + $y_legend = new y_legend($yaxis_label ); + $y_legend->set_style( '{font-size: 20px; color: #000000}' ); + $chart->set_y_legend( $y_legend ); +} + +if (isset($xaxis_label)) +{ + $x_legend = new x_legend($xaxis_label ); + $x_legend->set_style( '{font-size: 20px; color: #000000}' ); + $chart->set_x_legend( $x_legend ); +} + +$chart->set_bg_colour("#f3f3f3"); + +$tooltip = new tooltip(); +$tooltip->set_hover(); +$tooltip->set_stroke( 1 ); +$tooltip->set_colour( "#000000" ); +$tooltip->set_background_colour( "#ffffff" ); +$chart->set_tooltip( $tooltip ); + + +echo $chart->toPrettyString(); +?> \ No newline at end of file diff --git a/application/views/reports/graphs/line.php b/application/views/reports/graphs/line.php new file mode 100644 index 000000000..62fa570e6 --- /dev/null +++ b/application/views/reports/graphs/line.php @@ -0,0 +1,49 @@ +output->set_header("Cache-Control: no-store, no-cache, must-revalidate"); +$this->output->set_header("Pragma: public"); +$line_data = array(); +$labels = array(); +foreach($data as $label=>$value) +{ + $line_data[] = (float)$value; + $labels[] = (string)$label; +} + +$hol = new hollow_dot(); +$hol->size(3)->halo_size(1)->tooltip('#x_label#
                      #val#'); + +$line = new line(); +$line->set_default_dot_style($hol); +$line->set_values($line_data); + +$chart = new open_flash_chart(); +$chart->set_title(new title($title)); +$chart->add_element($line); + +$x = new x_axis(); +$x->steps(count($data) > 10 ? (int)(count($data)/4) : 1); +$x->set_labels_from_array($labels); +$chart->set_x_axis( $x ); + +$y = new y_axis(); +$y->set_tick_length(7); +$y->set_range(0, (count($data) > 0 ? max($data) : 0) + 25, ((count($data) > 0 ? max($data) : 0)+25)/10); +$chart->set_y_axis( $y ); +$chart->set_bg_colour("#f3f3f3"); + +if (isset($yaxis_label)) +{ + $y_legend = new y_legend($yaxis_label ); + $y_legend->set_style( '{font-size: 20px; color: #000000}' ); + $chart->set_y_legend( $y_legend ); +} + +if (isset($xaxis_label)) +{ + $x_legend = new x_legend($xaxis_label ); + $x_legend->set_style( '{font-size: 20px; color: #000000}' ); + $chart->set_x_legend( $x_legend ); +} + +echo $chart->toPrettyString(); +?> \ No newline at end of file diff --git a/application/views/reports/graphs/pie.php b/application/views/reports/graphs/pie.php new file mode 100644 index 000000000..fda94d8b6 --- /dev/null +++ b/application/views/reports/graphs/pie.php @@ -0,0 +1,25 @@ +output->set_header("Cache-Control: no-store, no-cache, must-revalidate"); +$this->output->set_header("Pragma: public"); +$title = new title($title); + +$pie = new pie(); +$pie->set_alpha(0.6); +$pie->set_start_angle( 35 ); +$pie->add_animation( new pie_fade() ); +$pie->set_tooltip( '#val# of #total#
                      #percent# of 100%' ); +$pie->set_colours(get_random_colors(count($data))); + +$pie_values = array(); +foreach($data as $label=>$value) +{ + $pie_values[] = new pie_value((float)$value, (string)$label); +} +$pie->set_values($pie_values); +$chart = new open_flash_chart(); +$chart->set_title( $title ); +$chart->set_bg_colour("#f3f3f3"); +$chart->add_element( $pie ); +$chart->x_axis = null; +echo $chart->toPrettyString(); +?> \ No newline at end of file diff --git a/application/views/reports/listing.php b/application/views/reports/listing.php new file mode 100644 index 000000000..44728e8c6 --- /dev/null +++ b/application/views/reports/listing.php @@ -0,0 +1,63 @@ + +load->view("partial/header"); ?> +
                      lang->line('reports_reports'); ?>
                      +"; +} +?> +load->view("partial/footer"); ?> + + diff --git a/application/views/reports/specific_input.php b/application/views/reports/specific_input.php new file mode 100644 index 000000000..7bb1710ac --- /dev/null +++ b/application/views/reports/specific_input.php @@ -0,0 +1,90 @@ +load->view("partial/header"); ?> +
                      lang->line('reports_report_input'); ?>
                      +".$error.""; +} +?> + lang->line('reports_date_range'), 'report_date_range_label', array('class'=>'required')); ?> +
                      + + +
                      + +
                      + + + + + - + + + +
                      + + 'required')); ?> + +
                      + +
                      + + 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 +
                      + +'generate_report', + 'id'=>'generate_report', + 'content'=>$this->lang->line('common_submit'), + 'class'=>'submit_button') +); +?> + +load->view("partial/footer"); ?> + + \ No newline at end of file diff --git a/application/views/reports/tabular.php b/application/views/reports/tabular.php new file mode 100644 index 000000000..41643227b --- /dev/null +++ b/application/views/reports/tabular.php @@ -0,0 +1,70 @@ +load->view("partial/header_excel"); +}else{ + $this->load->view("partial/header"); +} +?> +
                      +
                      +
                      + + + + + + + + + + + + + + + + + +
                      +
                      +
                      +$value) { ?> +
                      lang->line('reports_'.$name). ': '.to_currency($value); ?>
                      + +
                      +load->view("partial/footer_excel"); + $content = ob_end_flush(); + + $filename = trim($filename); + $filename = str_replace(array(' ', '/', '\\'), '', $title); + $filename .= "_Export.xls"; + header('Content-type: application/ms-excel'); + header('Content-Disposition: attachment; filename='.$filename); + echo $content; + die(); + +}else{ + $this->load->view("partial/footer"); +?> + + + \ No newline at end of file diff --git a/application/views/reports/tabular_details.php b/application/views/reports/tabular_details.php new file mode 100644 index 000000000..133a749a4 --- /dev/null +++ b/application/views/reports/tabular_details.php @@ -0,0 +1,102 @@ +load->view("partial/header_excel"); +}else{ + $this->load->view("partial/header"); +} +?> +
                      +
                      +
                      + + + + + + + + + + + $row) { ?> + + + + + + + + + + + +
                      +
                      +
                      + + + + + + + + + + + + + + + + + + + +
                      + +
                      +
                      +
                      +$value) { ?> +
                      lang->line('reports_'.$name). ': '.to_currency($value); ?>
                      + +
                      +load->view("partial/footer_excel"); + $content = ob_end_flush(); + + $filename = trim($filename); + $filename = str_replace(array(' ', '/', '\\'), '', $title); + $filename .= "_Export.xls"; + header('Content-type: application/ms-excel'); + header('Content-Disposition: attachment; filename='.$filename); + echo $content; + die(); + +}else{ + $this->load->view("partial/footer"); +?> + + \ No newline at end of file diff --git a/application/views/sales/delete.php b/application/views/sales/delete.php new file mode 100644 index 000000000..56d182282 --- /dev/null +++ b/application/views/sales/delete.php @@ -0,0 +1,18 @@ +load->view("partial/header"); ?> +
                      + +

                      lang->line('sales_delete_successful'); ?>

                      + +

                      lang->line('sales_delete_unsuccessful'); ?>

                      + +
                      +load->view("partial/footer"); ?> \ No newline at end of file diff --git a/application/views/sales/edit.php b/application/views/sales/edit.php new file mode 100644 index 000000000..a93f7577f --- /dev/null +++ b/application/views/sales/edit.php @@ -0,0 +1,109 @@ +load->view("partial/header"); ?> +
                      +

                      lang->line('sales_edit_sale'); ?> POS

                      + + 'sales_edit_form')); ?> +
                        + +
                        + lang->line('sales_receipt').':', 'customer'); ?> +
                        + '_blank'));?> +
                        +
                        + +
                        + lang->line('sales_date').':', 'date'); ?> +
                        + 'date','value'=>date('m/d/Y', strtotime($sale_info['sale_time'])), 'id'=>'date'));?> +
                        +
                        + +
                        + lang->line('sales_customer').':', 'customer'); ?> +
                        + +
                        +
                        + +
                        + lang->line('sales_employee').':', 'employee'); ?> +
                        + +
                        +
                        + +
                        + lang->line('sales_comment').':', 'comment'); ?> +
                        + 'comment','value'=>$sale_info['comment'],'rows'=>'4','cols'=>'23', 'id'=>'comment'));?> +
                        +
                        + + 'submit', + 'id'=>'submit', + 'value'=>$this->lang->line('common_submit'), + 'class'=>'submit_button float_left') + ); + ?> + + 'sales_delete_form')); ?> + 'submit', + 'id'=>'submit', + 'value'=>$this->lang->line('sales_delete_entire_sale'), + 'class'=>'delete_button float_right') + ); + ?> + + +
                        +
                        +load->view("partial/footer"); ?> + + \ No newline at end of file diff --git a/application/views/sales/receipt.php b/application/views/sales/receipt.php new file mode 100644 index 000000000..e030f6602 --- /dev/null +++ b/application/views/sales/receipt.php @@ -0,0 +1,120 @@ +load->view("partial/header"); ?> +'.$error_message.''; + exit; +} +?> +
                        +
                        +
                        config->item('company'); ?>
                        +
                        config->item('address')); ?>
                        +
                        config->item('phone'); ?>
                        +
                        +
                        +
                        +
                        + +
                        lang->line('customers_customer').": ".$customer; ?>
                        + +
                        lang->line('sales_id').": ".$sale_id; ?>
                        +
                        lang->line('employees_employee').": ".$employee; ?>
                        +
                        + + + + + + + + + + + $item) + { + ?> + + + + + + + + + + + + + + + + + + + + + + $value) { ?> + + + + + + + + + + + + + + $payment) + { ?> + + + + + + + + + + + + + + +
                        lang->line('sales_item_number'); ?>lang->line('items_item'); ?>lang->line('common_price'); ?>lang->line('sales_quantity'); ?>lang->line('sales_discount'); ?>lang->line('sales_total'); ?>
                        lang->line('sales_sub_total'); ?>
                        :
                        lang->line('sales_total'); ?>
                         
                        lang->line('sales_payment'); ?>
                         
                        lang->line('sales_change_due'); ?>
                        + +
                        + config->item('return_policy')); ?> +
                        +
                        + "; ?> +
                        +
                        +load->view("partial/footer"); ?> + +Appconfig->get('print_after_sale')) +{ +?> + + \ No newline at end of file diff --git a/application/views/sales/receipt_email.php b/application/views/sales/receipt_email.php new file mode 100644 index 000000000..721fc976c --- /dev/null +++ b/application/views/sales/receipt_email.php @@ -0,0 +1,95 @@ +
                        +
                        +
                        config->item('company'); ?>
                        +
                        config->item('address')); ?>
                        +
                        config->item('phone'); ?>
                        +
                        +
                        +
                        +
                        + +
                        lang->line('customers_customer').": ".$customer; ?>
                        + +
                        lang->line('sales_id').": ".$sale_id; ?>
                        +
                        lang->line('employees_employee').": ".$employee; ?>
                        +
                        + + + + + + + + + + + $item) + { + ?> + + + + + + + + + + + + + + + + + + + + + + $value) { ?> + + + + + + + + + + + + + + $payment) + { ?> + + + + + + + + + + + + + + +
                        lang->line('sales_item_number'); ?>lang->line('items_item'); ?>lang->line('common_price'); ?>lang->line('sales_quantity'); ?>lang->line('sales_discount'); ?>lang->line('sales_total'); ?>
                        lang->line('sales_sub_total'); ?>
                        :
                        lang->line('sales_total'); ?>
                         
                        lang->line('sales_payment'); ?>
                         
                        lang->line('sales_change_due'); ?>
                        + +
                        + config->item('return_policy')); ?> +
                        +
                        \ No newline at end of file diff --git a/application/views/sales/register.php b/application/views/sales/register.php new file mode 100644 index 000000000..1853117e8 --- /dev/null +++ b/application/views/sales/register.php @@ -0,0 +1,494 @@ +load->view("partial/header"); ?> +
                        lang->line('sales_register'); ?>
                        +".$error.""; +} + +if (isset($warning)) +{ + echo "
                        ".$warning."
                        "; +} + +if (isset($success)) +{ + echo "
                        ".$success."
                        "; +} +?> +
                        +'mode_form')); ?> + lang->line('sales_mode') ?> + +
                        + ".$this->lang->line('sales_suspended_sales')."
                        ", + array('class'=>'thickbox none','title'=>$this->lang->line('sales_suspended_sales'))); + ?> +
                        + +'add_item_form')); ?> + +'item','id'=>'item','size'=>'40'));?> +
                        + ".$this->lang->line('sales_new_item')."
                        ", + array('class'=>'thickbox none','title'=>$this->lang->line('sales_new_item'))); + ?> + + + + + + + + + + + + + + + + + + + +$item) + { + $cur_item_info = $this->Item->get_info($item['item_id']); + echo form_open("sales/edit_item/$line"); + ?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                        lang->line('common_delete'); ?>lang->line('sales_item_number'); ?>lang->line('sales_item_name'); ?>lang->line('sales_price'); ?>lang->line('sales_quantity'); ?>lang->line('sales_discount'); ?>lang->line('sales_total'); ?>lang->line('sales_edit'); ?>
                        +
                        lang->line('sales_no_items_in_cart'); ?>
                        +
                        lang->line('common_delete').']');?>
                        [quantity; ?> in stock]
                        'price','value'=>$item['price'],'size'=>'6'));?> + 'quantity','value'=>$item['quantity'],'size'=>'2')); + } + ?> + 'discount','value'=>$item['discount'],'size'=>'3'));?>lang->line('sales_edit_item'));?>
                        lang->line('sales_description_abbrv').':';?> + + 'description','value'=>$item['description'],'size'=>'20')); + } + else + { + if ($item['description']!='') + { + echo $item['description']; + echo form_hidden('description',$item['description']); + } + else + { + echo 'None'; + echo form_hidden('description',''); + } + } + ?> +   + lang->line('sales_serial').':'; + } + ?> + + 'serialnumber','value'=>$item['serialnumber'],'size'=>'20')); + } + else + { + echo form_hidden('serialnumber', ''); + } + ?> +
                        + + + +
                        + lang->line("sales_customer").': '.$customer. '
                        '; + echo anchor("sales/remove_customer",'['.$this->lang->line('common_remove').' '.$this->lang->line('customers_customer').']'); + } + else + { + echo form_open("sales/select_customer",array('id'=>'select_customer_form')); ?> + + 'customer','id'=>'customer','size'=>'30','value'=>$this->lang->line('sales_start_typing_customer_name')));?> + +
                        +

                        lang->line('common_or'); ?>

                        + ".$this->lang->line('sales_new_customer')."
                        ", + array('class'=>'thickbox none','title'=>$this->lang->line('sales_new_customer'))); + ?> +
                        +
                         
                        + + +
                        +
                        lang->line('sales_sub_total'); ?>:
                        +
                        + + $value) { ?> +
                        :
                        +
                        + + +
                        lang->line('sales_total'); ?>:
                        +
                        +
                        + + + + + 0) + { + ?> + +
                        + 'cancel_sale_form')); ?> +
                        + lang->line('sales_cancel_sale'); ?> +
                        + +
                        +
                         
                        + 0) + { + ?> +
                        + 'finish_sale_form')); ?> + + 'comment', 'id' => 'comment', 'value'=>$comment,'rows'=>'4','cols'=>'23'));?> +

                        + + lang->line('sales_email_receipt'). ': '. form_checkbox(array( + 'name' => 'email_receipt', + 'id' => 'email_receipt', + 'value' => '1', + 'checked' => (boolean)$email_receipt, + )).'
                        ('.$customer_email.')
                        '; + } + + if ($payments_cover_total) + { + echo "
                        ".$this->lang->line('sales_complete_sale')."
                        "; + } + echo "
                        ".$this->lang->line('sales_suspend_sale')."
                        "; + ?> +
                        + + + + + + + + + + + + +
                        + +
                        + +
                        + + 'add_payment_form')); ?> + + + + + + + + + +
                        + lang->line('sales_payment').': ';?> + + +
                        + lang->line('sales_amount_tendered').': ';?> + + 'amount_tendered','id'=>'amount_tendered','value'=>to_currency_no_money($amount_due),'size'=>'10')); ?> +
                        +
                        + lang->line('sales_add_payment'); ?> +
                        +
                        + + + 0) + { + ?> + + + + + + + + + + + + $payment) + { + echo form_open("sales/edit_payment/$payment_id",array('id'=>'edit_payment_form'.$payment_id)); + ?> + + + + + + + + + + + + +
                        lang->line('common_delete'); ?>
                        lang->line('common_delete').']');?>
                        +
                        + + + + +
                        + + + +
                         
                        + + +load->view("partial/footer"); ?> + + diff --git a/application/views/sales/suspended.php b/application/views/sales/suspended.php new file mode 100644 index 000000000..d84667cfe --- /dev/null +++ b/application/views/sales/suspended.php @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + + + + + + +
                        lang->line('sales_suspended_sale_id'); ?>lang->line('sales_date'); ?>lang->line('sales_customer'); ?>lang->line('sales_comments'); ?>lang->line('sales_unsuspend_and_delete'); ?>
                        + Customer->get_info($suspended_sale['customer_id']); + echo $customer->first_name. ' '. $customer->last_name; + } + else + { + ?> +   + + + +
                        \ No newline at end of file diff --git a/application/views/suppliers/form.php b/application/views/suppliers/form.php new file mode 100644 index 000000000..fb7bffff1 --- /dev/null +++ b/application/views/suppliers/form.php @@ -0,0 +1,78 @@ +person_id,array('id'=>'supplier_form')); +?> +
                        lang->line('common_fields_required_message'); ?>
                        +
                          +
                          +lang->line("suppliers_basic_information"); ?> + +
                          +lang->line('suppliers_company_name').':', 'company_name', array('class'=>'required')); ?> +
                          + 'company_name', + 'id'=>'company_name_input', + 'value'=>$person_info->company_name) + );?> +
                          +
                          + +load->view("people/form_basic_info"); ?> +
                          +lang->line('suppliers_account_number').':', 'account_number'); ?> +
                          + 'account_number', + 'id'=>'account_number', + 'value'=>$person_info->account_number) + );?> +
                          +
                          +'submit', + 'id'=>'submit', + 'value'=>$this->lang->line('common_submit'), + 'class'=>'submit_button float_right') +); +?> +
                          + + \ No newline at end of file diff --git a/application/views/suppliers/manage.php b/application/views/suppliers/manage.php new file mode 100644 index 000000000..db3bb7d71 --- /dev/null +++ b/application/views/suppliers/manage.php @@ -0,0 +1,85 @@ +load->view("partial/header"); ?> + + +
                          +
                          lang->line('common_list_of').' '.$this->lang->line('module_'.$controller_name); ?>
                          +
                          + ".$this->lang->line($controller_name.'_new')."
                          ", + array('class'=>'thickbox none','title'=>$this->lang->line($controller_name.'_new'))); + ?> +
                          + +pagination->create_links();?> +
                          + +
                          +
                          + +
                          +
                          +load->view("partial/footer"); ?> \ No newline at end of file