├── dbname ├── q.php ├── .gitignore ├── test.txt.txt ├── images ├── bg.gif ├── images.jpg ├── posnic.png ├── save.png ├── add_new.png ├── checked.gif ├── edit_new.png ├── loading.gif ├── close_new.png ├── login-icon.png ├── report-icon.png ├── sales-icon.png ├── stock-icon.png ├── unchecked.gif ├── company-logo.png ├── customer-icon.png ├── icons │ ├── ic_add.png │ ├── ic_edit.png │ ├── ic_left.png │ ├── ic_lock.png │ ├── ic_zoom.png │ ├── ic_cancel.png │ ├── ic_delete.png │ ├── ic_power.png │ ├── ic_print.png │ ├── ic_refresh.png │ ├── ic_right.png │ ├── ic_upload.png │ ├── ic_download.png │ ├── ic_favorite.png │ ├── ic_settings.png │ ├── ic_up_circle.png │ ├── information.png │ ├── menu │ │ ├── menu-email.png │ │ ├── menu-user.png │ │ ├── menu-logoff.png │ │ ├── menu-email-over.png │ │ ├── menu-settings.png │ │ ├── menu-logoff-over.png │ │ ├── menu-email-special.png │ │ └── menu-settings-over.png │ ├── message-boxes │ │ ├── error.png │ │ ├── warning.png │ │ ├── information.png │ │ └── confirmation.png │ └── table │ │ ├── actions-delete.png │ │ └── actions-edit.png ├── payment-icon.png ├── posnic - Copy.png ├── purchase-icon.png ├── separator-bg.png ├── supplier-icon.png ├── tab-dashboard.png ├── artwork-pattern.png ├── cmxform-divider.gif ├── cmxform-fieldset.gif ├── menu-indicator.png ├── menu-dark-indicator.png └── posnic - Copy - Copy.png ├── js ├── date_pic │ ├── bg_hover.png │ ├── bg_selected.png │ ├── bg_selectable.png │ └── date_input.css ├── script.js ├── index.js ├── install_step1.js ├── update_category.js ├── install_step2.js ├── add_category.js ├── install_step3.js ├── update_stock.js ├── update_out_standing.js ├── update_supplier.js ├── update_payment.js ├── add_stock.js ├── update_customer_details.js ├── add_customer.js ├── add_supplier.js ├── update_details.js ├── install_step4.js ├── logo_set.js ├── view_payments.js ├── view_out_standing.js ├── view_stock_availability.js ├── view_category.js ├── view_report.js ├── lib │ └── jquery.hotkeys-0.7.9.min.js ├── view_purchase.js └── view_product.js ├── my_data.php ├── config.php.sample ├── logout.php ├── css ├── screen.css ├── cmxform.css ├── core.css ├── reset.css ├── b.css ├── cmxformTemplate.css └── add_customer.css ├── server.php ├── stock.php ├── stock_purchse.php ├── category.php ├── customer1.php ├── supplier1.php ├── db.php ├── session.php ├── check_customer_details.php ├── check_supplier_details.php ├── tpl ├── auto.php ├── header.php ├── top_bar.php └── common_js.php ├── check_item_details.php ├── Readme.md ├── Readme.txt ├── deleteall.php ├── deleterecords.php ├── lib ├── auto │ └── css │ │ └── jquery.autocomplete.css └── db.help.txt ├── checklogin.php ├── shortcuts.html ├── init.php ├── setup_page.php ├── deleteselected.php ├── delete.php ├── install_step1.php ├── install_step3.php ├── index.php ├── logo_set.php ├── install_step2.php ├── forget_pass.php ├── payment_receipt_print.php ├── update_category.php ├── view_report.php ├── add_category.php ├── update_supplier.php └── update_customer_details.php /dbname: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /q.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/q.php -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /.idea 2 | /.idea/* 3 | /config.php 4 | /upload 5 | /nbproject -------------------------------------------------------------------------------- /test.txt.txt: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | sdfsdfsdfsd 5 | 6 | customer order change. 7 | -------------------------------------------------------------------------------- /images/bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/images/bg.gif -------------------------------------------------------------------------------- /images/images.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/images/images.jpg -------------------------------------------------------------------------------- /images/posnic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/images/posnic.png -------------------------------------------------------------------------------- /images/save.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/images/save.png -------------------------------------------------------------------------------- /images/add_new.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/images/add_new.png -------------------------------------------------------------------------------- /images/checked.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/images/checked.gif -------------------------------------------------------------------------------- /images/edit_new.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/images/edit_new.png -------------------------------------------------------------------------------- /images/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/images/loading.gif -------------------------------------------------------------------------------- /images/close_new.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/images/close_new.png -------------------------------------------------------------------------------- /images/login-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/images/login-icon.png -------------------------------------------------------------------------------- /images/report-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/images/report-icon.png -------------------------------------------------------------------------------- /images/sales-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/images/sales-icon.png -------------------------------------------------------------------------------- /images/stock-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/images/stock-icon.png -------------------------------------------------------------------------------- /images/unchecked.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/images/unchecked.gif -------------------------------------------------------------------------------- /images/company-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/images/company-logo.png -------------------------------------------------------------------------------- /images/customer-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/images/customer-icon.png -------------------------------------------------------------------------------- /images/icons/ic_add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/images/icons/ic_add.png -------------------------------------------------------------------------------- /images/icons/ic_edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/images/icons/ic_edit.png -------------------------------------------------------------------------------- /images/icons/ic_left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/images/icons/ic_left.png -------------------------------------------------------------------------------- /images/icons/ic_lock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/images/icons/ic_lock.png -------------------------------------------------------------------------------- /images/icons/ic_zoom.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/images/icons/ic_zoom.png -------------------------------------------------------------------------------- /images/payment-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/images/payment-icon.png -------------------------------------------------------------------------------- /images/posnic - Copy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/images/posnic - Copy.png -------------------------------------------------------------------------------- /images/purchase-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/images/purchase-icon.png -------------------------------------------------------------------------------- /images/separator-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/images/separator-bg.png -------------------------------------------------------------------------------- /images/supplier-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/images/supplier-icon.png -------------------------------------------------------------------------------- /images/tab-dashboard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/images/tab-dashboard.png -------------------------------------------------------------------------------- /js/date_pic/bg_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/js/date_pic/bg_hover.png -------------------------------------------------------------------------------- /images/artwork-pattern.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/images/artwork-pattern.png -------------------------------------------------------------------------------- /images/cmxform-divider.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/images/cmxform-divider.gif -------------------------------------------------------------------------------- /images/cmxform-fieldset.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/images/cmxform-fieldset.gif -------------------------------------------------------------------------------- /images/icons/ic_cancel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/images/icons/ic_cancel.png -------------------------------------------------------------------------------- /images/icons/ic_delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/images/icons/ic_delete.png -------------------------------------------------------------------------------- /images/icons/ic_power.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/images/icons/ic_power.png -------------------------------------------------------------------------------- /images/icons/ic_print.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/images/icons/ic_print.png -------------------------------------------------------------------------------- /images/icons/ic_refresh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/images/icons/ic_refresh.png -------------------------------------------------------------------------------- /images/icons/ic_right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/images/icons/ic_right.png -------------------------------------------------------------------------------- /images/icons/ic_upload.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/images/icons/ic_upload.png -------------------------------------------------------------------------------- /images/menu-indicator.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/images/menu-indicator.png -------------------------------------------------------------------------------- /js/date_pic/bg_selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/js/date_pic/bg_selected.png -------------------------------------------------------------------------------- /images/icons/ic_download.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/images/icons/ic_download.png -------------------------------------------------------------------------------- /images/icons/ic_favorite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/images/icons/ic_favorite.png -------------------------------------------------------------------------------- /images/icons/ic_settings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/images/icons/ic_settings.png -------------------------------------------------------------------------------- /images/icons/ic_up_circle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/images/icons/ic_up_circle.png -------------------------------------------------------------------------------- /images/icons/information.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/images/icons/information.png -------------------------------------------------------------------------------- /js/date_pic/bg_selectable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/js/date_pic/bg_selectable.png -------------------------------------------------------------------------------- /images/icons/menu/menu-email.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/images/icons/menu/menu-email.png -------------------------------------------------------------------------------- /images/icons/menu/menu-user.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/images/icons/menu/menu-user.png -------------------------------------------------------------------------------- /images/menu-dark-indicator.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/images/menu-dark-indicator.png -------------------------------------------------------------------------------- /images/posnic - Copy - Copy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/images/posnic - Copy - Copy.png -------------------------------------------------------------------------------- /images/icons/menu/menu-logoff.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/images/icons/menu/menu-logoff.png -------------------------------------------------------------------------------- /images/icons/menu/menu-email-over.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/images/icons/menu/menu-email-over.png -------------------------------------------------------------------------------- /images/icons/menu/menu-settings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/images/icons/menu/menu-settings.png -------------------------------------------------------------------------------- /images/icons/message-boxes/error.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/images/icons/message-boxes/error.png -------------------------------------------------------------------------------- /images/icons/table/actions-delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/images/icons/table/actions-delete.png -------------------------------------------------------------------------------- /images/icons/table/actions-edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/images/icons/table/actions-edit.png -------------------------------------------------------------------------------- /images/icons/menu/menu-logoff-over.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/images/icons/menu/menu-logoff-over.png -------------------------------------------------------------------------------- /images/icons/message-boxes/warning.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/images/icons/message-boxes/warning.png -------------------------------------------------------------------------------- /images/icons/menu/menu-email-special.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/images/icons/menu/menu-email-special.png -------------------------------------------------------------------------------- /images/icons/menu/menu-settings-over.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/images/icons/menu/menu-settings-over.png -------------------------------------------------------------------------------- /images/icons/message-boxes/information.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/images/icons/message-boxes/information.png -------------------------------------------------------------------------------- /images/icons/message-boxes/confirmation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syvolia/pos-system/HEAD/images/icons/message-boxes/confirmation.png -------------------------------------------------------------------------------- /my_data.php: -------------------------------------------------------------------------------- 1 | 7 | -------------------------------------------------------------------------------- /config.php.sample: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /logout.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /css/screen.css: -------------------------------------------------------------------------------- 1 | /********************************** 2 | 3 | Use: Main Screen Import 4 | 5 | ***********************************/ 6 | 7 | @import "reset.css"; 8 | @import "core.css"; 9 | 10 | @import "cmxformTemplate.css"; 11 | @import "cmxform.css"; -------------------------------------------------------------------------------- /server.php: -------------------------------------------------------------------------------- 1 | 'sasi', 5 | 'desc' => 'jibi', 6 | 'value' => 'jibi' 7 | ); 8 | $data[1] = array( 9 | 'label' => 'sasi', 10 | 'desc' => 'jibi', 11 | 'value' => 'jibi' 12 | ); 13 | echo json_encode($data); 14 | 15 | ?> 16 | -------------------------------------------------------------------------------- /stock.php: -------------------------------------------------------------------------------- 1 | query("SELECT * FROM stock_avail where quantity >0 "); 6 | while ($line = $db->fetchNextObject()) { 7 | 8 | if (strpos(strtolower($line->name), $q) !== false) { 9 | echo "$line->name\n"; 10 | 11 | } 12 | } 13 | 14 | ?> -------------------------------------------------------------------------------- /stock_purchse.php: -------------------------------------------------------------------------------- 1 | query("SELECT * FROM stock_details "); 6 | while ($line = $db->fetchNextObject()) { 7 | 8 | if (strpos(strtolower($line->stock_name), $q) !== false) { 9 | echo "$line->stock_name\n"; 10 | 11 | } 12 | } 13 | 14 | ?> -------------------------------------------------------------------------------- /category.php: -------------------------------------------------------------------------------- 1 | query("SELECT * FROM category_details"); 6 | while ($line = $db->fetchNextObject()) { 7 | 8 | if (strpos(strtolower($line->category_name), $q) !== false) { 9 | echo "$line->category_name\n"; 10 | 11 | } 12 | } 13 | 14 | ?> -------------------------------------------------------------------------------- /customer1.php: -------------------------------------------------------------------------------- 1 | query("SELECT * FROM customer_details"); 6 | while ($line = $db->fetchNextObject()) { 7 | 8 | if (strpos(strtolower($line->customer_name), $q) !== false) { 9 | echo "$line->customer_name \n"; 10 | 11 | } 12 | } 13 | 14 | ?> -------------------------------------------------------------------------------- /supplier1.php: -------------------------------------------------------------------------------- 1 | query("SELECT * FROM supplier_details"); 6 | while ($line = $db->fetchNextObject()) { 7 | 8 | if (strpos(strtolower($line->supplier_name), $q) !== false) { 9 | echo "$line->supplier_name\n"; 10 | 11 | } 12 | } 13 | 14 | ?> -------------------------------------------------------------------------------- /db.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /session.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /css/cmxform.css: -------------------------------------------------------------------------------- 1 | /********************************** 2 | 3 | Name: cmxform Styles 4 | 5 | ***********************************/ 6 | 7 | form.cmxform legend { 8 | padding-left: 0; 9 | } 10 | 11 | form.cmxform label.error, label.error { 12 | /* remove the next line when you have trouble in IE6 with labels in list */ 13 | color: red; 14 | font-style: italic 15 | } 16 | div.error { display: none; } 17 | 18 | input:focus { border: 1px dotted black; } 19 | input.error { } 20 | -------------------------------------------------------------------------------- /check_customer_details.php: -------------------------------------------------------------------------------- 1 | queryUniqueObject("SELECT * FROM customer_details WHERE customer_name='" . $_POST['stock_name1'] . "'"); 5 | $address = $line->customer_address; 6 | $contact1 = $line->customer_contact1; 7 | $contact2 = $line->customer_contact2; 8 | 9 | if ($line != NULL) { 10 | 11 | $arr = array("address" => "$address", "contact1" => "$contact1", "contact2" => "$contact2"); 12 | echo json_encode($arr); 13 | 14 | } else { 15 | $arr1 = array("no" => "no"); 16 | echo json_encode($arr1); 17 | 18 | } 19 | ?> -------------------------------------------------------------------------------- /check_supplier_details.php: -------------------------------------------------------------------------------- 1 | queryUniqueObject("SELECT * FROM supplier_details WHERE supplier_name='" . $_POST['stock_name1'] . "'"); 5 | $address = $line->supplier_address; 6 | $contact1 = $line->supplier_contact1; 7 | $contact2 = $line->supplier_contact2; 8 | 9 | if ($line != NULL) { 10 | 11 | $arr = array("address" => "$address", "contact1" => "$contact1", "contact2" => "$contact2"); 12 | echo json_encode($arr); 13 | 14 | } else { 15 | $arr1 = array("no" => "no"); 16 | echo json_encode($arr1); 17 | 18 | } 19 | ?> -------------------------------------------------------------------------------- /tpl/auto.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /check_item_details.php: -------------------------------------------------------------------------------- 1 | queryUniqueObject("SELECT * FROM stock_details WHERE stock_name ='" . $_POST['stock_name1'] . "'"); 5 | $cost = $line->company_price; 6 | $sell = $line->selling_price; 7 | $stock_id = $line->stock_id; 8 | $line = $db->queryUniqueObject("SELECT * FROM stock_avail WHERE name ='" . $_POST['stock_name1'] . "'"); 9 | $stock = $line->quantity; 10 | 11 | if ($line != NULL) { 12 | 13 | $arr = array("cost" => "$cost", "sell" => "$sell", "stock" => "$stock", "guid" => $stock_id); 14 | echo json_encode($arr); 15 | 16 | } else { 17 | $arr1 = array("no" => "no"); 18 | echo json_encode($arr1); 19 | 20 | } 21 | ?> -------------------------------------------------------------------------------- /js/script.js: -------------------------------------------------------------------------------- 1 | /********************************************************************************** 2 | 3 | Project Name: SimpleAdmin CMS Theme 4 | Project Description: A clean admin theme 5 | File Name: script.js 6 | Author: Adi Purdila 7 | Author URI: http://www.adipurdila.com 8 | Version: 1.0.0 9 | 10 | **********************************************************************************/ 11 | 12 | $(document).ready(function() { 13 | 14 | //Content boxes expand/collapse 15 | $(".initial-expand").hide(); 16 | 17 | $("div.content-module-heading").click(function(){ 18 | $(this).next("div.content-module-main").slideToggle(); 19 | 20 | $(this).children(".expand-collapse-text").toggle(); 21 | }); 22 | 23 | }); 24 | -------------------------------------------------------------------------------- /Readme.md: -------------------------------------------------------------------------------- 1 | # POSNIC 2 | ## Intro 3 | * A really simple Point of Sale application based on PHP/MySQL 4 | 5 | ## Security notes 6 | * Stores passwords in plain text by default 7 | * No cleaning of any POST / GET variables 8 | * PHP 5.3.x and MySQL 5.1 tested 9 | 10 | ## Installation 11 | * Extract the zip file 12 | * Copy file to localhost 13 | * Run the project in localhost 14 | * Configure the localhost name, username and password 15 | * Click install button 16 | * Create a database or select your existing database and click next button 17 | * Upload your store logo 18 | * Enter your store details (with your logo) 19 | * Press Finish 20 | * Enjoy 21 | 22 | ## If you find any difficulties in installation please modify config.php.sample file and save as config.php. -------------------------------------------------------------------------------- /Readme.txt: -------------------------------------------------------------------------------- 1 | # POSNIC 2 | ## Intro 3 | * A really simple Point of Sale application based on PHP/MySQL 4 | 5 | ## Security notes 6 | * Stores passwords in plain text by default 7 | * No cleaning of any POST / GET variables 8 | * PHP 5.3.x and MySQL 5.1 tested 9 | 10 | ## Installation 11 | * Extract the zip file 12 | * Copy file to localhost 13 | * Run the project in localhost 14 | * Configure the localhost name, username and password 15 | * Click install button 16 | * Create a database or select your existing database and click next button 17 | * Upload your store logo 18 | * Enter your store details (with your logo) 19 | * Press Finish 20 | * Enjoy 21 | 22 | ## If you find any difficulties in installation please modify config.php.sample file and save as config.php. -------------------------------------------------------------------------------- /css/core.css: -------------------------------------------------------------------------------- 1 | body, div { font-family: 'lucida grande', helvetica, verdana, arial, sans-serif } 2 | body { margin: 0; padding: 0; font-size: small; color: #333 } 3 | h1, h2 { font-family: 'trebuchet ms', verdana, arial; padding: 10px; margin: 0 } 4 | h1 { font-size: large } 5 | #main { padding: 1em; } 6 | #banner { padding: 15px; background-color: #06b; color: white; font-size: large; border-bottom: 1px solid #ccc; 7 | background: url(../images/bg.gif) repeat-x; text-align: center } 8 | #banner a { color: white; } 9 | 10 | p { margin: 10px 0; } 11 | 12 | li { margin-left: 10px; } 13 | 14 | h3 { margin: 1em 0 0; } 15 | 16 | h1 { font-size: 2em; } 17 | h2 { font-size: 1.8em; } 18 | h3 { font-size: 1.6em; } 19 | h4 { font-size: 1.4em; } 20 | h5 { font-size: 1.2em; } 21 | 22 | -------------------------------------------------------------------------------- /deleteall.php: -------------------------------------------------------------------------------- 1 | execute("INSERT INTO stock_sales(transactionid)VALUES('$tablename')"); 30 | //$data=$_POST['data']; 31 | 32 | 33 | //$db->execute("INSERT INTO stock_sales( transactionid)VALUES('$d')"); 34 | //$db->execute("DELETE FROM stock_sales WHERE id='$d'"); 35 | 36 | $db->execute("TRUNCATE TABLE ".$tablename); 37 | 38 | 39 | 40 | //$db->execute("DELETE FROM stock_details WHERE id='$id'"); 41 | 42 | 43 | 44 | 45 | ?> 46 | -------------------------------------------------------------------------------- /deleterecords.php: -------------------------------------------------------------------------------- 1 | execute("INSERT INTO stock_sales(id)VALUES('hhh')"); 29 | $data=$_POST['data']; 30 | 31 | foreach($data as $d){ 32 | $d=substr($d,1); 33 | // $db->execute("INSERT INTO stock_sales( transactionid)VALUES('$d')"); 34 | //$db->execute("DELETE FROM stock_sales WHERE id='$d'"); 35 | 36 | $db->execute("DELETE FROM ".$tablename." WHERE id='$d'"); 37 | } 38 | 39 | 40 | 41 | //$db->execute("DELETE FROM stock_details WHERE id='$id'"); 42 | 43 | } 44 | exit; 45 | 46 | 47 | ?> 48 | -------------------------------------------------------------------------------- /lib/auto/css/jquery.autocomplete.css: -------------------------------------------------------------------------------- 1 | .ac_results { 2 | padding: 0px; 3 | border: 1px solid black; 4 | background-color: white; 5 | overflow: hidden; 6 | z-index: 99999; 7 | } 8 | 9 | .ac_results ul { 10 | width: 100%; 11 | list-style-position: outside; 12 | list-style: none; 13 | padding: 0; 14 | margin: 0; 15 | } 16 | 17 | .ac_results li { 18 | margin: 0px; 19 | padding: 2px 5px; 20 | cursor: default; 21 | display: block; 22 | /* 23 | if width will be 100% horizontal scrollbar will apear 24 | when scroll mode will be used 25 | */ 26 | /*width: 100%;*/ 27 | font: menu; 28 | font-size: 12px; 29 | /* 30 | it is very important, if line-height not setted or setted 31 | in relative units scroll will be broken in firefox 32 | */ 33 | line-height: 16px; 34 | overflow: hidden; 35 | } 36 | 37 | .ac_loading { 38 | background: white url('indicator.gif') right center no-repeat; 39 | } 40 | 41 | .ac_odd { 42 | background-color: #eee; 43 | } 44 | 45 | .ac_over { 46 | background-color: #0A246A; 47 | color: white; 48 | } 49 | -------------------------------------------------------------------------------- /css/reset.css: -------------------------------------------------------------------------------- 1 | /********************************** 2 | 3 | Use: Reset Styles for all browsers 4 | 5 | ***********************************/ 6 | 7 | body, p, blockquote { 8 | margin: 0; 9 | padding: 0; 10 | } 11 | 12 | a img, iframe { border: none; } 13 | 14 | /* Headers 15 | ------------------------------*/ 16 | 17 | h1, h2, h3, h4, h5, h6 { 18 | margin: 0; 19 | padding: 0; 20 | font-size: 100%; 21 | } 22 | 23 | /* Lists 24 | ------------------------------*/ 25 | 26 | ul, ol, dl, li, dt, dd { 27 | margin: 0; 28 | padding: 0; 29 | } 30 | 31 | /* Links 32 | ------------------------------*/ 33 | 34 | a, a:link {} 35 | a:visited {} 36 | a:hover {} 37 | a:active {} 38 | 39 | /* Forms 40 | ------------------------------*/ 41 | 42 | form, fieldset { 43 | margin: 0; 44 | padding: 0; 45 | } 46 | 47 | fieldset { border: 1px solid #000; } 48 | 49 | legend { 50 | padding: 0; 51 | color: #000; 52 | } 53 | 54 | input, textarea, select { 55 | margin: 0; 56 | padding: 1px; 57 | font-size: 100%; 58 | font-family: inherit; 59 | } 60 | 61 | select { padding: 0; } -------------------------------------------------------------------------------- /css/b.css: -------------------------------------------------------------------------------- 1 | .button { 2 | border-top: 1px solid #084063; 3 | background: #012d4a; 4 | background: -webkit-gradient(linear, left top, left bottom, from(#3e779d), to(#012d4a)); 5 | background: -webkit-linear-gradient(top, #3e779d, #012d4a); 6 | background: -moz-linear-gradient(top, #3e779d, #012d4a); 7 | background: -ms-linear-gradient(top, #3e779d, #012d4a); 8 | background: -o-linear-gradient(top, #3e779d, #012d4a); 9 | padding: 5px 10px; 10 | -webkit-border-radius: 8px; 11 | -moz-border-radius: 8px; 12 | border-radius: 8px; 13 | -webkit-box-shadow: rgba(0,0,0,1) 0 1px 0; 14 | -moz-box-shadow: rgba(0,0,0,1) 0 1px 0; 15 | box-shadow: rgba(0,0,0,1) 0 1px 0; 16 | text-shadow: rgba(0,0,0,.4) 0 1px 0; 17 | color: white; 18 | font-size: 14px; 19 | font-family: Georgia, serif; 20 | text-decoration: none; 21 | vertical-align: middle; 22 | } 23 | .button:hover { 24 | border-top-color: #28597a; 25 | background: #28597a; 26 | color: #ccc; 27 | } 28 | .button:active { 29 | border-top-color: #01395e; 30 | background: #01395e; 31 | } -------------------------------------------------------------------------------- /tpl/header.php: -------------------------------------------------------------------------------- 1 | 3 |
14 |
|
39 |
107 | 108 | 110 |
111 | 112 |113 | 114 | 116 |
117 | 118 | Forgot your password? 119 | 120 | 121 | 122 | 123 | 124 |Invalid file
"; 118 | } 119 | } 120 | 121 | ?> 122 | 123 | 124 | 125 |
38 |
39 |
|
137 |
| Sales Report | 108 |From | 109 |111 | | To | 112 |113 | | 114 |
115 | |
116 |
117 |
| 121 | | 122 | | 123 | | 124 | | 125 | | 126 | |
| Purchase Report | 131 |From | 132 |134 | | To | 135 |137 | |
138 | |
139 |
| 144 | | 145 | | 146 | | 147 | | 148 | | 149 | |
| Purchase Stocks | 155 |From | 156 |158 | | To | 159 |161 | 162 | | 164 | |
Add New Category - Add New ( Control +A)
152 || *Name: | 155 |158 | 159 | | |
| 162 | | 163 | | |
| Address | 166 |168 | | 169 | 170 ||
| 173 | | 174 | | |
| 179 | 180 | | 181 |182 | 184 | (Control + S) 185 | 186 | | 188 | |
Add Stock - Add New ( Control + 3)
96 || Name: | 126 |129 | | Contact-1 | 130 |133 | |
| 136 | | 137 | | ||
| Address: | 140 |142 | | 143 |Contact-2 | 144 |147 | |
| 152 | 153 | | 154 |155 | 157 | (Control + S) 158 | | 159 |161 | 162 | |
Add Customer Details - Add New ( Control +A)
96 || Name | 126 |129 | | *Contact-1 | 130 |133 | |
| 136 | | 137 | | ||
| Address: | 140 |143 | 144 | | Contact-2 | 145 |148 | |
| 153 | 154 | | 155 |156 | 158 | (Control + S) 159 | | 160 |162 | |