├── Categories.php ├── Contact.php ├── Order.php ├── README.md ├── admin ├── add-category.php ├── add-product.php ├── add-user.php ├── common │ ├── footer.php │ └── header.php ├── config │ ├── constants.php │ ├── login-check.php │ └── session.php ├── delete-category.php ├── delete-order.php ├── delete-product.php ├── delete-user.php ├── edit-category.php ├── edit-order.php ├── edit-product.php ├── edit-user.php ├── index.php ├── login.php ├── logout.php ├── manage-category.php ├── manage-contact.php ├── manage-order.php ├── manage-product.php ├── manage-user.php └── update-password.php ├── css ├── admin.css └── style1.css ├── images ├── 1fried chicken momo.jpg ├── 1grilledsteak.jpg ├── HamroSekuwaLogo1.png ├── baje_logo.png ├── bbq1.jpg ├── bg (2).jpg ├── bg.jpg ├── brisket.jpg ├── buff momo.jpg ├── burger.jpg ├── category │ ├── Category_1413.jpg │ ├── Category_2255.jpg │ ├── Category_2749.jpg │ ├── Category_3552.jpg │ ├── Category_5430.jpg │ ├── Category_6227.jpg │ ├── Category_8162.jpg │ ├── Category_8907.jpg │ └── Category_9701.jpg ├── chicken chilly.jpg ├── chicken.jpg ├── chicken1.jpg ├── chicken2.jpg ├── chickenChowmein.jpg ├── chillySausage.jpg ├── chowmein.jpg ├── dal bhat.jpg ├── fish.jpg ├── food.jpg ├── french fries.jpg ├── fried chicken momo.jpg ├── grilled-chicken-drumsticks.jpg ├── grilled1.jpg ├── grilledsteak.jpg ├── hamroSekuwaLogo.png ├── ice-cream1.jpg ├── logo.png ├── logo1.png ├── logo2.png ├── menu-burger.jpg ├── menu-momo.jpg ├── menu-pizza.jpg ├── momo.jpg ├── momo1.jpg ├── noodles.jpg ├── noodles1.jpg ├── pasta.jpg ├── pizza.jpg ├── pizza2.jpg ├── product │ ├── Product_5019.jpg │ ├── Product_5712.jpg │ ├── Product_7639.jpg │ ├── Product_9071.jpg │ ├── product_1383.jpg │ ├── product_1646.jpg │ ├── product_3482.jpg │ └── product_4759.jpg ├── pumpk.jpg ├── salad1.jpg ├── samosa.jpg ├── sandwich.jpg ├── sandwich1.jpg ├── sandwich2.jpg ├── sandwich4.jpg ├── sausage1.jpg ├── sbuffmomo.jpg └── structure.jpg ├── index.php ├── layout ├── footer.php └── header.php ├── product.php ├── search-results.php └── sql └── hamro_sekuwa.sql /Categories.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 12 | 13 | 14 | 15 |
16 |
17 |

Categories

18 | 0){ 32 | //if count is greater than 0 we will execute the loop 33 | 34 | while($rows=mysqli_fetch_assoc($execute)){ 35 | $id = $rows['id']; 36 | $category_title = $rows['title']; 37 | $category_image = $rows['image_name']; 38 | ?> 39 | 40 | 45 | 46 | No category Found
"; 51 | } 52 | 53 | } 54 | ?> 55 | 56 |
57 | 58 |
59 | 60 | 61 | 62 | -------------------------------------------------------------------------------- /Contact.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 25 | 26 | 27 | feedback submitted Succefully '; 48 | header('location:'.APP_URL); 49 | }else{ 50 | $_SESSION['message'] = '
Could not submit feedback Instantly. Try Again
'; 51 | header('location:'.APP_URL.'contact.php?id=$id'); 52 | } 53 | }else{ 54 | die("Connection Failed".mysqli_connect_error()); 55 | } 56 | } 57 | } 58 | ?> 59 | 60 | 61 | -------------------------------------------------------------------------------- /Order.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 40 | 88 | 89 | Order placed Succefully '; 126 | header('location:'.APP_URL); 127 | }else{ 128 | $_SESSION['message'] = '
Could not Add Order Instantly. Try Again
'; 129 | header('location:'.APP_URL.'order.php?id=$id'); 130 | } 131 | }else{ 132 | die("Connection Failed".mysqli_connect_error()); 133 | } 134 | } 135 | } 136 | ?> 137 | 138 | 139 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # php-project 2 | You can import the database from the sql folder :) 3 | -------------------------------------------------------------------------------- /admin/add-category.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
5 |
6 |

ADD Category

7 |
8 | 9 | 10 |
11 | 12 | 13 | 14 | 17 | 18 | 19 | 20 | 23 | 24 | 25 | 26 | 30 | 31 | 32 | 33 | 37 | 38 | 39 | 40 | 41 |
Title 15 | 16 |
Image 21 | 22 |
Featured 27 | Yes 28 | No 29 |
Status 34 | Active 35 | Inactive 36 |
42 |
43 | 44 |
45 |
46 | 47 | 48 | 49 | 50 | 51 | 52 | Could not upload the image. Try again'; 95 | die(); 96 | }else{ 97 | $image_name = $image; 98 | } 99 | }else{ 100 | $image_name = ""; 101 | } 102 | 103 | //making sql 104 | $sql = "INSERT INTO categories SET 105 | title='$title', 106 | image_name='$image_name', 107 | featured='$featured', 108 | status='$status'"; 109 | 110 | //Check the connection 111 | if($conn){ 112 | $execute = mysqli_query($conn, $sql) or die(mysqli_error($conn)); 113 | //create database 114 | if($execute = TRUE){ 115 | $_SESSION['message']= '
Category Added Succefully
'; 116 | header('location:'.APP_URL.'admin/manage-category.php'); 117 | }else{ 118 | $_SESSION['message'] = '
Could not Add Category Instantly. Try Again
'; 119 | header('location:'.APP_URL.'admin/add-category.php'); 120 | } 121 | }else{ 122 | die("Connection Failed".mysqli_connect_error()); 123 | } 124 | } 125 | } 126 | ?> -------------------------------------------------------------------------------- /admin/add-product.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
5 |
6 |

ADD PRODUCT

7 |
8 | 9 | 10 |
11 | 12 | 13 | 14 | 17 | 18 | 19 | 20 | 23 | 24 | 25 | 26 | 58 | 59 | 60 | 61 | 64 | 65 | 66 | 67 | 70 | 71 | 72 | 73 | 77 | 78 | 79 | 80 | 84 | 85 | 86 | 87 | 88 |
Title 15 | 16 |
Price 21 | 22 |
Category 27 | 57 |
Description 62 | 63 |
Image 68 | 69 |
Featured 74 | Yes 75 | No 76 |
Status 81 | Active 82 | Inactive 83 |
89 |
90 | 91 |
92 |
93 | 94 | 95 | 96 | 97 | 98 | 99 | Could not upload the image. Try again'; 142 | die(); 143 | }else{ 144 | $image_name = $image; 145 | } 146 | }else{ 147 | $image_name = ""; 148 | } 149 | 150 | //making sql 151 | $sql = "INSERT INTO products SET 152 | title='$title', 153 | price='$price', 154 | category_id='$category_id', 155 | description='$description', 156 | image_name='$image_name', 157 | featured='$featured', 158 | status='$status'"; 159 | 160 | //Check the connection 161 | if($conn){ 162 | $execute = mysqli_query($conn, $sql) or die(mysqli_error($conn)); 163 | //create database 164 | if($execute = TRUE){ 165 | $_SESSION['message']= '
Product Added Succefully
'; 166 | header('location:'.APP_URL.'admin/manage-product.php'); 167 | }else{ 168 | $_SESSION['message'] = '
Could not Add Product Instantly. Try Again
'; 169 | header('location:'.APP_URL.'admin/add-product.php'); 170 | } 171 | }else{ 172 | die("Connection Failed".mysqli_connect_error()); 173 | } 174 | } 175 | } 176 | ?> -------------------------------------------------------------------------------- /admin/add-user.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
5 |
6 |

ADD USER

7 |
8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 |
UserName
FullName
Password
28 |
29 | 30 |
31 |
32 | 33 | 34 | 35 | 36 | 37 | 38 | User Added Succefully '; 61 | header('location:'.APP_URL.'admin/manage-user.php'); 62 | }else{ 63 | $_SESSION['message'] = '
Could not Add User Instantly. Try Again
'; 64 | header('location:'.APP_URL.'admin/manage-user.php'); 65 | } 66 | }else{ 67 | die("Connection Failed".mysqli_connect_error()); 68 | } 69 | 70 | } 71 | } 72 | ?> -------------------------------------------------------------------------------- /admin/common/footer.php: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /admin/common/header.php: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | Admin Panel 14 | 15 | 16 | 17 | 37 | -------------------------------------------------------------------------------- /admin/config/constants.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /admin/config/login-check.php: -------------------------------------------------------------------------------- 1 | Please login to access admin'; 4 | header('location:'.APP_URL.'admin/login.php'); 5 | } 6 | ?> -------------------------------------------------------------------------------- /admin/config/session.php: -------------------------------------------------------------------------------- 1 | 11 | -------------------------------------------------------------------------------- /admin/delete-category.php: -------------------------------------------------------------------------------- 1 | Category Deleted Succesfully '; 38 | }else{ 39 | $_SESSION['message'] = '
Something Went Wrong. Try Again
'; 40 | } 41 | header('location:'.APP_URL.'admin/manage-category.php'); 42 | ?> -------------------------------------------------------------------------------- /admin/delete-order.php: -------------------------------------------------------------------------------- 1 | Order Deleted Succesfully '; 28 | }else{ 29 | $_SESSION['message'] = '
Something Went Wrong. Try Again
'; 30 | } 31 | header('location:'.APP_URL.'admin/manage-order.php'); 32 | ?> -------------------------------------------------------------------------------- /admin/delete-product.php: -------------------------------------------------------------------------------- 1 | Product Deleted Succesfully '; 38 | }else{ 39 | $_SESSION['message'] = '
Something Went Wrong. Try Again
'; 40 | } 41 | header('location:'.APP_URL.'admin/manage-product.php'); 42 | ?> -------------------------------------------------------------------------------- /admin/delete-user.php: -------------------------------------------------------------------------------- 1 | Users Deleted Succesfully '; 19 | }else{ 20 | $_SESSION['message'] = '
Something Went Wrong. Try Again
'; 21 | } 22 | header('location:'.APP_URL.'admin/manage-user.php'); 23 | ?> -------------------------------------------------------------------------------- /admin/edit-category.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
5 |
6 |

EDIT CATEGORY

7 |
8 | 9 | 33 | 34 |
35 | 36 | 37 | 38 | 41 | 42 | 43 | 44 | 47 | 48 | No Image Found'; 51 | } 52 | ?> 53 | 54 | 55 | 56 | 59 | 60 | 61 | 62 | 66 | 67 | 68 | 69 | 73 | 74 | 75 | 80 | 81 |
Title 39 | 40 |
Current Image<?php echo $current_image; ?>
Upload New Image 57 | 58 |
Featured 63 | name="featured" id="" value="Yes">Yes 64 | name="featured" id="" value="No">No 65 |
Status 70 | name="status" id="" value="Yes">Active 71 | name="status" id="" value="No">Inactive 72 |
76 | 77 | 78 | 79 |
82 |
83 | 84 |
85 |
86 | 87 | 88 | 89 | 90 | 91 | 92 | Could not upload the image. Try again'; 135 | die(); 136 | }else{ 137 | $image_name = $image; 138 | 139 | //remove the old image 140 | if(file_exists("../images/category/".$current_image)){ 141 | @unlink("../images/category/".$current_image); 142 | } 143 | } 144 | }else{ 145 | $image_name = "$current_image"; 146 | } 147 | //making sql 148 | $sql = "UPDATE categories SET 149 | title='$title', 150 | featured='$featured', 151 | status='$status', 152 | image_name='$image_name' 153 | WHERE id='$id'"; 154 | 155 | //Check the connection 156 | if($conn){ 157 | $execute = mysqli_query($conn, $sql) or die(mysqli_error($conn)); 158 | //create database 159 | if($execute == TRUE){ 160 | $_SESSION['message']= '
Category updated Succefully
'; 161 | header('location:'.APP_URL.'admin/manage-category.php'); 162 | }else{ 163 | $_SESSION['message'] = '
Could not Edit Category Instantly. Try Again
'; 164 | header('location:'.APP_URL.'admin/edit-category.php'); 165 | } 166 | }else{ 167 | die("Connection Failed".mysqli_connect_error()); 168 | } 169 | 170 | } 171 | } 172 | ?> -------------------------------------------------------------------------------- /admin/edit-order.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
5 |
6 |

EDIT ORDER

7 |
8 | 9 | 37 | 38 |
39 | 40 | 41 | 42 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 54 | 55 | 56 | 57 | 60 | 61 | 62 | 63 | 66 | 67 | 68 | 69 | 72 | 73 | 74 | 75 | 79 | 80 |
Name 43 | 44 |
Email 52 | 53 |
Address 58 | 59 |
Contact 64 | 65 |
Quantity 70 | 71 |
76 | 77 | 78 |
81 |
82 | 83 |
84 |
85 | 86 | 87 | 88 | 89 | 90 | 91 | Order updated Succefully '; 123 | header('location:'.APP_URL.'admin/manage-order.php'); 124 | }else{ 125 | $_SESSION['message'] = '
Could not Edit Order Instantly. Try Again
'; 126 | header('location:'.APP_URL.'admin/edit-order.php?id='.$id); 127 | } 128 | }else{ 129 | die("Connection Failed".mysqli_connect_error()); 130 | } 131 | 132 | } 133 | } 134 | ?> -------------------------------------------------------------------------------- /admin/edit-product.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
5 |
6 |

EDIT PRODUCT

7 |
8 | 9 | 36 | 37 |
38 | 39 | 40 | 41 | 44 | 45 | 46 | 47 | 50 | 51 | 52 | 53 | 85 | 86 | 87 | 88 | 91 | 92 | 93 | 94 | 97 | 98 | No Image Found'; 101 | } 102 | ?> 103 | 104 | 105 | 106 | 109 | 110 | 111 | 112 | 116 | 117 | 118 | 119 | 123 | 124 | 125 | 130 | 131 |
Title 42 | 43 |
Price 48 | 49 |
Category 54 | 84 |
Description 89 | 90 |
Current Image<?php echo $current_image; ?>
Image 107 | 108 |
Featured 113 | name="featured" id="" value="Yes">Yes 114 | name="featured" id="" value="No">No 115 |
Status 120 | name="status" id="" value="Yes">Active 121 | name="status" id="" value="No">Inactive 122 |
126 | 127 | 128 | 129 |
132 |
133 | 134 |
135 |
136 | 137 | 138 | 139 | 140 | 141 | 142 | Could not upload the image. Try again'; 188 | die(); 189 | }else{ 190 | $image_name = $image; 191 | 192 | //remove the old image 193 | if(file_exists("../images/product/".$current_image)){ 194 | @unlink("../images/product/".$current_image); 195 | } 196 | } 197 | }else{ 198 | $image_name = "$current_image"; 199 | } 200 | //making sql 201 | $sql = "UPDATE products SET 202 | title='$title', 203 | price='$price', 204 | description='$description', 205 | category_id='$category_id', 206 | featured='$featured', 207 | status='$status', 208 | image_name='$image_name' 209 | WHERE id='$id'"; 210 | 211 | //Check the connection 212 | if($conn){ 213 | $execute = mysqli_query($conn, $sql) or die(mysqli_error($conn)); 214 | //create database 215 | if($execute == TRUE){ 216 | $_SESSION['message']= '
Product updated Succefully
'; 217 | header('location:'.APP_URL.'admin/manage-product.php'); 218 | }else{ 219 | $_SESSION['message'] = '
Could not Edit Product Instantly. Try Again
'; 220 | header('location:'.APP_URL.'admin/edit-product.php?id='.$id); 221 | } 222 | }else{ 223 | die("Connection Failed".mysqli_connect_error()); 224 | } 225 | 226 | } 227 | } 228 | ?> -------------------------------------------------------------------------------- /admin/edit-user.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
5 |
6 |

EDIT USER

7 |
8 | 9 | 31 | 32 |
33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 47 | 48 |
UserName
FullName
45 | 46 |
49 |
50 | 51 |
52 |
53 | 54 | 55 | 56 | 57 | 58 | 59 | User updated Succefully '; 82 | header('location:'.APP_URL.'admin/manage-user.php'); 83 | }else{ 84 | $_SESSION['message'] = '
Could not Edit User Instantly. Try Again
'; 85 | header('location:'.APP_URL.'admin/edit-user.php?id='.$id); 86 | } 87 | }else{ 88 | die("Connection Failed".mysqli_connect_error()); 89 | } 90 | 91 | } 92 | } 93 | ?> -------------------------------------------------------------------------------- /admin/index.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
5 |
6 |

DASHBOARD

7 | 8 |
9 | 10 | 17 |

18 | 19 |
20 | 21 | 29 | 30 |

31 |
32 | Categories 33 |
34 | 35 |
36 | 37 | 45 | 46 |

47 |
48 | Foods 49 |
50 | 51 |
52 | 53 | 61 | 62 |

63 |
64 | Total Orders 65 |
66 | 67 | 68 |
69 | 70 | 78 | 79 |

80 |
81 | Total users 82 |
83 | 84 | 89 | 90 |
91 | 92 |
93 | 94 | 95 | 96 | 97 | 98 | -------------------------------------------------------------------------------- /admin/login.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | Login - Hamro Sekuwa 12 | 13 | 14 |
15 |

Login

16 |
17 | 18 |
19 | 20 |
21 | 22 | 23 |

24 | 25 | 26 |

27 | 28 |
29 |

30 | 31 | 32 |

Designed ByPrashant Kasula

33 |
34 | Login Successful'; 55 | $_SESSION['user'] = $user_name; 56 | header('location:'.APP_URL.'admin/index.php'); 57 | }else{ 58 | $_SESSION['message'] = '
Your Credentials do not match our record
'; 59 | header('location:'.APP_URL.'admin/login.php'); 60 | } 61 | }else{ 62 | $_SESSION['message'] = '
Something is mistake in your query
'; 63 | header('location:'.APP_URL.'admin/login.php'); 64 | } 65 | } 66 | } 67 | ?> 68 | 69 | -------------------------------------------------------------------------------- /admin/logout.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /admin/manage-category.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
5 |
6 |

MANAGE CATEGORY


7 | 8 | 9 |
10 | Add Category 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 0){ 38 | $sn=1; 39 | while( $rows = mysqli_fetch_assoc($exec)){ 40 | $id = $rows['id']; 41 | $title = $rows['title']; 42 | $current_image = $rows['image_name']; 43 | $featured = $rows['featured']; 44 | $status = $rows['status']; 45 | ?> 46 | 47 | 48 | 49 | 52 | 53 | No Image Found'; 56 | } 57 | ?> 58 | 59 | 60 | 61 | 69 | 70 | '; 74 | } 75 | } 76 | 77 | ?> 78 | 79 | 80 |
SNTitleImageFeaturedStatusAction
<?php echo $current_image; ?> 62 | 63 | Edit Category 64 | 65 | 66 | Delete Category 67 | 68 |
No rows to display
81 | 82 |
83 |
84 | 85 | 86 | 87 | -------------------------------------------------------------------------------- /admin/manage-contact.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
5 |
6 | MANAGE CONTACT
7 | 8 | 9 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 0){ 36 | $sn=1; 37 | while( $rows = mysqli_fetch_assoc($exec)){ 38 | $id = $rows['id']; 39 | $name = $rows['customer_name']; 40 | $feedback = $rows['customer_feedback']; 41 | $email = $rows['customer_email']; 42 | 43 | 44 | ?> 45 | 46 | 47 | 48 | 49 | 50 | 51 | '; 55 | } 56 | } 57 | 58 | ?> 59 | 60 | 61 |
SNCustomerNameCustomerEmailCustomerFeedback
No feedbacks to display
62 | 63 |
64 |
65 | 66 | 67 | 68 | -------------------------------------------------------------------------------- /admin/manage-order.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
5 |
6 |

MANAGE ORDER


7 | 8 | 9 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 0){ 42 | $sn=1; 43 | while( $rows = mysqli_fetch_assoc($exec)){ 44 | $id = $rows['id']; 45 | $title = $rows['product']; 46 | $price = $rows['price']; 47 | $quantity = $rows['quantity']; 48 | $total = $rows['total']; 49 | $name = $rows['customer_name']; 50 | $address = $rows['customer_address']; 51 | $email = $rows['customer_email']; 52 | $contact = $rows['customer_contact']; 53 | 54 | 55 | ?> 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 76 | 77 | '; 81 | } 82 | } 83 | 84 | ?> 85 | 86 | 87 |
SNProductPriceQuantityTotalCustomerNameCustomerContactCustomerEmailCustomerAddressAction
69 | 70 | Edit Order 71 | 72 | 73 | Delete Order 74 | 75 |
No products to display
88 | 89 |
90 |
91 | 92 | 93 | 94 | -------------------------------------------------------------------------------- /admin/manage-product.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
5 |
6 |

MANAGE PRODUCT


7 | 8 | 9 |
10 | Add Product 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 0){ 39 | $sn=1; 40 | while( $rows = mysqli_fetch_assoc($exec)){ 41 | $id = $rows['id']; 42 | $title = $rows['title']; 43 | $price = $rows['price']; 44 | $current_image = $rows['image_name']; 45 | $featured = $rows['featured']; 46 | $status = $rows['status']; 47 | ?> 48 | 49 | 50 | 51 | 52 | 55 | 56 | No Image Found'; 59 | } 60 | ?> 61 | 62 | 63 | 64 | 72 | 73 | '; 77 | } 78 | } 79 | 80 | ?> 81 | 82 | 83 |
SNTitlePriceImageFeaturedStatusAction
<?php echo $current_image; ?> 65 | 66 | Edit Product 67 | 68 | 69 | Delete Product 70 | 71 |
No products to display
84 | 85 |
86 |
87 | 88 | 89 | 90 | -------------------------------------------------------------------------------- /admin/manage-user.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
5 |
6 |

MANAGE USERS

7 | 8 | 9 |
10 | Add User 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 0){ 36 | $sn=1; 37 | while( $rows = mysqli_fetch_assoc($exec)){ 38 | $id = $rows['id']; 39 | $full_name = $rows['full_name']; 40 | $user_name = $rows['user_name']; 41 | ?> 42 | 43 | 44 | 45 | 46 | 57 | 58 | '; 62 | } 63 | } 64 | 65 | ?> 66 | 67 | 68 |
SNFullNameUserNameAction
47 | 48 | Change Password 49 | 50 | 51 | Edit User 52 | 53 | 54 | Delete User 55 | 56 |
No rows to display
69 | 70 |
71 |
72 | 73 | 74 | 75 | -------------------------------------------------------------------------------- /admin/update-password.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
5 |
6 |

CHANGE PASSWORD

7 |
8 | 9 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 33 | 34 |
Old Password
New Password
Confirm Password
31 | 32 |
35 |
36 | 37 |
38 |
39 | 40 | 41 | 42 | 43 | 44 | 45 | Password Updated Successfully' ; 81 | header('location:'.APP_URL.'admin/manage-user.php'); 82 | }else{ 83 | //if error 84 | $_SESSION['message'] = '
Something went wrong! Please try again .
'; 85 | header('location:'.APP_URL.'admin/update-password.php?id='.$id); 86 | } 87 | }else{ 88 | $_SESSION['message'] = '
Please confirm your password.
'; 89 | header('location:'.APP_URL.'admin/update-password.php?id='.$id); 90 | } 91 | 92 | }else{ 93 | $_SESSION['message'] = '
Could not find the User.
'; 94 | header('location:'.APP_URL.'admin/update-password.php?id='.$id); 95 | } 96 | }else{ 97 | $_SESSION['message'] = '
Could not execute the query.
'; 98 | header('location:'.APP_URL.'admin/update-password.php?id='.$id); 99 | } 100 | } 101 | } 102 | ?> -------------------------------------------------------------------------------- /css/admin.css: -------------------------------------------------------------------------------- 1 | /* 2 | Author : Prashant Kasula 3 | Contact : kasulaprashant544@gmail.com 4 | */ 5 | *{ 6 | margin: 0; 7 | padding: 0; 8 | font-family: Arial, Helvetica, sans-serif ; 9 | } 10 | .wrapper{ 11 | width: 80%; 12 | margin: 0 auto; 13 | padding: 1%; 14 | } 15 | .text-center { 16 | text-align: center; 17 | } 18 | .contact-link{ 19 | float: right; 20 | /* margin-top: 68px; */ 21 | font-size: 25px; 22 | 23 | } 24 | .contact-link ul { 25 | list-style-type: none; 26 | } 27 | .contact-link ul li { 28 | display: inline; 29 | padding: 0 1%; 30 | font-weight: bold; 31 | } 32 | .contact-link ul li a { 33 | text-decoration: none; 34 | color: #d7182a; 35 | font-weight: bold; 36 | } 37 | 38 | .logo { 39 | width: 15%; 40 | float: left; 41 | } 42 | .img-responsive { 43 | width: 100%; 44 | cursor: pointer; 45 | } 46 | .menubar{ 47 | border-bottom: 3px solid gray; 48 | } 49 | .menu{ 50 | line-height: 155px; 51 | /* margin-top: 68px; */ 52 | font-size: 25px; 53 | } 54 | .menu ul { 55 | list-style-type: none; 56 | } 57 | 58 | .menu ul li { 59 | display: inline; 60 | padding: 0 1%; 61 | font-weight: bold; 62 | } 63 | .menu ul li a { 64 | text-decoration: none; 65 | color: #9b59b6; 66 | font-weight: bold; 67 | } 68 | a:hover { 69 | color: #ff4757; 70 | } 71 | .clearfix { 72 | clear: both; 73 | float: none; 74 | } 75 | .text-right{ 76 | text-align: right; 77 | } 78 | .text-left{ 79 | text-align: left; 80 | } 81 | 82 | /*footer CSS*/ 83 | .footer{ 84 | background-color:#9b59b6; 85 | color: #fff 86 | } 87 | .footer-link{ 88 | text-decoration: none; 89 | color: #f1c40f; 90 | } 91 | .footer-link:hover{ 92 | color:aqua 93 | } 94 | .col-4{ 95 | background-color: white; 96 | width: 18%; 97 | float: left; 98 | margin: 1%; 99 | padding: 2%; 100 | } 101 | 102 | /*cotent CSS*/ 103 | .content{ 104 | background-color: #c9d8ea; 105 | padding-top: 1% 0; 106 | } 107 | 108 | .heading{ 109 | color: #d7182a; 110 | font-weight: 900; 111 | } 112 | .table{ 113 | width: 100%; 114 | } 115 | .table tr th{ 116 | text-align: left; 117 | padding: 1%; 118 | } 119 | .table tr td{ 120 | padding: 1%; 121 | } 122 | a{ 123 | text-decoration: none; 124 | margin: 1%; 125 | } 126 | .btn{ 127 | padding: 1%; 128 | color: white; 129 | font-size: 1rem; 130 | border-radius: 5px; 131 | border: none; 132 | } 133 | .btn-primary{ 134 | background-color: #2ed573; 135 | cursor: pointer; 136 | } 137 | .btn-primary:hover{ 138 | background-color: #7bed9f; 139 | } 140 | .btn-secondary{ 141 | background-color: #1e90ff; 142 | } 143 | .btn-secondary:hover{ 144 | background-color: #70a1ff; 145 | } 146 | .btn-danger{ 147 | background-color: #ff4757; 148 | } 149 | .btn-danger:hover{ 150 | background-color: white; 151 | color: #ff6b81; 152 | } 153 | .form-control{ 154 | width: 80%; 155 | padding: 1%; 156 | border-radius: 5px; 157 | border: 1px solid #a4b0be; 158 | } 159 | .text-right{ 160 | text-align: right; 161 | } 162 | .success{ 163 | color: white; 164 | background-color: #2ed573; 165 | } 166 | .error{ 167 | color: white; 168 | background-color: #ff4757; 169 | } 170 | /* Login page CSS */ 171 | .login{ 172 | border: 1px solid red; 173 | width: 20%; 174 | margin: 10% auto; 175 | padding: 2%; 176 | } 177 | .form-control-login{ 178 | width: 50%; 179 | padding: 1%; 180 | border-radius: 5px; 181 | border: 1px solid #a4b0be; 182 | } 183 | .bordertable{ 184 | border: 1px solid black; 185 | border-spacing: 0px; 186 | } 187 | .bordertable tr th{ 188 | text-align: left; 189 | padding: 1%; 190 | border: 1px solid black;padding: 4px; 191 | } 192 | .bordertable tr td{ 193 | padding: 1%; 194 | border: 1px solid black;padding: 4px; 195 | } -------------------------------------------------------------------------------- /css/style1.css: -------------------------------------------------------------------------------- 1 | /* 2 | Author : Prashant Kasula 3 | Contact : kasulaprashant544@gmail.com 4 | 5 | /*CSS for All*/ 6 | .container { 7 | width: 80%; 8 | margin: 0 auto; 9 | padding: 1%; 10 | } 11 | 12 | * { 13 | margin: 0 0; 14 | padding: 0 0; 15 | } 16 | 17 | .img-responsive { 18 | width: 100%; 19 | cursor: pointer; 20 | } 21 | 22 | .img-rounded{ 23 | border-radius: 10px; 24 | } 25 | 26 | .text-right { 27 | text-align: right; 28 | } 29 | 30 | .text-left { 31 | text-align: left; 32 | } 33 | 34 | .text-center { 35 | text-align: center; 36 | font-size: 30px; 37 | font-weight: 400; 38 | 39 | } 40 | 41 | .text-white{ 42 | color: white; 43 | font-size: 30px; 44 | } 45 | a { 46 | text-decoration: none; 47 | color: #ff6b81; 48 | } 49 | a:hover { 50 | color: #ff4757; 51 | } 52 | .clearfix { 53 | clear: both; 54 | float: none; 55 | } 56 | 57 | .btn{ 58 | font-size: 1.2rem; 59 | border: none; 60 | padding: 1%; 61 | border-radius: 5px; 62 | cursor: pointer; 63 | } 64 | .btn-primary{ 65 | color: white; 66 | background-color: #e67e22; 67 | } 68 | .btn-primary:hover{ 69 | color: white; 70 | background-color: #d35400; 71 | } 72 | 73 | h2{ 74 | color: #57606f; 75 | margin-bottom: 2%; 76 | } 77 | h3{ 78 | font-size: 1.3rem; 79 | } 80 | 81 | p{ 82 | font-size: 25px; 83 | } 84 | 85 | /*CSS for navbar*/ 86 | .logo { 87 | width: 20%; 88 | float: left; 89 | } 90 | 91 | .menu{ 92 | margin-top: 68px; 93 | font-size: 25px; 94 | } 95 | .menu ul { 96 | list-style-type: none; 97 | } 98 | 99 | .menu ul li { 100 | display: inline; 101 | padding: 0 1%; 102 | font-weight: bold; 103 | } 104 | /*CSS ofor navbar*/ 105 | 106 | /* css for search bar */ 107 | .search{ 108 | background-image: url(../images/pasta.jpg); 109 | background-size: cover ; 110 | background-repeat: no-repeat; 111 | padding: 7% 0; 112 | background-position: center; 113 | } 114 | 115 | .search input[type=search]{ 116 | width: 50%; 117 | border: none; 118 | font-size: 1.2rem; 119 | border-radius: 5px; 120 | padding: 1%; 121 | } 122 | 123 | /*css for categories*/ 124 | .categories{ 125 | padding:4% 0; 126 | } 127 | .card{ 128 | width: 28%; 129 | margin:2%; 130 | float: left; 131 | transition: 0.8s; 132 | } 133 | .card:hover{ 134 | transform: scale(1.08); 135 | } 136 | 137 | /* .container .card img:hover{ 138 | border: 4px solid rgb(67, 159, 196); 139 | } */ 140 | 141 | .float-container{ 142 | position: relative; 143 | } 144 | .float-text{ 145 | position: absolute; 146 | left: 37%; 147 | bottom: 40px; 148 | } 149 | 150 | /* CSS for food menu */ 151 | .food-menu{ 152 | padding: 4% 0; 153 | background: whitesmoke; 154 | } 155 | .box{ 156 | width: 43%; 157 | float: left; 158 | padding: 2%; 159 | margin: 1%; 160 | background: white; 161 | border-radius: 10px; 162 | box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); 163 | } 164 | 165 | .box:hover{ 166 | transition: 1s; 167 | transform: scale(1.05); 168 | } 169 | .box-img{ 170 | width: 20%; 171 | float: left; 172 | } 173 | .box-desc{ 174 | width: 70%; 175 | float: left; 176 | margin: 2%; 177 | } 178 | .item-price{ 179 | font-size: 1.3rem; 180 | padding: 1% 0; 181 | } 182 | .item-desc{ 183 | font-size: 1rem; 184 | padding: 1%; 185 | color: gray; 186 | padding-bottom: 1%; 187 | } 188 | .social{ 189 | padding: 4% 0; 190 | } 191 | .social ul{ 192 | list-style-type: none; 193 | } 194 | .social ul li{ 195 | display: inline; 196 | padding: 0 1%; 197 | } 198 | 199 | 200 | .fb-img:hover{ 201 | background-color: #0680dd; 202 | border-radius: 10px; 203 | } 204 | 205 | .yt-img:hover{ 206 | background-color: #ea2f3e; 207 | border-radius: 5px; 208 | } 209 | 210 | .twit-img:hover{ 211 | background-color: rgb(131 202 245 / 1); 212 | border-radius: 10px; 213 | } 214 | 215 | .insta-img:hover{ 216 | background-color: #ea496a; 217 | border-radius: 10px; 218 | } 219 | .contact-heading{ 220 | padding:3% 0; 221 | } 222 | .form-horizontal{ 223 | width: 60%; 224 | margin: 4% auto; 225 | padding: 4%; 226 | border-radius: 15px; 227 | background-color: whitesmoke; 228 | box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); 229 | } 230 | 231 | .form-horizontal label{ 232 | width: 100%; 233 | padding: 10% 0; 234 | margin: 14% 0; 235 | font-size: 1.2rem; 236 | font-weight: bold; 237 | } 238 | .form-control{ 239 | border: none; 240 | width: 98%; 241 | font-size: 1.5rem; 242 | border-radius: 5px; 243 | padding: 1%; 244 | margin: 1% auto; 245 | } 246 | .form-horizontal button{ 247 | width: 50%; 248 | /* margin-left: 26%; */ 249 | margin-top: 2%; 250 | } 251 | fieldset{ 252 | border: 1px solid blue; 253 | border-radius: 10px; 254 | padding: 2%; 255 | margin: 2% 0; 256 | } 257 | fieldset .btn{ 258 | margin-left: 24%; 259 | } 260 | /* Responsive or Mobile Devices */ 261 | @media screen and (max-width: 728px) { 262 | .logo{ 263 | width: 80%; 264 | float: none; 265 | padding: 1% 0; 266 | left: 40%; 267 | } 268 | .menu{ 269 | width: 100%; 270 | font-size: 1rem; 271 | float: none; 272 | text-align: center!important; 273 | font-weight: unset; 274 | } 275 | .box{ 276 | width: 90%; 277 | padding: 4%; 278 | margin-bottom: 15px; 279 | } 280 | 281 | .h2{ 282 | padding: 10% 0; 283 | } 284 | .search{ 285 | padding: 10% 0; 286 | } 287 | .search input[type=search]{ 288 | width: 90%; 289 | padding: 2% 0; 290 | margin: 4% 0; 291 | font-size: 1rem; 292 | line-height: 10px; 293 | } 294 | .btn{ 295 | width: 90%; 296 | } 297 | .categories{ 298 | padding: 10% 0; 299 | } 300 | .card{ 301 | width: 90%; 302 | padding: 0 5%; 303 | } 304 | .float-text{ 305 | left: 40%; 306 | } 307 | .food-menu{ 308 | padding: 10% 0; 309 | } 310 | .social{ 311 | padding: 10% 0; 312 | } 313 | } -------------------------------------------------------------------------------- /images/1fried chicken momo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/1fried chicken momo.jpg -------------------------------------------------------------------------------- /images/1grilledsteak.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/1grilledsteak.jpg -------------------------------------------------------------------------------- /images/HamroSekuwaLogo1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/HamroSekuwaLogo1.png -------------------------------------------------------------------------------- /images/baje_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/baje_logo.png -------------------------------------------------------------------------------- /images/bbq1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/bbq1.jpg -------------------------------------------------------------------------------- /images/bg (2).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/bg (2).jpg -------------------------------------------------------------------------------- /images/bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/bg.jpg -------------------------------------------------------------------------------- /images/brisket.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/brisket.jpg -------------------------------------------------------------------------------- /images/buff momo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/buff momo.jpg -------------------------------------------------------------------------------- /images/burger.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/burger.jpg -------------------------------------------------------------------------------- /images/category/Category_1413.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/category/Category_1413.jpg -------------------------------------------------------------------------------- /images/category/Category_2255.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/category/Category_2255.jpg -------------------------------------------------------------------------------- /images/category/Category_2749.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/category/Category_2749.jpg -------------------------------------------------------------------------------- /images/category/Category_3552.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/category/Category_3552.jpg -------------------------------------------------------------------------------- /images/category/Category_5430.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/category/Category_5430.jpg -------------------------------------------------------------------------------- /images/category/Category_6227.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/category/Category_6227.jpg -------------------------------------------------------------------------------- /images/category/Category_8162.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/category/Category_8162.jpg -------------------------------------------------------------------------------- /images/category/Category_8907.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/category/Category_8907.jpg -------------------------------------------------------------------------------- /images/category/Category_9701.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/category/Category_9701.jpg -------------------------------------------------------------------------------- /images/chicken chilly.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/chicken chilly.jpg -------------------------------------------------------------------------------- /images/chicken.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/chicken.jpg -------------------------------------------------------------------------------- /images/chicken1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/chicken1.jpg -------------------------------------------------------------------------------- /images/chicken2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/chicken2.jpg -------------------------------------------------------------------------------- /images/chickenChowmein.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/chickenChowmein.jpg -------------------------------------------------------------------------------- /images/chillySausage.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/chillySausage.jpg -------------------------------------------------------------------------------- /images/chowmein.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/chowmein.jpg -------------------------------------------------------------------------------- /images/dal bhat.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/dal bhat.jpg -------------------------------------------------------------------------------- /images/fish.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/fish.jpg -------------------------------------------------------------------------------- /images/food.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/food.jpg -------------------------------------------------------------------------------- /images/french fries.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/french fries.jpg -------------------------------------------------------------------------------- /images/fried chicken momo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/fried chicken momo.jpg -------------------------------------------------------------------------------- /images/grilled-chicken-drumsticks.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/grilled-chicken-drumsticks.jpg -------------------------------------------------------------------------------- /images/grilled1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/grilled1.jpg -------------------------------------------------------------------------------- /images/grilledsteak.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/grilledsteak.jpg -------------------------------------------------------------------------------- /images/hamroSekuwaLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/hamroSekuwaLogo.png -------------------------------------------------------------------------------- /images/ice-cream1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/ice-cream1.jpg -------------------------------------------------------------------------------- /images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/logo.png -------------------------------------------------------------------------------- /images/logo1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/logo1.png -------------------------------------------------------------------------------- /images/logo2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/logo2.png -------------------------------------------------------------------------------- /images/menu-burger.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/menu-burger.jpg -------------------------------------------------------------------------------- /images/menu-momo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/menu-momo.jpg -------------------------------------------------------------------------------- /images/menu-pizza.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/menu-pizza.jpg -------------------------------------------------------------------------------- /images/momo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/momo.jpg -------------------------------------------------------------------------------- /images/momo1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/momo1.jpg -------------------------------------------------------------------------------- /images/noodles.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/noodles.jpg -------------------------------------------------------------------------------- /images/noodles1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/noodles1.jpg -------------------------------------------------------------------------------- /images/pasta.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/pasta.jpg -------------------------------------------------------------------------------- /images/pizza.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/pizza.jpg -------------------------------------------------------------------------------- /images/pizza2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/pizza2.jpg -------------------------------------------------------------------------------- /images/product/Product_5019.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/product/Product_5019.jpg -------------------------------------------------------------------------------- /images/product/Product_5712.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/product/Product_5712.jpg -------------------------------------------------------------------------------- /images/product/Product_7639.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/product/Product_7639.jpg -------------------------------------------------------------------------------- /images/product/Product_9071.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/product/Product_9071.jpg -------------------------------------------------------------------------------- /images/product/product_1383.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/product/product_1383.jpg -------------------------------------------------------------------------------- /images/product/product_1646.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/product/product_1646.jpg -------------------------------------------------------------------------------- /images/product/product_3482.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/product/product_3482.jpg -------------------------------------------------------------------------------- /images/product/product_4759.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/product/product_4759.jpg -------------------------------------------------------------------------------- /images/pumpk.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/pumpk.jpg -------------------------------------------------------------------------------- /images/salad1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/salad1.jpg -------------------------------------------------------------------------------- /images/samosa.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/samosa.jpg -------------------------------------------------------------------------------- /images/sandwich.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/sandwich.jpg -------------------------------------------------------------------------------- /images/sandwich1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/sandwich1.jpg -------------------------------------------------------------------------------- /images/sandwich2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/sandwich2.jpg -------------------------------------------------------------------------------- /images/sandwich4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/sandwich4.jpg -------------------------------------------------------------------------------- /images/sausage1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/sausage1.jpg -------------------------------------------------------------------------------- /images/sbuffmomo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/sbuffmomo.jpg -------------------------------------------------------------------------------- /images/structure.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kprashant544/php-project/3e846bca4c3b0202c1079d1ce456b53349b1b67e/images/structure.jpg -------------------------------------------------------------------------------- /index.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 13 | 14 | 15 | 16 |
17 |
18 |

Categories

19 | 0){ 33 | //if count is greater than 0 we will execute the loop 34 | 35 | while($rows=mysqli_fetch_assoc($execute)){ 36 | $id = $rows['id']; 37 | $category_title = $rows['title']; 38 | $category_image = $rows['image_name']; 39 | ?> 40 | 41 |
42 | <?php echo$category_title; ?> 43 |

44 |
45 |
46 | No category Found
"; 51 | } 52 | 53 | } 54 | ?> 55 | 56 |
57 | 58 |
59 | 60 | 61 | 62 |
63 |
64 |

Explore Products

65 | 0){ 79 | //run the while loop 80 | while($pro_rows= mysqli_fetch_assoc($pro_exec)){ 81 | $pro_id = $pro_rows['id']; 82 | $pro_title = $pro_rows['title']; 83 | $pro_description = $pro_rows['description']; 84 | $pro_price = $pro_rows['price']; 85 | $pro_image = $pro_rows['image_name']; 86 | ?> 87 |
88 |
89 | <?php echo $pro_title; ?> 90 |
91 |
92 |

93 |

Rs.

94 |

95 | Order Now 96 |
97 |
98 | No Products found
"; 102 | 103 | } 104 | } 105 | ?> 106 |
107 | 108 |
109 | 110 | 111 | 112 | -------------------------------------------------------------------------------- /layout/footer.php: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 | 26 |
27 |
28 | 29 | 30 | 31 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /layout/header.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | Hamro Sekuwa 12 | 13 | 14 | 15 | 16 | 33 | -------------------------------------------------------------------------------- /product.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 12 | 13 | 14 | 15 |
16 |
17 |

Explore Products

18 | 0){ 32 | //run the while loop 33 | while($pro_rows= mysqli_fetch_assoc($pro_exec)){ 34 | $pro_id = $pro_rows['id']; 35 | $pro_title = $pro_rows['title']; 36 | $pro_description = $pro_rows['description']; 37 | $pro_price = $pro_rows['price']; 38 | $pro_image = $pro_rows['image_name']; 39 | ?> 40 |
41 |
42 | <?php echo $pro_title; ?> 43 |
44 |
45 |

46 |

Rs.

47 |

48 | Order Now 49 |
50 |
51 | No Products found
"; 55 | 56 | } 57 | } 58 | ?> 59 |
60 | 61 |
62 | 63 | 64 | 65 | -------------------------------------------------------------------------------- /search-results.php: -------------------------------------------------------------------------------- 1 | 0){ 22 | ?> 23 | 24 |
25 |
26 |

Search Results

27 | 36 |
37 |
38 | <?php echo $title; ?> 39 |
40 |
41 |

42 |

Rs.

43 |

44 | Order Now 45 |
46 |
47 | 50 |
51 |
52 |
53 | 54 | No Results Found"; 58 | } 59 | } 60 | 61 | include('layout/footer.php'); 62 | ?> -------------------------------------------------------------------------------- /sql/hamro_sekuwa.sql: -------------------------------------------------------------------------------- 1 | -- phpMyAdmin SQL Dump 2 | -- version 5.2.0 3 | -- https://www.phpmyadmin.net/ 4 | -- 5 | -- Host: 127.0.0.1 6 | -- Generation Time: Mar 07, 2023 at 03:41 PM 7 | -- Server version: 10.4.27-MariaDB 8 | -- PHP Version: 8.2.0 9 | 10 | SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; 11 | START TRANSACTION; 12 | SET time_zone = "+00:00"; 13 | 14 | 15 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 16 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 17 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 18 | /*!40101 SET NAMES utf8mb4 */; 19 | 20 | -- 21 | -- Database: `hamro_sekuwa` 22 | -- 23 | 24 | -- -------------------------------------------------------- 25 | 26 | -- 27 | -- Table structure for table `categories` 28 | -- 29 | 30 | CREATE TABLE `categories` ( 31 | `id` int(10) UNSIGNED NOT NULL, 32 | `title` varchar(150) NOT NULL, 33 | `image_name` varchar(255) DEFAULT NULL, 34 | `featured` varchar(10) NOT NULL, 35 | `status` varchar(10) NOT NULL 36 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; 37 | 38 | -- 39 | -- Dumping data for table `categories` 40 | -- 41 | 42 | INSERT INTO `categories` (`id`, `title`, `image_name`, `featured`, `status`) VALUES 43 | (10, 'PIZZa', 'Category_5430.jpg', 'No', 'Yes'), 44 | (19, 'Burger', 'Category_9701.jpg', 'Yes', 'Yes'), 45 | (20, 'MOMO', 'Category_1413.jpg', 'Yes', 'Yes'), 46 | (28, 'Chicken ', 'Category_2255.jpg', 'No', 'Yes'), 47 | (29, 'Sausage', 'Category_2749.jpg', 'No', 'Yes'), 48 | (30, 'Ice cream', 'Category_8162.jpg', 'No', 'Yes'), 49 | (31, 'Fish', 'Category_6227.jpg', 'No', 'Yes'), 50 | (32, 'Sandwich', 'Category_3552.jpg', 'No', 'Yes'), 51 | (33, 'Steak', 'Category_8907.jpg', 'Yes', 'Yes'); 52 | 53 | -- -------------------------------------------------------- 54 | 55 | -- 56 | -- Table structure for table `contacts` 57 | -- 58 | 59 | CREATE TABLE `contacts` ( 60 | `id` int(10) NOT NULL, 61 | `customer_name` varchar(100) NOT NULL, 62 | `customer_email` varchar(100) NOT NULL, 63 | `customer_feedback` text NOT NULL 64 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; 65 | 66 | -- 67 | -- Dumping data for table `contacts` 68 | -- 69 | 70 | INSERT INTO `contacts` (`id`, `customer_name`, `customer_email`, `customer_feedback`) VALUES 71 | (2, 'Benz', 'food22@outlook.com', 'Best Wishes !'); 72 | 73 | -- -------------------------------------------------------- 74 | 75 | -- 76 | -- Table structure for table `orders` 77 | -- 78 | 79 | CREATE TABLE `orders` ( 80 | `id` int(10) UNSIGNED NOT NULL, 81 | `product_id` int(10) UNSIGNED NOT NULL, 82 | `price` decimal(10,2) NOT NULL, 83 | `quantity` int(11) NOT NULL, 84 | `total` decimal(10,2) NOT NULL, 85 | `customer_name` varchar(100) NOT NULL, 86 | `customer_address` varchar(150) NOT NULL, 87 | `customer_email` varchar(100) NOT NULL, 88 | `customer_contact` varchar(15) NOT NULL, 89 | `customer_feedback` text NOT NULL, 90 | `order_date` datetime NOT NULL DEFAULT current_timestamp(), 91 | `product` varchar(255) DEFAULT NULL 92 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; 93 | 94 | -- 95 | -- Dumping data for table `orders` 96 | -- 97 | 98 | INSERT INTO `orders` (`id`, `product_id`, `price`, `quantity`, `total`, `customer_name`, `customer_address`, `customer_email`, `customer_contact`, `customer_feedback`, `order_date`, `product`) VALUES 99 | (8, 7, '150.00', 474, '71100.00', 'Mara Brown', 'Nihil saepe voluptat', 'zebexaq@mailinator.com', '9887736664', 'Nihil facilis repreh', '2022-11-21 09:07:37', 'chicken pizza'), 100 | (22, 8, '120.00', 2, '240.00', 'Pedro', 'Thimi', 'sallukhw@gmail.com', '9841558311', '', '2023-02-04 14:53:57', 'chicken '), 101 | (23, 7, '150.00', 4, '600.00', 'prashant kasula', 'Bhaktapur', 'prashantkasula22@gmail.com', '9805321013', 'hffcg', '2023-02-06 15:00:38', 'chicken pizza'), 102 | (24, 8, '120.00', 1, '120.00', 'handman', 'Gothatar', 'drake1@gmail.com', '9000000000', 'Good', '2023-02-24 16:03:15', 'pizza'); 103 | 104 | -- -------------------------------------------------------- 105 | 106 | -- 107 | -- Table structure for table `products` 108 | -- 109 | 110 | CREATE TABLE `products` ( 111 | `id` int(10) UNSIGNED NOT NULL, 112 | `title` varchar(150) NOT NULL, 113 | `price` decimal(10,2) NOT NULL, 114 | `description` text DEFAULT NULL, 115 | `category_id` int(10) UNSIGNED NOT NULL, 116 | `featured` varchar(10) NOT NULL, 117 | `status` varchar(10) NOT NULL, 118 | `image_name` varchar(255) NOT NULL 119 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; 120 | 121 | -- 122 | -- Dumping data for table `products` 123 | -- 124 | 125 | INSERT INTO `products` (`id`, `title`, `price`, `description`, `category_id`, `featured`, `status`, `image_name`) VALUES 126 | (18, 'Ice cream', '150.00', 'Freezy Cold', 30, 'Yes', 'Yes', 'Product_5712.jpg'), 127 | (19, 'Burger', '200.00', 'made with 100% pure beef patty, topped with melted cheddar cheese. ', 19, 'Yes', 'Yes', 'Product_7639.jpg'), 128 | (20, 'Chicken Drumstick', '180.00', 'Drooly Drumstick !', 28, 'Yes', 'Yes', 'Product_9071.jpg'), 129 | (21, 'Grilled Fish', '200.00', 'Super Grilled', 31, 'Yes', 'Yes', 'product_1646.jpg'), 130 | (22, 'Sausage', '160.00', '', 0, 'Yes', 'Yes', 'product_4759.jpg'), 131 | (23, 'Pizza', '200.00', 'Crispy Pizza', 10, 'Yes', 'Yes', 'Product_5019.jpg'), 132 | (24, 'Sandwich', '190.00', 'Fresh Sandwich !', 32, 'Yes', 'Yes', 'product_1383.jpg'), 133 | (25, 'Momo', '230.00', 'Juicy Momo Inside', 20, 'Yes', 'Yes', 'product_3482.jpg'); 134 | 135 | -- -------------------------------------------------------- 136 | 137 | -- 138 | -- Table structure for table `users` 139 | -- 140 | 141 | CREATE TABLE `users` ( 142 | `id` int(10) UNSIGNED NOT NULL, 143 | `full_name` varchar(100) NOT NULL, 144 | `user_name` varchar(100) NOT NULL, 145 | `password` varchar(255) NOT NULL 146 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; 147 | 148 | -- 149 | -- Dumping data for table `users` 150 | -- 151 | 152 | INSERT INTO `users` (`id`, `full_name`, `user_name`, `password`) VALUES 153 | (35, 'sam', 'sam', '332532dcfaa1cbf61e2a266bd723612c'), 154 | (37, 'Prashant Kasula', 'prashant', '1d97f8ce34a1e53a4c96dea0a2527ac8'); 155 | 156 | -- 157 | -- Indexes for dumped tables 158 | -- 159 | 160 | -- 161 | -- Indexes for table `categories` 162 | -- 163 | ALTER TABLE `categories` 164 | ADD PRIMARY KEY (`id`); 165 | 166 | -- 167 | -- Indexes for table `contacts` 168 | -- 169 | ALTER TABLE `contacts` 170 | ADD PRIMARY KEY (`id`); 171 | 172 | -- 173 | -- Indexes for table `orders` 174 | -- 175 | ALTER TABLE `orders` 176 | ADD PRIMARY KEY (`id`); 177 | 178 | -- 179 | -- Indexes for table `products` 180 | -- 181 | ALTER TABLE `products` 182 | ADD PRIMARY KEY (`id`); 183 | 184 | -- 185 | -- Indexes for table `users` 186 | -- 187 | ALTER TABLE `users` 188 | ADD PRIMARY KEY (`id`); 189 | 190 | -- 191 | -- AUTO_INCREMENT for dumped tables 192 | -- 193 | 194 | -- 195 | -- AUTO_INCREMENT for table `categories` 196 | -- 197 | ALTER TABLE `categories` 198 | MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=34; 199 | 200 | -- 201 | -- AUTO_INCREMENT for table `contacts` 202 | -- 203 | ALTER TABLE `contacts` 204 | MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; 205 | 206 | -- 207 | -- AUTO_INCREMENT for table `orders` 208 | -- 209 | ALTER TABLE `orders` 210 | MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=25; 211 | 212 | -- 213 | -- AUTO_INCREMENT for table `products` 214 | -- 215 | ALTER TABLE `products` 216 | MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26; 217 | 218 | -- 219 | -- AUTO_INCREMENT for table `users` 220 | -- 221 | ALTER TABLE `users` 222 | MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=38; 223 | COMMIT; 224 | 225 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 226 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 227 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 228 | --------------------------------------------------------------------------------