├── application ├── helpers │ ├── sale_helper.php │ ├── index.html │ └── currency_helper.php ├── views │ ├── partial │ │ ├── footer_excel.php │ │ ├── footer.php │ │ └── header_excel.php │ ├── no_access.php │ ├── index.html │ ├── sales │ │ ├── delete.php │ │ └── suspended.php │ ├── barcode_sheet.php │ ├── home.php │ ├── reports │ │ ├── graphs │ │ │ ├── pie.php │ │ │ ├── bar.php │ │ │ ├── line.php │ │ │ └── hbar.php │ │ ├── graphical.php │ │ ├── excel_export.php │ │ └── tabular.php │ ├── items │ │ └── excel_import.php │ └── customers │ │ └── excel_import.php ├── libraries │ ├── ofc-library │ │ ├── ofc_y_axis_right.php │ │ ├── ofc_y_axis_base.php │ │ ├── ofc_line_hollow.php │ │ ├── ofc_area_line.php │ │ ├── ofc_line_style.php │ │ ├── ofc_area_hollow.php │ │ ├── ofc_radar_axis_labels.php │ │ ├── ofc_radar_spoke_labels.php │ │ ├── ofc_x_legend.php │ │ ├── ofc_y_legend.php │ │ ├── ofc_y_axis.php │ │ ├── ofc_bar_3d.php │ │ ├── ofc_shape.php │ │ ├── ofc_line_dot.php │ │ ├── ofc_bar.php │ │ ├── ofc_y_axis_label.php │ │ ├── ofc_area_base.php │ │ ├── ofc_arrow.php │ │ ├── ofc_candle.php │ │ ├── ofc_bar_sketch.php │ │ ├── ofc_radar_axis.php │ │ ├── README.txt │ │ ├── ofc_x_axis_label.php │ │ ├── ofc_bar_filled.php │ │ ├── ofc_title.php │ │ ├── ofc_scatter.php │ │ ├── ofc_sugar.php │ │ ├── ofc_scatter_line.php │ │ ├── ofc_y_axis_labels.php │ │ ├── ofc_bar_stack.php │ │ ├── ofc_hbar.php │ │ ├── ofc_tooltip.php │ │ ├── ofc_x_axis_labels.php │ │ ├── ofc_menu.php │ │ ├── ofc_line_base.php │ │ ├── ofc_upload_image.php │ │ └── ofc_bar_base.php │ ├── index.html │ └── MY_Language.php ├── index.html ├── config │ ├── index.html │ ├── hooks.php │ └── constants.php ├── errors │ ├── index.html │ ├── error_php.php │ ├── error_general.php │ ├── error_db.php │ └── error_404.php ├── hooks │ ├── index.html │ └── load_config.php ├── language │ ├── english │ │ ├── error_lang.php │ │ ├── index.html │ │ ├── login_lang.php │ │ ├── customers_lang.php │ │ ├── suppliers_lang.php │ │ ├── item_kits_lang.php │ │ ├── module_lang.php │ │ ├── config_lang.php │ │ ├── receivings_lang.php │ │ ├── employees_lang.php │ │ └── common_lang.php │ ├── indonesia │ │ ├── error_lang.php │ │ ├── index.html │ │ ├── login_lang.php │ │ ├── customers_lang.php │ │ ├── suppliers_lang.php │ │ ├── item_kits_lang.php │ │ ├── module_lang.php │ │ ├── config_lang.php │ │ ├── receivings_lang.php │ │ ├── employees_lang.php │ │ └── common_lang.php │ └── spanish │ │ ├── error_lang.php │ │ ├── index.html │ │ ├── login_lang.php │ │ ├── customers_lang.php │ │ ├── suppliers_lang.php │ │ ├── item_kits_lang.php │ │ ├── module_lang.php │ │ ├── config_lang.php │ │ ├── receivings_lang.php │ │ ├── employees_lang.php │ │ └── common_lang.php ├── models │ ├── index.html │ ├── inventory.php │ ├── reports │ │ ├── inventory_summary.php │ │ ├── inventory_low.php │ │ ├── report.php │ │ ├── summary_discounts.php │ │ ├── summary_payments.php │ │ ├── summary_sales.php │ │ ├── summary_categories.php │ │ └── summary_items.php │ ├── item_kit_items.php │ ├── item_taxes.php │ ├── module.php │ └── appconfig.php └── controllers │ ├── index.html │ ├── barcode.php │ ├── interfaces │ ├── iperson_controller.php │ └── idata_controller.php │ ├── no_access.php │ ├── home.php │ ├── secure_area.php │ ├── login.php │ ├── person_controller.php │ └── config.php ├── license ├── codeigniter_version.txt └── license.txt ├── images ├── minus.png ├── plus.png ├── calendar.png ├── tables │ ├── asc.gif │ ├── bg.gif │ └── desc.gif ├── menubar │ ├── home.png │ ├── items.png │ ├── sales.png │ ├── config.png │ ├── reports.png │ ├── customers.png │ ├── employees.png │ ├── giftcards.png │ ├── item_kits.png │ ├── menubar_bg.gif │ ├── receivings.png │ ├── suppliers.png │ ├── thumb_clock.png │ └── thumb_colorscheme.png ├── spinner_small.gif ├── checkbox_arrow.gif ├── big_action_button.jpg ├── loading_animation.gif ├── small_action_button.jpg └── psds │ ├── big_action_button.psd │ └── small_action_button.psd ├── open-flash-chart.swf ├── system ├── fonts │ ├── texb.ttf │ └── index.html ├── scaffolding │ ├── images │ │ ├── logo.jpg │ │ ├── background.jpg │ │ └── index.html │ ├── index.html │ └── views │ │ ├── index.html │ │ ├── footer.php │ │ ├── delete.php │ │ ├── no_data.php │ │ ├── view.php │ │ ├── header.php │ │ ├── add.php │ │ └── edit.php ├── index.html ├── cache │ └── index.html ├── logs │ └── index.html ├── database │ ├── index.html │ └── drivers │ │ ├── index.html │ │ ├── mssql │ │ └── index.html │ │ ├── mysql │ │ └── index.html │ │ ├── mysqli │ │ └── index.html │ │ ├── oci8 │ │ └── index.html │ │ ├── odbc │ │ └── index.html │ │ ├── postgre │ │ └── index.html │ │ └── sqlite │ │ └── index.html ├── helpers │ ├── index.html │ ├── language_helper.php │ ├── email_helper.php │ ├── xml_helper.php │ ├── typography_helper.php │ └── path_helper.php ├── language │ ├── index.html │ ├── english │ │ ├── index.html │ │ ├── number_lang.php │ │ ├── scaffolding_lang.php │ │ ├── profiler_lang.php │ │ ├── unit_test_lang.php │ │ ├── ftp_lang.php │ │ ├── validation_lang.php │ │ ├── form_validation_lang.php │ │ ├── calendar_lang.php │ │ ├── upload_lang.php │ │ ├── email_lang.php │ │ └── imglib_lang.php │ ├── indonesia │ │ ├── index.html │ │ ├── number_lang.php │ │ ├── scaffolding_lang.php │ │ ├── profiler_lang.php │ │ ├── unit_test_lang.php │ │ ├── ftp_lang.php │ │ ├── validation_lang.php │ │ ├── form_validation_lang.php │ │ ├── calendar_lang.php │ │ ├── upload_lang.php │ │ ├── email_lang.php │ │ └── imglib_lang.php │ └── spanish │ │ ├── index.html │ │ ├── number_lang.php │ │ ├── scaffolding_lang.php │ │ ├── profiler_lang.php │ │ ├── unit_test_lang.php │ │ ├── ftp_lang.php │ │ ├── validation_lang.php │ │ ├── form_validation_lang.php │ │ ├── calendar_lang.php │ │ ├── upload_lang.php │ │ ├── email_lang.php │ │ └── imglib_lang.php ├── libraries │ └── index.html ├── plugins │ └── index.html └── codeigniter │ ├── index.html │ └── Base5.php ├── css ├── editsale.css ├── reports.css ├── ospos_print.css ├── receipt.css ├── autocomplete.css ├── login.css ├── menubar.css └── popupbox.css ├── UPGRADE.txt ├── import_customers.csv ├── import_items.csv ├── WHATS_NEW.txt ├── README.txt └── js └── jquery.bgiframe.min.js /application/helpers/sale_helper.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /license/codeigniter_version.txt: -------------------------------------------------------------------------------- 1 | 1.7.3 -------------------------------------------------------------------------------- /images/minus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tcassels/Opensource-Point-of-Sale/HEAD/images/minus.png -------------------------------------------------------------------------------- /images/plus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tcassels/Opensource-Point-of-Sale/HEAD/images/plus.png -------------------------------------------------------------------------------- /images/calendar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tcassels/Opensource-Point-of-Sale/HEAD/images/calendar.png -------------------------------------------------------------------------------- /images/tables/asc.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tcassels/Opensource-Point-of-Sale/HEAD/images/tables/asc.gif -------------------------------------------------------------------------------- /images/tables/bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tcassels/Opensource-Point-of-Sale/HEAD/images/tables/bg.gif -------------------------------------------------------------------------------- /images/tables/desc.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tcassels/Opensource-Point-of-Sale/HEAD/images/tables/desc.gif -------------------------------------------------------------------------------- /open-flash-chart.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tcassels/Opensource-Point-of-Sale/HEAD/open-flash-chart.swf -------------------------------------------------------------------------------- /system/fonts/texb.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tcassels/Opensource-Point-of-Sale/HEAD/system/fonts/texb.ttf -------------------------------------------------------------------------------- /application/views/partial/footer_excel.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /images/menubar/home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tcassels/Opensource-Point-of-Sale/HEAD/images/menubar/home.png -------------------------------------------------------------------------------- /images/menubar/items.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tcassels/Opensource-Point-of-Sale/HEAD/images/menubar/items.png -------------------------------------------------------------------------------- /images/menubar/sales.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tcassels/Opensource-Point-of-Sale/HEAD/images/menubar/sales.png -------------------------------------------------------------------------------- /images/spinner_small.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tcassels/Opensource-Point-of-Sale/HEAD/images/spinner_small.gif -------------------------------------------------------------------------------- /application/views/no_access.php: -------------------------------------------------------------------------------- 1 | lang->line('error_no_permission_module').' '.$module_name; 3 | ?> -------------------------------------------------------------------------------- /images/checkbox_arrow.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tcassels/Opensource-Point-of-Sale/HEAD/images/checkbox_arrow.gif -------------------------------------------------------------------------------- /images/menubar/config.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tcassels/Opensource-Point-of-Sale/HEAD/images/menubar/config.png -------------------------------------------------------------------------------- /images/menubar/reports.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tcassels/Opensource-Point-of-Sale/HEAD/images/menubar/reports.png -------------------------------------------------------------------------------- /images/big_action_button.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tcassels/Opensource-Point-of-Sale/HEAD/images/big_action_button.jpg -------------------------------------------------------------------------------- /images/loading_animation.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tcassels/Opensource-Point-of-Sale/HEAD/images/loading_animation.gif -------------------------------------------------------------------------------- /images/menubar/customers.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tcassels/Opensource-Point-of-Sale/HEAD/images/menubar/customers.png -------------------------------------------------------------------------------- /images/menubar/employees.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tcassels/Opensource-Point-of-Sale/HEAD/images/menubar/employees.png -------------------------------------------------------------------------------- /images/menubar/giftcards.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tcassels/Opensource-Point-of-Sale/HEAD/images/menubar/giftcards.png -------------------------------------------------------------------------------- /images/menubar/item_kits.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tcassels/Opensource-Point-of-Sale/HEAD/images/menubar/item_kits.png -------------------------------------------------------------------------------- /images/menubar/menubar_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tcassels/Opensource-Point-of-Sale/HEAD/images/menubar/menubar_bg.gif -------------------------------------------------------------------------------- /images/menubar/receivings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tcassels/Opensource-Point-of-Sale/HEAD/images/menubar/receivings.png -------------------------------------------------------------------------------- /images/menubar/suppliers.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tcassels/Opensource-Point-of-Sale/HEAD/images/menubar/suppliers.png -------------------------------------------------------------------------------- /images/menubar/thumb_clock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tcassels/Opensource-Point-of-Sale/HEAD/images/menubar/thumb_clock.png -------------------------------------------------------------------------------- /images/small_action_button.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tcassels/Opensource-Point-of-Sale/HEAD/images/small_action_button.jpg -------------------------------------------------------------------------------- /images/psds/big_action_button.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tcassels/Opensource-Point-of-Sale/HEAD/images/psds/big_action_button.psd -------------------------------------------------------------------------------- /system/scaffolding/images/logo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tcassels/Opensource-Point-of-Sale/HEAD/system/scaffolding/images/logo.jpg -------------------------------------------------------------------------------- /images/menubar/thumb_colorscheme.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tcassels/Opensource-Point-of-Sale/HEAD/images/menubar/thumb_colorscheme.png -------------------------------------------------------------------------------- /images/psds/small_action_button.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tcassels/Opensource-Point-of-Sale/HEAD/images/psds/small_action_button.psd -------------------------------------------------------------------------------- /system/scaffolding/images/background.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tcassels/Opensource-Point-of-Sale/HEAD/system/scaffolding/images/background.jpg -------------------------------------------------------------------------------- /application/libraries/ofc-library/ofc_y_axis_right.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/cache/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/fonts/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/logs/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/database/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/helpers/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/language/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/libraries/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/plugins/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /css/editsale.css: -------------------------------------------------------------------------------- 1 | #edit_sale_wrapper 2 | { 3 | margin: 0 auto; 4 | padding-bottom: 50px; 5 | width: 60%; 6 | } 7 | 8 | #edit_sale_wrapper h1 9 | { 10 | text-align: center; 11 | } -------------------------------------------------------------------------------- /system/codeigniter/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/scaffolding/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/config/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/errors/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/hooks/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/language/english/error_lang.php: -------------------------------------------------------------------------------- 1 | 5 | -------------------------------------------------------------------------------- /application/language/indonesia/error_lang.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /application/language/spanish/error_lang.php: -------------------------------------------------------------------------------- 1 | 5 | -------------------------------------------------------------------------------- /application/models/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/views/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/database/drivers/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/language/english/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/language/indonesia/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/language/spanish/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/scaffolding/images/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/scaffolding/views/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/controllers/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/helpers/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/libraries/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/database/drivers/mssql/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/database/drivers/mysql/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/database/drivers/mysqli/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/database/drivers/oci8/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/database/drivers/odbc/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/database/drivers/postgre/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /system/database/drivers/sqlite/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/language/indonesia/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Dilarang 4 | 5 | 6 | 7 |

Akses direktori dilarang.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/libraries/ofc-library/ofc_line_hollow.php: -------------------------------------------------------------------------------- 1 | type = "line_hollow"; 8 | } 9 | } -------------------------------------------------------------------------------- /UPGRADE.txt: -------------------------------------------------------------------------------- 1 | How to Upgrade 2 | ------------------------- 3 | 1. Replace all code from your point of sale installation with the code downloaded 4 | 2. Run the necessary database upgrades from the database folder -------------------------------------------------------------------------------- /application/language/english/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /application/language/spanish/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Prohibido 4 | 5 | 6 | 7 |

El acceso a los directorios está prohibido.

8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /application/libraries/ofc-library/ofc_area_line.php: -------------------------------------------------------------------------------- 1 | type = "area_line"; 8 | parent::area_base(); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /import_customers.csv: -------------------------------------------------------------------------------- 1 | First Name,Last Name,E-Mail,Phone Number,Address 1,Address2,City,State,Zip,Country,Comments,Account Number,Taxable 2 | Bob,Smith,bsmith@nowhere.com,585-555-1111,123 Nowhere Street,Apt 4,Awesome,NY,11111,USA,Awesome guy,,y -------------------------------------------------------------------------------- /application/libraries/ofc-library/ofc_line_style.php: -------------------------------------------------------------------------------- 1 | style = "dash"; 8 | $this->on = $on; 9 | $this->off = $off; 10 | } 11 | } -------------------------------------------------------------------------------- /application/libraries/ofc-library/ofc_area_hollow.php: -------------------------------------------------------------------------------- 1 | type = "area_hollow"; 8 | parent::area_base(); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /application/controllers/barcode.php: -------------------------------------------------------------------------------- 1 | load->view('barcode'); 12 | } 13 | } 14 | ?> -------------------------------------------------------------------------------- /import_items.csv: -------------------------------------------------------------------------------- 1 | UPC/EAN/ISBN,Item Name,Category,Supplier ID,Cost Price,Unit Price,Tax 1 Name,Tax 1 Percent,Tax 2 Name ,Tax 2 Percent,Quantity,Reorder Level,Location,Description,Allow Alt Description,Item has Serial Number 33333333,Apple iMac,Computers,,800,1200,Tax 1,8,Tax 2,10,10,1,Earth,Best Computer ever,y, -------------------------------------------------------------------------------- /system/scaffolding/views/footer.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /WHATS_NEW.txt: -------------------------------------------------------------------------------- 1 | * E-Mail Receipt support 2 | * Currency Symbol support 3 | * Fixed a bug where comment would disappear after typing it and then doing something different in a sale. 4 | * Fixed bug where Low Inventory items wouldn't display correct items 5 | * Fixed bug where an item couldn't be imported with a location 6 | -------------------------------------------------------------------------------- /application/libraries/ofc-library/ofc_radar_axis_labels.php: -------------------------------------------------------------------------------- 1 | labels = $labels; 9 | } 10 | 11 | function set_colour( $colour ) 12 | { 13 | $this->colour = $colour; 14 | } 15 | } -------------------------------------------------------------------------------- /system/language/english/number_lang.php: -------------------------------------------------------------------------------- 1 | labels = $labels; 9 | } 10 | 11 | function set_colour( $colour ) 12 | { 13 | $this->colour = $colour; 14 | } 15 | } -------------------------------------------------------------------------------- /system/scaffolding/views/delete.php: -------------------------------------------------------------------------------- 1 | load->view('header'); ?> 2 | 3 |

4 | 5 |

  |   6 | 7 | load->view('footer'); 8 | /* End of file delete.php */ 9 | /* Location: ./system/scaffolding/views/delete.php */ 10 | -------------------------------------------------------------------------------- /system/scaffolding/views/no_data.php: -------------------------------------------------------------------------------- 1 | load->view('header'); ?> 2 | 3 |

4 |

5 | 6 | load->view('footer'); 7 | /* End of file no_data.php */ 8 | /* Location: ./system/scaffolding/views/no_data.php */ -------------------------------------------------------------------------------- /application/controllers/interfaces/iperson_controller.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /application/controllers/no_access.php: -------------------------------------------------------------------------------- 1 | Module->get_module_name($module_id); 12 | $this->load->view('no_access',$data); 13 | } 14 | } 15 | ?> -------------------------------------------------------------------------------- /application/errors/error_php.php: -------------------------------------------------------------------------------- 1 |
2 | 3 |

A PHP Error was encountered

4 | 5 |

Severity:

6 |

Message:

7 |

Filename:

8 |

Line Number:

9 | 10 |
-------------------------------------------------------------------------------- /application/libraries/ofc-library/ofc_x_legend.php: -------------------------------------------------------------------------------- 1 | text = $text; 8 | } 9 | 10 | function set_style( $css ) 11 | { 12 | $this->style = $css; 13 | //"{font-size: 20px; color:#0000ff; font-family: Verdana; text-align: center;}"; 14 | } 15 | } -------------------------------------------------------------------------------- /application/libraries/ofc-library/ofc_y_legend.php: -------------------------------------------------------------------------------- 1 | text = $text; 8 | } 9 | 10 | function set_style( $css ) 11 | { 12 | $this->style = $css; 13 | //"{font-size: 20px; color:#0000ff; font-family: Verdana; text-align: center;}"; 14 | } 15 | } -------------------------------------------------------------------------------- /application/controllers/home.php: -------------------------------------------------------------------------------- 1 | load->view("home"); 13 | } 14 | 15 | function logout() 16 | { 17 | $this->Employee->logout(); 18 | } 19 | } 20 | ?> -------------------------------------------------------------------------------- /css/reports.css: -------------------------------------------------------------------------------- 1 | #report_list li ul li 2 | { 3 | margin-left: 35px; 4 | } 5 | #report_date_range_simple 6 | { 7 | margin-bottom: 3px; 8 | } 9 | .report 10 | { 11 | font-size: .85em; 12 | } 13 | #report_summary 14 | { 15 | margin: 0 auto; 16 | text-align: center; 17 | } 18 | 19 | #report_summary .summary_row 20 | { 21 | } 22 | 23 | #chart_wrapper 24 | { 25 | text-align: center; 26 | } -------------------------------------------------------------------------------- /application/libraries/ofc-library/ofc_y_axis.php: -------------------------------------------------------------------------------- 1 | $tmp = $colour; 15 | } 16 | 17 | } -------------------------------------------------------------------------------- /application/language/english/login_lang.php: -------------------------------------------------------------------------------- 1 | 9 | -------------------------------------------------------------------------------- /application/libraries/ofc-library/ofc_bar_3d.php: -------------------------------------------------------------------------------- 1 | top = $top; 10 | } 11 | 12 | function set_colour( $colour ) 13 | { 14 | $this->colour = $colour; 15 | } 16 | 17 | function set_tooltip( $tip ) 18 | { 19 | $this->tip = $tip; 20 | } 21 | } 22 | 23 | -------------------------------------------------------------------------------- /application/language/spanish/login_lang.php: -------------------------------------------------------------------------------- 1 | 9 | -------------------------------------------------------------------------------- /application/views/sales/delete.php: -------------------------------------------------------------------------------- 1 | load->view("partial/header"); ?> 2 |
3 | 7 |

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

8 | 13 |

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

14 | 17 |
18 | load->view("partial/footer"); ?> -------------------------------------------------------------------------------- /application/views/partial/footer.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | -------------------------------------------------------------------------------- /application/models/inventory.php: -------------------------------------------------------------------------------- 1 | db->insert('inventory',$inventory_data); 7 | } 8 | 9 | function get_inventory_data_for_item($item_id) 10 | { 11 | $this->db->from('inventory'); 12 | $this->db->where('trans_items',$item_id); 13 | $this->db->order_by("trans_date", "desc"); 14 | return $this->db->get(); 15 | } 16 | } 17 | 18 | ?> -------------------------------------------------------------------------------- /application/language/indonesia/login_lang.php: -------------------------------------------------------------------------------- 1 | 9 | -------------------------------------------------------------------------------- /application/libraries/ofc-library/ofc_shape.php: -------------------------------------------------------------------------------- 1 | x = $x; 8 | $this->y = $y; 9 | } 10 | } 11 | 12 | class shape 13 | { 14 | function shape( $colour ) 15 | { 16 | $this->type = "shape"; 17 | $this->colour = $colour; 18 | $this->values = array(); 19 | } 20 | 21 | function append_value( $p ) 22 | { 23 | $this->values[] = $p; 24 | } 25 | } -------------------------------------------------------------------------------- /css/ospos_print.css: -------------------------------------------------------------------------------- 1 | body 2 | { 3 | background-color:#FFFFFF; 4 | font-size:75%; 5 | } 6 | 7 | #menubar,#footer 8 | { 9 | display:none; 10 | } 11 | 12 | #content_area 13 | { 14 | width:100%; 15 | } 16 | 17 | #content_area_wrapper 18 | { 19 | border:0px; 20 | } 21 | 22 | #sale_return_policy 23 | { 24 | width:100%; 25 | text-align:center; 26 | } 27 | 28 | .long_name 29 | { 30 | display:none; 31 | } 32 | 33 | .short_name 34 | { 35 | display:inline; 36 | } 37 | 38 | #receipt_items td 39 | { 40 | white-space:nowrap; 41 | } 42 | -------------------------------------------------------------------------------- /application/controllers/interfaces/idata_controller.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /application/helpers/currency_helper.php: -------------------------------------------------------------------------------- 1 | config->item('currency_symbol') ? $CI->config->item('currency_symbol') : '$'; 6 | if($number >= 0) 7 | { 8 | return $currency_symbol.number_format($number, 2, '.', ''); 9 | } 10 | else 11 | { 12 | return '-'.$currency_symbol.number_format(abs($number), 2, '.', ''); 13 | } 14 | } 15 | 16 | 17 | function to_currency_no_money($number) 18 | { 19 | return number_format($number, 2, '.', ''); 20 | } 21 | ?> -------------------------------------------------------------------------------- /README.txt: -------------------------------------------------------------------------------- 1 | How to Install 2 | ------------------------- 3 | 1. Create/locate a new mysql database to install open source point of sale into 4 | 2. Execute the file database/database.sql to create the tables needed 5 | 3. unzip and upload Open Source Point of Sale files to web server 6 | 4. Copy application/config/database.php.tmpl to application/config/database.php 7 | 5. Modify application/config/database.php to connect to your database 8 | 6. Go to your point of sale install via the browser 9 | 7. LOGIN using 10 | username: admin 11 | password:pointofsale 12 | 8. Enjoy -------------------------------------------------------------------------------- /application/libraries/ofc-library/ofc_line_dot.php: -------------------------------------------------------------------------------- 1 | value = $value; 8 | $this->colour = $colour; 9 | } 10 | 11 | function set_colour( $colour ) 12 | { 13 | $this->colour = $colour; 14 | } 15 | 16 | function set_size( $size ) 17 | { 18 | $this->size = $size; 19 | } 20 | 21 | function set_tooltip( $tip ) 22 | { 23 | $this->tip = $tip; 24 | } 25 | } 26 | 27 | class line_dot extends line_base 28 | { 29 | function line_dot() 30 | { 31 | $this->type = "line_dot"; 32 | } 33 | } -------------------------------------------------------------------------------- /application/hooks/load_config.php: -------------------------------------------------------------------------------- 1 | Appconfig->get_all()->result() as $app_config) 7 | { 8 | $CI->config->set_item($app_config->key,$app_config->value); 9 | } 10 | 11 | if ($CI->config->item('language')) 12 | { 13 | $CI->lang->switch_to($CI->config->item('language')); 14 | } 15 | 16 | if ($CI->config->item('timezone')) 17 | { 18 | date_default_timezone_set($CI->config->item('timezone')); 19 | } 20 | else 21 | { 22 | date_default_timezone_set('America/New_York'); 23 | } 24 | } 25 | ?> -------------------------------------------------------------------------------- /application/libraries/ofc-library/ofc_bar.php: -------------------------------------------------------------------------------- 1 | top = $top; 10 | 11 | if( isset( $bottom ) ) 12 | $this->bottom = $bottom; 13 | } 14 | 15 | function set_colour( $colour ) 16 | { 17 | $this->colour = $colour; 18 | } 19 | 20 | function set_tooltip( $tip ) 21 | { 22 | $this->tip = $tip; 23 | } 24 | } 25 | 26 | class bar extends bar_base 27 | { 28 | function bar() 29 | { 30 | $this->type = "bar"; 31 | parent::bar_base(); 32 | } 33 | } 34 | 35 | -------------------------------------------------------------------------------- /application/libraries/MY_Language.php: -------------------------------------------------------------------------------- 1 | config->set_item('language',$idiom); 15 | $loaded = $this->is_loaded; 16 | $this->is_loaded = array(); 17 | 18 | foreach($loaded as $file) 19 | { 20 | $this->load(str_replace('_lang.php','',$file)); 21 | } 22 | } 23 | } 24 | } 25 | 26 | ?> 27 | -------------------------------------------------------------------------------- /application/errors/error_general.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | Error 4 | 27 | 28 | 29 |
30 |

31 | 32 |
33 | 34 | -------------------------------------------------------------------------------- /application/errors/error_db.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | Database Error 4 | 27 | 28 | 29 |
30 |

31 | 32 |
33 | 34 | -------------------------------------------------------------------------------- /application/errors/error_404.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 404 Page Not Found 4 | 27 | 28 | 29 |
30 |

31 | 32 |
33 | 34 | -------------------------------------------------------------------------------- /system/language/english/scaffolding_lang.php: -------------------------------------------------------------------------------- 1 | y = $y; 11 | $this->set_text( $text ); 12 | } 13 | 14 | function set_text( $text ) 15 | { 16 | $this->text = $text; 17 | } 18 | 19 | function set_colour( $colour ) 20 | { 21 | $this->colour = $colour; 22 | } 23 | 24 | function set_size( $size ) 25 | { 26 | $this->size = $size; 27 | } 28 | 29 | function set_rotate( $rotate ) 30 | { 31 | $this->rotate = $rotate; 32 | } 33 | 34 | function set_vertical() 35 | { 36 | $this->rotate = "vertical"; 37 | } 38 | } -------------------------------------------------------------------------------- /application/views/barcode_sheet.php: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | <?php echo $this->lang->line('items_generate_barcodes'); ?> 6 | 7 | 8 | 9 | 10 | '; 20 | } 21 | echo ""; 22 | $count++; 23 | } 24 | ?> 25 | 26 |
27 | 28 | 29 | -------------------------------------------------------------------------------- /application/libraries/ofc-library/ofc_area_base.php: -------------------------------------------------------------------------------- 1 | type = "area"; 11 | } 12 | 13 | /** 14 | * the fill colour 15 | */ 16 | function set_fill_colour( $colour ) 17 | { 18 | $this->fill = $colour; 19 | } 20 | 21 | /** 22 | * sugar: see set_fill_colour 23 | */ 24 | function fill_colour( $colour ) 25 | { 26 | $this->set_fill_colour( $colour ); 27 | return $this; 28 | } 29 | 30 | function set_fill_alpha( $alpha ) 31 | { 32 | $tmp = "fill-alpha"; 33 | $this->$tmp = $alpha; 34 | } 35 | 36 | function set_loop() 37 | { 38 | $this->loop = true; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /application/views/home.php: -------------------------------------------------------------------------------- 1 | load->view("partial/header"); ?> 2 |
3 |

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

4 |
5 | result() as $module) 7 | { 8 | ?> 9 |
10 | module_id");?>"> 11 | Menubar Image
12 | module_id");?>">lang->line("module_".$module->module_id) ?> 13 | - lang->line('module_'.$module->module_id.'_desc');?> 14 |
15 | 18 |
19 | load->view("partial/footer"); ?> -------------------------------------------------------------------------------- /application/libraries/ofc-library/ofc_arrow.php: -------------------------------------------------------------------------------- 1 | type = "arrow"; 16 | $this->start = array("x"=>$x, "y"=>$y); 17 | $this->end = array("x"=>$a, "y"=>$b); 18 | $this->colour($colour); 19 | $this->{"barb-length"} = $barb_length; 20 | } 21 | 22 | function colour( $colour ) 23 | { 24 | $this->colour = $colour; 25 | return $this; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /css/receipt.css: -------------------------------------------------------------------------------- 1 | #receipt_wrapper 2 | { 3 | font-family:Arial; 4 | width:100%; 5 | } 6 | 7 | #receipt_header 8 | { 9 | text-align:center; 10 | } 11 | 12 | #company_name 13 | { 14 | font-size:150%; 15 | font-weight:bold; 16 | } 17 | 18 | #company_phone 19 | { 20 | margin-bottom:15px; 21 | 22 | } 23 | 24 | #sale_time 25 | { 26 | margin-bottom:5px; 27 | } 28 | 29 | #receipt_items 30 | { 31 | position:relative; 32 | border-collapse:collapse; 33 | margin-top:15px; 34 | margin-bottom:15px; 35 | width:100%; 36 | } 37 | 38 | #receipt_items td 39 | { 40 | position:relative; 41 | padding:3px; 42 | } 43 | 44 | .short_name 45 | { 46 | display:none; 47 | } 48 | 49 | #sale_return_policy 50 | { 51 | width:80%; 52 | margin:0 auto; 53 | text-align:center; 54 | } 55 | 56 | #barcode 57 | { 58 | margin-top:10px; 59 | text-align:center; 60 | } -------------------------------------------------------------------------------- /application/views/reports/graphs/pie.php: -------------------------------------------------------------------------------- 1 | output->set_header("Cache-Control: no-store, no-cache, must-revalidate"); 3 | $this->output->set_header("Pragma: public"); 4 | $title = new title($title); 5 | 6 | $pie = new pie(); 7 | $pie->set_alpha(0.6); 8 | $pie->set_start_angle( 35 ); 9 | $pie->add_animation( new pie_fade() ); 10 | $pie->set_tooltip( '#val# of #total#
#percent# of 100%' ); 11 | $pie->set_colours(get_random_colors(count($data))); 12 | 13 | $pie_values = array(); 14 | foreach($data as $label=>$value) 15 | { 16 | $pie_values[] = new pie_value((float)$value, (string)$label); 17 | } 18 | $pie->set_values($pie_values); 19 | $chart = new open_flash_chart(); 20 | $chart->set_title( $title ); 21 | $chart->set_bg_colour("#f3f3f3"); 22 | $chart->add_element( $pie ); 23 | $chart->x_axis = null; 24 | echo $chart->toPrettyString(); 25 | ?> -------------------------------------------------------------------------------- /application/libraries/ofc-library/ofc_candle.php: -------------------------------------------------------------------------------- 1 | high = $high; 13 | $this->top = $open; 14 | $this->bottom = $close; 15 | $this->low = $low; 16 | } 17 | 18 | function set_colour( $colour ) 19 | { 20 | $this->colour = $colour; 21 | } 22 | 23 | function set_tooltip( $tip ) 24 | { 25 | $this->tip = $tip; 26 | } 27 | } 28 | 29 | class candle extends bar_base 30 | { 31 | function candle($colour, $negative_colour=null) 32 | { 33 | $this->type = "candle"; 34 | parent::bar_base(); 35 | 36 | $this->set_colour( $colour ); 37 | if(!is_null($negative_colour)) 38 | $this->{'negative-colour'} = $negative_colour; 39 | } 40 | } 41 | 42 | -------------------------------------------------------------------------------- /application/libraries/ofc-library/ofc_bar_sketch.php: -------------------------------------------------------------------------------- 1 | type = "bar_sketch"; 16 | parent::bar_base(); 17 | 18 | $this->set_colour( $colour ); 19 | $this->set_outline_colour( $outline_colour ); 20 | $this->offset = $fun_factor; 21 | } 22 | 23 | function set_outline_colour( $outline_colour ) 24 | { 25 | $tmp = 'outline-colour'; 26 | $this->$tmp = $outline_colour; 27 | } 28 | } 29 | 30 | -------------------------------------------------------------------------------- /application/libraries/ofc-library/ofc_radar_axis.php: -------------------------------------------------------------------------------- 1 | set_max( $max ); 8 | } 9 | 10 | function set_max( $max ) 11 | { 12 | $this->max = $max; 13 | } 14 | 15 | function set_steps( $steps ) 16 | { 17 | $this->steps = $steps; 18 | } 19 | 20 | function set_stroke( $s ) 21 | { 22 | $this->stroke = $s; 23 | } 24 | 25 | function set_colour( $colour ) 26 | { 27 | $this->colour = $colour; 28 | } 29 | 30 | function set_grid_colour( $colour ) 31 | { 32 | $tmp = 'grid-colour'; 33 | $this->$tmp = $colour; 34 | } 35 | 36 | function set_labels( $labels ) 37 | { 38 | $this->labels = $labels; 39 | } 40 | 41 | function set_spoke_labels( $labels ) 42 | { 43 | $tmp = 'spoke-labels'; 44 | $this->$tmp = $labels; 45 | } 46 | } 47 | 48 | -------------------------------------------------------------------------------- /system/language/english/profiler_lang.php: -------------------------------------------------------------------------------- 1 | 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')); 13 | } 14 | 15 | public function getData(array $inputs) 16 | { 17 | $this->db->select('name, item_number, quantity, reorder_level, description'); 18 | $this->db->from('items'); 19 | $this->db->where('deleted', 0); 20 | $this->db->order_by('name'); 21 | 22 | return $this->db->get()->result_array(); 23 | 24 | } 25 | 26 | public function getSummaryData(array $inputs) 27 | { 28 | return array(); 29 | } 30 | } 31 | ?> -------------------------------------------------------------------------------- /system/language/english/unit_test_lang.php: -------------------------------------------------------------------------------- 1 | '', 14 | 'function' => 'load_config', 15 | 'filename' => 'load_config.php', 16 | 'filepath' => 'hooks' 17 | ); 18 | 19 | 20 | 21 | /* End of file hooks.php */ 22 | /* Location: ./application/config/hooks.php */ -------------------------------------------------------------------------------- /application/views/reports/graphical.php: -------------------------------------------------------------------------------- 1 | load->view("partial/header"); 3 | ?> 4 |
5 |
6 |
7 | 8 | 14 | 16 |
17 |
18 |
19 |
20 |
21 | $value) { ?> 22 |
lang->line('reports_'.$name). ': '.to_currency($value); ?>
23 | 24 |
25 | load->view("partial/footer"); 27 | ?> -------------------------------------------------------------------------------- /system/scaffolding/views/view.php: -------------------------------------------------------------------------------- 1 | load->view('header'); ?> 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | result() as $row): ?> 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 |
EditDelete
 $primary), $scaff_edit); ?> $primary), $scaff_delete); ?>$field);?>
22 | 23 | 24 | 25 | load->view('footer'); 26 | /* End of file view.php */ 27 | /* Location: ./system/scaffolding/views/view.php */ -------------------------------------------------------------------------------- /application/libraries/ofc-library/README.txt: -------------------------------------------------------------------------------- 1 | Open Flash Chart - PHP libraries. These help create data files for Open Flash Chart. 2 | Copyright (C) 2007 3 | 4 | This library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | This library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with this library; if not, write to the Free Software 16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -------------------------------------------------------------------------------- /application/libraries/ofc-library/ofc_x_axis_label.php: -------------------------------------------------------------------------------- 1 | set_text( $text ); 11 | $this->set_colour( $colour ); 12 | $this->set_size( $size ); 13 | $this->set_rotate( $rotate ); 14 | } 15 | 16 | function set_text( $text ) 17 | { 18 | $this->text = $text; 19 | } 20 | 21 | function set_colour( $colour ) 22 | { 23 | $this->colour = $colour; 24 | } 25 | 26 | function set_size( $size ) 27 | { 28 | $this->size = $size; 29 | } 30 | 31 | function set_rotate( $rotate ) 32 | { 33 | $this->rotate = $rotate; 34 | } 35 | 36 | function set_vertical() 37 | { 38 | $this->rotate = "vertical"; 39 | } 40 | 41 | function set_visible() 42 | { 43 | $this->visible = true; 44 | } 45 | } -------------------------------------------------------------------------------- /application/models/reports/inventory_low.php: -------------------------------------------------------------------------------- 1 | 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')); 13 | } 14 | 15 | public function getData(array $inputs) 16 | { 17 | $this->db->select('name, item_number, quantity, reorder_level, description'); 18 | $this->db->from('items'); 19 | $this->db->where('quantity <= reorder_level and deleted=0'); 20 | $this->db->order_by('name'); 21 | 22 | return $this->db->get()->result_array(); 23 | 24 | } 25 | 26 | public function getSummaryData(array $inputs) 27 | { 28 | return array(); 29 | } 30 | } 31 | ?> -------------------------------------------------------------------------------- /system/scaffolding/views/header.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | <?php echo $title; ?> 6 | 7 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 27 | 28 |
29 |
-------------------------------------------------------------------------------- /application/controllers/secure_area.php: -------------------------------------------------------------------------------- 1 | load->model('Employee'); 12 | if(!$this->Employee->is_logged_in()) 13 | { 14 | redirect('login'); 15 | } 16 | 17 | if(!$this->Employee->has_permission($module_id,$this->Employee->get_logged_in_employee_info()->person_id)) 18 | { 19 | redirect('no_access/'.$module_id); 20 | } 21 | 22 | //load up global data 23 | $logged_in_employee_info=$this->Employee->get_logged_in_employee_info(); 24 | $data['allowed_modules']=$this->Module->get_allowed_modules($logged_in_employee_info->person_id); 25 | $data['user_info']=$logged_in_employee_info; 26 | $this->load->vars($data); 27 | } 28 | } 29 | ?> -------------------------------------------------------------------------------- /application/libraries/ofc-library/ofc_bar_filled.php: -------------------------------------------------------------------------------- 1 | $tmp = $outline_colour; 16 | } 17 | } 18 | 19 | class bar_filled extends bar_base 20 | { 21 | function bar_filled( $colour=null, $outline_colour=null ) 22 | { 23 | $this->type = "bar_filled"; 24 | parent::bar_base(); 25 | 26 | if( isset( $colour ) ) 27 | $this->set_colour( $colour ); 28 | 29 | if( isset( $outline_colour ) ) 30 | $this->set_outline_colour( $outline_colour ); 31 | } 32 | 33 | function set_outline_colour( $outline_colour ) 34 | { 35 | $tmp = 'outline-colour'; 36 | $this->$tmp = $outline_colour; 37 | } 38 | } 39 | 40 | -------------------------------------------------------------------------------- /application/libraries/ofc-library/ofc_title.php: -------------------------------------------------------------------------------- 1 | text = $text; 12 | } 13 | 14 | /** 15 | * A css string. Can optionally contain: 16 | * - font-size 17 | * - font-family 18 | * - font-weight 19 | * - color 20 | * - background-color 21 | * - text-align 22 | * - margin 23 | * - margin-left 24 | * - margin-right 25 | * - margin-top 26 | * - margin-bottom 27 | * - padding 28 | * - padding-left 29 | * - padding-right 30 | * - padding-top 31 | * - padding-bottom 32 | * just like the css we use all the time :-) 33 | */ 34 | function set_style( $css ) 35 | { 36 | $this->style = $css; 37 | //"{font-size: 20px; color:#0000ff; font-family: Verdana; text-align: center;}"; 38 | } 39 | } -------------------------------------------------------------------------------- /application/libraries/ofc-library/ofc_scatter.php: -------------------------------------------------------------------------------- 1 | x = $x; 8 | $this->y = $y; 9 | 10 | if( $dot_size > 0 ) 11 | { 12 | $tmp = 'dot-size'; 13 | $this->$tmp = $dot_size; 14 | } 15 | } 16 | } 17 | 18 | class scatter 19 | { 20 | function scatter( $colour ) 21 | { 22 | $this->type = "scatter"; 23 | $this->set_colour( $colour ); 24 | } 25 | 26 | function set_colour( $colour ) 27 | { 28 | $this->colour = $colour; 29 | } 30 | 31 | function set_default_dot_style( $style ) 32 | { 33 | $tmp = 'dot-style'; 34 | $this->$tmp = $style; 35 | } 36 | 37 | /** 38 | * @param $v as array, can contain any combination of: 39 | * - integer, Y position of the point 40 | * - any class that inherits from scatter_value 41 | * - null 42 | */ 43 | function set_values( $values ) 44 | { 45 | $this->values = $values; 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /application/controllers/login.php: -------------------------------------------------------------------------------- 1 | Employee->is_logged_in()) 12 | { 13 | redirect('home'); 14 | } 15 | else 16 | { 17 | $this->form_validation->set_rules('username', 'lang:login_undername', 'callback_login_check'); 18 | $this->form_validation->set_error_delimiters('
', '
'); 19 | 20 | if($this->form_validation->run() == FALSE) 21 | { 22 | $this->load->view('login'); 23 | } 24 | else 25 | { 26 | redirect('home'); 27 | } 28 | } 29 | } 30 | 31 | function login_check($username) 32 | { 33 | $password = $this->input->post("password"); 34 | 35 | if(!$this->Employee->login($username,$password)) 36 | { 37 | $this->form_validation->set_message('login_check', $this->lang->line('login_invalid_username_and_password')); 38 | return false; 39 | } 40 | return true; 41 | } 42 | } 43 | ?> -------------------------------------------------------------------------------- /application/language/english/customers_lang.php: -------------------------------------------------------------------------------- 1 | 17 | -------------------------------------------------------------------------------- /application/libraries/ofc-library/ofc_sugar.php: -------------------------------------------------------------------------------- 1 | colour($colour)->size($size); 16 | } 17 | } 18 | 19 | class s_box extends anchor 20 | { 21 | /** 22 | * I use this wrapper for default dot types, 23 | * it just makes the code easier to read. 24 | */ 25 | function s_box($colour, $size) 26 | { 27 | parent::anchor(); 28 | $this->colour($colour)->size($size)->rotation(45)->sides(4); 29 | } 30 | } 31 | 32 | class s_hollow_dot extends hollow_dot 33 | { 34 | /** 35 | * I use this wrapper for default dot types, 36 | * it just makes the code easier to read. 37 | */ 38 | function s_hollow_dot($colour, $size) 39 | { 40 | parent::hollow_dot(); 41 | $this->colour($colour)->size($size); 42 | } 43 | } -------------------------------------------------------------------------------- /application/language/spanish/customers_lang.php: -------------------------------------------------------------------------------- 1 | 17 | -------------------------------------------------------------------------------- /application/libraries/ofc-library/ofc_scatter_line.php: -------------------------------------------------------------------------------- 1 | type = "scatter_line"; 8 | $this->set_colour( $colour ); 9 | $this->set_width( $width ); 10 | } 11 | 12 | function set_default_dot_style( $style ) 13 | { 14 | $tmp = 'dot-style'; 15 | $this->$tmp = $style; 16 | } 17 | 18 | function set_colour( $colour ) 19 | { 20 | $this->colour = $colour; 21 | } 22 | 23 | function set_width( $width ) 24 | { 25 | $this->width = $width; 26 | } 27 | 28 | function set_values( $values ) 29 | { 30 | $this->values = $values; 31 | } 32 | 33 | function set_step_horizontal() 34 | { 35 | $this->stepgraph = 'horizontal'; 36 | } 37 | 38 | function set_step_vertical() 39 | { 40 | $this->stepgraph = 'vertical'; 41 | } 42 | 43 | function set_key( $text, $font_size ) 44 | { 45 | $this->text = $text; 46 | $tmp = 'font-size'; 47 | $this->$tmp = $font_size; 48 | } 49 | } -------------------------------------------------------------------------------- /application/language/indonesia/customers_lang.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /css/autocomplete.css: -------------------------------------------------------------------------------- 1 | .ac_results 2 | { 3 | padding: 0px; 4 | border: 1px solid black; 5 | background-color: white; 6 | overflow: hidden; 7 | z-index: 99999; 8 | } 9 | 10 | .ac_results ul 11 | { 12 | width: 100%; 13 | list-style-position: outside; 14 | list-style: none; 15 | padding: 0; 16 | margin: 0; 17 | } 18 | 19 | .ac_results li 20 | { 21 | margin: 0px; 22 | padding: 2px 5px; 23 | cursor: default; 24 | display: block; 25 | /* 26 | if width will be 100% horizontal scrollbar will apear 27 | when scroll mode will be used 28 | */ 29 | /*width: 100%;*/ 30 | font: menu; 31 | font-size: 12px; 32 | /* 33 | it is very important, if line-height not setted or setted 34 | in relative units scroll will be broken in firefox 35 | */ 36 | line-height: 16px; 37 | overflow: hidden; 38 | } 39 | 40 | .ac_loading 41 | { 42 | background: white url('../images/spinner_small.gif') right center no-repeat; 43 | } 44 | 45 | .ac_odd 46 | { 47 | background-color: #eee; 48 | } 49 | 50 | .ac_over 51 | { 52 | background-color: #0A246A; 53 | color: white; 54 | } 55 | -------------------------------------------------------------------------------- /application/models/reports/report.php: -------------------------------------------------------------------------------- 1 | output->set_header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); 10 | $this->output->set_header("Cache-Control: no-store, no-cache, must-revalidate"); 11 | $this->output->set_header("Cache-Control: post-check=0, pre-check=0", false); 12 | $this->output->set_header("Pragma: no-cache"); 13 | 14 | //Create our temp tables to work with the data in our report 15 | $this->Sale->create_sales_items_temp_table(); 16 | $this->Receiving->create_receivings_items_temp_table(); 17 | } 18 | 19 | //Returns the column names used for the report 20 | public abstract function getDataColumns(); 21 | 22 | //Returns all the data to be populated into the report 23 | public abstract function getData(array $inputs); 24 | 25 | //Returns key=>value pairing of summary data for the report 26 | public abstract function getSummaryData(array $inputs); 27 | } 28 | ?> -------------------------------------------------------------------------------- /system/scaffolding/views/add.php: -------------------------------------------------------------------------------- 1 | load->view('header'); ?> 2 | 3 |

4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | primary_key == 1) continue; ?> 12 | 13 | 14 | 15 | 16 | type == 'blob'): ?> 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 |
name; echo ' '.$field->default; ?>
25 | 26 | 27 | 28 | 29 | 30 | load->view('footer'); 31 | /* End of file add.php */ 32 | /* Location: ./system/scaffolding/views/add.php */ 33 | -------------------------------------------------------------------------------- /system/scaffolding/views/edit.php: -------------------------------------------------------------------------------- 1 | load->view('header'); ?> 2 | 3 | 4 |

5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | primary_key == 1) continue; ?> 13 | 14 | 15 | 16 | 17 | type == 'blob'): ?> 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 |
name; ?>
26 | 27 | 28 | 29 | 30 | 31 | load->view('footer'); 32 | /* End of file edit.php */ 33 | /* Location: ./system/scaffolding/views/edit.php */ -------------------------------------------------------------------------------- /application/libraries/ofc-library/ofc_y_axis_labels.php: -------------------------------------------------------------------------------- 1 | steps = $steps; 13 | } 14 | 15 | /** 16 | * 17 | * @param $labels as an array of [y_axis_label or string] 18 | */ 19 | function set_labels( $labels ) 20 | { 21 | $this->labels = $labels; 22 | } 23 | 24 | function set_colour( $colour ) 25 | { 26 | $this->colour = $colour; 27 | } 28 | 29 | /** 30 | * font size in pixels 31 | */ 32 | function set_size( $size ) 33 | { 34 | $this->size = $size; 35 | } 36 | 37 | /** 38 | * rotate labels 39 | */ 40 | function set_vertical() 41 | { 42 | $this->rotate = 270; 43 | } 44 | 45 | function rotate( $angle ) 46 | { 47 | $this->rotate = $angle; 48 | } 49 | 50 | /** 51 | * @param $text default text that all labels inherit 52 | */ 53 | function set_text( $text ) 54 | { 55 | $this->text = $text; 56 | } 57 | } -------------------------------------------------------------------------------- /application/views/partial/header_excel.php: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | <?php echo $this->config->item('company').' -- '.$this->lang->line('common_powered_by').' Open Source Point Of Sale' ?> 7 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /application/language/english/suppliers_lang.php: -------------------------------------------------------------------------------- 1 | 18 | -------------------------------------------------------------------------------- /application/models/item_kit_items.php: -------------------------------------------------------------------------------- 1 | db->from('item_kit_items'); 10 | $this->db->where('item_kit_id',$item_kit_id); 11 | //return an array of item kit items for an item 12 | return $this->db->get()->result_array(); 13 | } 14 | 15 | /* 16 | Inserts or updates an item kit's items 17 | */ 18 | function save(&$item_kit_items_data, $item_kit_id) 19 | { 20 | //Run these queries as a transaction, we want to make sure we do all or nothing 21 | $this->db->trans_start(); 22 | 23 | $this->delete($item_kit_id); 24 | 25 | foreach ($item_kit_items_data as $row) 26 | { 27 | $row['item_kit_id'] = $item_kit_id; 28 | $this->db->insert('item_kit_items',$row); 29 | } 30 | 31 | $this->db->trans_complete(); 32 | return true; 33 | } 34 | 35 | /* 36 | Deletes item kit items given an item kit 37 | */ 38 | function delete($item_kit_id) 39 | { 40 | return $this->db->delete('item_kit_items', array('item_kit_id' => $item_kit_id)); 41 | } 42 | } 43 | ?> 44 | -------------------------------------------------------------------------------- /application/language/indonesia/suppliers_lang.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /license/license.txt: -------------------------------------------------------------------------------- 1 | Copyright (C) 2011 by Pappas Technologies, LLC 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. -------------------------------------------------------------------------------- /application/views/reports/excel_export.php: -------------------------------------------------------------------------------- 1 | load->view("partial/header"); ?> 2 |
lang->line('reports_report_input'); ?>
3 | ".$error."
"; 7 | } 8 | ?> 9 |
10 | Export to Excel: Yes 11 | No 12 |
13 | 14 | 'generate_report', 17 | 'id'=>'generate_report', 18 | 'content'=>$this->lang->line('common_submit'), 19 | 'class'=>'submit_button') 20 | ); 21 | ?> 22 | 23 | load->view("partial/footer"); ?> 24 | 25 | -------------------------------------------------------------------------------- /application/libraries/ofc-library/ofc_bar_stack.php: -------------------------------------------------------------------------------- 1 | type = "bar_stack"; 10 | parent::bar_base(); 11 | } 12 | 13 | function append_stack( $v ) 14 | { 15 | $this->append_value( $v ); 16 | } 17 | 18 | // an array of HEX colours strings 19 | // e.g. array( '#ff0000', '#00ff00' ); 20 | function set_colours( $colours ) 21 | { 22 | $this->colours = $colours; 23 | } 24 | 25 | // an array of bar_stack_value 26 | function set_keys( $keys ) 27 | { 28 | $this->keys = $keys; 29 | } 30 | } 31 | 32 | class bar_stack_value 33 | { 34 | function bar_stack_value( $val, $colour ) 35 | { 36 | $this->val = $val; 37 | $this->colour = $colour; 38 | } 39 | 40 | function set_tooltip( $tip ) 41 | { 42 | $this->tip = $tip; 43 | } 44 | } 45 | 46 | class bar_stack_key 47 | { 48 | function bar_stack_key( $colour, $text, $font_size ) 49 | { 50 | $this->colour = $colour; 51 | $this->text = $text; 52 | $tmp = 'font-size'; 53 | $this->$tmp = $font_size; 54 | } 55 | } -------------------------------------------------------------------------------- /application/language/english/item_kits_lang.php: -------------------------------------------------------------------------------- 1 | 21 | -------------------------------------------------------------------------------- /application/language/indonesia/item_kits_lang.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /application/language/spanish/suppliers_lang.php: -------------------------------------------------------------------------------- 1 | 18 | -------------------------------------------------------------------------------- /application/models/item_taxes.php: -------------------------------------------------------------------------------- 1 | db->from('items_taxes'); 10 | $this->db->where('item_id',$item_id); 11 | //return an array of taxes for an item 12 | return $this->db->get()->result_array(); 13 | } 14 | 15 | /* 16 | Inserts or updates an item's taxes 17 | */ 18 | function save(&$items_taxes_data, $item_id) 19 | { 20 | //Run these queries as a transaction, we want to make sure we do all or nothing 21 | $this->db->trans_start(); 22 | 23 | $this->delete($item_id); 24 | 25 | foreach ($items_taxes_data as $row) 26 | { 27 | $row['item_id'] = $item_id; 28 | $this->db->insert('items_taxes',$row); 29 | } 30 | 31 | $this->db->trans_complete(); 32 | return true; 33 | } 34 | 35 | function save_multiple(&$items_taxes_data, $item_ids) 36 | { 37 | foreach($item_ids as $item_id) 38 | { 39 | $this->save($items_taxes_data, $item_id); 40 | } 41 | } 42 | 43 | /* 44 | Deletes taxes given an item 45 | */ 46 | function delete($item_id) 47 | { 48 | return $this->db->delete('items_taxes', array('item_id' => $item_id)); 49 | } 50 | } 51 | ?> 52 | -------------------------------------------------------------------------------- /application/controllers/person_controller.php: -------------------------------------------------------------------------------- 1 | input->post('ids'); 17 | 18 | if($people_to_email!=false) 19 | { 20 | $mailto_url='mailto:'; 21 | foreach($this->Person->get_multiple_info($people_to_email)->result() as $person) 22 | { 23 | $mailto_url.=$person->email.','; 24 | } 25 | //remove last comma 26 | $mailto_url=substr($mailto_url,0,strlen($mailto_url)-1); 27 | 28 | echo $mailto_url; 29 | exit; 30 | } 31 | echo '#'; 32 | } 33 | 34 | /* 35 | Gets one row for a person manage table. This is called using AJAX to update one row. 36 | */ 37 | function get_row() 38 | { 39 | $person_id = $this->input->post('row_id'); 40 | $data_row=get_person_data_row($this->Person->get_info($person_id),$this); 41 | echo $data_row; 42 | } 43 | 44 | } 45 | ?> -------------------------------------------------------------------------------- /application/libraries/ofc-library/ofc_hbar.php: -------------------------------------------------------------------------------- 1 | left = $left; 10 | $this->right = $right; 11 | } 12 | else 13 | $this->right = $left; 14 | } 15 | 16 | function set_colour( $colour ) 17 | { 18 | $this->colour = $colour; 19 | } 20 | 21 | function set_tooltip( $tip ) 22 | { 23 | $this->tip = $tip; 24 | } 25 | } 26 | 27 | class hbar 28 | { 29 | function hbar( $colour ) 30 | { 31 | $this->type = "hbar"; 32 | $this->values = array(); 33 | $this->set_colour( $colour ); 34 | } 35 | 36 | function append_value( $v ) 37 | { 38 | $this->values[] = $v; 39 | } 40 | 41 | function set_values( $v ) 42 | { 43 | foreach( $v as $val ) 44 | $this->append_value( new hbar_value( $val ) ); 45 | } 46 | 47 | function set_colour( $colour ) 48 | { 49 | $this->colour = $colour; 50 | } 51 | 52 | function set_key( $text, $size ) 53 | { 54 | $this->text = $text; 55 | $tmp = 'font-size'; 56 | $this->$tmp = $size; 57 | } 58 | 59 | function set_tooltip( $tip ) 60 | { 61 | $this->tip = $tip; 62 | } 63 | } 64 | 65 | -------------------------------------------------------------------------------- /system/language/english/ftp_lang.php: -------------------------------------------------------------------------------- 1 | 35 | -------------------------------------------------------------------------------- /application/language/indonesia/module_lang.php: -------------------------------------------------------------------------------- 1 | 34 | -------------------------------------------------------------------------------- /css/login.css: -------------------------------------------------------------------------------- 1 | body 2 | { 3 | text-align:center; 4 | } 5 | #container 6 | { 7 | position:relative; 8 | margin-left:auto; 9 | margin-right:auto; 10 | margin-top:20px; 11 | width:360px; 12 | 13 | } 14 | 15 | #top 16 | { 17 | position:relative; 18 | width:100%; 19 | height:20px; 20 | padding:2px; 21 | background-color:#005B7F; 22 | text-align:center; 23 | font-family:Verdana; 24 | color:white; 25 | font-size:12pt; 26 | } 27 | 28 | #login_form 29 | { 30 | position:relative; 31 | width:100%; 32 | height:230px; 33 | padding:2px; 34 | font-family:Verdana; 35 | color:white; 36 | font-size:10pt; 37 | background-color:#A7A7A7; 38 | } 39 | 40 | #welcome_message 41 | { 42 | text-align:center; 43 | margin-top:10px; 44 | margin-bottom:20px; 45 | } 46 | 47 | .error 48 | { 49 | margin:0 auto; 50 | border:3px solid #d3153b; 51 | background-color:#fbe6f2; 52 | padding:5px; 53 | width:80%; 54 | text-align:center; 55 | font-size:18px; 56 | margin-bottom:20px; 57 | 58 | } 59 | 60 | .form_field_label 61 | { 62 | float:left; 63 | margin-left:20px; 64 | width:30%; 65 | } 66 | 67 | .form_field 68 | { 69 | float:left; 70 | width:30%; 71 | } 72 | 73 | #submit_button 74 | { 75 | position:absolute; 76 | bottom:60px; 77 | right:60px; 78 | } 79 | 80 | input 81 | { 82 | font-family:Arial; 83 | } 84 | 85 | -------------------------------------------------------------------------------- /application/language/spanish/item_kits_lang.php: -------------------------------------------------------------------------------- 1 | 21 | -------------------------------------------------------------------------------- /application/models/module.php: -------------------------------------------------------------------------------- 1 | db->get_where('modules', array('module_id' => $module_id), 1); 12 | 13 | if ($query->num_rows() ==1) 14 | { 15 | $row = $query->row(); 16 | return $this->lang->line($row->name_lang_key); 17 | } 18 | 19 | return $this->lang->line('error_unknown'); 20 | } 21 | 22 | function get_module_desc($module_id) 23 | { 24 | $query = $this->db->get_where('modules', array('module_id' => $module_id), 1); 25 | if ($query->num_rows() ==1) 26 | { 27 | $row = $query->row(); 28 | return $this->lang->line($row->desc_lang_key); 29 | } 30 | 31 | return $this->lang->line('error_unknown'); 32 | } 33 | 34 | function get_all_modules() 35 | { 36 | $this->db->from('modules'); 37 | $this->db->order_by("sort", "asc"); 38 | return $this->db->get(); 39 | } 40 | 41 | function get_allowed_modules($person_id) 42 | { 43 | $this->db->from('modules'); 44 | $this->db->join('permissions','permissions.module_id=modules.module_id'); 45 | $this->db->where("permissions.person_id",$person_id); 46 | $this->db->order_by("sort", "asc"); 47 | return $this->db->get(); 48 | } 49 | } 50 | ?> 51 | -------------------------------------------------------------------------------- /application/views/reports/graphs/bar.php: -------------------------------------------------------------------------------- 1 | output->set_header("Cache-Control: no-store, no-cache, must-revalidate"); 3 | $this->output->set_header("Pragma: public"); 4 | $bar = new bar_filled( '#4386a1', '#577261' ); 5 | 6 | $bar_labels = array(); 7 | $bar_values = array(); 8 | 9 | foreach($data as $label=>$value) 10 | { 11 | $bar_labels[] = (string)$label; 12 | $bar_values[] = (float)$value; 13 | } 14 | 15 | $bar->set_values($bar_values); 16 | 17 | $chart = new open_flash_chart(); 18 | $chart->set_title(new title($title)); 19 | $x = new x_axis(); 20 | $x->steps(1); 21 | $x->set_labels_from_array($bar_labels); 22 | $chart->set_x_axis( $x ); 23 | 24 | $y = new y_axis(); 25 | $y->set_tick_length(7); 26 | $y->set_range(0, (count($data) > 0 ? max($data) : 0) + 25, ((count($data) > 0 ? max($data) : 0)+25)/10); 27 | $chart->set_y_axis( $y ); 28 | $chart->set_bg_colour("#f3f3f3"); 29 | 30 | $chart->add_element($bar); 31 | 32 | if (isset($yaxis_label)) 33 | { 34 | $y_legend = new y_legend($yaxis_label ); 35 | $y_legend->set_style( '{font-size: 20px; color: #000000}' ); 36 | $chart->set_y_legend( $y_legend ); 37 | } 38 | 39 | if (isset($xaxis_label)) 40 | { 41 | $x_legend = new x_legend($xaxis_label ); 42 | $x_legend->set_style( '{font-size: 20px; color: #000000}' ); 43 | $chart->set_x_legend( $x_legend ); 44 | } 45 | echo $chart->toPrettyString(); 46 | ?> -------------------------------------------------------------------------------- /application/language/spanish/module_lang.php: -------------------------------------------------------------------------------- 1 | 34 | -------------------------------------------------------------------------------- /application/language/indonesia/config_lang.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /application/libraries/ofc-library/ofc_tooltip.php: -------------------------------------------------------------------------------- 1 | shadow = $shadow; 15 | } 16 | 17 | /** 18 | * @param $stroke as integer, border width in pixels (e.g. 5 ) 19 | */ 20 | function set_stroke( $stroke ) 21 | { 22 | $this->stroke = $stroke; 23 | } 24 | 25 | /** 26 | * @param $colour as string, HEX colour e.g. '#0000ff' 27 | */ 28 | function set_colour( $colour ) 29 | { 30 | $this->colour = $colour; 31 | } 32 | 33 | /** 34 | * @param $bg as string, HEX colour e.g. '#0000ff' 35 | */ 36 | function set_background_colour( $bg ) 37 | { 38 | $this->background = $bg; 39 | } 40 | 41 | /** 42 | * @param $style as string. A css style. 43 | */ 44 | function set_title_style( $style ) 45 | { 46 | $this->title = $style; 47 | } 48 | 49 | /** 50 | * @param $style as string. A css style. 51 | */ 52 | function set_body_style( $style ) 53 | { 54 | $this->body = $style; 55 | } 56 | 57 | function set_proximity() 58 | { 59 | $this->mouse = 1; 60 | } 61 | 62 | function set_hover() 63 | { 64 | $this->mouse = 2; 65 | } 66 | } 67 | 68 | -------------------------------------------------------------------------------- /application/language/english/config_lang.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /application/language/indonesia/receivings_lang.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /application/language/english/receivings_lang.php: -------------------------------------------------------------------------------- 1 | 27 | -------------------------------------------------------------------------------- /application/libraries/ofc-library/ofc_x_axis_labels.php: -------------------------------------------------------------------------------- 1 | steps = $steps; 13 | } 14 | 15 | /** 16 | * @param $steps as integer which labels are visible 17 | */ 18 | function visible_steps( $steps ) 19 | { 20 | $this->{"visible-steps"} = $steps; 21 | return $this; 22 | } 23 | 24 | /** 25 | * 26 | * @param $labels as an array of [x_axis_label or string] 27 | */ 28 | function set_labels( $labels ) 29 | { 30 | $this->labels = $labels; 31 | } 32 | 33 | function set_colour( $colour ) 34 | { 35 | $this->colour = $colour; 36 | } 37 | 38 | /** 39 | * font size in pixels 40 | */ 41 | function set_size( $size ) 42 | { 43 | $this->size = $size; 44 | } 45 | 46 | /** 47 | * rotate labels 48 | */ 49 | function set_vertical() 50 | { 51 | $this->rotate = 270; 52 | } 53 | 54 | /** 55 | * @param @angle as real. The angle of the text. 56 | */ 57 | function rotate( $angle ) 58 | { 59 | $this->rotate = $angle; 60 | } 61 | 62 | /** 63 | * @param $text as string. Replace and magic variables with actual x axis position. 64 | */ 65 | function text( $text ) 66 | { 67 | $this->text = $text; 68 | } 69 | } -------------------------------------------------------------------------------- /js/jquery.bgiframe.min.js: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2006 Brandon Aaron (http://brandonaaron.net) 2 | * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) 3 | * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. 4 | * 5 | * $LastChangedDate: 2007-07-22 01:45:56 +0200 (Son, 22 Jul 2007) $ 6 | * $Rev: 2447 $ 7 | * 8 | * Version 2.1.1 9 | */ 10 | (function($){$.fn.bgIframe=$.fn.bgiframe=function(s){if($.browser.msie&&/6.0/.test(navigator.userAgent)){s=$.extend({top:'auto',left:'auto',width:'auto',height:'auto',opacity:true,src:'javascript:false;'},s||{});var prop=function(n){return n&&n.constructor==Number?n+'px':n;},html='