├── output images ├── readme.txt ├── 1.png ├── 2.png ├── 3.png ├── 4.png ├── 5.png ├── 6.png ├── 7.png └── 8.png ├── images ├── avatar.jpg ├── user-bg.jpg ├── materialize-logo.png ├── user-profile-bg.jpg └── favicon │ ├── favicon-32x32.png │ ├── mstile-144x144.png │ └── apple-touch-icon-152x152.png ├── font ├── roboto │ ├── Roboto-Bold.ttf │ ├── Roboto-Bold.woff │ ├── Roboto-Light.ttf │ ├── Roboto-Thin.ttf │ ├── Roboto-Thin.woff │ ├── Roboto-Bold.woff2 │ ├── Roboto-Light.woff │ ├── Roboto-Light.woff2 │ ├── Roboto-Medium.ttf │ ├── Roboto-Medium.woff │ ├── Roboto-Regular.ttf │ ├── Roboto-Thin.woff2 │ ├── Roboto-Medium.woff2 │ ├── Roboto-Regular.woff │ └── Roboto-Regular.woff2 └── material-design-icons │ ├── Material-Design-Icons.ttf │ ├── Material-Design-Icons.woff │ ├── Material-Design-Icons.woff2 │ └── Material-Design-Iconsd41d.eot ├── routers ├── logout.php ├── add-item.php ├── edit-orders.php ├── ticket-status.php ├── cancel-order.php ├── add-ticket.php ├── details-router.php ├── ticket-message.php ├── menu-router.php ├── register-router.php ├── user-router.php ├── add-users.php ├── order-router.php └── router.php ├── js ├── plugins │ ├── data-tables │ │ ├── images │ │ │ ├── sort_asc.png │ │ │ ├── sort_both.png │ │ │ ├── sort_desc.png │ │ │ ├── sort_asc_disabled.png │ │ │ └── sort_desc_disabled.png │ │ ├── data-tables-script.js │ │ └── css │ │ │ └── jquery.dataTables.min.css │ ├── perfect-scrollbar │ │ ├── perfect-scrollbar.css │ │ └── perfect-scrollbar.min.js │ ├── formatter │ │ └── jquery.formatter.min.js │ └── jquery-validation │ │ └── additional-methods.min.js ├── custom-script.js └── plugins.min.js ├── css └── layouts │ └── page-center.css ├── includes ├── connect.php └── wallet.php ├── LICENSE ├── README.md ├── login.php ├── register.php ├── all-tickets.php ├── sql └── food.sql ├── orders.php ├── confirm-order.php ├── all-orders.php ├── index.php ├── view-ticket-admin.php ├── view-ticket.php └── admin-page.php /output images/readme.txt: -------------------------------------------------------------------------------- 1 | # output images 2 | -------------------------------------------------------------------------------- /images/avatar.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rutujar/OFD/HEAD/images/avatar.jpg -------------------------------------------------------------------------------- /images/user-bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rutujar/OFD/HEAD/images/user-bg.jpg -------------------------------------------------------------------------------- /output images/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rutujar/OFD/HEAD/output images/1.png -------------------------------------------------------------------------------- /output images/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rutujar/OFD/HEAD/output images/2.png -------------------------------------------------------------------------------- /output images/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rutujar/OFD/HEAD/output images/3.png -------------------------------------------------------------------------------- /output images/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rutujar/OFD/HEAD/output images/4.png -------------------------------------------------------------------------------- /output images/5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rutujar/OFD/HEAD/output images/5.png -------------------------------------------------------------------------------- /output images/6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rutujar/OFD/HEAD/output images/6.png -------------------------------------------------------------------------------- /output images/7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rutujar/OFD/HEAD/output images/7.png -------------------------------------------------------------------------------- /output images/8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rutujar/OFD/HEAD/output images/8.png -------------------------------------------------------------------------------- /font/roboto/Roboto-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rutujar/OFD/HEAD/font/roboto/Roboto-Bold.ttf -------------------------------------------------------------------------------- /font/roboto/Roboto-Bold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rutujar/OFD/HEAD/font/roboto/Roboto-Bold.woff -------------------------------------------------------------------------------- /font/roboto/Roboto-Light.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rutujar/OFD/HEAD/font/roboto/Roboto-Light.ttf -------------------------------------------------------------------------------- /font/roboto/Roboto-Thin.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rutujar/OFD/HEAD/font/roboto/Roboto-Thin.ttf -------------------------------------------------------------------------------- /font/roboto/Roboto-Thin.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rutujar/OFD/HEAD/font/roboto/Roboto-Thin.woff -------------------------------------------------------------------------------- /images/materialize-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rutujar/OFD/HEAD/images/materialize-logo.png -------------------------------------------------------------------------------- /images/user-profile-bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rutujar/OFD/HEAD/images/user-profile-bg.jpg -------------------------------------------------------------------------------- /font/roboto/Roboto-Bold.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rutujar/OFD/HEAD/font/roboto/Roboto-Bold.woff2 -------------------------------------------------------------------------------- /font/roboto/Roboto-Light.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rutujar/OFD/HEAD/font/roboto/Roboto-Light.woff -------------------------------------------------------------------------------- /font/roboto/Roboto-Light.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rutujar/OFD/HEAD/font/roboto/Roboto-Light.woff2 -------------------------------------------------------------------------------- /font/roboto/Roboto-Medium.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rutujar/OFD/HEAD/font/roboto/Roboto-Medium.ttf -------------------------------------------------------------------------------- /font/roboto/Roboto-Medium.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rutujar/OFD/HEAD/font/roboto/Roboto-Medium.woff -------------------------------------------------------------------------------- /font/roboto/Roboto-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rutujar/OFD/HEAD/font/roboto/Roboto-Regular.ttf -------------------------------------------------------------------------------- /font/roboto/Roboto-Thin.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rutujar/OFD/HEAD/font/roboto/Roboto-Thin.woff2 -------------------------------------------------------------------------------- /font/roboto/Roboto-Medium.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rutujar/OFD/HEAD/font/roboto/Roboto-Medium.woff2 -------------------------------------------------------------------------------- /font/roboto/Roboto-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rutujar/OFD/HEAD/font/roboto/Roboto-Regular.woff -------------------------------------------------------------------------------- /font/roboto/Roboto-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rutujar/OFD/HEAD/font/roboto/Roboto-Regular.woff2 -------------------------------------------------------------------------------- /images/favicon/favicon-32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rutujar/OFD/HEAD/images/favicon/favicon-32x32.png -------------------------------------------------------------------------------- /images/favicon/mstile-144x144.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rutujar/OFD/HEAD/images/favicon/mstile-144x144.png -------------------------------------------------------------------------------- /routers/logout.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /images/favicon/apple-touch-icon-152x152.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rutujar/OFD/HEAD/images/favicon/apple-touch-icon-152x152.png -------------------------------------------------------------------------------- /js/plugins/data-tables/images/sort_asc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rutujar/OFD/HEAD/js/plugins/data-tables/images/sort_asc.png -------------------------------------------------------------------------------- /js/plugins/data-tables/images/sort_both.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rutujar/OFD/HEAD/js/plugins/data-tables/images/sort_both.png -------------------------------------------------------------------------------- /js/plugins/data-tables/images/sort_desc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rutujar/OFD/HEAD/js/plugins/data-tables/images/sort_desc.png -------------------------------------------------------------------------------- /font/material-design-icons/Material-Design-Icons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rutujar/OFD/HEAD/font/material-design-icons/Material-Design-Icons.ttf -------------------------------------------------------------------------------- /font/material-design-icons/Material-Design-Icons.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rutujar/OFD/HEAD/font/material-design-icons/Material-Design-Icons.woff -------------------------------------------------------------------------------- /js/plugins/data-tables/images/sort_asc_disabled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rutujar/OFD/HEAD/js/plugins/data-tables/images/sort_asc_disabled.png -------------------------------------------------------------------------------- /js/plugins/data-tables/images/sort_desc_disabled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rutujar/OFD/HEAD/js/plugins/data-tables/images/sort_desc_disabled.png -------------------------------------------------------------------------------- /font/material-design-icons/Material-Design-Icons.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rutujar/OFD/HEAD/font/material-design-icons/Material-Design-Icons.woff2 -------------------------------------------------------------------------------- /font/material-design-icons/Material-Design-Iconsd41d.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rutujar/OFD/HEAD/font/material-design-icons/Material-Design-Iconsd41d.eot -------------------------------------------------------------------------------- /css/layouts/page-center.css: -------------------------------------------------------------------------------- 1 | html, 2 | body { 3 | height: 100%; 4 | } 5 | html { 6 | display: table; 7 | margin: auto; 8 | } 9 | body { 10 | display: table-cell; 11 | vertical-align: middle; 12 | } -------------------------------------------------------------------------------- /routers/add-item.php: -------------------------------------------------------------------------------- 1 | query($sql); 8 | header("location: ../admin-page.php"); 9 | ?> -------------------------------------------------------------------------------- /routers/edit-orders.php: -------------------------------------------------------------------------------- 1 | query($sql); 8 | 9 | header("location: ../all-orders.php"); 10 | ?> -------------------------------------------------------------------------------- /includes/connect.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /js/custom-script.js: -------------------------------------------------------------------------------- 1 | /*================================================================================ 2 | Item Name: Somaiya Vidyavihar - Captive Portal 3 | Version: 3.1 4 | Author: Arctech Ventures 5 | Author URL: http://www.arctechventures.com 6 | ================================================================================ */ 7 | -------------------------------------------------------------------------------- /routers/ticket-status.php: -------------------------------------------------------------------------------- 1 | query($sql); 8 | header("location: ../view-ticket.php?id=".$ticket_id); 9 | ?> -------------------------------------------------------------------------------- /includes/wallet.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /routers/cancel-order.php: -------------------------------------------------------------------------------- 1 | query($sql); 8 | $sql = mysqli_query($con, "SELECT * FROM orders where id=$id"); 9 | while($row1 = mysqli_fetch_array($sql)){ 10 | $total = $row1['total']; 11 | } 12 | if($_POST['payment_type'] == 'Wallet'){ 13 | $balance = $balance+$total; 14 | $sql = "UPDATE wallet_details SET balance = $balance WHERE wallet_id = $wallet_id;"; 15 | $con->query($sql); 16 | } 17 | header("location: ../orders.php"); 18 | ?> -------------------------------------------------------------------------------- /routers/add-ticket.php: -------------------------------------------------------------------------------- 1 | query($sql) === TRUE){ 10 | $ticket_id = $con->insert_id; 11 | $sql = "INSERT INTO ticket_details (ticket_id, user_id, description) VALUES ($ticket_id, $user_id, '$description')"; 12 | $con->query($sql); 13 | } 14 | } 15 | header("location: ../tickets.php"); 16 | ?> -------------------------------------------------------------------------------- /routers/details-router.php: -------------------------------------------------------------------------------- 1 | query($sql)==true){ 14 | $_SESSION['name'] = $name; 15 | } 16 | header("location: ../details.php"); 17 | ?> -------------------------------------------------------------------------------- /routers/ticket-message.php: -------------------------------------------------------------------------------- 1 | query($sql); 10 | } 11 | else{ 12 | $sql = "UPDATE tickets SET status = 'Open' WHERE id=$ticket_id;"; 13 | $con->query($sql); 14 | } 15 | if($message != ''){ 16 | $sql = "INSERT INTO ticket_details (ticket_id, user_id, description) VALUES ($ticket_id, $user_id, '$message')"; 17 | $con->query($sql); 18 | } 19 | header("location: ../view-ticket.php?id=".$ticket_id); 20 | ?> -------------------------------------------------------------------------------- /routers/menu-router.php: -------------------------------------------------------------------------------- 1 | $value) 4 | { 5 | if(preg_match("/[0-9]+_name/",$key)){ 6 | if($value != ''){ 7 | $key = strtok($key, '_'); 8 | $value = htmlspecialchars($value); 9 | $sql = "UPDATE items SET name = '$value' WHERE id = $key;"; 10 | $con->query($sql); 11 | } 12 | } 13 | if(preg_match("/[0-9]+_price/",$key)){ 14 | $key = strtok($key, '_'); 15 | $sql = "UPDATE items SET price = $value WHERE id = $key;"; 16 | $con->query($sql); 17 | } 18 | if(preg_match("/[0-9]+_hide/",$key)){ 19 | if($_POST[$key] == 1){ 20 | $key = strtok($key, '_'); 21 | $sql = "UPDATE items SET deleted = 0 WHERE id = $key;"; 22 | $con->query($sql); 23 | } else{ 24 | $key = strtok($key, '_'); 25 | $sql = "UPDATE items SET deleted = 1 WHERE id = $key;"; 26 | $con->query($sql); 27 | } 28 | } 29 | } 30 | header("location: ../admin-page.php"); 31 | ?> -------------------------------------------------------------------------------- /routers/register-router.php: -------------------------------------------------------------------------------- 1 | query($sql)==true){ 20 | $user_id = $con->insert_id; 21 | $sql = "INSERT INTO wallet(customer_id) VALUES ($user_id)"; 22 | if($con->query($sql)==true){ 23 | $wallet_id = $con->insert_id; 24 | $cc_number = number(16); 25 | $cvv_number = number(3); 26 | $sql = "INSERT INTO wallet_details(wallet_id, number, cvv) VALUES ($wallet_id, $cc_number, $cvv_number)"; 27 | $con->query($sql); 28 | } 29 | } 30 | header("location: ../login.php"); 31 | ?> -------------------------------------------------------------------------------- /routers/user-router.php: -------------------------------------------------------------------------------- 1 | $value) 4 | { 5 | if(preg_match("/[0-9]+_role/",$key)){ 6 | $key = strtok($key, '_'); 7 | $sql = "UPDATE users SET role = '$value' WHERE id = $key;"; 8 | $con->query($sql); 9 | } 10 | if(preg_match("/[0-9]+_verified/",$key)){ 11 | $key = strtok($key, '_'); 12 | $sql = "UPDATE users SET verified = '$value' WHERE id = $key;"; 13 | $con->query($sql); 14 | } 15 | if(preg_match("/[0-9]+_deleted/",$key)){ 16 | $key = strtok($key, '_'); 17 | $sql = "UPDATE users SET deleted = '$value' WHERE id = $key;"; 18 | $con->query($sql); 19 | } 20 | if(preg_match("/[0-9]+_balance/",$key)){ 21 | $key = strtok($key, '_'); 22 | $result = mysqli_query($con,"SELECT * from wallet WHERE customer_id = $key;"); 23 | if($row = mysqli_fetch_array($result)){ 24 | $wallet_id = $row['id']; 25 | $sql = "UPDATE wallet_details SET balance = '$value' WHERE wallet_id = $wallet_id;"; 26 | $con->query($sql); 27 | } 28 | } 29 | } 30 | header("location: ../users.php"); 31 | ?> -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 Rutuja Rajesh 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /routers/add-users.php: -------------------------------------------------------------------------------- 1 | query($sql)==true){ 25 | $user_id = $con->insert_id; 26 | $sql = "INSERT INTO wallet(customer_id) VALUES ($user_id)"; 27 | if($con->query($sql)==true){ 28 | $wallet_id = $con->insert_id; 29 | $cc_number = number(16); 30 | $cvv_number = number(3); 31 | $sql = "INSERT INTO wallet_details(wallet_id, number, cvv) VALUES ($wallet_id, $cc_number, $cvv_number)"; 32 | $con->query($sql); 33 | } 34 | } 35 | header("location: ../users.php"); 36 | ?> -------------------------------------------------------------------------------- /routers/order-router.php: -------------------------------------------------------------------------------- 1 | query($sql) === TRUE){ 11 | $order_id = $con->insert_id; 12 | foreach ($_POST as $key => $value) 13 | { 14 | if(is_numeric($key)){ 15 | $result = mysqli_query($con, "SELECT * FROM items WHERE id = $key"); 16 | while($row = mysqli_fetch_array($result)) 17 | { 18 | $price = $row['price']; 19 | } 20 | $price = $value*$price; 21 | $sql = "INSERT INTO order_details (order_id, item_id, quantity, price) VALUES ($order_id, $key, $value, $price)"; 22 | $con->query($sql) === TRUE; 23 | } 24 | } 25 | if($_POST['payment_type'] == 'Wallet'){ 26 | $balance = $balance - $total; 27 | $sql = "UPDATE wallet_details SET balance = $balance WHERE wallet_id = $wallet_id;"; 28 | $con->query($sql) === TRUE; 29 | } 30 | header("location: ../orders.php"); 31 | } 32 | 33 | ?> -------------------------------------------------------------------------------- /routers/router.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /js/plugins/data-tables/data-tables-script.js: -------------------------------------------------------------------------------- 1 | $(document).ready(function(){ 2 | $('#data-table-customer').DataTable({ 3 | searching: false, 4 | paging: false 5 | }); 6 | $('#data-table-admin').DataTable({ 7 | searching: false, 8 | paging: false, 9 | ordering: false, 10 | }); 11 | var table = $('#data-table-row-grouping').DataTable({ 12 | "columnDefs": [ 13 | { "visible": false, "targets": 2 } 14 | ], 15 | "order": [[ 2, 'asc' ]], 16 | "displayLength": 25, 17 | "drawCallback": function ( settings ) { 18 | var api = this.api(); 19 | var rows = api.rows( {page:'current'} ).nodes(); 20 | var last=null; 21 | 22 | api.column(2, {page:'current'} ).data().each( function ( group, i ) { 23 | if ( last !== group ) { 24 | $(rows).eq( i ).before( 25 | ''+group+'' 26 | ); 27 | 28 | last = group; 29 | } 30 | } ); 31 | } 32 | }); 33 | 34 | // Order by the grouping 35 | $('#data-table-row-grouping tbody').on( 'click', 'tr.group', function () { 36 | var currentOrder = table.order()[0]; 37 | if ( currentOrder[0] === 2 && currentOrder[1] === 'asc' ) { 38 | table.order( [ 2, 'desc' ] ).draw(); 39 | } 40 | else { 41 | table.order( [ 2, 'asc' ] ).draw(); 42 | } 43 | } ); 44 | 45 | 46 | }); -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # OFD(Online Food Delivery) [![](https://img.shields.io/badge/Rutuja-Rajesh-brightgreen.svg?colorB=ff0000)](https://www.linkedin.com/in/rutuja-rajesh-20909610b/) 2 | 3 | It is a WEB Mini project under 2015 VTU CBCS scheme. 4 | 5 | # Instructions 6 | 7 | * Download Github OFD File [HERE](https://github.com/rutujar/OFD.git) 8 | 9 | # BACK END 10 | 11 | * Download Sublime text 12 | 13 | * Download Php my admin 14 | 15 | * ADD [Sql](https://github.com/rutujar/OFD/blob/master/sql/food.sql) 16 | 17 | # FRONT END 18 | 19 | * USE IMAGES FOR FRONT END. 20 | 21 | * Run php files in the browser 22 | 23 | # OUTPUT 24 | 25 | ### STEP 1: Register Page 26 | ![Register Page](https://github.com/rutujar/OFD/blob/master/output%20images/1.png) 27 | 28 | ### STEP 2: Login Page 29 | ![Login Page](https://github.com/rutujar/OFD/blob/master/output%20images/2.png) 30 | 31 | ### STEP 3: Food menu page 32 | ![Food menu page](https://github.com/rutujar/OFD/blob/master/output%20images/3.png) 33 | 34 | ### STEP 4: Placing order page 35 | ![Placing order page](https://github.com/rutujar/OFD/blob/master/output%20images/4.png) 36 | 37 | ### STEP 5: Order page 38 | ![Order page](https://github.com/rutujar/OFD/blob/master/output%20images/5.png) 39 | 40 | ### STEP 6: Customer Support page 41 | ![Customer Support page](https://github.com/rutujar/OFD/blob/master/output%20images/6.png) 42 | 43 | ### STEP 7: Customer Details 44 | ![Customer Details](https://github.com/rutujar/OFD/blob/master/output%20images/7.png) 45 | 46 | ### STEP 8: Print Invoice 47 | ![Print Invoice](https://github.com/rutujar/OFD/blob/master/output%20images/8.png) 48 | 49 | 50 | # LICENSE 51 | 52 | [![](https://img.shields.io/github/license/sourcerer-io/hall-of-fame.svg?colorB=ff0000)](https://github.com/rutujar/Online-food-delivery/blob/master/LICENSE) 53 | 54 | For more details contact me. 55 | 56 | ## Support Me 57 | If you liked this, leave a star and fork it! :star: 58 | 59 | If you liked this and also liked my other work, be sure to follow me for more! :slightly_smiling_face: 60 | -------------------------------------------------------------------------------- /js/plugins.min.js: -------------------------------------------------------------------------------- 1 | $(function(){"use strict";function a(a){$(a).is(":checked")?$(a).next().css("text-decoration","line-through"):$(a).next().css("text-decoration","none")}function b(){document.fullScreenElement&&null!==document.fullScreenElement||!document.mozFullScreen&&!document.webkitIsFullScreen?document.documentElement.requestFullScreen?document.documentElement.requestFullScreen():document.documentElement.mozRequestFullScreen?document.documentElement.mozRequestFullScreen():document.documentElement.webkitRequestFullScreen&&document.documentElement.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT):document.cancelFullScreen?document.cancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen()}function c(){try{return document.createEvent("TouchEvent"),!0}catch(a){return!1}}var d=$(window).width();$(window).load(function(){setTimeout(function(){$("body").addClass("loaded")},200)}),$(".header-search-input").focus(function(){$(this).parent("div").addClass("header-search-wrapper-focus")}).blur(function(){$(this).parent("div").removeClass("header-search-wrapper-focus")}),$("#task-card input:checkbox").each(function(){a(this)}),$("#task-card input:checkbox").change(function(){a(this)}),$("select").material_select();var e=document.getElementById("indeterminate-checkbox");null!==e&&(e.indeterminate=!0),$(".slider").slider({full_width:!0}),$(".dropdown-button").dropdown({inDuration:300,outDuration:125,constrain_width:!0,hover:!1,alignment:"left",gutter:0,belowOrigin:!0}),$(".translation-button").dropdown({inDuration:300,outDuration:225,constrain_width:!1,hover:!0,gutter:0,belowOrigin:!0,alignment:"left"}),$(".notification-button").dropdown({inDuration:300,outDuration:225,constrain_width:!1,hover:!0,gutter:0,belowOrigin:!0,alignment:"left"}),$(".tab-demo").show().tabs(),$(".tab-demo-active").show().tabs(),$(".parallax").parallax(),$(".modal-trigger").leanModal({dismissible:!0,opacity:.5,in_duration:300,out_duration:200,ready:function(){},complete:function(){}}),$(".scrollspy").scrollSpy(),$(".tooltipped").tooltip({delay:50}),$(".sidebar-collapse").sideNav({edge:"left"}),$(".menu-sidebar-collapse").sideNav({menuWidth:240,edge:"left",menuOut:!1}),$(".dropdown-menu").dropdown({inDuration:300,outDuration:225,constrain_width:!1,hover:!0,gutter:0,belowOrigin:!0}),$(".chat-collapse").sideNav({menuWidth:300,edge:"right"}),$(".chat-close-collapse").click(function(){$(".chat-collapse").sideNav("hide")}),$(".chat-collapsible").collapsible({accordion:!1}),$(".datepicker").pickadate({selectMonths:!0,selectYears:15}),$("select").not(".disabled").material_select();var f=$(".page-topbar").height(),g=window.innerHeight-f;$(".leftside-navigation").height(g).perfectScrollbar({suppressScrollX:!0});var h=$("#chat-out").height();$(".rightside-navigation").height(h).perfectScrollbar({suppressScrollX:!0}),$(".toggle-fullscreen").click(function(){b()}),$("nav").length?$(".toc-wrapper").pushpin({top:$("nav").height()}):$("#index-banner").length?$(".toc-wrapper").pushpin({top:$("#index-banner").height()}):$(".toc-wrapper").pushpin({top:0});var i=$("#flow-toggle");i.click(function(){$("#flow-text-demo").children("p").each(function(){$(this).toggleClass("flow-text")})}),$("#card-alert .close").click(function(){$(this).closest("#card-alert").fadeOut("slow")});var j=$("#container-toggle-button");j.click(function(){$("body .browser-window .container, .had-container").each(function(){$(this).toggleClass("had-container"),$(this).toggleClass("container"),$(this).hasClass("container")?j.text("Turn off Containers"):j.text("Turn on Containers")})}),c()&&$("#nav-mobile").css({overflow:"auto"}),"undefined"!=typeof Chartist&&new Chartist.Line("#ct2-chart",{labels:[1,2,3,4,5,6,7,8],series:[[5,9,7,8,5,3,5,4]]},{low:0,showArea:!0}),480>=d&&$("#trending-line-chart").attr({height:"200"})}); -------------------------------------------------------------------------------- /login.php: -------------------------------------------------------------------------------- 1 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | Login 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 |
45 |
46 |
47 |
48 |
49 | 50 | 51 | 52 | 53 |
54 |
55 |
84 | 85 | 86 | 87 |
88 | 89 | 90 | 91 | 92 | 93 | 94 | Design and Developed by Rutuja Rajesh 95 | 96 | 97 | 98 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | -------------------------------------------------------------------------------- /js/plugins/perfect-scrollbar/perfect-scrollbar.css: -------------------------------------------------------------------------------- 1 | .ps-container.ps-active-x > .ps-scrollbar-x-rail, .ps-container.ps-active-y > .ps-scrollbar-y-rail { 2 | display: block; } 3 | .ps-container.ps-in-scrolling { 4 | pointer-events: none; } 5 | .ps-container.ps-in-scrolling > .ps-scrollbar-x-rail { 6 | background-color: rgba(10,10,10,0.3); 7 | opacity: 0.9; 8 | -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=90)"; 9 | filter: alpha(opacity=90); } 10 | .ps-container.ps-in-scrolling > .ps-scrollbar-x-rail > .ps-scrollbar-x { 11 | background-color: rgba(130,130,138,0.9); } 12 | .ps-container.ps-in-scrolling > .ps-scrollbar-y-rail { 13 | background-color: rgba(10,10,10,0.3); 14 | opacity: 0.9; 15 | -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=90)"; 16 | filter: alpha(opacity=90); } 17 | .ps-container.ps-in-scrolling > .ps-scrollbar-y-rail > .ps-scrollbar-y { 18 | background-color: rgba(130,130,138,0.9); } 19 | .ps-container > .ps-scrollbar-x-rail { 20 | display: none; 21 | position: absolute; 22 | /* please don't change 'position' */ 23 | -webkit-border-radius: 0px; 24 | -moz-border-radius: 0px; 25 | -ms-border-radius: 0px; 26 | border-radius: 0px; 27 | opacity: 0; 28 | -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; 29 | filter: alpha(opacity=0); 30 | -webkit-transition: background-color 0.2s linear, opacity 0.2s linear; 31 | -moz-transition: background-color 0.2s linear, opacity 0.2s linear; 32 | -o-transition: background-color 0.2s linear, opacity 0.2s linear; 33 | transition: background-color 0.2s linear, opacity 0.2s linear; 34 | bottom: 3px; 35 | /* there must be 'bottom' for ps-scrollbar-x-rail */ 36 | height: 5px; } 37 | .ps-container > .ps-scrollbar-x-rail > .ps-scrollbar-x { 38 | position: absolute; 39 | /* please don't change 'position' */ 40 | background-color: rgba(130,130,138,1); 41 | -webkit-border-radius: 0px; 42 | -moz-border-radius: 0px; 43 | -ms-border-radius: 0px; 44 | border-radius: 0px; 45 | -webkit-transition: background-color 0.2s linear; 46 | -moz-transition: background-color 0.2s linear; 47 | -o-transition: background-color 0.2s linear; 48 | transition: background-color 0.2s linear; 49 | bottom: 0; 50 | /* there must be 'bottom' for ps-scrollbar-x */ 51 | height: 5px; } 52 | .ps-container > .ps-scrollbar-y-rail { 53 | display: none; 54 | position: absolute; 55 | /* please don't change 'position' */ 56 | -webkit-border-radius: 0px; 57 | -moz-border-radius: 0px; 58 | -ms-border-radius: 0px; 59 | border-radius: 0px; 60 | opacity: 0; 61 | -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; 62 | filter: alpha(opacity=0); 63 | -webkit-transition: background-color 0.2s linear, opacity 0.2s linear; 64 | -moz-transition: background-color 0.2s linear, opacity 0.2s linear; 65 | -o-transition: background-color 0.2s linear, opacity 0.2s linear; 66 | transition: background-color 0.2s linear, opacity 0.2s linear; 67 | right: 3px; 68 | /* there must be 'right' for ps-scrollbar-y-rail */ 69 | width: 5px; } 70 | .ps-container > .ps-scrollbar-y-rail > .ps-scrollbar-y { 71 | position: absolute; 72 | /* please don't change 'position' */ 73 | background-color: rgba(130,130,138,1); 74 | -webkit-border-radius: 0px; 75 | -moz-border-radius: 0px; 76 | -ms-border-radius: 0px; 77 | border-radius: 0px; 78 | -webkit-transition: background-color 0.2s linear; 79 | -moz-transition: background-color 0.2s linear; 80 | -o-transition: background-color 0.2s linear; 81 | transition: background-color 0.2s linear; 82 | right: 0; 83 | /* there must be 'right' for ps-scrollbar-y */ 84 | width: 5px; } 85 | .ps-container:hover.ps-in-scrolling { 86 | pointer-events: none; } 87 | .ps-container:hover.ps-in-scrolling > .ps-scrollbar-x-rail { 88 | background-color: rgba(10,10,10,0.3); 89 | opacity: 0.9; 90 | -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=90)"; 91 | filter: alpha(opacity=90); } 92 | .ps-container:hover.ps-in-scrolling > .ps-scrollbar-x-rail > .ps-scrollbar-x { 93 | background-color: rgba(130,130,138,0.9); } 94 | .ps-container:hover.ps-in-scrolling > .ps-scrollbar-y-rail { 95 | background-color: rgba(10,10,10,0.3); 96 | opacity: 0.9; 97 | -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=90)"; 98 | filter: alpha(opacity=90); } 99 | .ps-container:hover.ps-in-scrolling > .ps-scrollbar-y-rail > .ps-scrollbar-y { 100 | background-color: rgba(130,130,138,0.9); } 101 | .ps-container:hover > .ps-scrollbar-x-rail, .ps-container:hover > .ps-scrollbar-y-rail { 102 | opacity: 0.6; 103 | -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=60)"; 104 | filter: alpha(opacity=60); } 105 | .ps-container:hover > .ps-scrollbar-x-rail:hover { 106 | background-color: rgba(10,10,10,0.3); 107 | opacity: 0.9; 108 | -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=90)"; 109 | filter: alpha(opacity=90); } 110 | .ps-container:hover > .ps-scrollbar-x-rail:hover > .ps-scrollbar-x { 111 | background-color: rgba(130,130,138,0.9); } 112 | .ps-container:hover > .ps-scrollbar-y-rail:hover { 113 | background-color: rgba(10,10,10,0.3); 114 | opacity: 0.9; 115 | -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=90)"; 116 | filter: alpha(opacity=90); } 117 | .ps-container:hover > .ps-scrollbar-y-rail:hover > .ps-scrollbar-y { 118 | background-color: rgba(130,130,138,0.9); } 119 | -------------------------------------------------------------------------------- /js/plugins/formatter/jquery.formatter.min.js: -------------------------------------------------------------------------------- 1 | !function(a,b){"function"==typeof define&&define.amd?define(["jQuery"],b):b("object"==typeof exports?require("jQuery"):a.jQuery)}(this,function(){var a=function(){var a={},b=4,c=new RegExp("{{([^}]+)}}","g"),d=function(a){for(var b,d=[];b=c.exec(a);)d.push(b);return d};return a.parse=function(a){var c={inpts:{},chars:{}},e=d(a),f=a.length,g=0,h=0,i=0,j=function(a){for(var d=a.length,e=0;d>e;e++)c.inpts[h]=a.charAt(e),h++;g++,i+=a.length+b-1};for(i;f>i;i++)gb[0]&&ad&&b.call(c,a[d],d,a)!==!1;d++);else for(var f in a)if(a.hasOwnProperty(f)&&b.call(c,a[f],f,a)===!1)break},a}(),c=function(a,b){function c(c){var e=[],f=[];b.forEach(c,function(c){b.forEach(c,function(b,c){var g=a.parse(b),h=d(c);return e.push(h),f.push(g),!1})});var g=function(a){var c;return b.forEach(e,function(b,d){return b.test(a)?(c=d,!1):void 0}),void 0===c?null:f[c]};return{getPattern:g,patterns:f,matchers:e}}var d=function(a){return"*"===a?/.*/:new RegExp(a)};return c}(a,b),d=function(){var a={};return a.get=function(a){if("number"==typeof a.selectionStart)return{begin:a.selectionStart,end:a.selectionEnd};var b=document.selection.createRange();if(b&&b.parentElement()===a){var c=a.createTextRange(),d=a.createTextRange(),e=a.value.length;return c.moveToBookmark(b.getBookmark()),d.collapse(!1),c.compareEndPoints("StartToEnd",d)>-1?{begin:e,end:e}:{begin:-c.moveStart("character",-e),end:-c.moveEnd("character",-e)}}return{begin:0,end:0}},a.set=function(a,b){if("object"!=typeof b&&(b={begin:b,end:b}),a.setSelectionRange)a.focus(),a.setSelectionRange(b.begin,b.end);else if(a.createTextRange){var c=a.createTextRange();c.collapse(!0),c.moveEnd("character",b.end),c.moveStart("character",b.begin),c.select()}},a}(),e=function(a,b,c){function d(b,d){var f=this;if(f.el=b,!f.el)throw new TypeError("Must provide an existing element");if(f.opts=c.extend({},e,d),"undefined"!=typeof f.opts.pattern&&(f.opts.patterns=f._specFromSinglePattern(f.opts.pattern),delete f.opts.pattern),"undefined"==typeof f.opts.patterns)throw new TypeError("Must provide a pattern or array of patterns");f.patternMatcher=a(f.opts.patterns),f._updatePattern(),f.hldrs={},f.focus=0,c.addListener(f.el,"keydown",function(a){f._keyDown(a)}),c.addListener(f.el,"keypress",function(a){f._keyPress(a)}),c.addListener(f.el,"paste",function(a){f._paste(a)}),f.opts.persistent&&(f._processKey("",!1),f.el.blur(),c.addListener(f.el,"focus",function(a){f._focus(a)}),c.addListener(f.el,"click",function(a){f._focus(a)}),c.addListener(f.el,"touchstart",function(a){f._focus(a)}))}var e={persistent:!1,repeat:!1,placeholder:" "},f={9:/[0-9]/,a:/[A-Za-z]/,"*":/[A-Za-z0-9]/};return d.addInptType=function(a,b){f[a]=b},d.prototype.resetPattern=function(c){this.opts.patterns=c?this._specFromSinglePattern(c):this.opts.patterns,this.sel=b.get(this.el),this.val=this.el.value,this.delta=0,this._removeChars(),this.patternMatcher=a(this.opts.patterns);var d=this.patternMatcher.getPattern(this.val);this.mLength=d.mLength,this.chars=d.chars,this.inpts=d.inpts,this._processKey("",!1,!0)},d.prototype._updatePattern=function(){var a=this.patternMatcher.getPattern(this.val);a&&(this.mLength=a.mLength,this.chars=a.chars,this.inpts=a.inpts)},d.prototype._keyDown=function(a){var b=a.which||a.keyCode;return b&&c.isDelKeyDown(a.which,a.keyCode)?(this._processKey(null,b),c.preventDefault(a)):void 0},d.prototype._keyPress=function(a){var b,d;return b=a.which||a.keyCode,d=c.isSpecialKeyPress(a.which,a.keyCode),c.isDelKeyPress(a.which,a.keyCode)||d||c.isModifier(a)?void 0:(this._processKey(String.fromCharCode(b),!1),c.preventDefault(a))},d.prototype._paste=function(a){return this._processKey(c.getClip(a),!1),c.preventDefault(a)},d.prototype._focus=function(){var a=this;setTimeout(function(){var c=b.get(a.el),d=c.end>a.focus,e=0===c.end;(d||e)&&b.set(a.el,a.focus)},0)},d.prototype._processKey=function(a,d,e){if(this.sel=b.get(this.el),this.val=this.el.value,this.delta=0,this.sel.begin!==this.sel.end)this.delta=-1*Math.abs(this.sel.begin-this.sel.end),this.val=c.removeChars(this.val,this.sel.begin,this.sel.end);else if(d&&46===d)this._delete();else if(d&&this.sel.begin-1>=0)this.val=c.removeChars(this.val,this.sel.end-1,this.sel.end),this.delta-=1;else if(d)return!0;d||(this.val=c.addChars(this.val,a,this.sel.begin),this.delta+=a.length),this._formatValue(e)},d.prototype._delete=function(){for(;this.chars[this.sel.begin];)this._nextPos();this.sel.beginthis.focus&&(this.delta+=this.sel.end-this.focus);for(var a=0,b=0;b<=this.mLength;b++){var d,e=this.chars[b],f=this.hldrs[b],g=b+a;g=b>=this.sel.begin?g+this.delta:g,d=this.val.charAt(g),(e&&e===d||f&&f===d)&&(this.val=c.removeChars(this.val,g,g+1),a--)}this.hldrs={},this.focus=this.val.length},d.prototype._validateInpts=function(){for(var a=0;a 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | Register 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 80 | 81 | 82 | 83 | 84 |
85 |
86 |
87 |
88 |
89 | 90 | 91 | 92 | 93 |
94 |
95 |
96 |
97 |
98 |

Register

99 |

Join us now!

100 |
101 |
102 |
103 |
104 | 105 | 106 | 107 |
108 |
109 |
110 |
111 |
112 | 113 | 114 | 115 |
116 |
117 |
118 |
119 |
120 | 121 | 122 | 123 |
124 |
125 |
126 |
127 |
128 | 129 | 130 | 131 |
132 |
133 |
134 |
135 |
136 | Login 137 |
138 |
139 | 140 |
141 |
142 |
143 |
144 |
145 | 146 | 147 | Design and Developed by Rutuja Rajesh 148 | 149 | 150 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 216 | 217 | 218 | -------------------------------------------------------------------------------- /js/plugins/perfect-scrollbar/perfect-scrollbar.min.js: -------------------------------------------------------------------------------- 1 | /*! perfect-scrollbar - v0.5.8 2 | * http://noraesae.github.com/perfect-scrollbar/ 3 | * Copyright (c) 2014 Hyunje Alex Jun; Licensed MIT */ 4 | (function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?e(require("jquery")):e(jQuery)})(function(e){"use strict";function t(e){return"string"==typeof e?parseInt(e,10):~~e}var o={wheelSpeed:1,wheelPropagation:!1,swipePropagation:!0,minScrollbarLength:null,maxScrollbarLength:null,useBothWheelAxes:!1,useKeyboard:!0,suppressScrollX:!1,suppressScrollY:!1,scrollXMarginOffset:0,scrollYMarginOffset:0,includePadding:!1},n=0,r=function(){var e=n++;return function(t){var o=".perfect-scrollbar-"+e;return t===void 0?o:t+o}},l="WebkitAppearance"in document.documentElement.style;e.fn.perfectScrollbar=function(n,i){return this.each(function(){function a(e,o){var n=e+o,r=D-R;j=0>n?0:n>r?r:n;var l=t(j*(Y-D)/(D-R));M.scrollTop(l)}function s(e,o){var n=e+o,r=E-k;W=0>n?0:n>r?r:n;var l=t(W*(C-E)/(E-k));M.scrollLeft(l)}function c(e){return P.minScrollbarLength&&(e=Math.max(e,P.minScrollbarLength)),P.maxScrollbarLength&&(e=Math.min(e,P.maxScrollbarLength)),e}function u(){var e={width:I};e.left=B?M.scrollLeft()+E-C:M.scrollLeft(),N?e.bottom=_-M.scrollTop():e.top=Q+M.scrollTop(),H.css(e);var t={top:M.scrollTop(),height:A};Z?t.right=B?C-M.scrollLeft()-V-J.outerWidth():V-M.scrollLeft():t.left=B?M.scrollLeft()+2*E-C-$-J.outerWidth():$+M.scrollLeft(),G.css(t),U.css({left:W,width:k-z}),J.css({top:j,height:R-et})}function d(){M.removeClass("ps-active-x"),M.removeClass("ps-active-y"),E=P.includePadding?M.innerWidth():M.width(),D=P.includePadding?M.innerHeight():M.height(),C=M.prop("scrollWidth"),Y=M.prop("scrollHeight"),!P.suppressScrollX&&C>E+P.scrollXMarginOffset?(X=!0,I=E-F,k=c(t(I*E/C)),W=t(M.scrollLeft()*(I-k)/(C-E))):(X=!1,k=0,W=0,M.scrollLeft(0)),!P.suppressScrollY&&Y>D+P.scrollYMarginOffset?(O=!0,A=D-tt,R=c(t(A*D/Y)),j=t(M.scrollTop()*(A-R)/(Y-D))):(O=!1,R=0,j=0,M.scrollTop(0)),W>=I-k&&(W=I-k),j>=A-R&&(j=A-R),u(),X&&M.addClass("ps-active-x"),O&&M.addClass("ps-active-y")}function p(){var t,o,n=function(e){s(t,e.pageX-o),d(),e.stopPropagation(),e.preventDefault()},r=function(){H.removeClass("in-scrolling"),e(q).unbind(K("mousemove"),n)};U.bind(K("mousedown"),function(l){o=l.pageX,t=U.position().left,H.addClass("in-scrolling"),e(q).bind(K("mousemove"),n),e(q).one(K("mouseup"),r),l.stopPropagation(),l.preventDefault()}),t=o=null}function f(){var t,o,n=function(e){a(t,e.pageY-o),d(),e.stopPropagation(),e.preventDefault()},r=function(){G.removeClass("in-scrolling"),e(q).unbind(K("mousemove"),n)};J.bind(K("mousedown"),function(l){o=l.pageY,t=J.position().top,G.addClass("in-scrolling"),e(q).bind(K("mousemove"),n),e(q).one(K("mouseup"),r),l.stopPropagation(),l.preventDefault()}),t=o=null}function v(e,t){var o=M.scrollTop();if(0===e){if(!O)return!1;if(0===o&&t>0||o>=Y-D&&0>t)return!P.wheelPropagation}var n=M.scrollLeft();if(0===t){if(!X)return!1;if(0===n&&0>e||n>=C-E&&e>0)return!P.wheelPropagation}return!0}function g(e,t){var o=M.scrollTop(),n=M.scrollLeft(),r=Math.abs(e),l=Math.abs(t);if(l>r){if(0>t&&o===Y-D||t>0&&0===o)return!P.swipePropagation}else if(r>l&&(0>e&&n===C-E||e>0&&0===n))return!P.swipePropagation;return!0}function b(){function e(e){var t=e.originalEvent.deltaX,o=-1*e.originalEvent.deltaY;return(t===void 0||o===void 0)&&(t=-1*e.originalEvent.wheelDeltaX/6,o=e.originalEvent.wheelDeltaY/6),e.originalEvent.deltaMode&&1===e.originalEvent.deltaMode&&(t*=10,o*=10),t!==t&&o!==o&&(t=0,o=e.originalEvent.wheelDelta),[t,o]}function t(t){if(l||!(M.find("select:focus").length>0)){var n=e(t),r=n[0],i=n[1];o=!1,P.useBothWheelAxes?O&&!X?(i?M.scrollTop(M.scrollTop()-i*P.wheelSpeed):M.scrollTop(M.scrollTop()+r*P.wheelSpeed),o=!0):X&&!O&&(r?M.scrollLeft(M.scrollLeft()+r*P.wheelSpeed):M.scrollLeft(M.scrollLeft()-i*P.wheelSpeed),o=!0):(M.scrollTop(M.scrollTop()-i*P.wheelSpeed),M.scrollLeft(M.scrollLeft()+r*P.wheelSpeed)),d(),o=o||v(r,i),o&&(t.stopPropagation(),t.preventDefault())}}var o=!1;window.onwheel!==void 0?M.bind(K("wheel"),t):window.onmousewheel!==void 0&&M.bind(K("mousewheel"),t)}function h(){var t=!1;M.bind(K("mouseenter"),function(){t=!0}),M.bind(K("mouseleave"),function(){t=!1});var o=!1;e(q).bind(K("keydown"),function(n){if((!n.isDefaultPrevented||!n.isDefaultPrevented())&&t){for(var r=document.activeElement?document.activeElement:q.activeElement;r.shadowRoot;)r=r.shadowRoot.activeElement;if(!e(r).is(":input,[contenteditable]")){var l=0,i=0;switch(n.which){case 37:l=-30;break;case 38:i=30;break;case 39:l=30;break;case 40:i=-30;break;case 33:i=90;break;case 32:case 34:i=-90;break;case 35:i=n.ctrlKey?-Y:-D;break;case 36:i=n.ctrlKey?M.scrollTop():D;break;default:return}M.scrollTop(M.scrollTop()-i),M.scrollLeft(M.scrollLeft()+l),o=v(l,i),o&&n.preventDefault()}}})}function w(){function e(e){e.stopPropagation()}J.bind(K("click"),e),G.bind(K("click"),function(e){var o=t(R/2),n=e.pageY-G.offset().top-o,r=D-R,l=n/r;0>l?l=0:l>1&&(l=1),M.scrollTop((Y-D)*l)}),U.bind(K("click"),e),H.bind(K("click"),function(e){var o=t(k/2),n=e.pageX-H.offset().left-o,r=E-k,l=n/r;0>l?l=0:l>1&&(l=1),M.scrollLeft((C-E)*l)})}function m(){function t(){var e=window.getSelection?window.getSelection():document.getSlection?document.getSlection():{rangeCount:0};return 0===e.rangeCount?null:e.getRangeAt(0).commonAncestorContainer}function o(){r||(r=setInterval(function(){return x()?(M.scrollTop(M.scrollTop()+l.top),M.scrollLeft(M.scrollLeft()+l.left),d(),void 0):(clearInterval(r),void 0)},50))}function n(){r&&(clearInterval(r),r=null),H.removeClass("in-scrolling"),G.removeClass("in-scrolling")}var r=null,l={top:0,left:0},i=!1;e(q).bind(K("selectionchange"),function(){e.contains(M[0],t())?i=!0:(i=!1,n())}),e(window).bind(K("mouseup"),function(){i&&(i=!1,n())}),e(window).bind(K("mousemove"),function(e){if(i){var t={x:e.pageX,y:e.pageY},r=M.offset(),a={left:r.left,right:r.left+M.outerWidth(),top:r.top,bottom:r.top+M.outerHeight()};t.xa.right-3?(l.left=5,H.addClass("in-scrolling")):l.left=0,t.ya.top+3-t.y?-5:-20,G.addClass("in-scrolling")):t.y>a.bottom-3?(l.top=5>t.y-a.bottom+3?5:20,G.addClass("in-scrolling")):l.top=0,0===l.top&&0===l.left?n():o()}})}function T(t,o){function n(e,t){M.scrollTop(M.scrollTop()-t),M.scrollLeft(M.scrollLeft()-e),d()}function r(){h=!0}function l(){h=!1}function i(e){return e.originalEvent.targetTouches?e.originalEvent.targetTouches[0]:e.originalEvent}function a(e){var t=e.originalEvent;return t.targetTouches&&1===t.targetTouches.length?!0:t.pointerType&&"mouse"!==t.pointerType&&t.pointerType!==t.MSPOINTER_TYPE_MOUSE?!0:!1}function s(e){if(a(e)){w=!0;var t=i(e);p.pageX=t.pageX,p.pageY=t.pageY,f=(new Date).getTime(),null!==b&&clearInterval(b),e.stopPropagation()}}function c(e){if(!h&&w&&a(e)){var t=i(e),o={pageX:t.pageX,pageY:t.pageY},r=o.pageX-p.pageX,l=o.pageY-p.pageY;n(r,l),p=o;var s=(new Date).getTime(),c=s-f;c>0&&(v.x=r/c,v.y=l/c,f=s),g(r,l)&&(e.stopPropagation(),e.preventDefault())}}function u(){!h&&w&&(w=!1,clearInterval(b),b=setInterval(function(){return x()?.01>Math.abs(v.x)&&.01>Math.abs(v.y)?(clearInterval(b),void 0):(n(30*v.x,30*v.y),v.x*=.8,v.y*=.8,void 0):(clearInterval(b),void 0)},10))}var p={},f=0,v={},b=null,h=!1,w=!1;t&&(e(window).bind(K("touchstart"),r),e(window).bind(K("touchend"),l),M.bind(K("touchstart"),s),M.bind(K("touchmove"),c),M.bind(K("touchend"),u)),o&&(window.PointerEvent?(e(window).bind(K("pointerdown"),r),e(window).bind(K("pointerup"),l),M.bind(K("pointerdown"),s),M.bind(K("pointermove"),c),M.bind(K("pointerup"),u)):window.MSPointerEvent&&(e(window).bind(K("MSPointerDown"),r),e(window).bind(K("MSPointerUp"),l),M.bind(K("MSPointerDown"),s),M.bind(K("MSPointerMove"),c),M.bind(K("MSPointerUp"),u)))}function y(){M.bind(K("scroll"),function(){d()})}function L(){M.unbind(K()),e(window).unbind(K()),e(q).unbind(K()),M.data("perfect-scrollbar",null),M.data("perfect-scrollbar-update",null),M.data("perfect-scrollbar-destroy",null),U.remove(),J.remove(),H.remove(),G.remove(),M=H=G=U=J=X=O=E=D=C=Y=k=W=_=N=Q=R=j=V=Z=$=B=K=null}function S(){d(),y(),p(),f(),w(),m(),b(),(ot||nt)&&T(ot,nt),P.useKeyboard&&h(),M.data("perfect-scrollbar",M),M.data("perfect-scrollbar-update",d),M.data("perfect-scrollbar-destroy",L)}var P=e.extend(!0,{},o),M=e(this),x=function(){return!!M};if("object"==typeof n?e.extend(!0,P,n):i=n,"update"===i)return M.data("perfect-scrollbar-update")&&M.data("perfect-scrollbar-update")(),M;if("destroy"===i)return M.data("perfect-scrollbar-destroy")&&M.data("perfect-scrollbar-destroy")(),M;if(M.data("perfect-scrollbar"))return M.data("perfect-scrollbar");M.addClass("ps-container");var E,D,C,Y,X,k,W,I,O,R,j,A,B="rtl"===M.css("direction"),K=r(),q=this.ownerDocument||document,H=e("
").appendTo(M),U=e("
").appendTo(H),_=t(H.css("bottom")),N=_===_,Q=N?null:t(H.css("top")),z=t(H.css("borderLeftWidth"))+t(H.css("borderRightWidth")),F=t(H.css("marginLeft"))+t(H.css("marginRight")),G=e("
").appendTo(M),J=e("
").appendTo(G),V=t(G.css("right")),Z=V===V,$=Z?null:t(G.css("left")),et=t(G.css("borderTopWidth"))+t(G.css("borderBottomWidth")),tt=t(G.css("marginTop"))+t(G.css("marginBottom")),ot="ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch,nt=null!==window.navigator.msMaxTouchPoints;return S(),M})}}); -------------------------------------------------------------------------------- /all-tickets.php: -------------------------------------------------------------------------------- 1 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | CUSTOMER SUPPORT 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 |
41 |
42 |
43 |
44 |
45 | 46 | 47 | 48 | 49 | 50 | 67 | 68 | 69 | 70 | 71 | 72 |
73 | 74 |
75 | 76 | 77 | 148 | 149 | 150 | 151 | 152 | 153 |
154 | 155 | 156 | 165 | 166 | 167 | 168 |
169 |

List of tickets by all customers

170 |
171 |
172 |
    173 | 183 |
    184 |
    185 |

    '.$row['subject'].'

    186 |
    187 |
    188 | '.$row['status'].'
    189 |
    190 | '.$row['type'].'
    191 |
    192 | '.$row['date'].'
    193 |
    194 | '; 195 | } 196 | ?> 197 |
198 |
199 |
200 | 201 |
202 | 203 | 204 | 205 | 206 |
207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 |
215 | 220 |
221 | 222 | 223 | 224 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | -------------------------------------------------------------------------------- /sql/food.sql: -------------------------------------------------------------------------------- 1 | -- phpMyAdmin SQL Dump 2 | -- version 4.6.5.2 3 | -- https://www.phpmyadmin.net/ 4 | -- 5 | -- Host: 127.0.0.1 6 | -- Generation Time: Mar 30, 2017 at 05:22 PM 7 | -- Server version: 10.1.21-MariaDB 8 | -- PHP Version: 5.6.30 9 | 10 | SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; 11 | SET time_zone = "+00:00"; 12 | 13 | 14 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 15 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 16 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 17 | /*!40101 SET NAMES utf8mb4 */; 18 | 19 | -- 20 | -- Database: `food` 21 | -- 22 | 23 | -- -------------------------------------------------------- 24 | 25 | -- 26 | -- Table structure for table `items` 27 | -- 28 | 29 | CREATE TABLE `items` ( 30 | `id` int(11) NOT NULL, 31 | `name` varchar(20) NOT NULL, 32 | `price` int(11) NOT NULL, 33 | `deleted` tinyint(4) NOT NULL DEFAULT '0' 34 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 35 | 36 | -- 37 | -- Dumping data for table `items` 38 | -- 39 | 40 | INSERT INTO `items` (`id`, `name`, `price`, `deleted`) VALUES 41 | (1, 'Item 1', 25, 1), 42 | (2, 'Item 2', 45, 0), 43 | (3, 'Item 3', 20, 0), 44 | (4, 'Item 4', 15, 1), 45 | (5, 'Item 5', 20, 0); 46 | 47 | -- -------------------------------------------------------- 48 | 49 | -- 50 | -- Table structure for table `orders` 51 | -- 52 | 53 | CREATE TABLE `orders` ( 54 | `id` int(11) NOT NULL, 55 | `customer_id` int(11) NOT NULL, 56 | `address` varchar(300) NOT NULL, 57 | `description` varchar(300) NOT NULL, 58 | `date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, 59 | `payment_type` varchar(16) NOT NULL DEFAULT 'Wallet', 60 | `total` int(11) NOT NULL, 61 | `status` varchar(25) NOT NULL DEFAULT 'Yet to be delivered', 62 | `deleted` tinyint(4) NOT NULL DEFAULT '0' 63 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 64 | 65 | -- 66 | -- Dumping data for table `orders` 67 | -- 68 | 69 | INSERT INTO `orders` (`id`, `customer_id`, `address`, `description`, `date`, `payment_type`, `total`, `status`, `deleted`) VALUES 70 | (1, 2, 'Address 2', 'Sample Description 1', '2017-03-28 17:32:41', 'Wallet', 150, 'Yet to be delivered', 0), 71 | (2, 2, 'New address 2', '', '2017-03-28 17:43:05', 'Wallet', 130, 'Cancelled by Customer', 1), 72 | (3, 3, 'Address 3', 'Sample Description 2', '2017-03-28 19:49:33', 'Cash On Delivery', 130, 'Yet to be delivered', 0), 73 | (4, 3, 'Address 3', '', '2017-03-28 19:52:01', 'Cash On Delivery', 130, 'Cancelled by Customer', 1), 74 | (5, 3, 'New Address 3', '', '2017-03-28 20:47:28', 'Wallet', 285, 'Paused', 0), 75 | (6, 3, 'New Address 3', '', '2017-03-30 00:43:31', 'Wallet', 325, 'Cancelled by Customer', 1); 76 | 77 | -- -------------------------------------------------------- 78 | 79 | -- 80 | -- Table structure for table `order_details` 81 | -- 82 | 83 | CREATE TABLE `order_details` ( 84 | `id` int(11) NOT NULL, 85 | `order_id` int(11) NOT NULL, 86 | `item_id` int(11) NOT NULL, 87 | `quantity` int(11) NOT NULL, 88 | `price` int(11) NOT NULL 89 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 90 | 91 | -- 92 | -- Dumping data for table `order_details` 93 | -- 94 | 95 | INSERT INTO `order_details` (`id`, `order_id`, `item_id`, `quantity`, `price`) VALUES 96 | (1, 1, 2, 2, 90), 97 | (2, 1, 3, 3, 60), 98 | (3, 2, 2, 2, 90), 99 | (4, 2, 3, 2, 40), 100 | (5, 3, 2, 2, 90), 101 | (6, 3, 3, 2, 40), 102 | (7, 4, 2, 2, 90), 103 | (8, 4, 3, 2, 40), 104 | (9, 5, 2, 5, 225), 105 | (10, 5, 3, 2, 40), 106 | (11, 5, 5, 1, 20), 107 | (12, 6, 2, 5, 225), 108 | (13, 6, 3, 3, 60), 109 | (14, 6, 5, 2, 40); 110 | 111 | -- -------------------------------------------------------- 112 | 113 | -- 114 | -- Table structure for table `tickets` 115 | -- 116 | 117 | CREATE TABLE `tickets` ( 118 | `id` int(11) NOT NULL, 119 | `poster_id` int(11) NOT NULL, 120 | `subject` varchar(100) NOT NULL, 121 | `description` varchar(3000) NOT NULL, 122 | `status` varchar(8) NOT NULL DEFAULT 'Open', 123 | `type` varchar(30) NOT NULL DEFAULT 'Others', 124 | `date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, 125 | `deleted` tinyint(4) NOT NULL DEFAULT '0' 126 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 127 | 128 | -- 129 | -- Dumping data for table `tickets` 130 | -- 131 | 132 | INSERT INTO `tickets` (`id`, `poster_id`, `subject`, `description`, `status`, `type`, `date`, `deleted`) VALUES 133 | (1, 2, 'Subject 1', 'New Description for Subject 1', 'Answered', 'Support', '2017-03-30 18:08:51', 0); 134 | 135 | -- -------------------------------------------------------- 136 | 137 | -- 138 | -- Table structure for table `ticket_details` 139 | -- 140 | 141 | CREATE TABLE `ticket_details` ( 142 | `id` int(11) NOT NULL, 143 | `ticket_id` int(11) NOT NULL, 144 | `user_id` int(11) NOT NULL, 145 | `description` varchar(1000) NOT NULL, 146 | `date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP 147 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 148 | 149 | -- 150 | -- Dumping data for table `ticket_details` 151 | -- 152 | 153 | INSERT INTO `ticket_details` (`id`, `ticket_id`, `user_id`, `description`, `date`) VALUES 154 | (1, 1, 2, 'New Description for Subject 1', '2017-03-30 18:08:51'), 155 | (2, 1, 2, 'Reply-1 for Subject 1', '2017-03-30 19:59:09'), 156 | (3, 1, 1, 'Reply-2 for Subject 1 from Administrator.', '2017-03-30 20:35:39'), 157 | (4, 1, 1, 'Reply-3 for Subject 1 from Administrator.', '2017-03-30 20:49:35'); 158 | 159 | -- -------------------------------------------------------- 160 | 161 | -- 162 | -- Table structure for table `users` 163 | -- 164 | 165 | CREATE TABLE `users` ( 166 | `id` int(11) NOT NULL, 167 | `role` varchar(15) NOT NULL DEFAULT 'Customer', 168 | `name` varchar(15) NOT NULL, 169 | `username` varchar(10) NOT NULL, 170 | `password` varchar(16) NOT NULL, 171 | `email` varchar(35) NULL, 172 | `address` varchar(300) NULL, 173 | `contact` bigint(11) NOT NULL, 174 | `verified` tinyint(1) NOT NULL DEFAULT '0', 175 | `deleted` tinyint(4) NOT NULL DEFAULT '0' 176 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 177 | 178 | -- 179 | -- Dumping data for table `users` 180 | -- 181 | 182 | INSERT INTO `users` (`id`, `role`, `name`, `username`, `password`, `email`, `address`, `contact`, `verified`, `deleted`) VALUES 183 | (1, 'Administrator', 'Admin 1', 'root', 'toor', '', 'Address 1', 9898000000, 1, 0), 184 | (2, 'Customer', 'Customer 1', 'user1', 'pass1', 'mail2@example.com', 'Address 2', 9898000001, 1, 0), 185 | (3, 'Customer', 'Customer 2', 'user2', 'pass2', 'mail3@example.com', 'Address 3', 9898000002, 1, 0), 186 | (4, 'Customer', 'Customer 3', 'user3', 'pass3', '', '', 9898000003, 0, 0), 187 | (5, 'Customer', 'Customer 4', 'user4', 'pass4', '', '', 9898000004, 0, 1); 188 | 189 | -- -------------------------------------------------------- 190 | 191 | -- 192 | -- Table structure for table `wallet` 193 | -- 194 | 195 | CREATE TABLE `wallet` ( 196 | `id` int(11) NOT NULL, 197 | `customer_id` int(11) NOT NULL 198 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 199 | 200 | -- 201 | -- Dumping data for table `wallet` 202 | -- 203 | 204 | INSERT INTO `wallet` (`id`, `customer_id`) VALUES 205 | (1, 1), 206 | (2, 2), 207 | (3, 3), 208 | (4, 4), 209 | (5, 5); 210 | 211 | -- -------------------------------------------------------- 212 | 213 | -- 214 | -- Table structure for table `wallet_details` 215 | -- 216 | 217 | CREATE TABLE `wallet_details` ( 218 | `id` int(11) NOT NULL, 219 | `wallet_id` int(11) NOT NULL, 220 | `number` varchar(16) NOT NULL, 221 | `cvv` int(3) NOT NULL, 222 | `balance` int(11) NOT NULL DEFAULT '2000' 223 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 224 | 225 | -- 226 | -- Dumping data for table `wallet_details` 227 | -- 228 | 229 | INSERT INTO `wallet_details` (`id`, `wallet_id`, `number`, `cvv`, `balance`) VALUES 230 | (1, 1, '6155247490533921', 983, 3430), 231 | (2, 2, '1887587142382050', 772, 1850), 232 | (3, 3, '4595809639046830', 532, 1585), 233 | (4, 4, '5475856443351234', 521, 2000), 234 | (5, 5, '9076633115663264', 229, 2000); 235 | 236 | -- 237 | -- Indexes for dumped tables 238 | -- 239 | 240 | -- 241 | -- Indexes for table `items` 242 | -- 243 | ALTER TABLE `items` 244 | ADD PRIMARY KEY (`id`), 245 | ADD UNIQUE KEY `name` (`name`), 246 | ADD UNIQUE KEY `id` (`id`); 247 | 248 | -- 249 | -- Indexes for table `orders` 250 | -- 251 | ALTER TABLE `orders` 252 | ADD PRIMARY KEY (`id`), 253 | ADD UNIQUE KEY `id` (`id`), 254 | ADD KEY `customer_id` (`customer_id`); 255 | 256 | -- 257 | -- Indexes for table `order_details` 258 | -- 259 | ALTER TABLE `order_details` 260 | ADD PRIMARY KEY (`id`), 261 | ADD UNIQUE KEY `id` (`id`), 262 | ADD KEY `item_id` (`item_id`), 263 | ADD KEY `order_id` (`order_id`); 264 | 265 | -- 266 | -- Indexes for table `tickets` 267 | -- 268 | ALTER TABLE `tickets` 269 | ADD PRIMARY KEY (`id`), 270 | ADD KEY `poster_id` (`poster_id`); 271 | 272 | -- 273 | -- Indexes for table `ticket_details` 274 | -- 275 | ALTER TABLE `ticket_details` 276 | ADD PRIMARY KEY (`id`), 277 | ADD KEY `ticket_id` (`ticket_id`), 278 | ADD KEY `user_id` (`user_id`); 279 | 280 | -- 281 | -- Indexes for table `users` 282 | -- 283 | ALTER TABLE `users` 284 | ADD PRIMARY KEY (`id`), 285 | ADD UNIQUE KEY `username` (`username`), 286 | ADD UNIQUE KEY `id` (`id`); 287 | 288 | -- 289 | -- Indexes for table `wallet` 290 | -- 291 | ALTER TABLE `wallet` 292 | ADD PRIMARY KEY (`id`), 293 | ADD UNIQUE KEY `customer_id` (`customer_id`), 294 | ADD UNIQUE KEY `id` (`id`); 295 | 296 | -- 297 | -- Indexes for table `wallet_details` 298 | -- 299 | ALTER TABLE `wallet_details` 300 | ADD PRIMARY KEY (`id`), 301 | ADD UNIQUE KEY `wallet_id` (`wallet_id`), 302 | ADD UNIQUE KEY `id` (`id`); 303 | 304 | -- 305 | -- AUTO_INCREMENT for dumped tables 306 | -- 307 | 308 | -- 309 | -- AUTO_INCREMENT for table `items` 310 | -- 311 | ALTER TABLE `items` 312 | MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; 313 | -- 314 | -- AUTO_INCREMENT for table `orders` 315 | -- 316 | ALTER TABLE `orders` 317 | MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; 318 | -- 319 | -- AUTO_INCREMENT for table `order_details` 320 | -- 321 | ALTER TABLE `order_details` 322 | MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15; 323 | -- 324 | -- AUTO_INCREMENT for table `tickets` 325 | -- 326 | ALTER TABLE `tickets` 327 | MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; 328 | -- 329 | -- AUTO_INCREMENT for table `ticket_details` 330 | -- 331 | ALTER TABLE `ticket_details` 332 | MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; 333 | -- 334 | -- AUTO_INCREMENT for table `users` 335 | -- 336 | ALTER TABLE `users` 337 | MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; 338 | -- 339 | -- AUTO_INCREMENT for table `wallet` 340 | -- 341 | ALTER TABLE `wallet` 342 | MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; 343 | -- 344 | -- AUTO_INCREMENT for table `wallet_details` 345 | -- 346 | ALTER TABLE `wallet_details` 347 | MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; 348 | -- 349 | -- Constraints for dumped tables 350 | -- 351 | 352 | -- 353 | -- Constraints for table `orders` 354 | -- 355 | ALTER TABLE `orders` 356 | ADD CONSTRAINT `orders_ibfk_1` FOREIGN KEY (`customer_id`) REFERENCES `users` (`id`); 357 | 358 | -- 359 | -- Constraints for table `order_details` 360 | -- 361 | ALTER TABLE `order_details` 362 | ADD CONSTRAINT `order_details_ibfk_1` FOREIGN KEY (`item_id`) REFERENCES `items` (`id`), 363 | ADD CONSTRAINT `order_details_ibfk_2` FOREIGN KEY (`order_id`) REFERENCES `orders` (`id`); 364 | 365 | -- 366 | -- Constraints for table `tickets` 367 | -- 368 | ALTER TABLE `tickets` 369 | ADD CONSTRAINT `tickets_ibfk_1` FOREIGN KEY (`poster_id`) REFERENCES `users` (`id`); 370 | 371 | -- 372 | -- Constraints for table `ticket_details` 373 | -- 374 | ALTER TABLE `ticket_details` 375 | ADD CONSTRAINT `ticket_details_ibfk_1` FOREIGN KEY (`ticket_id`) REFERENCES `tickets` (`id`), 376 | ADD CONSTRAINT `ticket_details_ibfk_2` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`); 377 | 378 | -- 379 | -- Constraints for table `wallet` 380 | -- 381 | ALTER TABLE `wallet` 382 | ADD CONSTRAINT `wallet_ibfk_1` FOREIGN KEY (`customer_id`) REFERENCES `users` (`id`); 383 | 384 | -- 385 | -- Constraints for table `wallet_details` 386 | -- 387 | ALTER TABLE `wallet_details` 388 | ADD CONSTRAINT `wallet_details_ibfk_1` FOREIGN KEY (`wallet_id`) REFERENCES `wallet` (`id`); 389 | 390 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 391 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 392 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 393 | -------------------------------------------------------------------------------- /orders.php: -------------------------------------------------------------------------------- 1 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | Past Orders 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 |
42 |
43 |
44 |
45 |
46 | 47 | 48 | 49 | 50 | 51 | 68 | 69 | 70 | 71 | 72 | 73 |
74 | 75 |
76 | 77 | 78 | 149 | 150 | 151 | 152 | 153 | 154 |
155 | 156 | 157 | 166 | 167 | 168 | 169 | 170 |
171 |

List of your past orders with details

172 |
173 | 174 |
175 | 176 | 185 |
186 |

List

187 |
    '; 188 | while($row = mysqli_fetch_array($sql)) 189 | { 190 | $status = $row['status']; 191 | echo '
  • 192 | 193 | Order No. '.$row['id'].' 194 |

    Date: '.$row['date'].'

    195 |

    Payment Type: '.$row['payment_type'].'

    196 |

    Address: '.$row['address'].'

    197 |

    Status: '.($status=='Paused' ? 'Paused     ?' : $status).'

    198 | '.(!empty($row['description']) ? '

    Note: '.$row['description'].'

    ' : '').' 199 | 200 |
  • '; 201 | $order_id = $row['id']; 202 | $sql1 = mysqli_query($con, "SELECT * FROM order_details WHERE order_id = $order_id;"); 203 | while($row1 = mysqli_fetch_array($sql1)) 204 | { 205 | $item_id = $row1['item_id']; 206 | $sql2 = mysqli_query($con, "SELECT * FROM items WHERE id = $item_id;"); 207 | while($row2 = mysqli_fetch_array($sql2)){ 208 | $item_name = $row2['name']; 209 | } 210 | echo '
  • 211 |
    212 |
    213 |

    #'.$row1['item_id'].' '.$item_name.'

    214 |
    215 |
    216 | '.$row1['quantity'].' Pieces 217 |
    218 |
    219 | Rs. '.$row1['price'].' 220 |
    221 |
    222 |
  • '; 223 | $id = $row1['order_id']; 224 | } 225 | echo'
  • 226 |
    227 |
    228 |

    Total

    229 |
    230 |
    231 |   232 |
    233 |
    234 | Rs. '.$row['total'].' 235 |
    '; 236 | if(!preg_match('/^Cancelled/', $status)){ 237 | if($status != 'Delivered'){ 238 | echo '
    239 | 240 | 241 | 242 | 245 |
    '; 246 | } 247 | } 248 | echo'
  • '; 249 | 250 | } 251 | ?> 252 |
253 |
254 |
255 |
256 |
257 | 258 | 259 | 260 | 261 |
262 | 263 | 264 |
265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 |
273 | 278 |
279 | 280 | 281 | 282 | 283 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | -------------------------------------------------------------------------------- /confirm-order.php: -------------------------------------------------------------------------------- 1 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | Provide Order Details 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 |
68 |
69 |
70 |
71 |
72 | 73 | 74 | 75 | 76 | 77 | 94 | 95 | 96 | 97 | 98 | 99 |
100 | 101 |
102 | 103 | 104 | 168 | 169 | 170 | 171 | 172 | 173 |
174 | 175 | 176 | 185 | 186 | 187 | 188 | 189 |
190 |

Receipt

191 |
192 | 193 |
194 |
195 |
196 |
    197 | 199 | 200 |

    Name:'.$name.'

    201 |

    Contact Number: '.$contact.'

    202 |

    Address: '.htmlspecialchars($_POST['address']).'

    203 |

    Payment Type: '.$_POST['payment_type'].'

    204 | '; 205 | 206 | foreach ($_POST as $key => $value) 207 | { 208 | if(is_numeric($key)){ 209 | $result = mysqli_query($con, "SELECT * FROM items WHERE id = $key"); 210 | while($row = mysqli_fetch_array($result)) 211 | { 212 | $price = $row['price']; 213 | $item_name = $row['name']; 214 | $item_id = $row['id']; 215 | } 216 | $price = $value*$price; 217 | echo '
  • 218 |
    219 |
    220 |

    #'.$item_id.' '.$item_name.'

    221 |
    222 |
    223 | '.$value.' Pieces 224 |
    225 |
    226 | Rs. '.$price.' 227 |
    228 |
    229 |
  • '; 230 | $total = $total + $price; 231 | } 232 | } 233 | echo '
  • 234 |
    235 |
    236 |

    Total

    237 |
    238 |
    239 |   240 |
    241 |
    242 | Rs. '.$total.' 243 |
    244 |
    245 |
  • '; 246 | if(!empty($_POST['description'])) 247 | echo '
  • Note: '.htmlspecialchars($_POST['description']).'

  • '; 248 | if($_POST['payment_type'] == 'Wallet') 249 | echo ''; 261 | ?> 262 |
    263 | $value) 265 | { 266 | if(is_numeric($key)){ 267 | echo ''; 268 | } 269 | } 270 | ?> 271 | 272 | 273 | ';}?> 274 | ">'; ?> 275 | 276 |
    277 | 280 |
    281 |
    282 |
283 | 284 | 285 |
286 |
287 |
288 |
289 |
290 |
291 | 292 | 293 | 294 | 295 |
296 | 297 | 298 |
299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 |
307 | 312 |
313 | 314 | 315 | 316 | 317 | 320 | 321 | 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 349 | -------------------------------------------------------------------------------- /all-orders.php: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | All orders 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 |
40 |
41 |
42 |
43 |
44 | 45 | 46 | 47 | 48 | 49 | 62 | 63 | 64 | 65 | 66 | 67 |
68 | 69 |
70 | 71 | 72 | 143 | 144 | 145 | 146 | 147 | 148 |
149 | 150 | 151 | 160 | 161 | 162 | 163 | 164 |
165 |

List of orders by customers with details

166 |
167 | 168 |
169 | 170 | 179 |
180 |

List

181 |
    '; 182 | while($row = mysqli_fetch_array($sql)) 183 | { 184 | $status = $row['status']; 185 | $deleted = $row['deleted']; 186 | echo '
  • 187 | 188 | Order No. '.$row['id'].' 189 |

    Date: '.$row['date'].'

    190 |

    Payment Type: '.$row['payment_type'].'

    191 |

    Status: '.($deleted ? $status : ' 192 |

    193 | 194 | 200 | ').'

    201 | 202 |
  • '; 203 | $order_id = $row['id']; 204 | $customer_id = $row['customer_id']; 205 | $sql1 = mysqli_query($con, "SELECT * FROM order_details WHERE order_id = $order_id;"); 206 | $sql3 = mysqli_query($con, "SELECT * FROM users WHERE id = $customer_id;"); 207 | while($row3 = mysqli_fetch_array($sql3)) 208 | { 209 | echo '
  • 210 |
    211 |

    Name: '.$row3['name'].'

    212 |

    Address: '.$row['address'].'

    213 | '.($row3['contact'] == '' ? '' : '

    Contact: '.$row3['contact'].'

    ').' 214 | '.($row3['email'] == '' ? '' : '

    Email: '.$row3['email'].'

    ').' 215 | '.(!empty($row['description']) ? '

    Note: '.$row['description'].'

    ' : '').' 216 |
  • '; 217 | } 218 | while($row1 = mysqli_fetch_array($sql1)) 219 | { 220 | $item_id = $row1['item_id']; 221 | $sql2 = mysqli_query($con, "SELECT * FROM items WHERE id = $item_id;"); 222 | while($row2 = mysqli_fetch_array($sql2)) 223 | $item_name = $row2['name']; 224 | echo '
  • 225 |
    226 |
    227 |

    #'.$row1['item_id'].' '.$item_name.'

    228 |
    229 |
    230 | '.$row1['quantity'].' Pieces 231 |
    232 |
    233 | Rs. '.$row1['price'].' 234 |
    235 |
    236 |
  • '; 237 | } 238 | echo'
  • 239 |
    240 |
    241 |

    Total

    242 |
    243 |
    244 |   245 |
    246 |
    247 | Rs. '.$row['total'].' 248 |
    '; 249 | if(!$deleted){ 250 | echo ' 253 | '; 254 | } 255 | echo'
  • '; 256 | } 257 | ?> 258 |
259 |
260 |
261 |
262 |
263 | 264 | 265 | 266 | 267 |
268 | 269 | 270 |
271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 |
280 | 285 |
286 | 287 | 288 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | -------------------------------------------------------------------------------- /js/plugins/data-tables/css/jquery.dataTables.min.css: -------------------------------------------------------------------------------- 1 | table.dataTable{width:100%;margin:0 auto;clear:both;border-collapse:separate;border-spacing:0}table.dataTable thead th,table.dataTable tfoot th{font-weight:bold}table.dataTable thead th,table.dataTable thead td{padding:10px 18px;border-bottom:1px solid #111}table.dataTable thead th:active,table.dataTable thead td:active{outline:none}table.dataTable tfoot th,table.dataTable tfoot td{padding:10px 18px 6px 18px;border-top:1px solid #111}table.dataTable thead .sorting,table.dataTable thead .sorting_asc,table.dataTable thead .sorting_desc{cursor:pointer;*cursor:hand}table.dataTable thead .sorting,table.dataTable thead .sorting_asc,table.dataTable thead .sorting_desc,table.dataTable thead .sorting_asc_disabled,table.dataTable thead .sorting_desc_disabled{background-repeat:no-repeat;background-position:center right}table.dataTable thead .sorting{background-image:url("../images/sort_both.png")}table.dataTable thead .sorting_asc{background-image:url("../images/sort_asc.png")}table.dataTable thead .sorting_desc{background-image:url("../images/sort_desc.png")}table.dataTable thead .sorting_asc_disabled{background-image:url("../images/sort_asc_disabled.png")}table.dataTable thead .sorting_desc_disabled{background-image:url("../images/sort_desc_disabled.png")}table.dataTable tbody tr{background-color:#fff}table.dataTable tbody tr.selected{background-color:#b0bed9}table.dataTable tbody th,table.dataTable tbody td{padding:8px 10px}table.dataTable.row-border tbody th,table.dataTable.row-border tbody td,table.dataTable.display tbody th,table.dataTable.display tbody td{border-top:1px solid #ddd}table.dataTable.row-border tbody tr:first-child th,table.dataTable.row-border tbody tr:first-child td,table.dataTable.display tbody tr:first-child th,table.dataTable.display tbody tr:first-child td{border-top:none}table.dataTable.cell-border tbody th,table.dataTable.cell-border tbody td{border-top:1px solid #ddd;border-right:1px solid #ddd}table.dataTable.cell-border tbody tr th:first-child,table.dataTable.cell-border tbody tr td:first-child{border-left:1px solid #ddd}table.dataTable.cell-border tbody tr:first-child th,table.dataTable.cell-border tbody tr:first-child td{border-top:none}table.dataTable.stripe tbody tr.odd,table.dataTable.display tbody tr.odd{background-color:#f9f9f9}table.dataTable.stripe tbody tr.odd.selected,table.dataTable.display tbody tr.odd.selected{background-color:#abb9d3}table.dataTable.hover tbody tr:hover,table.dataTable.hover tbody tr.odd:hover,table.dataTable.hover tbody tr.even:hover,table.dataTable.display tbody tr:hover,table.dataTable.display tbody tr.odd:hover,table.dataTable.display tbody tr.even:hover{background-color:#f5f5f5}table.dataTable.hover tbody tr:hover.selected,table.dataTable.hover tbody tr.odd:hover.selected,table.dataTable.hover tbody tr.even:hover.selected,table.dataTable.display tbody tr:hover.selected,table.dataTable.display tbody tr.odd:hover.selected,table.dataTable.display tbody tr.even:hover.selected{background-color:#a9b7d1}table.dataTable.order-column tbody tr>.sorting_1,table.dataTable.order-column tbody tr>.sorting_2,table.dataTable.order-column tbody tr>.sorting_3,table.dataTable.display tbody tr>.sorting_1,table.dataTable.display tbody tr>.sorting_2,table.dataTable.display tbody tr>.sorting_3{background-color:#f9f9f9}table.dataTable.order-column tbody tr.selected>.sorting_1,table.dataTable.order-column tbody tr.selected>.sorting_2,table.dataTable.order-column tbody tr.selected>.sorting_3,table.dataTable.display tbody tr.selected>.sorting_1,table.dataTable.display tbody tr.selected>.sorting_2,table.dataTable.display tbody tr.selected>.sorting_3{background-color:#acbad4}table.dataTable.display tbody tr.odd>.sorting_1,table.dataTable.order-column.stripe tbody tr.odd>.sorting_1{background-color:#f1f1f1}table.dataTable.display tbody tr.odd>.sorting_2,table.dataTable.order-column.stripe tbody tr.odd>.sorting_2{background-color:#f3f3f3}table.dataTable.display tbody tr.odd>.sorting_3,table.dataTable.order-column.stripe tbody tr.odd>.sorting_3{background-color:#f5f5f5}table.dataTable.display tbody tr.odd.selected>.sorting_1,table.dataTable.order-column.stripe tbody tr.odd.selected>.sorting_1{background-color:#a6b3cd}table.dataTable.display tbody tr.odd.selected>.sorting_2,table.dataTable.order-column.stripe tbody tr.odd.selected>.sorting_2{background-color:#a7b5ce}table.dataTable.display tbody tr.odd.selected>.sorting_3,table.dataTable.order-column.stripe tbody tr.odd.selected>.sorting_3{background-color:#a9b6d0}table.dataTable.display tbody tr.even>.sorting_1,table.dataTable.order-column.stripe tbody tr.even>.sorting_1{background-color:#f9f9f9}table.dataTable.display tbody tr.even>.sorting_2,table.dataTable.order-column.stripe tbody tr.even>.sorting_2{background-color:#fbfbfb}table.dataTable.display tbody tr.even>.sorting_3,table.dataTable.order-column.stripe tbody tr.even>.sorting_3{background-color:#fdfdfd}table.dataTable.display tbody tr.even.selected>.sorting_1,table.dataTable.order-column.stripe tbody tr.even.selected>.sorting_1{background-color:#acbad4}table.dataTable.display tbody tr.even.selected>.sorting_2,table.dataTable.order-column.stripe tbody tr.even.selected>.sorting_2{background-color:#adbbd6}table.dataTable.display tbody tr.even.selected>.sorting_3,table.dataTable.order-column.stripe tbody tr.even.selected>.sorting_3{background-color:#afbdd8}table.dataTable.display tbody tr:hover>.sorting_1,table.dataTable.display tbody tr.odd:hover>.sorting_1,table.dataTable.display tbody tr.even:hover>.sorting_1,table.dataTable.order-column.hover tbody tr:hover>.sorting_1,table.dataTable.order-column.hover tbody tr.odd:hover>.sorting_1,table.dataTable.order-column.hover tbody tr.even:hover>.sorting_1{background-color:#eaeaea}table.dataTable.display tbody tr:hover>.sorting_2,table.dataTable.display tbody tr.odd:hover>.sorting_2,table.dataTable.display tbody tr.even:hover>.sorting_2,table.dataTable.order-column.hover tbody tr:hover>.sorting_2,table.dataTable.order-column.hover tbody tr.odd:hover>.sorting_2,table.dataTable.order-column.hover tbody tr.even:hover>.sorting_2{background-color:#ebebeb}table.dataTable.display tbody tr:hover>.sorting_3,table.dataTable.display tbody tr.odd:hover>.sorting_3,table.dataTable.display tbody tr.even:hover>.sorting_3,table.dataTable.order-column.hover tbody tr:hover>.sorting_3,table.dataTable.order-column.hover tbody tr.odd:hover>.sorting_3,table.dataTable.order-column.hover tbody tr.even:hover>.sorting_3{background-color:#eee}table.dataTable.display tbody tr:hover.selected>.sorting_1,table.dataTable.display tbody tr.odd:hover.selected>.sorting_1,table.dataTable.display tbody tr.even:hover.selected>.sorting_1,table.dataTable.order-column.hover tbody tr:hover.selected>.sorting_1,table.dataTable.order-column.hover tbody tr.odd:hover.selected>.sorting_1,table.dataTable.order-column.hover tbody tr.even:hover.selected>.sorting_1{background-color:#a1aec7}table.dataTable.display tbody tr:hover.selected>.sorting_2,table.dataTable.display tbody tr.odd:hover.selected>.sorting_2,table.dataTable.display tbody tr.even:hover.selected>.sorting_2,table.dataTable.order-column.hover tbody tr:hover.selected>.sorting_2,table.dataTable.order-column.hover tbody tr.odd:hover.selected>.sorting_2,table.dataTable.order-column.hover tbody tr.even:hover.selected>.sorting_2{background-color:#a2afc8}table.dataTable.display tbody tr:hover.selected>.sorting_3,table.dataTable.display tbody tr.odd:hover.selected>.sorting_3,table.dataTable.display tbody tr.even:hover.selected>.sorting_3,table.dataTable.order-column.hover tbody tr:hover.selected>.sorting_3,table.dataTable.order-column.hover tbody tr.odd:hover.selected>.sorting_3,table.dataTable.order-column.hover tbody tr.even:hover.selected>.sorting_3{background-color:#a4b2cb}table.dataTable.no-footer{border-bottom:1px solid #111}table.dataTable.nowrap th,table.dataTable.nowrap td{white-space:nowrap}table.dataTable.compact thead th,table.dataTable.compact thead td{padding:4px 17px 4px 4px}table.dataTable.compact tfoot th,table.dataTable.compact tfoot td{padding:4px}table.dataTable.compact tbody th,table.dataTable.compact tbody td{padding:4px}table.dataTable th.dt-left,table.dataTable td.dt-left{text-align:left}table.dataTable th.dt-center,table.dataTable td.dt-center,table.dataTable td.dataTables_empty{text-align:center}table.dataTable th.dt-right,table.dataTable td.dt-right{text-align:right}table.dataTable th.dt-justify,table.dataTable td.dt-justify{text-align:justify}table.dataTable th.dt-nowrap,table.dataTable td.dt-nowrap{white-space:nowrap}table.dataTable thead th.dt-head-left,table.dataTable thead td.dt-head-left,table.dataTable tfoot th.dt-head-left,table.dataTable tfoot td.dt-head-left{text-align:left}table.dataTable thead th.dt-head-center,table.dataTable thead td.dt-head-center,table.dataTable tfoot th.dt-head-center,table.dataTable tfoot td.dt-head-center{text-align:center}table.dataTable thead th.dt-head-right,table.dataTable thead td.dt-head-right,table.dataTable tfoot th.dt-head-right,table.dataTable tfoot td.dt-head-right{text-align:right}table.dataTable thead th.dt-head-justify,table.dataTable thead td.dt-head-justify,table.dataTable tfoot th.dt-head-justify,table.dataTable tfoot td.dt-head-justify{text-align:justify}table.dataTable thead th.dt-head-nowrap,table.dataTable thead td.dt-head-nowrap,table.dataTable tfoot th.dt-head-nowrap,table.dataTable tfoot td.dt-head-nowrap{white-space:nowrap}table.dataTable tbody th.dt-body-left,table.dataTable tbody td.dt-body-left{text-align:left}table.dataTable tbody th.dt-body-center,table.dataTable tbody td.dt-body-center{text-align:center}table.dataTable tbody th.dt-body-right,table.dataTable tbody td.dt-body-right{text-align:right}table.dataTable tbody th.dt-body-justify,table.dataTable tbody td.dt-body-justify{text-align:justify}table.dataTable tbody th.dt-body-nowrap,table.dataTable tbody td.dt-body-nowrap{white-space:nowrap}table.dataTable,table.dataTable th,table.dataTable td{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.dataTables_wrapper{position:relative;clear:both;*zoom:1;zoom:1}.dataTables_wrapper .dataTables_length{float:left}.dataTables_wrapper .dataTables_filter{float:right;text-align:right}.dataTables_wrapper .dataTables_filter input{margin-left:0.5em}.dataTables_wrapper .dataTables_info{clear:both;float:left;padding-top:0.755em}.dataTables_wrapper .dataTables_paginate{float:right;text-align:right;padding-top:0.25em}.dataTables_wrapper .dataTables_paginate .paginate_button{box-sizing:border-box;display:inline-block;min-width:1.5em;padding:0.5em 1em;margin-left:2px;text-align:center;text-decoration:none !important;cursor:pointer;*cursor:hand;color:#333 !important;border:1px solid transparent}.dataTables_wrapper .dataTables_paginate .paginate_button.current,.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover{color:#333 !important;border:1px solid #cacaca;background-color:#fff;background:-webkit-gradient(linear, left top, left bottom, color-stop(0%, #fff), color-stop(100%, #dcdcdc));background:-webkit-linear-gradient(top, #fff 0%, #dcdcdc 100%);background:-moz-linear-gradient(top, #fff 0%, #dcdcdc 100%);background:-ms-linear-gradient(top, #fff 0%, #dcdcdc 100%);background:-o-linear-gradient(top, #fff 0%, #dcdcdc 100%);background:linear-gradient(to bottom, #fff 0%, #dcdcdc 100%)}.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover,.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active{cursor:default;color:#666 !important;border:1px solid transparent;background:transparent;box-shadow:none}.dataTables_wrapper .dataTables_paginate .paginate_button:hover{color:white !important;border:1px solid #111;background-color:#585858;background:-webkit-gradient(linear, left top, left bottom, color-stop(0%, #585858), color-stop(100%, #111));background:-webkit-linear-gradient(top, #585858 0%, #111 100%);background:-moz-linear-gradient(top, #585858 0%, #111 100%);background:-ms-linear-gradient(top, #585858 0%, #111 100%);background:-o-linear-gradient(top, #585858 0%, #111 100%);background:linear-gradient(to bottom, #585858 0%, #111 100%)}.dataTables_wrapper .dataTables_paginate .paginate_button:active{outline:none;background-color:#2b2b2b;background:-webkit-gradient(linear, left top, left bottom, color-stop(0%, #2b2b2b), color-stop(100%, #0c0c0c));background:-webkit-linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%);background:-moz-linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%);background:-ms-linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%);background:-o-linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%);background:linear-gradient(to bottom, #2b2b2b 0%, #0c0c0c 100%);box-shadow:inset 0 0 3px #111}.dataTables_wrapper .dataTables_paginate .ellipsis{padding:0 1em}.dataTables_wrapper .dataTables_processing{position:absolute;top:50%;left:50%;width:100%;height:40px;margin-left:-50%;margin-top:-25px;padding-top:20px;text-align:center;font-size:1.2em;background-color:white;background:-webkit-gradient(linear, left top, right top, color-stop(0%, rgba(255,255,255,0)), color-stop(25%, rgba(255,255,255,0.9)), color-stop(75%, rgba(255,255,255,0.9)), color-stop(100%, rgba(255,255,255,0)));background:-webkit-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);background:-moz-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);background:-ms-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);background:-o-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);background:linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%)}.dataTables_wrapper .dataTables_length,.dataTables_wrapper .dataTables_filter,.dataTables_wrapper .dataTables_info,.dataTables_wrapper .dataTables_processing,.dataTables_wrapper .dataTables_paginate{color:#333}.dataTables_wrapper .dataTables_scroll{clear:both}.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody{*margin-top:-1px;-webkit-overflow-scrolling:touch}.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody th>div.dataTables_sizing,.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody td>div.dataTables_sizing{height:0;overflow:hidden;margin:0 !important;padding:0 !important}.dataTables_wrapper.no-footer .dataTables_scrollBody{border-bottom:1px solid #111}.dataTables_wrapper.no-footer div.dataTables_scrollHead table,.dataTables_wrapper.no-footer div.dataTables_scrollBody table{border-bottom:none}.dataTables_wrapper:after{visibility:hidden;display:block;content:"";clear:both;height:0}@media screen and (max-width: 767px){.dataTables_wrapper .dataTables_info,.dataTables_wrapper .dataTables_paginate{float:none;text-align:center}.dataTables_wrapper .dataTables_paginate{margin-top:0.5em}}@media screen and (max-width: 640px){.dataTables_wrapper .dataTables_length,.dataTables_wrapper .dataTables_filter{float:none;text-align:center}.dataTables_wrapper .dataTables_filter{margin-top:0.5em}} 2 | -------------------------------------------------------------------------------- /index.php: -------------------------------------------------------------------------------- 1 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | Order Food 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 79 | 80 | 81 | 82 | 83 |
84 |
85 |
86 |
87 |
88 | 89 | 90 | 91 | 92 | 93 | 110 | 111 | 112 | 113 | 114 | 115 |
116 | 117 |
118 | 119 | 120 | 184 | 185 | 186 | 187 | 188 | 189 |
190 | 191 | 192 | 201 | 202 | 203 | 204 | 205 |
206 |

Order your food here.

207 |
208 |
209 |
210 |
211 |

Order Food

212 |
213 |
214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | '; 229 | echo ''; 231 | } 232 | ?> 233 | 234 |
NameItem Price/PieceQuantity
'.$row["name"].''.$row["price"].'
'; 230 | echo '
235 |
236 |
237 | 238 | 239 | 240 |
241 |
242 |
243 | 246 |
247 |
248 | 249 |
250 | 251 |
252 |
253 | 254 | 255 |
256 | 257 | 258 | 259 |
260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 |
270 | 275 |
276 | 277 | 278 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 340 | 341 | 342 | 343 | -------------------------------------------------------------------------------- /js/plugins/jquery-validation/additional-methods.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery Validation Plugin - v1.14.0 - 6/30/2015 2 | * http://jqueryvalidation.org/ 3 | * Copyright (c) 2015 Jörn Zaefferer; Licensed MIT */ 4 | !function(a){"function"==typeof define&&define.amd?define(["jquery","./jquery.validate.min"],a):a(jQuery)}(function(a){!function(){function b(a){return a.replace(/<.[^<>]*?>/g," ").replace(/ | /gi," ").replace(/[.(),;:!?%#$'\"_+=\/\-“”’]*/g,"")}a.validator.addMethod("maxWords",function(a,c,d){return this.optional(c)||b(a).match(/\b\w+\b/g).length<=d},a.validator.format("Please enter {0} words or less.")),a.validator.addMethod("minWords",function(a,c,d){return this.optional(c)||b(a).match(/\b\w+\b/g).length>=d},a.validator.format("Please enter at least {0} words.")),a.validator.addMethod("rangeWords",function(a,c,d){var e=b(a),f=/\b\w+\b/g;return this.optional(c)||e.match(f).length>=d[0]&&e.match(f).length<=d[1]},a.validator.format("Please enter between {0} and {1} words."))}(),a.validator.addMethod("accept",function(b,c,d){var e,f,g="string"==typeof d?d.replace(/\s/g,"").replace(/,/g,"|"):"image/*",h=this.optional(c);if(h)return h;if("file"===a(c).attr("type")&&(g=g.replace(/\*/g,".*"),c.files&&c.files.length))for(e=0;ec;c++)d=h-c,e=f.substring(c,c+1),g+=d*e;return g%11===0},"Please specify a valid bank account number"),a.validator.addMethod("bankorgiroaccountNL",function(b,c){return this.optional(c)||a.validator.methods.bankaccountNL.call(this,b,c)||a.validator.methods.giroaccountNL.call(this,b,c)},"Please specify a valid bank or giro account number"),a.validator.addMethod("bic",function(a,b){return this.optional(b)||/^([A-Z]{6}[A-Z2-9][A-NP-Z1-2])(X{3}|[A-WY-Z0-9][A-Z0-9]{2})?$/.test(a)},"Please specify a valid BIC code"),a.validator.addMethod("cifES",function(a){"use strict";var b,c,d,e,f,g,h=[];if(a=a.toUpperCase(),!a.match("((^[A-Z]{1}[0-9]{7}[A-Z0-9]{1}$|^[T]{1}[A-Z0-9]{8}$)|^[0-9]{8}[A-Z]{1}$)"))return!1;for(d=0;9>d;d++)h[d]=parseInt(a.charAt(d),10);for(c=h[2]+h[4]+h[6],e=1;8>e;e+=2)f=(2*h[e]).toString(),g=f.charAt(1),c+=parseInt(f.charAt(0),10)+(""===g?0:parseInt(g,10));return/^[ABCDEFGHJNPQRSUVW]{1}/.test(a)?(c+="",b=10-parseInt(c.charAt(c.length-1),10),a+=b,h[8].toString()===String.fromCharCode(64+b)||h[8].toString()===a.charAt(a.length-1)):!1},"Please specify a valid CIF number."),a.validator.addMethod("cpfBR",function(a){if(a=a.replace(/([~!@#$%^&*()_+=`{}\[\]\-|\\:;'<>,.\/? ])+/g,""),11!==a.length)return!1;var b,c,d,e,f=0;if(b=parseInt(a.substring(9,10),10),c=parseInt(a.substring(10,11),10),d=function(a,b){var c=10*a%11;return(10===c||11===c)&&(c=0),c===b},""===a||"00000000000"===a||"11111111111"===a||"22222222222"===a||"33333333333"===a||"44444444444"===a||"55555555555"===a||"66666666666"===a||"77777777777"===a||"88888888888"===a||"99999999999"===a)return!1;for(e=1;9>=e;e++)f+=parseInt(a.substring(e-1,e),10)*(11-e);if(d(f,b)){for(f=0,e=1;10>=e;e++)f+=parseInt(a.substring(e-1,e),10)*(12-e);return d(f,c)}return!1},"Please specify a valid CPF number"),a.validator.addMethod("creditcardtypes",function(a,b,c){if(/[^0-9\-]+/.test(a))return!1;a=a.replace(/\D/g,"");var d=0;return c.mastercard&&(d|=1),c.visa&&(d|=2),c.amex&&(d|=4),c.dinersclub&&(d|=8),c.enroute&&(d|=16),c.discover&&(d|=32),c.jcb&&(d|=64),c.unknown&&(d|=128),c.all&&(d=255),1&d&&/^(5[12345])/.test(a)?16===a.length:2&d&&/^(4)/.test(a)?16===a.length:4&d&&/^(3[47])/.test(a)?15===a.length:8&d&&/^(3(0[012345]|[68]))/.test(a)?14===a.length:16&d&&/^(2(014|149))/.test(a)?15===a.length:32&d&&/^(6011)/.test(a)?16===a.length:64&d&&/^(3)/.test(a)?16===a.length:64&d&&/^(2131|1800)/.test(a)?15===a.length:128&d?!0:!1},"Please enter a valid credit card number."),a.validator.addMethod("currency",function(a,b,c){var d,e="string"==typeof c,f=e?c:c[0],g=e?!0:c[1];return f=f.replace(/,/g,""),f=g?f+"]":f+"]?",d="^["+f+"([1-9]{1}[0-9]{0,2}(\\,[0-9]{3})*(\\.[0-9]{0,2})?|[1-9]{1}[0-9]{0,}(\\.[0-9]{0,2})?|0(\\.[0-9]{0,2})?|(\\.[0-9]{1,2})?)$",d=new RegExp(d),this.optional(b)||d.test(a)},"Please specify a valid currency"),a.validator.addMethod("dateFA",function(a,b){return this.optional(b)||/^[1-4]\d{3}\/((0?[1-6]\/((3[0-1])|([1-2][0-9])|(0?[1-9])))|((1[0-2]|(0?[7-9]))\/(30|([1-2][0-9])|(0?[1-9]))))$/.test(a)},a.validator.messages.date),a.validator.addMethod("dateITA",function(a,b){var c,d,e,f,g,h=!1,i=/^\d{1,2}\/\d{1,2}\/\d{4}$/;return i.test(a)?(c=a.split("/"),d=parseInt(c[0],10),e=parseInt(c[1],10),f=parseInt(c[2],10),g=new Date(Date.UTC(f,e-1,d,12,0,0,0)),h=g.getUTCFullYear()===f&&g.getUTCMonth()===e-1&&g.getUTCDate()===d?!0:!1):h=!1,this.optional(b)||h},a.validator.messages.date),a.validator.addMethod("dateNL",function(a,b){return this.optional(b)||/^(0?[1-9]|[12]\d|3[01])[\.\/\-](0?[1-9]|1[012])[\.\/\-]([12]\d)?(\d\d)$/.test(a)},a.validator.messages.date),a.validator.addMethod("extension",function(a,b,c){return c="string"==typeof c?c.replace(/,/g,"|"):"png|jpe?g|gif",this.optional(b)||a.match(new RegExp("\\.("+c+")$","i"))},a.validator.format("Please enter a value with a valid extension.")),a.validator.addMethod("giroaccountNL",function(a,b){return this.optional(b)||/^[0-9]{1,7}$/.test(a)},"Please specify a valid giro account number"),a.validator.addMethod("iban",function(a,b){if(this.optional(b))return!0;var c,d,e,f,g,h,i,j,k,l=a.replace(/ /g,"").toUpperCase(),m="",n=!0,o="",p="";if(c=l.substring(0,2),h={AL:"\\d{8}[\\dA-Z]{16}",AD:"\\d{8}[\\dA-Z]{12}",AT:"\\d{16}",AZ:"[\\dA-Z]{4}\\d{20}",BE:"\\d{12}",BH:"[A-Z]{4}[\\dA-Z]{14}",BA:"\\d{16}",BR:"\\d{23}[A-Z][\\dA-Z]",BG:"[A-Z]{4}\\d{6}[\\dA-Z]{8}",CR:"\\d{17}",HR:"\\d{17}",CY:"\\d{8}[\\dA-Z]{16}",CZ:"\\d{20}",DK:"\\d{14}",DO:"[A-Z]{4}\\d{20}",EE:"\\d{16}",FO:"\\d{14}",FI:"\\d{14}",FR:"\\d{10}[\\dA-Z]{11}\\d{2}",GE:"[\\dA-Z]{2}\\d{16}",DE:"\\d{18}",GI:"[A-Z]{4}[\\dA-Z]{15}",GR:"\\d{7}[\\dA-Z]{16}",GL:"\\d{14}",GT:"[\\dA-Z]{4}[\\dA-Z]{20}",HU:"\\d{24}",IS:"\\d{22}",IE:"[\\dA-Z]{4}\\d{14}",IL:"\\d{19}",IT:"[A-Z]\\d{10}[\\dA-Z]{12}",KZ:"\\d{3}[\\dA-Z]{13}",KW:"[A-Z]{4}[\\dA-Z]{22}",LV:"[A-Z]{4}[\\dA-Z]{13}",LB:"\\d{4}[\\dA-Z]{20}",LI:"\\d{5}[\\dA-Z]{12}",LT:"\\d{16}",LU:"\\d{3}[\\dA-Z]{13}",MK:"\\d{3}[\\dA-Z]{10}\\d{2}",MT:"[A-Z]{4}\\d{5}[\\dA-Z]{18}",MR:"\\d{23}",MU:"[A-Z]{4}\\d{19}[A-Z]{3}",MC:"\\d{10}[\\dA-Z]{11}\\d{2}",MD:"[\\dA-Z]{2}\\d{18}",ME:"\\d{18}",NL:"[A-Z]{4}\\d{10}",NO:"\\d{11}",PK:"[\\dA-Z]{4}\\d{16}",PS:"[\\dA-Z]{4}\\d{21}",PL:"\\d{24}",PT:"\\d{21}",RO:"[A-Z]{4}[\\dA-Z]{16}",SM:"[A-Z]\\d{10}[\\dA-Z]{12}",SA:"\\d{2}[\\dA-Z]{18}",RS:"\\d{18}",SK:"\\d{20}",SI:"\\d{15}",ES:"\\d{20}",SE:"\\d{20}",CH:"\\d{5}[\\dA-Z]{12}",TN:"\\d{20}",TR:"\\d{5}[\\dA-Z]{17}",AE:"\\d{3}\\d{16}",GB:"[A-Z]{4}\\d{14}",VG:"[\\dA-Z]{4}\\d{16}"},g=h[c],"undefined"!=typeof g&&(i=new RegExp("^[A-Z]{2}\\d{2}"+g+"$",""),!i.test(l)))return!1;for(d=l.substring(4,l.length)+l.substring(0,4),j=0;j9&&a.match(/^(?:(?:(?:00\s?|\+)44\s?|0)7(?:[1345789]\d{2}|624)\s?\d{3}\s?\d{3})$/)},"Please specify a valid mobile number"),a.validator.addMethod("nieES",function(a){"use strict";return a=a.toUpperCase(),a.match("((^[A-Z]{1}[0-9]{7}[A-Z0-9]{1}$|^[T]{1}[A-Z0-9]{8}$)|^[0-9]{8}[A-Z]{1}$)")?/^[T]{1}/.test(a)?a[8]===/^[T]{1}[A-Z0-9]{8}$/.test(a):/^[XYZ]{1}/.test(a)?a[8]==="TRWAGMYFPDXBNJZSQVHLCKE".charAt(a.replace("X","0").replace("Y","1").replace("Z","2").substring(0,8)%23):!1:!1},"Please specify a valid NIE number."),a.validator.addMethod("nifES",function(a){"use strict";return a=a.toUpperCase(),a.match("((^[A-Z]{1}[0-9]{7}[A-Z0-9]{1}$|^[T]{1}[A-Z0-9]{8}$)|^[0-9]{8}[A-Z]{1}$)")?/^[0-9]{8}[A-Z]{1}$/.test(a)?"TRWAGMYFPDXBNJZSQVHLCKE".charAt(a.substring(8,0)%23)===a.charAt(8):/^[KLM]{1}/.test(a)?a[8]===String.fromCharCode(64):!1:!1},"Please specify a valid NIF number."),jQuery.validator.addMethod("notEqualTo",function(b,c,d){return this.optional(c)||!a.validator.methods.equalTo.call(this,b,c,d)},"Please enter a different value, values must not be the same."),a.validator.addMethod("nowhitespace",function(a,b){return this.optional(b)||/^\S+$/i.test(a)},"No white space please"),a.validator.addMethod("pattern",function(a,b,c){return this.optional(b)?!0:("string"==typeof c&&(c=new RegExp("^(?:"+c+")$")),c.test(a))},"Invalid format."),a.validator.addMethod("phoneNL",function(a,b){return this.optional(b)||/^((\+|00(\s|\s?\-\s?)?)31(\s|\s?\-\s?)?(\(0\)[\-\s]?)?|0)[1-9]((\s|\s?\-\s?)?[0-9]){8}$/.test(a)},"Please specify a valid phone number."),a.validator.addMethod("phoneUK",function(a,b){return a=a.replace(/\(|\)|\s+|-/g,""),this.optional(b)||a.length>9&&a.match(/^(?:(?:(?:00\s?|\+)44\s?)|(?:\(?0))(?:\d{2}\)?\s?\d{4}\s?\d{4}|\d{3}\)?\s?\d{3}\s?\d{3,4}|\d{4}\)?\s?(?:\d{5}|\d{3}\s?\d{3})|\d{5}\)?\s?\d{4,5})$/)},"Please specify a valid phone number"),a.validator.addMethod("phoneUS",function(a,b){return a=a.replace(/\s+/g,""),this.optional(b)||a.length>9&&a.match(/^(\+?1-?)?(\([2-9]([02-9]\d|1[02-9])\)|[2-9]([02-9]\d|1[02-9]))-?[2-9]([02-9]\d|1[02-9])-?\d{4}$/)},"Please specify a valid phone number"),a.validator.addMethod("phonesUK",function(a,b){return a=a.replace(/\(|\)|\s+|-/g,""),this.optional(b)||a.length>9&&a.match(/^(?:(?:(?:00\s?|\+)44\s?|0)(?:1\d{8,9}|[23]\d{9}|7(?:[1345789]\d{8}|624\d{6})))$/)},"Please specify a valid uk phone number"),a.validator.addMethod("postalCodeCA",function(a,b){return this.optional(b)||/^[ABCEGHJKLMNPRSTVXY]\d[A-Z] \d[A-Z]\d$/.test(a)},"Please specify a valid postal code"),a.validator.addMethod("postalcodeBR",function(a,b){return this.optional(b)||/^\d{2}.\d{3}-\d{3}?$|^\d{5}-?\d{3}?$/.test(a)},"Informe um CEP válido."),a.validator.addMethod("postalcodeIT",function(a,b){return this.optional(b)||/^\d{5}$/.test(a)},"Please specify a valid postal code"),a.validator.addMethod("postalcodeNL",function(a,b){return this.optional(b)||/^[1-9][0-9]{3}\s?[a-zA-Z]{2}$/.test(a)},"Please specify a valid postal code"),a.validator.addMethod("postcodeUK",function(a,b){return this.optional(b)||/^((([A-PR-UWYZ][0-9])|([A-PR-UWYZ][0-9][0-9])|([A-PR-UWYZ][A-HK-Y][0-9])|([A-PR-UWYZ][A-HK-Y][0-9][0-9])|([A-PR-UWYZ][0-9][A-HJKSTUW])|([A-PR-UWYZ][A-HK-Y][0-9][ABEHMNPRVWXY]))\s?([0-9][ABD-HJLNP-UW-Z]{2})|(GIR)\s?(0AA))$/i.test(a)},"Please specify a valid UK postcode"),a.validator.addMethod("require_from_group",function(b,c,d){var e=a(d[1],c.form),f=e.eq(0),g=f.data("valid_req_grp")?f.data("valid_req_grp"):a.extend({},this),h=e.filter(function(){return g.elementValue(this)}).length>=d[0];return f.data("valid_req_grp",g),a(c).data("being_validated")||(e.data("being_validated",!0),e.each(function(){g.element(this)}),e.data("being_validated",!1)),h},a.validator.format("Please fill at least {0} of these fields.")),a.validator.addMethod("skip_or_fill_minimum",function(b,c,d){var e=a(d[1],c.form),f=e.eq(0),g=f.data("valid_skip")?f.data("valid_skip"):a.extend({},this),h=e.filter(function(){return g.elementValue(this)}).length,i=0===h||h>=d[0];return f.data("valid_skip",g),a(c).data("being_validated")||(e.data("being_validated",!0),e.each(function(){g.element(this)}),e.data("being_validated",!1)),i},a.validator.format("Please either skip these fields or fill at least {0} of them.")),a.validator.addMethod("stateUS",function(a,b,c){var d,e="undefined"==typeof c,f=e||"undefined"==typeof c.caseSensitive?!1:c.caseSensitive,g=e||"undefined"==typeof c.includeTerritories?!1:c.includeTerritories,h=e||"undefined"==typeof c.includeMilitary?!1:c.includeMilitary;return d=g||h?g&&h?"^(A[AEKLPRSZ]|C[AOT]|D[CE]|FL|G[AU]|HI|I[ADLN]|K[SY]|LA|M[ADEINOPST]|N[CDEHJMVY]|O[HKR]|P[AR]|RI|S[CD]|T[NX]|UT|V[AIT]|W[AIVY])$":g?"^(A[KLRSZ]|C[AOT]|D[CE]|FL|G[AU]|HI|I[ADLN]|K[SY]|LA|M[ADEINOPST]|N[CDEHJMVY]|O[HKR]|P[AR]|RI|S[CD]|T[NX]|UT|V[AIT]|W[AIVY])$":"^(A[AEKLPRZ]|C[AOT]|D[CE]|FL|GA|HI|I[ADLN]|K[SY]|LA|M[ADEINOST]|N[CDEHJMVY]|O[HKR]|PA|RI|S[CD]|T[NX]|UT|V[AT]|W[AIVY])$":"^(A[KLRZ]|C[AOT]|D[CE]|FL|GA|HI|I[ADLN]|K[SY]|LA|M[ADEINOST]|N[CDEHJMVY]|O[HKR]|PA|RI|S[CD]|T[NX]|UT|V[AT]|W[AIVY])$",d=f?new RegExp(d):new RegExp(d,"i"),this.optional(b)||d.test(a)},"Please specify a valid state"),a.validator.addMethod("strippedminlength",function(b,c,d){return a(b).text().length>=d},a.validator.format("Please enter at least {0} characters")),a.validator.addMethod("time",function(a,b){return this.optional(b)||/^([01]\d|2[0-3]|[0-9])(:[0-5]\d){1,2}$/.test(a)},"Please enter a valid time, between 00:00 and 23:59"),a.validator.addMethod("time12h",function(a,b){return this.optional(b)||/^((0?[1-9]|1[012])(:[0-5]\d){1,2}(\ ?[AP]M))$/i.test(a)},"Please enter a valid time in 12-hour am/pm format"),a.validator.addMethod("url2",function(a,b){return this.optional(b)||/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)*(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(a)},a.validator.messages.url),a.validator.addMethod("vinUS",function(a){if(17!==a.length)return!1;var b,c,d,e,f,g,h=["A","B","C","D","E","F","G","H","J","K","L","M","N","P","R","S","T","U","V","W","X","Y","Z"],i=[1,2,3,4,5,6,7,8,1,2,3,4,5,7,9,2,3,4,5,6,7,8,9],j=[8,7,6,5,4,3,2,10,0,9,8,7,6,5,4,3,2],k=0;for(b=0;17>b;b++){if(e=j[b],d=a.slice(b,b+1),8===b&&(g=d),isNaN(d)){for(c=0;c0){ 10 | $row = $con->query($sql1)->fetch_assoc(); 11 | $type = $row['type']; 12 | $subject = $row['subject']; 13 | $description = $row['description']; 14 | $date = $row['date']; 15 | $status = $row['status']; 16 | $continue=1; 17 | } 18 | else 19 | $continue = 0; 20 | } 21 | 22 | if($continue){ 23 | ?> 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | Ticket No. <?php echo $ticket_id.' - '. $type;?> 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 94 | 95 | 96 | 97 | 98 |
99 |
100 |
101 |
102 |
103 | 104 | 105 | 106 | 107 | 108 | 125 | 126 | 127 | 128 | 129 | 130 |
131 | 132 |
133 | 134 | 135 | 199 | 200 | 201 | 202 | 203 | 204 |
205 | 206 | 207 | 216 | 217 | 218 | 219 | 220 |
221 |

Receipt

222 |
223 | 224 |
225 | 227 |
228 |
229 | Ticket No. '.$ticket_id.' 230 |

Subject: '.$subject.'

231 |

Status: '.$status.'

232 |

Type: '.$type.'

233 |
234 |
235 |
236 | 237 | 238 | 241 |
242 |
243 |
244 | '; 245 | echo '
    '; 246 | $sql1 = mysqli_query($con, "SELECT * from ticket_details WHERE ticket_id = $ticket_id;"); 247 | while($row1 = mysqli_fetch_array($sql1)){ 248 | $sql2 = "SELECT * FROM users WHERE id = ".$row1['user_id'].";"; 249 | if(mysqli_num_rows(mysqli_query($con,$sql2))>0){ 250 | $row2 = $con->query($sql2)->fetch_assoc(); 251 | $name = $row2['name']; 252 | $role1 = $row2['role']; 253 | } 254 | echo ' 255 |
  • 256 | 257 | '.$name.' 258 |

    Date: '.$row1['date'].'

    259 |

    Role: '.$role1.'

    260 | 261 | 262 |
  • 263 |
  • 264 |
    265 |

    '.$row1['description'].'

    266 |
    267 |
  • '; 268 | } 269 | echo '
'; 270 | if($status != 'Closed'){ 271 | echo ' 272 |
273 |
274 |
275 |
276 | 277 | 278 |
279 | 280 | 281 | 282 |
283 |
284 |
285 |
286 | 289 |
290 |
291 |
292 |
293 |
294 |
'; 295 | } 296 | ?> 297 |
298 |
299 |
300 |
301 | 302 | 303 | 304 | 305 |
306 | 307 | 308 |
309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 |
317 | 322 |
323 | 324 | 325 | 326 | 327 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | 339 | 340 | 341 | 342 | 343 | 344 | 345 | 346 | 373 | 374 | 375 | 376 | -------------------------------------------------------------------------------- /view-ticket.php: -------------------------------------------------------------------------------- 1 | 0){ 10 | $row = $con->query($sql1)->fetch_assoc(); 11 | $type = $row['type']; 12 | $subject = $row['subject']; 13 | $description = $row['description']; 14 | $date = $row['date']; 15 | $status = $row['status']; 16 | $continue=1; 17 | } 18 | else 19 | $continue = 0; 20 | } 21 | if($continue){ 22 | ?> 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | Ticket No. <?php echo $ticket_id.' - '. $type;?> 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 93 | 94 | 95 | 96 | 97 |
98 |
99 |
100 |
101 |
102 | 103 | 104 | 105 | 106 | 107 | 124 | 125 | 126 | 127 | 128 | 129 |
130 | 131 |
132 | 133 | 134 | 198 | 199 | 200 | 201 | 202 | 203 |
204 | 205 | 206 | 215 | 216 | 217 | 218 | 219 |
220 |

Receipt

221 |
222 | 223 |
224 | 226 |
227 |
228 | Ticket No. '.$ticket_id.' 229 |

Subject: '.$subject.'

230 |

Status: '.$status.'

231 |

Type: '.$type.'

232 |
233 |
234 |
235 | 236 | 237 | 240 |
241 |
242 |
243 | '; 244 | echo '
    '; 245 | $sql1 = mysqli_query($con, "SELECT * from ticket_details WHERE ticket_id = $ticket_id;"); 246 | while($row1 = mysqli_fetch_array($sql1)){ 247 | $sql2 = "SELECT * FROM users WHERE id = ".$row1['user_id'].";"; 248 | if(mysqli_num_rows(mysqli_query($con,$sql2))>0){ 249 | $row2 = $con->query($sql2)->fetch_assoc(); 250 | $name = $row2['name']; 251 | $role1 = $row2['role']; 252 | } 253 | echo ' 254 |
  • 255 | 256 | '.$name.' 257 |

    Date: '.$row1['date'].'

    258 |

    Role: '.$role1.'

    259 | 260 | 261 |
  • 262 |
  • 263 |
    264 |

    '.$row1['description'].'

    265 |
    266 |
  • '; 267 | } 268 | echo '
'; 269 | if($status != 'Closed'){ 270 | echo ' 271 |
272 |
273 |
274 |
275 | 276 | 277 |
278 | 279 | 280 | 281 |
282 |
283 |
284 |
285 | 288 |
289 |
290 |
291 |
292 |
293 |
'; 294 | } 295 | ?> 296 |
297 |
298 |
299 |
300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 |
316 | 321 |
322 | 323 | 324 | 325 | 326 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | 339 | 340 | 341 | 342 | 343 | 344 | 345 | 372 | 373 | 374 | 375 | -------------------------------------------------------------------------------- /admin-page.php: -------------------------------------------------------------------------------- 1 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | Food Menu 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 80 | 81 | 82 | 83 | 84 |
85 |
86 |
87 |
88 |
89 | 90 | 91 | 92 | 93 | 94 | 107 | 108 | 109 | 110 | 111 | 112 |
113 | 114 |
115 | 116 | 117 | 181 | 182 | 183 | 184 | 185 | 186 |
187 | 188 | 189 | 198 | 199 | 200 | 201 | 202 |
203 |

Add, Edit or Remove Menu Items.

204 |
205 |
206 |
207 |
208 |

Order Food

209 |
210 |
211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | '; 227 | echo ''; 229 | echo ''; 242 | } 243 | ?> 244 | 245 |
NameItem Price/PieceAvailable
'; 226 | echo '
'; 228 | echo '
'; 230 | if($row['deleted'] == 0){ 231 | $text1 = 'selected'; 232 | $text2 = ''; 233 | } 234 | else{ 235 | $text1 = ''; 236 | $text2 = 'selected'; 237 | } 238 | echo '
246 |
247 |
248 | 251 |
252 |
253 |
254 |
255 |
256 |
257 |

Add Item

258 |
259 |
260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | '; 272 | echo ''; 274 | echo ''; 275 | ?> 276 | 277 |
NameItem Price/Piece
'; 271 | echo '
'; 273 | echo '
278 |
279 |
280 | 283 |
284 |
285 |
286 |
287 | 288 |
289 |
290 |
291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 |
305 | 309 |
310 | 311 | 312 | 313 | 314 | 317 | 318 | 319 | 320 | 321 | 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | 385 | 418 | 419 | 420 | 421 | --------------------------------------------------------------------------------