├── ByteBazaar.erwin ├── ByteBazaar.sql ├── README.md └── website ├── Capture-removebg-preview-removebg-preview.png ├── README.md ├── about.php ├── admin.php ├── adminpanel.php ├── cart.php ├── checkout.php ├── contact.php ├── img ├── adminpanel.php ├── banner │ ├── b30.jpg │ ├── b31.jpg │ ├── b32.jpg │ ├── b33.jpg │ ├── b34.jpeg │ └── p1.jpg ├── button.png ├── empty.png ├── features │ ├── f1.png │ ├── f2.png │ ├── f3.png │ ├── f4.png │ ├── f5.png │ ├── f6.png │ ├── x2.jpeg │ ├── x3.jpeg │ ├── x4.jpeg │ ├── x5.jpeg │ └── x6.jpeg ├── full.png ├── hero4.png ├── hero41.png ├── logo.png ├── logo1.png ├── pay │ ├── app.jpg │ ├── pay.png │ └── play.jpg ├── people │ ├── a.jpeg │ ├── b.jpeg │ └── c.jpeg └── products │ ├── x10.jpeg │ ├── x11.jpeg │ ├── x12.jpeg │ ├── x13.jpeg │ ├── x14.jpeg │ ├── x15.jpeg │ ├── x16.jpeg │ ├── x17.jpeg │ ├── x2.jpeg │ ├── x3.jpeg │ ├── x4.jpeg │ ├── x5.jpeg │ ├── x6.jpeg │ ├── x7.jpeg │ ├── x8.jpeg │ └── x9.jpeg ├── include └── connect.php ├── index.php ├── inventory.php ├── login.php ├── logout.php ├── product_images ├── 292-2929481_joker-wallpaper-4k-for-pc.jpg ├── 71GJY5+c14L._SY450_.jpg ├── 84253.jpg ├── Cat03.jpg ├── Rtx.jpeg ├── g.jpeg ├── hitler.png ├── i.jpeg ├── lol.jpeg ├── no.jpeg ├── pic.jpg ├── r.jpeg ├── raed.png ├── red.jpeg ├── rog.jpeg ├── x13.jpeg ├── x14.jpeg ├── x15.jpeg ├── x3.jpeg ├── x5.jpeg ├── x6.jpeg └── x9.jpeg ├── profile.php ├── review.php ├── script.js ├── shop.php ├── signup.php ├── sproduct.php ├── style.css └── wishlist.php /ByteBazaar.erwin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/ByteBazaar.erwin -------------------------------------------------------------------------------- /ByteBazaar.sql: -------------------------------------------------------------------------------- 1 | -- phpMyAdmin SQL Dump 2 | -- version 5.2.1 3 | -- https://www.phpmyadmin.net/ 4 | -- 5 | -- Host: 127.0.0.1 6 | -- Generation Time: May 15, 2023 at 08:02 PM 7 | -- Server version: 10.4.28-MariaDB 8 | -- PHP Version: 8.2.4 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: `project` 22 | -- 23 | 24 | -- -------------------------------------------------------- 25 | 26 | -- 27 | -- Table structure for table `accounts` 28 | -- 29 | 30 | CREATE TABLE `accounts` ( 31 | `aid` int(11) NOT NULL, 32 | `afname` varchar(100) NOT NULL, 33 | `alname` varchar(100) NOT NULL, 34 | `phone` char(11) NOT NULL, 35 | `email` varchar(100) NOT NULL, 36 | `cnic` char(13) NOT NULL, 37 | `dob` date NOT NULL, 38 | `username` varchar(100) NOT NULL, 39 | `gender` varchar(10) NOT NULL, 40 | `password` varchar(100) NOT NULL 41 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; 42 | 43 | -- 44 | -- Dumping data for table `accounts` 45 | -- 46 | 47 | INSERT INTO `accounts` (`aid`, `afname`, `alname`, `phone`, `email`, `cnic`, `dob`, `username`, `gender`, `password`) VALUES 48 | (5, 'laraib', 'akhtar', '03150100830', 'laraibakhtar40@gmail.com', '3530231218003', '2023-05-03', 'admin1', 'M', 'admin123'), 49 | (14, 'laraib', 'akhtar', '16050920011', 'laraibakhtr40@gmail.com', '1234567890000', '2023-05-02', 'laraib', 'M', '12345678'), 50 | (18, 'abdullah', 'naeem', '1160509201', 'abdullahnaeem@gmail.com', '3333333333333', '2023-05-10', 'abdullah', 'M', '12345678'), 51 | (20, 'Qasim', 'Naveed', '03246491212', 'qasimnaveed@gmail.com', '3530230218003', '2000-02-16', 'Qasimzaps7', 'M', '987654321'); 52 | 53 | -- -------------------------------------------------------- 54 | 55 | -- 56 | -- Table structure for table `cart` 57 | -- 58 | 59 | CREATE TABLE `cart` ( 60 | `aid` int(11) NOT NULL, 61 | `pid` int(11) NOT NULL, 62 | `cqty` int(11) NOT NULL 63 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; 64 | 65 | -- -------------------------------------------------------- 66 | 67 | -- 68 | -- Table structure for table `order-details` 69 | -- 70 | 71 | CREATE TABLE `order-details` ( 72 | `oid` int(11) NOT NULL, 73 | `pid` int(11) NOT NULL, 74 | `qty` int(11) NOT NULL 75 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; 76 | 77 | -- 78 | -- Dumping data for table `order-details` 79 | -- 80 | 81 | INSERT INTO `order-details` (`oid`, `pid`, `qty`) VALUES 82 | (17, 35, 5), 83 | (18, 31, 1), 84 | (19, 37, 1); 85 | 86 | -- -------------------------------------------------------- 87 | 88 | -- 89 | -- Table structure for table `orders` 90 | -- 91 | 92 | CREATE TABLE `orders` ( 93 | `oid` int(11) NOT NULL, 94 | `dateod` date NOT NULL, 95 | `datedel` date DEFAULT NULL, 96 | `aid` int(11) NOT NULL, 97 | `address` varchar(255) NOT NULL, 98 | `city` varchar(50) NOT NULL, 99 | `country` varchar(100) NOT NULL, 100 | `account` char(16) DEFAULT NULL, 101 | `total` int(11) NOT NULL 102 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; 103 | 104 | -- 105 | -- Dumping data for table `orders` 106 | -- 107 | 108 | INSERT INTO `orders` (`oid`, `dateod`, `datedel`, `aid`, `address`, `city`, `country`, `account`, `total`) VALUES 109 | (17, '2023-05-15', '2023-05-15', 14, 'Faisal town b block', 'Lahore', 'Pakistan', NULL, 375), 110 | (18, '2023-05-15', '2023-05-15', 20, 'Johar Town Block A', 'Lahore', 'Pakistan', NULL, 130), 111 | (19, '2023-05-15', '2023-05-15', 18, 'House32A,Model Town ', 'Lahore', 'Pakistan', '3120246834724793', 380); 112 | 113 | -- -------------------------------------------------------- 114 | 115 | -- 116 | -- Table structure for table `products` 117 | -- 118 | 119 | CREATE TABLE `products` ( 120 | `pid` int(11) NOT NULL, 121 | `pname` varchar(100) NOT NULL, 122 | `category` varchar(50) NOT NULL, 123 | `description` varchar(200) NOT NULL, 124 | `price` int(11) NOT NULL, 125 | `qtyavail` int(11) NOT NULL, 126 | `img` varchar(255) NOT NULL, 127 | `brand` varchar(100) NOT NULL 128 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; 129 | 130 | -- 131 | -- Dumping data for table `products` 132 | -- 133 | 134 | INSERT INTO `products` (`pid`, `pname`, `category`, `description`, `price`, `qtyavail`, `img`, `brand`) VALUES 135 | (27, 'Core i5 3570', 'cpu', 'Attention all tech enthusiasts! Upgrade your computer performance with the powerful i5 3570 processor! Built on Intel Ivy Bridge architecture, this quad-core processor boasts a base clock speed of 3.4', 250, 10, 'x14.jpeg', 'Intel'), 136 | (30, 'Razer BlackWidow V4 Pro', 'keyboard', ' Take your gaming experience to the next level with the Razer BlackWidow V4 Pro! This mechanical gaming keyboard features Razer signature green switches, providing tactile feedback and optimized actua', 370, 15, 'x3.jpeg', 'Razor'), 137 | (31, 'Hp Gaming Mouse M160', 'mouse', ' Dominate your opponents with the HP Gaming Mouse M160! This high-performance mouse features six programmable buttons and a high-precision optical sensor, allowing for quick and accurate movements in ', 130, 19, 'x5.jpeg', 'Hp'), 138 | (32, 'Asus Motherboard B450', 'motherboard', 'Upgrade your rig with the ASUS B450 motherboard! This motherboard features an AM4 socket that supports AMD Ryzen processors, providing you with the power you need for intense gaming and multitasking. ', 230, 12, 'x15.jpeg', 'Asus'), 139 | (33, 'Ryzen 7 3700x ', 'cpu', 'Experience lightning-fast performance with the AMD Ryzen 7 3700X processor! With 8 cores and 16 threads, this processor delivers unrivaled speed and processing power for demanding tasks, including gam', 350, 7, 'x6.jpeg', 'Ryzen'), 140 | (34, 'Nvidia GTX 1660Ti GPU', 'gpu', 'Take your PC experience to the next level with the NVIDIA GeForce GTX 1660 Ti graphics card! This high-performance graphics card features NVIDIA Turing architecture and 6GB of GDDR6 memory, providing ', 160, 5, 'x9.jpeg', 'Nvidia'), 141 | (35, 'HyperX Fury Ram 16GB', 'ram', 'Upgrade your PC performance with HyperX Fury RAM! With speeds of up to 3200MHz and capacities ranging from 8GB to 64GB, HyperX Fury RAM is the perfect choice for anyone looking to improve their PC mul', 75, 3, '71GJY5+c14L._SY450_.jpg', 'HyperX'), 142 | (36, 'Geforce RTX 4080 16GB', 'gpu', 'The NVIDIA GeForce RTX 4080 delivers the ultra performance and features that enthusiast gamers and creators demand. Bring your games and creative projects to life with ray tracing and AI-powered graph', 550, 12, 'lol.jpeg', 'Nvidia'), 143 | (37, 'Asus Rog Strix B550-E', 'motherboard', 'Gamers and PC enthusiasts, elevate your build with the ASUS ROG Strix B550-E Gaming motherboard! Designed with performance in mind, this high-end motherboard features the latest PCIe 4.0 technology, a', 380, 3, 'rog.jpeg', 'Asus'), 144 | (38, 'MageGee Mechanical Gaming Keyboard', 'keyboard', 'Upgrade your gaming setup with the MageGee Mechanical Gaming Keyboard. Built with high-quality and durable materials, this keyboard features mechanical switches that provide a tactile and satisfying t', 270, 6, 'no.jpeg', 'MageGee'), 145 | (39, 'Intel Core i9-10900K 3.7 GHz ', 'cpu', 'Experience the ultimate performance with the Intel Core i9-10900K 3.7 GHz processor. With 10 cores and 20 threads, this high-end processor delivers blazing-fast speeds and unparalleled multitasking ca', 470, 15, 'i.jpeg', 'Intel'), 146 | (40, 'Redragon Gaming Mouse', 'mouse', ' Take your gaming to the next level with the RedDragon gaming mouse. This high-performance gaming mouse features an ergonomic design with customizable RGB lighting, making it not only comfortable to u', 140, 5, 'red.jpeg', 'Redragon'), 147 | (41, 'Razer Cynosa V2 RGB Gaming Keyboard ', 'keyboard', ' The Razer Cynosa V2 RGB Gaming Keyboard is a must-have accessory for any avid gamer looking to take their gaming experience to the next level. With its fully customizable RGB lighting, you can create', 160, 8, 'r.jpeg', 'Razor'), 148 | (42, 'Glorious Model O Gaming Mouse', 'mouse', 'The Glorious Model O is a gaming mouse that is built to deliver superior performance, accuracy, and speed to gamers of all levels. With its sleek and ergonomic design, this mouse is designed to fit co', 140, 8, 'g.jpeg', 'Glorious'), 149 | (43, 'Geforce RTX 3080 12GB Zotac', 'gpu', 'The GeForce RTX 3080 12GB Zotac is a high-performance graphics card designed for gamers and professionals who require the best in graphical processing power. This graphics card is powered by the NVIDI', 370, 4, 'Rtx.jpeg', 'Nvidia'); 150 | 151 | -- -------------------------------------------------------- 152 | 153 | -- 154 | -- Table structure for table `reviews` 155 | -- 156 | 157 | CREATE TABLE `reviews` ( 158 | `oid` int(11) NOT NULL, 159 | `pid` int(11) NOT NULL, 160 | `rtext` varchar(1000) DEFAULT NULL, 161 | `rating` int(11) NOT NULL 162 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; 163 | 164 | -- 165 | -- Dumping data for table `reviews` 166 | -- 167 | 168 | INSERT INTO `reviews` (`oid`, `pid`, `rtext`, `rating`) VALUES 169 | (17, 35, ' a very good product nice and fast...', 4), 170 | (18, 31, ' Very impressive. easy to use and properly weigh balanced!', 3), 171 | (19, 37, ' Very easy to insert and use into PC. All the slots working correctly. Would recommend.', 4); 172 | 173 | -- -------------------------------------------------------- 174 | 175 | -- 176 | -- Table structure for table `wishlist` 177 | -- 178 | 179 | CREATE TABLE `wishlist` ( 180 | `aid` int(11) NOT NULL, 181 | `pid` int(11) NOT NULL 182 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; 183 | 184 | -- 185 | -- Dumping data for table `wishlist` 186 | -- 187 | 188 | INSERT INTO `wishlist` (`aid`, `pid`) VALUES 189 | (18, 35), 190 | (18, 36); 191 | 192 | -- 193 | -- Indexes for dumped tables 194 | -- 195 | 196 | -- 197 | -- Indexes for table `accounts` 198 | -- 199 | ALTER TABLE `accounts` 200 | ADD PRIMARY KEY (`aid`), 201 | ADD UNIQUE KEY `cnic` (`cnic`), 202 | ADD UNIQUE KEY `email` (`email`), 203 | ADD UNIQUE KEY `phone` (`phone`), 204 | ADD UNIQUE KEY `username` (`username`); 205 | 206 | -- 207 | -- Indexes for table `cart` 208 | -- 209 | ALTER TABLE `cart` 210 | ADD PRIMARY KEY (`aid`,`pid`), 211 | ADD KEY `cartfk2` (`pid`); 212 | 213 | -- 214 | -- Indexes for table `order-details` 215 | -- 216 | ALTER TABLE `order-details` 217 | ADD PRIMARY KEY (`oid`,`pid`), 218 | ADD KEY `orderdtfk2` (`pid`); 219 | 220 | -- 221 | -- Indexes for table `orders` 222 | -- 223 | ALTER TABLE `orders` 224 | ADD PRIMARY KEY (`oid`), 225 | ADD KEY `ordersfk` (`aid`); 226 | 227 | -- 228 | -- Indexes for table `products` 229 | -- 230 | ALTER TABLE `products` 231 | ADD PRIMARY KEY (`pid`); 232 | 233 | -- 234 | -- Indexes for table `reviews` 235 | -- 236 | ALTER TABLE `reviews` 237 | ADD PRIMARY KEY (`oid`,`pid`), 238 | ADD KEY `reviewsfk2` (`pid`); 239 | 240 | -- 241 | -- Indexes for table `wishlist` 242 | -- 243 | ALTER TABLE `wishlist` 244 | ADD PRIMARY KEY (`aid`,`pid`), 245 | ADD KEY `wishlistfk2` (`pid`); 246 | 247 | -- 248 | -- AUTO_INCREMENT for dumped tables 249 | -- 250 | 251 | -- 252 | -- AUTO_INCREMENT for table `accounts` 253 | -- 254 | ALTER TABLE `accounts` 255 | MODIFY `aid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21; 256 | 257 | -- 258 | -- AUTO_INCREMENT for table `orders` 259 | -- 260 | ALTER TABLE `orders` 261 | MODIFY `oid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20; 262 | 263 | -- 264 | -- AUTO_INCREMENT for table `products` 265 | -- 266 | ALTER TABLE `products` 267 | MODIFY `pid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=44; 268 | 269 | -- 270 | -- Constraints for dumped tables 271 | -- 272 | 273 | -- 274 | -- Constraints for table `cart` 275 | -- 276 | ALTER TABLE `cart` 277 | ADD CONSTRAINT `cartfk1` FOREIGN KEY (`aid`) REFERENCES `accounts` (`aid`) ON DELETE CASCADE ON UPDATE CASCADE, 278 | ADD CONSTRAINT `cartfk2` FOREIGN KEY (`pid`) REFERENCES `products` (`pid`) ON DELETE CASCADE ON UPDATE CASCADE; 279 | 280 | -- 281 | -- Constraints for table `order-details` 282 | -- 283 | ALTER TABLE `order-details` 284 | ADD CONSTRAINT `orderdtfk1` FOREIGN KEY (`oid`) REFERENCES `orders` (`oid`) ON DELETE CASCADE ON UPDATE CASCADE, 285 | ADD CONSTRAINT `orderdtfk2` FOREIGN KEY (`pid`) REFERENCES `products` (`pid`) ON DELETE CASCADE ON UPDATE CASCADE; 286 | 287 | -- 288 | -- Constraints for table `orders` 289 | -- 290 | ALTER TABLE `orders` 291 | ADD CONSTRAINT `ordersfk` FOREIGN KEY (`aid`) REFERENCES `accounts` (`aid`) ON DELETE CASCADE ON UPDATE CASCADE; 292 | 293 | -- 294 | -- Constraints for table `reviews` 295 | -- 296 | ALTER TABLE `reviews` 297 | ADD CONSTRAINT `reviewsfk1` FOREIGN KEY (`oid`) REFERENCES `orders` (`oid`) ON DELETE CASCADE ON UPDATE CASCADE, 298 | ADD CONSTRAINT `reviewsfk2` FOREIGN KEY (`pid`) REFERENCES `products` (`pid`) ON DELETE CASCADE ON UPDATE CASCADE; 299 | 300 | -- 301 | -- Constraints for table `wishlist` 302 | -- 303 | ALTER TABLE `wishlist` 304 | ADD CONSTRAINT `wishlistfk1` FOREIGN KEY (`aid`) REFERENCES `accounts` (`aid`) ON DELETE CASCADE ON UPDATE CASCADE, 305 | ADD CONSTRAINT `wishlistfk2` FOREIGN KEY (`pid`) REFERENCES `products` (`pid`) ON DELETE CASCADE ON UPDATE CASCADE; 306 | COMMIT; 307 | 308 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 309 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 310 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 311 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # ByteBazaar-Ecommerce-Store-PHP-MySQL 2 | An E-Commerce Store selling Computer parts and accessories built with proper implementation of MySQL as a database and PHP as the back-end language as well as Javascript. 3 | 4 | 5 | https://github.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/assets/105659099/1ed4926f-6e40-4b90-9ed5-3e3fd7e21262 6 | 7 | 8 | 9 | # Introduction 10 | 11 | The project we propose is an e-commerce website that sells computer parts to computer enthusiasts and people. The website offers countless products like computer parts, including peripherals and components from computing industry's top brands. We are making our website quite easy to use. And we are making sure that our customer experience is up to the mark. 12 | 13 | # Objectives 14 | 15 | The goal of our project is to create a successful online platform for selling computer parts, providing computer enthusiasts and geeks with a convenient and efficient shopping experience. We are providing the best prices against the best products you can find in the market. We are looking forward to providing the best customer experience and providing easy access to the products related to computer. Also, we provide a convenient communication between the buyer and the seller. 16 | 17 | # Functionalities 18 | 19 | # 1.Manage Account (Customers/Admin) 20 | Customers can create, delete and update their accounts to track their purchase and to place orders as a customer or add products as an administrator. 21 | 22 | # 2.Product Catalog: 23 | A module that allows users to browse and search through a list of available computer parts, including processors, motherboards, graphics cards, and more. The catalog should allow users to filter by product type and search by name description or brand. 24 | # 3.Product Details: 25 | A module that provides users with detailed information about each product, including specifications, features, images, and reviews from other customers and add item to their cart for purchase. 26 | # 4.Shopping Cart: 27 | A module that enables users to add products to their cart and review their selections before proceeding to checkout. This module should display the total cost of the order, including any applicable taxes and shipping fees. 28 | # 5.Checkout: 29 | A module that guides users through the process of completing their purchase, including entering billing and shipping information, selecting a payment method, and reviewing their order one last time before submitting it. 30 | # 6.Shipping and Delivery 31 | A shipping and delivery system that allows customers to choose their preferred shipping method, track their orders. 32 | # 7.Reviews and Ratings: 33 | A module that allows users to rate and review products they have purchased, as well as read reviews from other customers. This module should help users make informed purchasing decisions based on the experiences of others. 34 | 35 | # 8.Order Management: 36 | A module that allows website administrators to manage orders and track their status, including reviewing new orders, updating order status, and managing order fulfillment and shipping. 37 | 38 | # 9.Inventory Management: 39 | A module that helps website administrators keep track of their inventory levels and product availability. 40 | # 10.Wish List: 41 | A module that enables users to create a wish list of products they are interested in but not ready to purchase yet. This module should allow users to save items for future reference. 42 | 43 | 44 | Attributes: 45 | aid, afname, alname, phone, email, cnic, DOB, username, password, gender, oid, dateordered, datedelivered, address, city, country, accountno, totalcost, pid, pname, category, description, price, quantityavailable, img, brand, rtext, rating, cquantity, orderquantity 46 | 47 | 48 | 49 | 50 | # Functional Dependencies: 51 | aid-> (aid, afname, alname, phone, email, cnic, DOB, username, password, gender) 52 | pid-> (pid, pname, category, description, price, quantityavailable, img, brand) 53 | oid-> (oid, dateordered, datedelivered, address, city, country, accountno,totalcost) 54 | oid, pid-> (cquantity, orderquantity, rtext, rating) 55 | 56 | 57 | # Tables 58 | 1-Accounts 59 | 60 | AID Afname Alname Phone Email Cnic DOB Username Password Gender 61 | 62 | 63 | 2-Products 64 | 65 | pid Pname Category Description Price Quantityavailable Img brand 66 | 67 | 3-Orders 68 | 69 | OID DateOrdered DateDelivered Aid account address country city total 70 | 71 | 72 | 4-Order_Details 73 | 74 | Oid Pid quantity 75 | 76 | 77 | 5-Cart 78 | 79 | pid aid cquantity 80 | 81 | 82 | 6-Reviews 83 | 84 | Pid Oid rtext rating 85 | 86 | 87 | 7-Wishlist 88 | 89 | pid oid 90 | 91 | 92 | 93 | -------------------------------------------------------------------------------- /website/Capture-removebg-preview-removebg-preview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/Capture-removebg-preview-removebg-preview.png -------------------------------------------------------------------------------- /website/README.md: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /website/about.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | ByteBazaar 12 | 13 | 14 | 15 | 16 | 17 | 22 | 23 | 24 | 25 | 26 | 27 | 60 | 61 | 66 | 67 |
68 | 69 |
70 |

About Us?

71 |

72 | ByteBazaar is an online store that offers a wide range of high-quality computer hardware products. 73 | Established 74 | in 75 | 2010, we are committed to providing our customers with the best possible shopping experience, with a 76 | user-friendly website and excellent customer support. Shop with us for the latest computer components, 77 | peripherals, and accessories from the world's leading brands. 78 |

79 |

80 | Game till you win 81 |
82 |
83 | 84 |
85 |
86 | 87 |
Free Shipping
88 |
89 |
90 | 91 |
Online Order
92 |
93 |
94 | 95 |
Save Money
96 |
97 |
98 | 99 |
Promotions
100 |
101 |
102 | 103 |
Happy Sell
104 |
105 |
106 | 107 |
24/7 Support
108 |
109 |
110 | 111 | 112 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | -------------------------------------------------------------------------------- /website/admin.php: -------------------------------------------------------------------------------- 1 | 0) { 17 | echo ""; 18 | 19 | 20 | } else { 21 | echo ""; 22 | } 23 | 24 | } else { 25 | echo ""; 26 | } 27 | } 28 | 29 | ?> 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | ByteBazaar 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 80 | 81 | 82 |
83 |

84 | 85 | 86 | 87 | 88 |
89 | 90 | 91 | 120 | 121 | 122 | 123 | 124 | -------------------------------------------------------------------------------- /website/adminpanel.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | 11 |
12 |
13 | 14 | 15 |
16 | Ahmad Khan 17 |
18 |
19 | Customer 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 |

IDENTITY

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 | 78 | 79 | 80 | 81 | 82 | 83 | 84 |
First Name:Ahmad
Last Name:Khan
Email:ahmadkhan@gmail.com
Address:Islamabad, Pakistan
CNIC:31202-4525142-3
85 |
86 |
87 | 88 |

SHIPPING INFO

89 |
90 |
91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 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 |
Country:Pakistan
City:Lahore
Address:ahmadkhan@gmail.com
State/County:Pakistan
ZIP/Postal Code:64100
Phone:+923245635222
127 |
128 |
129 | 130 |
-------------------------------------------------------------------------------- /website/cart.php: -------------------------------------------------------------------------------- 1 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | ByteBazaar 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 112 | 113 | 118 | 119 | 120 |
121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 159 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | "; 169 | } 170 | ?> 171 | 172 | 173 |
RemoveImageProductPriceQuantitySubtotal
160 | 161 | $pname$$price$$a
174 |
175 | 176 |
177 |
178 | 179 |
180 |
181 |

Cart Totals

182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 |
Cart Subtotal$
ShippingFree
Total$
196 | 197 |
198 | 223 | 224 | "; 225 | } 226 | ?> 227 | 228 |
229 | 230 |
231 |
232 | 233 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 297 | 298 | -------------------------------------------------------------------------------- /website/checkout.php: -------------------------------------------------------------------------------- 1 | alert('invalid account number'); setTimeout(function(){ window.location.href = 'checkout.php'; }, 100); "; 19 | exit(); 20 | } 21 | 22 | $query = "insert into `orders` (dateod, datedel, aid, address, city, country, account, total) values(CURDATE(), NULL, '$aid', '$add', '$city', '$country', '$acc', 0)"; 23 | } 24 | $result = mysqli_query($con, $query); 25 | 26 | $oid = mysqli_insert_id($con); 27 | 28 | $query = "SELECT * FROM cart JOIN products ON cart.pid = products.pid WHERE aid = $aid"; 29 | 30 | $result = mysqli_query($con, $query); 31 | global $tott; 32 | while ($row = mysqli_fetch_assoc($result)) { 33 | $pid = $row['pid']; 34 | $pname = $row['pname']; 35 | $desc = $row['description']; 36 | $qty = $row['qtyavail']; 37 | $price = $row['price']; 38 | $cat = $row['category']; 39 | $img = $row['img']; 40 | $brand = $row['brand']; 41 | $cqty = $row['cqty']; 42 | $tott = $price * $cqty; 43 | 44 | $query = "insert into `order-details` (oid, pid, qty) values ($oid, $pid, $cqty)"; 45 | 46 | mysqli_query($con, $query); 47 | 48 | $query = "update products set qtyavail = qtyavail - $cqty where pid = $pid"; 49 | 50 | mysqli_query($con, $query); 51 | } 52 | 53 | $query = "delete from cart where aid = $aid"; 54 | 55 | mysqli_query($con, $query); 56 | 57 | $query = "update orders set total = $tott where oid = $oid"; 58 | 59 | mysqli_query($con, $query); 60 | 61 | 62 | header("Location: profile.php"); 63 | exit(); 64 | } 65 | ?> 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | ByteBazaar 76 | 77 | 78 | 79 | 80 | 81 | 113 | 114 | 115 | 116 | 117 | 150 | 151 |
152 |
153 |

Product Order Form

154 |
155 |
156 |
157 | 158 |

159 | 160 | 161 | 162 | 163 |
164 | Cash 165 | on Delivery 166 |
167 |
168 | Paypal/Visa/MasterCard 170 | 171 | 172 |
173 | 174 |
175 |
176 | 177 | 178 | 179 | 180 | 181 | 208 | 209 | 210 | 211 | 212 | "; 213 | } 214 | echo " 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | "; 223 | ?> 224 | 225 | 226 |
Your order
$pname x $cqty(Qty)$a
Subtotal$$tot.00
ShippingFree shipping

227 |
228 |
229 |
230 | 231 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 277 | 278 | -------------------------------------------------------------------------------- /website/contact.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | ByteBazaar 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 53 | 54 | 59 | 60 |
61 |
62 | GET IN TOUCH 63 |

Visit one of our agency locations or contact us today

64 |

Head Office

65 |
66 |
  • 67 | 68 |

    Street 2, Johar Town Block A, Lahore

    69 |
  • 70 |
  • 71 | 72 |

    l211794@lhr.nu.edu.pk

    73 |
  • 74 |
  • 75 | 76 |

    +92324953752

    77 |
  • 78 |
  • 79 | 80 |

    Monday to Saturday: 9am to 5pm

    81 | 82 |
  • 83 |
    84 |
    85 |
    86 | 90 |
    91 |
    92 | 93 |
    94 |
    95 |
    96 | 97 |

    98 | Ed Founder and CEO
    99 | Phone: +03120100830
    100 | Email:Ed@gmail.com 101 |

    102 |
    103 |
    104 | 105 |

    106 | Edd Executive Marketing Manager
    107 | Phone: +03000101230
    108 | Email:Edd@gmail.com 109 |

    110 |
    111 |
    112 | 113 |

    114 | Eddy Customer Service Officer
    115 | Phone: +03400190835
    116 | Email:Eddy@gmail.com 117 |

    118 |
    119 |
    120 |
    121 | 122 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | -------------------------------------------------------------------------------- /website/img/adminpanel.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/img/adminpanel.php -------------------------------------------------------------------------------- /website/img/banner/b30.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/img/banner/b30.jpg -------------------------------------------------------------------------------- /website/img/banner/b31.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/img/banner/b31.jpg -------------------------------------------------------------------------------- /website/img/banner/b32.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/img/banner/b32.jpg -------------------------------------------------------------------------------- /website/img/banner/b33.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/img/banner/b33.jpg -------------------------------------------------------------------------------- /website/img/banner/b34.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/img/banner/b34.jpeg -------------------------------------------------------------------------------- /website/img/banner/p1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/img/banner/p1.jpg -------------------------------------------------------------------------------- /website/img/button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/img/button.png -------------------------------------------------------------------------------- /website/img/empty.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/img/empty.png -------------------------------------------------------------------------------- /website/img/features/f1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/img/features/f1.png -------------------------------------------------------------------------------- /website/img/features/f2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/img/features/f2.png -------------------------------------------------------------------------------- /website/img/features/f3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/img/features/f3.png -------------------------------------------------------------------------------- /website/img/features/f4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/img/features/f4.png -------------------------------------------------------------------------------- /website/img/features/f5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/img/features/f5.png -------------------------------------------------------------------------------- /website/img/features/f6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/img/features/f6.png -------------------------------------------------------------------------------- /website/img/features/x2.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/img/features/x2.jpeg -------------------------------------------------------------------------------- /website/img/features/x3.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/img/features/x3.jpeg -------------------------------------------------------------------------------- /website/img/features/x4.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/img/features/x4.jpeg -------------------------------------------------------------------------------- /website/img/features/x5.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/img/features/x5.jpeg -------------------------------------------------------------------------------- /website/img/features/x6.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/img/features/x6.jpeg -------------------------------------------------------------------------------- /website/img/full.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/img/full.png -------------------------------------------------------------------------------- /website/img/hero4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/img/hero4.png -------------------------------------------------------------------------------- /website/img/hero41.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/img/hero41.png -------------------------------------------------------------------------------- /website/img/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/img/logo.png -------------------------------------------------------------------------------- /website/img/logo1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/img/logo1.png -------------------------------------------------------------------------------- /website/img/pay/app.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/img/pay/app.jpg -------------------------------------------------------------------------------- /website/img/pay/pay.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/img/pay/pay.png -------------------------------------------------------------------------------- /website/img/pay/play.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/img/pay/play.jpg -------------------------------------------------------------------------------- /website/img/people/a.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/img/people/a.jpeg -------------------------------------------------------------------------------- /website/img/people/b.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/img/people/b.jpeg -------------------------------------------------------------------------------- /website/img/people/c.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/img/people/c.jpeg -------------------------------------------------------------------------------- /website/img/products/x10.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/img/products/x10.jpeg -------------------------------------------------------------------------------- /website/img/products/x11.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/img/products/x11.jpeg -------------------------------------------------------------------------------- /website/img/products/x12.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/img/products/x12.jpeg -------------------------------------------------------------------------------- /website/img/products/x13.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/img/products/x13.jpeg -------------------------------------------------------------------------------- /website/img/products/x14.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/img/products/x14.jpeg -------------------------------------------------------------------------------- /website/img/products/x15.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/img/products/x15.jpeg -------------------------------------------------------------------------------- /website/img/products/x16.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/img/products/x16.jpeg -------------------------------------------------------------------------------- /website/img/products/x17.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/img/products/x17.jpeg -------------------------------------------------------------------------------- /website/img/products/x2.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/img/products/x2.jpeg -------------------------------------------------------------------------------- /website/img/products/x3.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/img/products/x3.jpeg -------------------------------------------------------------------------------- /website/img/products/x4.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/img/products/x4.jpeg -------------------------------------------------------------------------------- /website/img/products/x5.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/img/products/x5.jpeg -------------------------------------------------------------------------------- /website/img/products/x6.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/img/products/x6.jpeg -------------------------------------------------------------------------------- /website/img/products/x7.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/img/products/x7.jpeg -------------------------------------------------------------------------------- /website/img/products/x8.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/img/products/x8.jpeg -------------------------------------------------------------------------------- /website/img/products/x9.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/img/products/x9.jpeg -------------------------------------------------------------------------------- /website/include/connect.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /website/index.php: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | ByteBazaar 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 58 | 59 |
    60 |

    Trade-in-offer

    61 |

    Super value deals

    62 |

    On all products

    63 |

    Save more with coupons & up to 70% off!

    64 | 65 | 66 | 67 |
    68 | 69 |
    70 |
    71 | 72 |
    Free Shipping
    73 |
    74 |
    75 | 76 |
    Online Order
    77 |
    78 |
    79 | 80 |
    Save Money
    81 |
    82 |
    83 | 84 |
    Promotions
    85 |
    86 |
    87 | 88 |
    Happy Sell
    89 |
    90 |
    91 | 92 |
    24/7 Support
    93 |
    94 |
    95 | 96 | 97 | 104 | 105 |
    106 | 114 | 122 |
    123 | 124 |
    125 | 129 | 133 | 137 |
    138 | 139 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | -------------------------------------------------------------------------------- /website/inventory.php: -------------------------------------------------------------------------------- 1 | alert('select category'); setTimeout(function(){ window.location.href = 'inventory.php'; }, 100); "; 16 | exit(); 17 | } 18 | 19 | move_uploaded_file($temp_image, "product_images/$image"); 20 | 21 | $query = "insert into `products`(pname, category, description, price, qtyavail, img, brand) values ('$pname', '$category', '$description', '$price', '$quantity', '$image', '$brand')"; 22 | 23 | $result = mysqli_query($con, $query); 24 | 25 | if ($result) { 26 | echo ""; 27 | } 28 | } 29 | 30 | if (isset($_GET['pid'])) { 31 | 32 | $id = $_GET['pid']; 33 | $query = "DELETE FROM products WHERE pid = '$id'"; 34 | 35 | mysqli_query($con, $query); 36 | 37 | } 38 | 39 | if (isset($_POST['submitt'])) { 40 | $pname = $_POST['name1']; 41 | $category = $_POST['category1']; 42 | $description = $_POST['description1']; 43 | $quantity = $_POST['quantity1']; 44 | $price = $_POST['price1']; 45 | $brand = $_POST['brand1']; 46 | $image = $_FILES['photo1']['name']; 47 | $temp_image = $_FILES['photo1']['tmp_name']; 48 | $pid2 = $_POST['pid1']; 49 | $image2 = $_POST['prevphoto']; 50 | $prevcat = $_POST['prev']; 51 | if ($category == "all") { 52 | $category = $prevcat; 53 | } 54 | 55 | if (!empty($image)) 56 | move_uploaded_file($temp_image, "product_images/$image"); 57 | 58 | if (!empty($image)) 59 | $query = "Update `products` set pname = '$pname', category = '$category', description = '$description', qtyavail = $quantity, brand ='$brand', price = $price, img ='$image' where pid = $pid2"; 60 | else 61 | $query = "Update `products` set pname = '$pname', category = '$category', description = '$description', qtyavail = $quantity, brand ='$brand', price = $price, img ='$image2' where pid = $pid2"; 62 | 63 | $result = mysqli_query($con, $query); 64 | 65 | if ($result) { 66 | echo ""; 67 | } 68 | } 69 | 70 | if (isset($_GET['odd'])) { 71 | $oid = $_GET['odd']; 72 | 73 | $query = "UPDATE orders set datedel = CURDATE() where oid = $oid"; 74 | 75 | $result = mysqli_query($con, $query); 76 | 77 | header("Location: inventory.php"); 78 | exit(); 79 | } 80 | 81 | ?> 82 | 83 | 84 | 85 | 86 | Ecommerce Inventory Management 87 | 88 | 355 | 356 | 357 | 358 | 359 | 360 |
    361 |
    362 |

    Insert Product

    363 |
    364 | 365 | 366 | 367 | 376 | 377 | 378 | 379 | 380 | 381 | 382 | 383 | 384 | 385 | 386 | 387 |
    388 |
    389 |
    390 |

    Search Product

    391 |
    392 | 393 | 394 | 395 | 404 | 405 |
    406 |
    407 |
    408 | 409 | 425 | 426 | 427 | 428 | 429 | 430 | 431 | 440 | 441 | 442 | 443 | 444 | 445 | 446 | 447 | 448 | 449 | 450 | 451 | "; 452 | } 453 | if (isset($_POST['search1'])) { 454 | $search = $_POST['search']; 455 | $category = $_POST['cat']; 456 | $query = ""; 457 | if (!empty($search)) 458 | $query = "select* from `products` where ((pname like '%$search%') or (brand like '%$search%') or (description like '%$search%'))"; 459 | else 460 | $query = "select * from `products`"; 461 | 462 | if ($category != "all") { 463 | if (empty($search)) { 464 | $query = $query . "where category = '$category'"; 465 | } else { 466 | $query = $query . "and category = '$category'"; 467 | } 468 | } 469 | 470 | $result = mysqli_query($con, $query); 471 | 472 | if ($result) { 473 | echo " 474 | 475 | 476 | 477 | 478 | 479 | 480 | 481 | 482 | 483 | 484 | 485 | 486 | 487 | 488 | 489 | "; 490 | } 491 | 492 | while ($row = mysqli_fetch_assoc($result)) { 493 | $pid = $row['pid']; 494 | $pname = $row['pname']; 495 | $desc = $row['description']; 496 | $qty = $row['qtyavail']; 497 | $price = $row['price']; 498 | $cat = $row['category']; 499 | $img = $row['img']; 500 | $brand = $row['brand']; 501 | 502 | echo " 503 | 504 | 505 | 506 | 507 | 508 | 509 | 510 | 511 | 512 | 513 | 514 | "; 515 | } 516 | 517 | if ($result) { 518 | echo " 519 | 520 |
    Product NameDescriptionCategoryPriceQuantityImageBrandDeleteUpdate
    $pname$desc$cat$price$qty$brandDeleteUpdate
    521 | "; 522 | } 523 | } 524 | ?> 525 | 526 | 527 |
    528 |
    529 | 530 |
    531 |
    532 | 533 | 534 | 535 |
    536 |
    537 | 538 |

    list of orders

    539 |
    540 | 541 | 542 | 543 | 544 |
    545 | 546 | 547 | 548 | 549 | 550 | 551 | 552 | 553 | 554 | 555 | 556 | 557 | 558 | 559 | 560 | 582 | 583 | 584 | 585 | 586 | 587 | 588 | "; 589 | if ($datedel == "Not Delivered") 590 | echo ""; 591 | 592 | 593 | echo ""; 594 | } 595 | } elseif (isset($_GET['u'])) { 596 | include("include/connect.php"); 597 | $query = "SELECT * FROM orders join accounts on orders.aid = accounts.aid where datedel is NULL"; 598 | 599 | 600 | $result = mysqli_query($con, $query); 601 | 602 | while ($row = mysqli_fetch_assoc($result)) { 603 | $aname = $row['username']; 604 | $oid = $row['oid']; 605 | $dateod = $row['dateod']; 606 | $datedel = $row['datedel']; 607 | $add = $row['address']; 608 | $pri = $row['total']; 609 | 610 | if (empty($datedel)) 611 | $datedel = "Not Delivered"; 612 | echo " 613 | 614 | 615 | 616 | 617 | 618 | 619 | 620 | 621 | 622 | "; 623 | if ($datedel == "Not Delivered") 624 | echo ""; 625 | 626 | 627 | echo ""; 628 | } 629 | } elseif (isset($_GET['a'])) { 630 | include("include/connect.php"); 631 | $query = "SELECT * FROM orders join accounts on orders.aid = accounts.aid"; 632 | 633 | 634 | $result = mysqli_query($con, $query); 635 | 636 | while ($row = mysqli_fetch_assoc($result)) { 637 | $aname = $row['username']; 638 | $oid = $row['oid']; 639 | $dateod = $row['dateod']; 640 | $datedel = $row['datedel']; 641 | $add = $row['address']; 642 | $pri = $row['total']; 643 | 644 | if (empty($datedel)) 645 | $datedel = "Not Delivered"; 646 | echo " 647 | 648 | 649 | 650 | 651 | 652 | 653 | 654 | 655 | 656 | "; 657 | if ($datedel == "Not Delivered") 658 | echo ""; 659 | 660 | 661 | echo ""; 662 | } 663 | } else { 664 | 665 | include("include/connect.php"); 666 | $query = "SELECT * FROM orders join accounts on orders.aid = accounts.aid"; 667 | 668 | 669 | $result = mysqli_query($con, $query); 670 | 671 | while ($row = mysqli_fetch_assoc($result)) { 672 | $aname = $row['username']; 673 | $oid = $row['oid']; 674 | $dateod = $row['dateod']; 675 | $datedel = $row['datedel']; 676 | $add = $row['address']; 677 | $pri = $row['total']; 678 | 679 | 680 | if (empty($datedel)) 681 | $datedel = "Not Delivered"; 682 | echo " 683 | 684 | 685 | 686 | 687 | 688 | 689 | 690 | 691 | 692 | "; 693 | if ($datedel == "Not Delivered") 694 | echo ""; 695 | 696 | 697 | echo ""; 698 | } 699 | 700 | } 701 | 702 | 703 | 704 | ?> 705 | 706 | 707 |
    UserNameOrderIDDateOrderedDateDeliveredPaymentMethodAddressSet
    $aname$oid$dateod$datedel$pri$add
    $aname$oid$dateod$datedel$pri$add
    $aname$oid$dateod$datedel$pri$add
    $aname$oid$dateod$datedel$pri$add
    708 | 709 | 710 |
    711 |
    712 | 713 | 714 | 715 | 716 | -------------------------------------------------------------------------------- /website/login.php: -------------------------------------------------------------------------------- 1 | 0) { 16 | 17 | $row = mysqli_fetch_assoc($result); 18 | 19 | 20 | 21 | $_SESSION['aid'] = $row['aid']; 22 | 23 | 24 | 25 | header("Location: profile.php"); 26 | exit(); 27 | 28 | } 29 | else 30 | { 31 | echo ""; 32 | } 33 | } 34 | ?> 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | ByteBazaar 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 75 | 76 | 77 |
    78 |

    79 | 80 | 81 | 82 | 83 |
    84 | 85 |
    86 | Do not have an account? 87 |
    88 | 89 | 90 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | -------------------------------------------------------------------------------- /website/logout.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /website/product_images/292-2929481_joker-wallpaper-4k-for-pc.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/product_images/292-2929481_joker-wallpaper-4k-for-pc.jpg -------------------------------------------------------------------------------- /website/product_images/71GJY5+c14L._SY450_.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/product_images/71GJY5+c14L._SY450_.jpg -------------------------------------------------------------------------------- /website/product_images/84253.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/product_images/84253.jpg -------------------------------------------------------------------------------- /website/product_images/Cat03.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/product_images/Cat03.jpg -------------------------------------------------------------------------------- /website/product_images/Rtx.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/product_images/Rtx.jpeg -------------------------------------------------------------------------------- /website/product_images/g.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/product_images/g.jpeg -------------------------------------------------------------------------------- /website/product_images/hitler.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/product_images/hitler.png -------------------------------------------------------------------------------- /website/product_images/i.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/product_images/i.jpeg -------------------------------------------------------------------------------- /website/product_images/lol.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/product_images/lol.jpeg -------------------------------------------------------------------------------- /website/product_images/no.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/product_images/no.jpeg -------------------------------------------------------------------------------- /website/product_images/pic.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/product_images/pic.jpg -------------------------------------------------------------------------------- /website/product_images/r.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/product_images/r.jpeg -------------------------------------------------------------------------------- /website/product_images/raed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/product_images/raed.png -------------------------------------------------------------------------------- /website/product_images/red.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/product_images/red.jpeg -------------------------------------------------------------------------------- /website/product_images/rog.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/product_images/rog.jpeg -------------------------------------------------------------------------------- /website/product_images/x13.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/product_images/x13.jpeg -------------------------------------------------------------------------------- /website/product_images/x14.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/product_images/x14.jpeg -------------------------------------------------------------------------------- /website/product_images/x15.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/product_images/x15.jpeg -------------------------------------------------------------------------------- /website/product_images/x3.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/product_images/x3.jpeg -------------------------------------------------------------------------------- /website/product_images/x5.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/product_images/x5.jpeg -------------------------------------------------------------------------------- /website/product_images/x6.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/product_images/x6.jpeg -------------------------------------------------------------------------------- /website/product_images/x9.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MuhammadAbdullahNaeem1/ByteBazaar-Ecommerce-Store-PHP-MySQL/2d63118b09bed4f77450b739ff993b1a7d89f9c1/website/product_images/x9.jpeg -------------------------------------------------------------------------------- /website/profile.php: -------------------------------------------------------------------------------- 1 | alert('Credentials already exists'); setTimeout(function(){ window.location.href = 'profile.php'; }, 10); "; 29 | exit(); 30 | } 31 | if (strtotime($dob) > time()) { 32 | echo ""; 33 | exit(); 34 | } 35 | if (preg_match('/\D/', $cnic) || strlen($cnic) != 13) { 36 | echo ""; 37 | exit(); 38 | } 39 | if (preg_match('/\D/', $phone) || strlen($phone) != 11) { 40 | echo ""; 41 | exit(); 42 | } 43 | 44 | $query = "UPDATE ACCOUNTS SET afname = '$firstname', alname='$lastname', email='$email', phone='$phone', cnic='$cnic', dob='$dob' WHERE aid = $aid"; 45 | 46 | $result = mysqli_query($con, $query); 47 | header("Location: profile.php"); 48 | exit(); 49 | } 50 | 51 | 52 | if (isset($_POST['abc'])) { 53 | include("include/connect.php"); 54 | 55 | $oid = $_GET['odd']; 56 | 57 | $query = "select * from `order-details` where oid = $oid"; 58 | $result = mysqli_query($con, $query); 59 | 60 | while ($row = mysqli_fetch_assoc($result)) { 61 | include("include/connect.php"); 62 | 63 | $pid = $row['pid']; 64 | 65 | 66 | $text = $_POST["$pid-te"]; 67 | $star = $_POST["$pid-rating"]; 68 | $query; 69 | if (empty($text)) 70 | $query = "insert into `reviews` (oid, pid, rtext, rating) values ($oid, $pid, NULL, $star)"; 71 | else 72 | $query = "insert into `reviews` (oid, pid, rtext, rating) values ($oid, $pid, '$text', $star)"; 73 | 74 | 75 | $result2 = mysqli_query($con, $query); 76 | } 77 | 78 | header("Location: profile.php"); 79 | exit(); 80 | } 81 | 82 | if (isset($_GET['c'])) { 83 | header("Location: profile.php"); 84 | exit(); 85 | } 86 | ?> 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | ByteBazaar 96 | 97 | 98 | 99 | 100 | 101 | 161 | 162 | 196 | 197 | 199 | 207 | 208 | 209 | 210 | 211 | 244 | 245 | 251 | 252 | 253 | 254 |
    255 |
    256 | 257 | 258 | 281 | $name 282 |
    283 |
    284 | Customer 285 |
    286 |
    287 | " 288 | ?> 289 | 290 |
    291 |
    292 | Log out 293 |
    294 |
    295 |
    296 | Update 297 |
    298 |
    299 | 303 | Cancel 304 |
    305 |
    306 | "; 307 | } 308 | ?> 309 | 310 | 311 | 312 | 313 | 314 |
    315 |

    IDENTITY

    316 |
    317 |
    318 | 319 | 320 | 321 | 346 | 347 | 348 | 349 | 350 | 351 | 352 | 353 | 354 | 355 | 356 | 357 | 358 | 359 | 360 | 361 | 362 | 363 | 364 | 365 | 366 | 367 | 368 | 369 | 370 | 371 | 372 | 373 | 374 | 375 | 376 | 377 | 378 | 379 | 380 | 381 | 382 | "; 383 | 384 | 385 | 386 | } else { 387 | include("include/connect.php"); 388 | 389 | $aid = $_SESSION['aid']; 390 | $query = "SELECT * FROM ACCOUNTS WHERE aid = $aid"; 391 | 392 | $result = mysqli_query($con, $query); 393 | 394 | $row = mysqli_fetch_assoc($result); 395 | 396 | $afname = $row['afname']; 397 | $alname = $row['alname']; 398 | $phone = $row['phone']; 399 | $email = $row['email']; 400 | $cnic = $row['cnic']; 401 | $dob = $row['dob']; 402 | $user = $row['username']; 403 | $gender = $row['gender']; 404 | $name = $afname . " " . $alname; 405 | 406 | echo " 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 427 | 428 | 429 | 430 | 431 | 432 | 433 | 434 | 435 | 436 | 437 | 438 | 439 | 440 | 441 | 442 | 443 | 444 | 445 | 446 | 447 | "; 448 | } 449 | ?> 450 | 451 |
    First Name:
    Last Name:
    Email:
    CNIC:
    Phone:
    Date OF Birth:
    First Name:$afname
    Last Name:$alname
    Email:$email
    CNIC:$cnic
    Phone:$phone
    Date OF Birth:$dob
    Username:$user
    Gender:$gender
    452 |
    453 |
    454 | 455 | Review 466 |
    467 |
    468 | 469 |
    470 |
    471 | 472 | 473 | 474 | 475 | 476 | 477 | 478 | "; 479 | 480 | while ($row = mysqli_fetch_assoc($result)) { 481 | include("include/connect.php"); 482 | 483 | $pid = $row['pid']; 484 | $query = "select * from products where pid = $pid"; 485 | 486 | $result2 = mysqli_query($con, $query); 487 | 488 | $row2 = mysqli_fetch_assoc($result2); 489 | 490 | $img = $row2['img']; 491 | $pname = $row2['pname']; 492 | $price = $row2['price']; 493 | 494 | echo " 495 | 496 | 497 | 498 | 499 | 508 | "; 509 | } 510 | echo "
    NameImagePriceReviewRating
    $pnameProduct 1$price 500 |
    501 | 502 | 503 | 504 | 505 | 506 |
    507 |
    511 |
    512 | 513 |
    514 |
    515 | 516 | "; 517 | } else { 518 | echo "

    ORDER INFO

    519 |
    520 |
    521 | 522 |
    523 | 524 | 525 | 526 | 527 | 528 | 529 | 530 | 531 | 532 | 533 | 534 | "; 535 | 536 | include("include/connect.php"); 537 | 538 | $aid = $_SESSION['aid']; 539 | 540 | $query = "SELECT * FROM orders join accounts on orders.aid = accounts.aid where orders.aid = $aid"; 541 | 542 | 543 | $result = mysqli_query($con, $query); 544 | 545 | while ($row = mysqli_fetch_assoc($result)) { 546 | $oid = $row['oid']; 547 | $dateod = $row['dateod']; 548 | $datedel = $row['datedel']; 549 | $add = $row['address']; 550 | $pri = $row['total']; 551 | if (empty($datedel)) 552 | $datedel = "Not Delivered"; 553 | echo " 554 | 555 | 556 | 557 | 558 | 559 | 560 | 561 | 562 | "; 563 | if ($datedel != "Not Delivered") { 564 | 565 | $query1 = "select* from reviews where oid = $oid"; 566 | $r = mysqli_query($con, $query1); 567 | $w = mysqli_fetch_assoc($r); 568 | if (empty($w)) 569 | echo ""; 570 | else 571 | echo ""; 572 | } 573 | echo ""; 574 | } 575 | 576 | echo " 577 |
    Order IDDate OrderedDate DeliveredTotal PriceAddressReview
    $oid$dateod$datedel$pri$addReviewed
    578 |
    579 |
    580 |
    "; 581 | } 582 | ?> 583 | 584 | 585 | 586 |
    587 | 588 | 589 | 618 | 619 | 620 | 621 | 657 | 658 | 659 | 660 | 661 | 662 | 663 | 664 | -------------------------------------------------------------------------------- /website/review.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | ByteBazaar 13 | 14 | 15 | 16 | 17 | 18 | 48 | 49 | 50 | 51 | 52 | 53 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | "; 72 | 73 | $row_number = 1; 74 | while ($row = mysqli_fetch_assoc($result)) { 75 | // ... 76 | include("include/connect.php"); 77 | 78 | $pid = $row['pid']; 79 | $query = "select * from products where pid = $pid"; 80 | 81 | $result2 = mysqli_query($con, $query); 82 | 83 | $row2 = mysqli_fetch_assoc($result2); 84 | 85 | $img = $row2['img']; 86 | $pname = $row2['pname']; 87 | $price = $row2['price']; 88 | echo " 89 | 90 | 91 | 92 | 93 | 94 | 103 | 104 | "; 105 | $row_number++; 106 | } 107 | echo"
    ImgNamePriceReviewRating
    $pnameProduct 1$price 95 |
    96 | 97 | 98 | 99 | 100 | 101 |
    102 |
    "; 108 | } 109 | ?> 110 | 111 | 112 | 113 | 114 | 115 | 116 | -------------------------------------------------------------------------------- /website/script.js: -------------------------------------------------------------------------------- 1 | // Script for navigation bar 2 | const bar = document.getElementById("bar"); 3 | const close = document.getElementById("close"); 4 | const nav = document.getElementById("navbar"); 5 | 6 | if (bar) { 7 | bar.addEventListener("click", () => { 8 | nav.classList.add("active"); 9 | }); 10 | } 11 | 12 | if (close) { 13 | close.addEventListener("click", () => { 14 | nav.classList.remove("active"); 15 | }); 16 | } 17 | 18 | -------------------------------------------------------------------------------- /website/shop.php: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | ByteBazaar 14 | 15 | 16 | 17 | 18 | 19 | 52 | 53 | 54 | 55 | 56 | 57 | 90 | 91 | 96 | 97 |
    98 |
    99 | 100 | 101 | 102 | 111 | 112 |
    113 |
    114 | 115 | 138 |
    "; 139 | 140 | 141 | } 142 | 143 | while ($row = mysqli_fetch_assoc($result)) { 144 | $pid = $row['pid']; 145 | $pname = $row['pname']; 146 | if (strlen($pname) > 35) { 147 | $pname = substr($pname, 0, 35) . '...'; 148 | } 149 | $desc = $row['description']; 150 | $qty = $row['qtyavail']; 151 | $price = $row['price']; 152 | $cat = $row['category']; 153 | $img = $row['img']; 154 | $brand = $row['brand']; 155 | 156 | 157 | $query2 = "SELECT pid, AVG(rating) AS average_rating FROM reviews where pid = $pid GROUP BY pid "; 158 | 159 | $result2 = mysqli_query($con, $query2); 160 | 161 | $row2 = mysqli_fetch_assoc($result2); 162 | 163 | if ($row2) { 164 | $stars = $row2['average_rating']; 165 | } else { 166 | $stars = 0; 167 | } 168 | $stars = round($stars, 0); 169 | $empty = 5 - $stars; 170 | 171 | echo " 172 |
    173 | 174 |
    175 | $brand 176 |
    $pname
    177 |
    "; 178 | for ($i = 1; $i <= $stars; $i++) { 179 | echo ""; 180 | 181 | } 182 | for ($i = 1; $i <= $empty; $i++) { 183 | echo ""; 184 | 185 | } 186 | echo "
    187 |

    $$price

    188 |
    189 | 190 |
    191 | "; 192 | } 193 | 194 | if ($result) { 195 | 196 | echo " 197 |
    "; 198 | } 199 | } else { 200 | include("include/connect.php"); 201 | 202 | $select = "Select* from products where qtyavail > 0 order by rand()"; 203 | $result = mysqli_query($con, $select); 204 | 205 | if ($result) { 206 | echo "
    207 |
    "; 208 | 209 | 210 | } 211 | 212 | while ($row = mysqli_fetch_assoc($result)) { 213 | $pid = $row['pid']; 214 | $pname = $row['pname']; 215 | if (strlen($pname) > 35) { 216 | $pname = substr($pname, 0, 35) . '...'; 217 | } 218 | $desc = $row['description']; 219 | $qty = $row['qtyavail']; 220 | $price = $row['price']; 221 | $cat = $row['category']; 222 | $img = $row['img']; 223 | $brand = $row['brand']; 224 | 225 | $query2 = "SELECT pid, AVG(rating) AS average_rating FROM reviews where pid = $pid GROUP BY pid "; 226 | 227 | $result2 = mysqli_query($con, $query2); 228 | 229 | $row2 = mysqli_fetch_assoc($result2); 230 | 231 | if ($row2) { 232 | $stars = $row2['average_rating']; 233 | } else { 234 | $stars = 0; 235 | } 236 | $stars = round($stars, 0); 237 | 238 | $empty = 5 - $stars; 239 | 240 | echo " 241 |
    242 | 243 |
    244 | $brand 245 |
    $pname
    246 |
    "; 247 | for ($i = 1; $i <= $stars; $i++) { 248 | echo ""; 249 | 250 | } 251 | for ($i = 1; $i <= $empty; $i++) { 252 | echo ""; 253 | 254 | } 255 | echo "
    256 |

    $$price

    257 |
    258 | 259 |
    260 | "; 261 | } 262 | 263 | if ($result) { 264 | 265 | echo "
    266 |
    "; 267 | } 268 | 269 | } 270 | ?> 271 | 272 | 273 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 313 | -------------------------------------------------------------------------------- /website/signup.php: -------------------------------------------------------------------------------- 1 | alert('Credentials already exists'); setTimeout(function(){ window.location.href = 'signup.php'; }, 100); "; 22 | exit(); 23 | } 24 | if ($password != $confirmpassowrd) { 25 | echo ""; 26 | exit(); 27 | } 28 | if ($password < 8) { 29 | echo ""; 30 | exit(); 31 | } 32 | if (strtotime($dob) > time()) { 33 | echo ""; 34 | exit(); 35 | } 36 | if ($gen == "S") { 37 | echo ""; 38 | exit(); 39 | } 40 | if (preg_match('/\D/', $cnic) || strlen($cnic) != 13) { 41 | echo ""; 42 | exit(); 43 | } 44 | if (preg_match('/\D/', $contact) || strlen($contact) != 11) { 45 | echo ""; 46 | exit(); 47 | } 48 | 49 | $query = "insert into `accounts` (afname, alname, phone, email,cnic, dob, username, gender,password) values ('$firstname', '$lastname', '$contact','$email', '$cnic', '$dob', '$username', '$gen','$password')"; 50 | 51 | $result = mysqli_query($con, $query); 52 | 53 | 54 | 55 | if ($result) { 56 | echo ""; // exit(); 57 | } 58 | 59 | } 60 | ?> 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | ByteBazaar 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 101 | 102 | 103 |
    104 |

    105 | 106 | 107 | 108 | 109 | 110 | 112 | 113 | 114 | 115 | 120 | 121 | 122 |
    123 | 124 |
    125 | Already have an account? 126 |
    127 | 128 | 129 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | -------------------------------------------------------------------------------- /website/sproduct.php: -------------------------------------------------------------------------------- 1 | alert('item already added to cart') "; 22 | 23 | header("Location: cart.php"); 24 | exit(); 25 | } else { 26 | 27 | $query = "INSERT INTO `cart` (aid, pid, cqty) values ($aid, $pid, $qty)"; 28 | $result = mysqli_query($con, $query); 29 | header("Location: shop.php"); 30 | exit(); 31 | } 32 | 33 | } 34 | if (isset($_GET['w'])) { 35 | include("include/connect.php"); 36 | $aid = $_SESSION['aid']; 37 | if ($aid < 0) { 38 | header("Location: login.php"); 39 | exit(); 40 | } 41 | $pid = $_GET['w']; 42 | 43 | $query = "INSERT INTO `WISHLIST` (aid, pid) values ($aid, $pid)"; 44 | 45 | $result = mysqli_query($con, $query); 46 | header("Location: sproduct.php?pid=$pid"); 47 | exit(); 48 | } 49 | if (isset($_GET['nw'])) { 50 | include("include/connect.php"); 51 | $aid = $_SESSION['aid']; 52 | $pid = $_GET['nw']; 53 | 54 | $query = "DELETE from `WISHLIST` where aid = $aid and pid = $pid"; 55 | 56 | $result = mysqli_query($con, $query); 57 | header("Location: sproduct.php?pid=$pid"); 58 | exit(); 59 | } 60 | 61 | ?> 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | ByteBazaar 72 | 73 | 74 | 75 | 76 | 77 | 114 | 115 | 116 | 117 | 118 | 151 | 152 | 180 |
    181 |  182 |
    183 |
    184 | 185 |

    $pname

    186 |

    $cat - $brand

    187 |

    $$price

    188 |
    189 | 190 | "; 191 | 192 | if ($row) 193 | echo " "; 195 | else 196 | echo " "; 198 | 199 | echo " 200 |
    201 |

    Product Details

    202 | $desc 203 | "; 204 | 205 | 206 | 207 | echo "
    "; 208 | } 209 | 210 | $query = "select * from reviews join orders on reviews.oid = orders.oid join accounts on orders.aid = accounts.aid where reviews.pid = $pid"; 211 | $result = mysqli_query($con, $query); 212 | 213 | $row = mysqli_fetch_assoc($result); 214 | 215 | if (!empty($row)) 216 | { 217 | $result = mysqli_query($con, $query); 218 | 219 | echo " 220 |
    221 |

    Reviews

    222 |
    223 | 224 | 225 | "; 226 | 227 | while ($row = mysqli_fetch_assoc($result)) { 228 | $user = $row['username']; 229 | $rtext = $row['rtext']; 230 | $stars = $row['rating']; 231 | 232 | $empty = 5 - $stars; 233 | 234 | echo " 235 | 236 | 246 | "; 247 | } 248 | 249 | echo "
    usernameratingtext
    $user
    "; 237 | for ($i = 1; $i <= $stars; $i++) { 238 | echo ""; 239 | 240 | } 241 | for ($i = 1; $i <= $empty; $i++) { 242 | echo ""; 243 | 244 | } 245 | echo "
    $rtext
    "; 250 | 251 | } 252 | ?> 253 | 254 | 255 | 284 | 285 | 302 | 303 | 304 | 305 | 306 | 307 | -------------------------------------------------------------------------------- /website/style.css: -------------------------------------------------------------------------------- 1 | @import url("https://fonts.googleapis.com/css2?family=Spartan:wght@100;200;300;400;500;600;700;800;900&display=swap"); 2 | 3 | * { 4 | margin: 0; 5 | padding: 0; 6 | box-sizing: border-box; 7 | font-family: "Spartan", sans-serif; 8 | } 9 | 10 | html { 11 | scroll-behavior: smooth; 12 | } 13 | 14 | /* Global Styles */ 15 | 16 | h1 { 17 | font-size: 50px; 18 | line-height: 64px; 19 | color: #222; 20 | } 21 | 22 | h2 { 23 | font-size: 46px; 24 | line-height: 54px; 25 | color: #222; 26 | } 27 | 28 | h4 { 29 | font-size: 20px; 30 | color: #222; 31 | } 32 | 33 | h6 { 34 | font-weight: 700; 35 | font-size: 12px; 36 | } 37 | 38 | p { 39 | font-size: 16px; 40 | color: #465b52; 41 | margin: 15px 0 20px 0; 42 | } 43 | 44 | .section-p1 { 45 | padding: 40px 80px; 46 | } 47 | 48 | .section-m1 { 49 | margin: 40px 0; 50 | } 51 | 52 | button.normal { 53 | font-size: 14px; 54 | font-weight: 600; 55 | padding: 15px 30px; 56 | color: #000; 57 | background-color: #fff; 58 | border-radius: 4px; 59 | cursor: pointer; 60 | border: none; 61 | outline: none; 62 | transition: 0.2s; 63 | } 64 | 65 | body { 66 | width: 100%; 67 | } 68 | 69 | /* header start */ 70 | #header { 71 | display: flex; 72 | align-items: center; 73 | justify-content: space-between; 74 | padding: 20px 80px; 75 | background: #e3e6f3; 76 | box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06); 77 | position: sticky; 78 | z-index: 999; 79 | top: 0; 80 | left: 0; 81 | } 82 | 83 | #navbar { 84 | display: flex; 85 | align-items: center; 86 | justify-content: center; 87 | } 88 | 89 | #navbar li { 90 | list-style: none; 91 | padding: 0 20px; 92 | position: relative; 93 | } 94 | 95 | #navbar li a { 96 | text-decoration: none; 97 | font-size: 16px; 98 | font-weight: 600; 99 | color: #1a1a1a; 100 | transition: 0.3s ease; 101 | } 102 | 103 | #navbar li a:hover, 104 | #navbar li a.active { 105 | color: #088178; 106 | } 107 | 108 | #navbar li a.active::after, 109 | #navbar li a:hover::after { 110 | content: ""; 111 | width: 30%; 112 | height: 2px; 113 | background: #088178; 114 | position: absolute; 115 | bottom: -4px; 116 | left: 20px; 117 | } 118 | 119 | #mobile { 120 | display: none; 121 | align-items: center; 122 | } 123 | 124 | #close { 125 | display: none; 126 | } 127 | 128 | /* home page */ 129 | 130 | #hero { 131 | background-image: url("img/hero4.png"); 132 | height: 90vh; 133 | width: 100%; 134 | background-size: cover; 135 | background-position: top 25% right 0; 136 | padding: 0 80px; 137 | display: flex; 138 | flex-direction: column; 139 | align-items: flex-start; 140 | justify-content: center; 141 | color: #e3e6f3; 142 | } 143 | 144 | #hero h4, 145 | #hero h2, 146 | #hero h1, 147 | #hero p, 148 | #hero button { 149 | color: #e3e6f3; 150 | } 151 | 152 | #hero h4 { 153 | padding-bottom: 15px; 154 | } 155 | 156 | #hero h1 { 157 | color: #088178; 158 | } 159 | 160 | #hero button { 161 | background-image: url("img/button.png"); 162 | background-color: transparent; 163 | color: #088178; 164 | border: 0; 165 | padding: 14px 80px 14px 65px; 166 | background-repeat: no-repeat; 167 | cursor: pointer; 168 | font-weight: 700; 169 | font-size: 15px; 170 | } 171 | 172 | #feature { 173 | display: flex; 174 | align-items: center; 175 | justify-content: space-between; 176 | flex-wrap: wrap; 177 | } 178 | 179 | #feature .fe-box { 180 | width: 180px; 181 | text-align: center; 182 | padding: 25px 15px; 183 | box-shadow: 20px 20px 34px rgba(0, 0, 0, 0.03); 184 | border: 1px solid #cce7d0; 185 | border-radius: 4px; 186 | margin: 15px 0; 187 | } 188 | 189 | #feature .fe-box:hover { 190 | box-shadow: 10px 10px 54px rgba(70, 62, 221, 0.1); 191 | } 192 | 193 | #feature .fe-box img { 194 | width: 100%; 195 | margin-bottom: 10px; 196 | } 197 | 198 | #feature .fe-box h6 { 199 | padding: 9px 8px 6px 8px; 200 | line-height: 1; 201 | border-radius: 4px; 202 | color: #088178; 203 | background-color: #fddde4; 204 | } 205 | 206 | #feature .fe-box:nth-child(2) h6 { 207 | background-color: #cdebbc; 208 | } 209 | 210 | #feature .fe-box:nth-child(3) h6 { 211 | background-color: #d1e8f2; 212 | } 213 | 214 | #feature .fe-box:nth-child(4) h6 { 215 | background-color: #cdd4f8; 216 | } 217 | 218 | #feature .fe-box:nth-child(5) h6 { 219 | background-color: #f6dbf6; 220 | } 221 | 222 | #feature .fe-box:nth-child(6) h6 { 223 | background-color: #fff2e5; 224 | } 225 | 226 | #product1 { 227 | text-align: center; 228 | 229 | } 230 | 231 | #product1 .pro-container { 232 | display: flex; 233 | justify-content: left; 234 | padding-top: 20px; 235 | flex-wrap: wrap; 236 | 237 | } 238 | 239 | #product1 .pro { 240 | width: 14%; 241 | height: 20%; 242 | min-width: 250px; 243 | padding: 10px 12px; 244 | border: 1px solid #cce7d0; 245 | border-radius: 25px; 246 | cursor: pointer; 247 | box-shadow: 20px 20px 30px rgba(0, 0, 0, 0.02); 248 | margin: 15px; 249 | transition: 0.2s ease; 250 | position: relative; 251 | } 252 | 253 | #product1 .pro:hover { 254 | box-shadow: 20px 20px 30px rgba(0, 0, 0, 0.06); 255 | } 256 | 257 | #product1 .pro img { 258 | width: 100%; 259 | border-radius: 20px; 260 | } 261 | 262 | #product1 .pro .des { 263 | text-align: start; 264 | padding: 10px 0; 265 | } 266 | 267 | #product1 .pro .des span { 268 | color: #606063; 269 | font-size: 12px; 270 | } 271 | 272 | #product1 .pro .des h5 { 273 | padding-top: 7px; 274 | color: #1a1a1a; 275 | font-size: 14px; 276 | } 277 | 278 | #product1 .pro .des i { 279 | font-size: 12px; 280 | color: rgb(243, 181, 25); 281 | } 282 | 283 | #product1 .pro .des h4 { 284 | padding-top: 7px; 285 | font-size: 15px; 286 | font-weight: 700; 287 | color: #088178; 288 | } 289 | 290 | #product1 .pro .cart { 291 | width: 40px; 292 | height: 40px; 293 | line-height: 40px; 294 | border-radius: 50px; 295 | background-color: #e8f6ea; 296 | font-weight: 500; 297 | color: #088178; 298 | position: absolute; 299 | bottom: 20px; 300 | right: 10px; 301 | } 302 | 303 | #banner { 304 | display: flex; 305 | flex-direction: column; 306 | justify-content: center; 307 | align-items: center; 308 | text-align: center; 309 | background-image: url("img/banner/b2.jpg"); 310 | width: 100%; 311 | height: 40vh; 312 | background-size: cover; 313 | background-position: center; 314 | } 315 | 316 | #banner h4 { 317 | color: #fff; 318 | font-size: 16px; 319 | } 320 | 321 | #banner h2 { 322 | color: #fff; 323 | font-size: 30px; 324 | padding: 10px 0; 325 | } 326 | 327 | #banner h2 span { 328 | color: #ef3636; 329 | } 330 | 331 | #banner button:hover { 332 | background: #088178; 333 | color: #fff; 334 | } 335 | 336 | #sm-banner { 337 | display: flex; 338 | justify-content: space-between; 339 | flex-wrap: wrap; 340 | } 341 | 342 | #sm-banner .banner-box { 343 | display: flex; 344 | flex-direction: column; 345 | justify-content: center; 346 | align-items: flex-start; 347 | background-image: url("img/banner/b30.jpg"); 348 | min-width: 800px; 349 | height: 50vh; 350 | background-size: cover; 351 | background-position: center; 352 | padding: 30px; 353 | } 354 | 355 | #sm-banner .banner-box2 { 356 | background-image: url("img/banner/b32.jpg"); 357 | } 358 | 359 | #sm-banner h4 { 360 | color: #fff; 361 | font-size: 20px; 362 | font-weight: 300; 363 | } 364 | 365 | #sm-banner h2 { 366 | color: #fff; 367 | font-size: 28px; 368 | font-weight: 800; 369 | } 370 | 371 | #sm-banner span { 372 | color: #fff; 373 | font-size: 14px; 374 | font-weight: 500; 375 | padding-bottom: 15px; 376 | } 377 | 378 | button.white { 379 | font-size: 13px; 380 | font-weight: 600; 381 | padding: 11px 18px; 382 | color: #fff; 383 | background-color: transparent; 384 | border-radius: 4px; 385 | cursor: pointer; 386 | border: 1px solid #fff; 387 | outline: none; 388 | transition: 0.2s; 389 | } 390 | 391 | #sm-banner .banner-box:hover button { 392 | background: #088178; 393 | border: 1px solid #088178; 394 | } 395 | 396 | #banner3 { 397 | display: flex; 398 | justify-content: space-between; 399 | flex-wrap: wrap; 400 | padding: 0 80px; 401 | } 402 | 403 | #banner3 .banner-box { 404 | display: flex; 405 | flex-direction: column; 406 | justify-content: center; 407 | align-items: flex-start; 408 | background-image: url("img/banner/b31.jpg"); 409 | min-width: 30%; 410 | height: 30vh; 411 | background-size: cover; 412 | background-position: center; 413 | padding: 20px; 414 | margin-bottom: 20px; 415 | } 416 | 417 | #banner3 .banner-box2 { 418 | background-image: url("img/banner/p1.jpg"); 419 | } 420 | 421 | #banner3 .banner-box3 { 422 | background-image: url("img/banner/b34.jpeg"); 423 | } 424 | 425 | #banner3 h2 { 426 | color: #fff; 427 | font-weight: 900; 428 | font-size: 22px; 429 | } 430 | 431 | #banner3 h3 { 432 | color: #ec544e; 433 | font-weight: 800; 434 | font-size: 15px; 435 | } 436 | 437 | #newsletter { 438 | display: flex; 439 | justify-content: space-between; 440 | flex-wrap: wrap; 441 | align-items: center; 442 | background-color: url("img/banner/b14.png"); 443 | background-repeat: no-repeat; 444 | background-position: 20% 30%; 445 | background-color: #041e42; 446 | } 447 | 448 | #newsletter h4 { 449 | font-size: 22px; 450 | font-weight: 700; 451 | color: #fff; 452 | } 453 | 454 | #newsletter p { 455 | font-size: 14px; 456 | font-weight: 600; 457 | color: #818ea0; 458 | } 459 | 460 | #newsletter p span { 461 | color: #ffbd27; 462 | } 463 | 464 | #newsletter .form { 465 | display: flex; 466 | width: 40%; 467 | } 468 | 469 | #newsletter input { 470 | height: 3.125rem; 471 | padding: 0 1.25em; 472 | font-size: 14px; 473 | width: 100%; 474 | border: 1px solid transparent; 475 | border-radius: 4px; 476 | outline: none; 477 | border-top-right-radius: 0; 478 | border-bottom-right-radius: 0; 479 | } 480 | 481 | #newsletter button { 482 | background-color: #088178; 483 | color: #fff; 484 | white-space: nowrap; 485 | border-top-left-radius: 0; 486 | border-bottom-left-radius: 0; 487 | } 488 | 489 | footer { 490 | display: flex; 491 | flex-wrap: wrap; 492 | justify-content: space-between; 493 | } 494 | 495 | footer .col { 496 | display: flex; 497 | flex-direction: column; 498 | align-items: flex-start; 499 | margin-bottom: 20px; 500 | } 501 | 502 | footer .logo { 503 | margin-bottom: 30px; 504 | } 505 | 506 | footer h4 { 507 | font-size: 14px; 508 | padding-bottom: 20px; 509 | } 510 | 511 | footer a { 512 | font-size: 13px; 513 | margin: 0 0 8px 0; 514 | text-decoration: none; 515 | color: #222; 516 | } 517 | 518 | footer p { 519 | font-size: 13px; 520 | margin: 0 0 8px 0; 521 | } 522 | 523 | footer a:hover { 524 | color: #088178; 525 | } 526 | 527 | footer .copyright { 528 | width: 100%; 529 | text-align: center; 530 | } 531 | 532 | /*shop*/ 533 | #page-header { 534 | background-image: url("img/banner/p1.jpg"); 535 | width: 100%; 536 | height: 40vh; 537 | background-size: cover; 538 | display: flex; 539 | justify-content: center; 540 | text-align: center; 541 | flex-direction: column; 542 | padding: 14px; 543 | } 544 | 545 | #page-header h2, 546 | #page-header p { 547 | color: #ffbd27; 548 | } 549 | 550 | #pagination { 551 | text-align: center; 552 | } 553 | 554 | #pagination a { 555 | text-decoration: none; 556 | background-color: #088178; 557 | padding: 15px 20px; 558 | border-radius: 4px; 559 | color: #fff; 560 | font-weight: 600; 561 | } 562 | 563 | #pagination a i { 564 | font-size: 16px; 565 | font-weight: 600; 566 | } 567 | 568 | /*Single Product */ 569 | 570 | #prodetails { 571 | display: flex; 572 | margin-top: 20px; 573 | } 574 | 575 | #prodetails .single-pro-image { 576 | width: 40%; 577 | margin-right: 50px; 578 | } 579 | 580 | .small-img-group { 581 | display: flex; 582 | justify-content: space-between; 583 | } 584 | 585 | .small-img-col { 586 | flex-basis: 24%; 587 | cursor: pointer; 588 | } 589 | 590 | #prodetails .single-pro-details { 591 | width: 50%; 592 | padding-top: 30px; 593 | } 594 | 595 | #prodetails .single-pro-details h4 { 596 | padding: 40px 0 20px 0; 597 | } 598 | 599 | #prodetails .single-pro-details h2 { 600 | font-size: 26px; 601 | } 602 | 603 | #prodetails .single-pro-details select { 604 | display: block; 605 | padding: 5px 10px; 606 | margin-bottom: 10px; 607 | } 608 | 609 | #prodetails .single-pro-details input { 610 | width: 50px; 611 | height: 47px; 612 | padding-left: 10px; 613 | font-size: 16px; 614 | margin-right: 10px; 615 | } 616 | 617 | #prodetails .single-pro-details input:focus { 618 | outline: none; 619 | } 620 | 621 | #prodetails .single-pro-details button { 622 | background: #088178; 623 | color: #fff; 624 | } 625 | 626 | #prodetails .single-pro-details span { 627 | line-height: 25px; 628 | } 629 | 630 | @media (max-width: 799px) { 631 | .section-p1 { 632 | padding: 40px 40px; 633 | } 634 | 635 | #navbar { 636 | display: flex; 637 | flex-direction: column; 638 | align-items: flex-start; 639 | justify-content: flex-start; 640 | position: fixed; 641 | top: 0; 642 | right: -300px; 643 | height: 100vh; 644 | width: 300px; 645 | background-color: #e3e6f3; 646 | box-shadow: 0 40px 60px rgba(0, 0, 0, 0.1); 647 | padding: 80px 0 0 10px; 648 | transition: 0.3s; 649 | } 650 | 651 | #navbar.active { 652 | right: 0px; 653 | } 654 | 655 | #navbar li { 656 | margin-bottom: 25px; 657 | } 658 | 659 | #mobile { 660 | display: flex; 661 | align-items: center; 662 | } 663 | 664 | #mobile i { 665 | color: #1a1a1a; 666 | font-size: 24px; 667 | padding-left: 20px; 668 | } 669 | 670 | #close { 671 | display: initial; 672 | position: absolute; 673 | top: 30px; 674 | left: 30px; 675 | color: #222; 676 | font-size: 24px; 677 | } 678 | 679 | #lg-bag { 680 | display: none; 681 | } 682 | 683 | #hero { 684 | height: 70vh; 685 | padding: 0 80px; 686 | background-position: top 30% right 30%; 687 | } 688 | 689 | #feature { 690 | justify-content: center; 691 | } 692 | 693 | #feature .fe-box { 694 | margin: 15px 15px; 695 | } 696 | 697 | #product1 .pro-container { 698 | justify-content: center; 699 | } 700 | 701 | #product1 .pro { 702 | margin: 15px; 703 | } 704 | 705 | 706 | 707 | #banner { 708 | height: 20vh; 709 | } 710 | 711 | #sm-banner .banner-box { 712 | min-width: 100%; 713 | height: 30vh; 714 | } 715 | 716 | #banner3 { 717 | padding: 0 40px; 718 | } 719 | 720 | #banner3 .banner-box { 721 | width: 28%; 722 | } 723 | 724 | #banner3 .form { 725 | width: 70%; 726 | } 727 | 728 | #form-details { 729 | padding: 40px; 730 | } 731 | 732 | #form-details form { 733 | width: 50%; 734 | } 735 | } 736 | 737 | @media (max-width: 477px) { 738 | .section-p1 { 739 | padding: 20px; 740 | } 741 | 742 | #lg-bag { 743 | display: none; 744 | } 745 | 746 | #header { 747 | padding: 10 px 30px; 748 | } 749 | 750 | h1 { 751 | font-size: 38px; 752 | } 753 | 754 | h2 { 755 | font-size: 32px; 756 | } 757 | 758 | #hero { 759 | padding: 0 20px; 760 | background-position: 55%; 761 | } 762 | 763 | #feature { 764 | justify-content: space-between; 765 | } 766 | 767 | #feature .fe-box { 768 | width: 155px; 769 | margin: 0 0 15px 0; 770 | } 771 | 772 | #product1 .pro { 773 | width: 100%; 774 | } 775 | 776 | #banner { 777 | height: 40vh; 778 | } 779 | 780 | #sm-banner .banner-box { 781 | height: 40vh; 782 | } 783 | 784 | #sm-banner .banner-box2 { 785 | margin-top: 20px; 786 | } 787 | 788 | #banner3 { 789 | padding: 0 20px; 790 | } 791 | 792 | #banner3 .banner-box { 793 | width: 100%; 794 | } 795 | 796 | #newsletter { 797 | padding: 40px 20px; 798 | } 799 | 800 | #newsletter .form { 801 | width: 100%; 802 | } 803 | 804 | footer .copyright { 805 | text-align: start; 806 | } 807 | 808 | #prodetails { 809 | display: flex; 810 | flex-direction: column; 811 | } 812 | 813 | #prodetails .single-pro-image { 814 | width: 100%; 815 | margin-right: 0px; 816 | } 817 | 818 | #prodetails .single-pro-details { 819 | width: 100%; 820 | } 821 | 822 | #about-head { 823 | display: flex; 824 | flex-direction: column; 825 | align-items: center; 826 | } 827 | 828 | #about-head img { 829 | width: 100%; 830 | margin-bottom: 20px; 831 | } 832 | 833 | #contact-details { 834 | flex-direction: column; 835 | } 836 | 837 | #contact-details .details { 838 | width: 100%; 839 | margin-bottom: 30px; 840 | } 841 | 842 | #contact-details .map { 843 | width: 100%; 844 | } 845 | 846 | #form-details { 847 | margin: 10px; 848 | padding: 30px 10px; 849 | flex-wrap: wrap; 850 | } 851 | 852 | #cart-add { 853 | flex-direction: column; 854 | } 855 | 856 | #coupon { 857 | width: 100%; 858 | } 859 | 860 | #subtotal { 861 | width: 100%; 862 | padding: 20px; 863 | } 864 | } 865 | 866 | #page-header.about-header { 867 | background-image: url("img/about/b50.jpg"); 868 | } 869 | 870 | #about-head { 871 | display: flex; 872 | align-items: center; 873 | } 874 | 875 | #about-head img { 876 | width: 50%; 877 | height: auto; 878 | } 879 | 880 | #about-head div { 881 | padding-left: 40px; 882 | } 883 | 884 | #contact-details { 885 | display: flex; 886 | align-items: center; 887 | justify-content: space-between; 888 | } 889 | 890 | #contact-details .details { 891 | width: 40%; 892 | } 893 | 894 | #contact-details .details h2, 895 | #form-details form h2 { 896 | font-size: 26px; 897 | line-height: 35px; 898 | padding: 20px 0; 899 | } 900 | 901 | #contact-details .details span, 902 | #form-details form span { 903 | font-size: 12px; 904 | } 905 | 906 | #contact-details .details h3 { 907 | font-size: 16px; 908 | padding-bottom: 15px; 909 | } 910 | 911 | #contact-details .details li { 912 | list-style: none; 913 | display: flex; 914 | padding: 10px 0; 915 | } 916 | 917 | #contact-details .details li i { 918 | font-size: 14px; 919 | padding-right: 22px; 920 | } 921 | 922 | #contact-details .details li p { 923 | margin: 0; 924 | font-size: 14px; 925 | } 926 | 927 | #contact-details .map { 928 | width: 55%; 929 | height: 400px; 930 | } 931 | 932 | #contact-details .map iframe { 933 | width: 100%; 934 | height: 100%; 935 | } 936 | 937 | #form-details { 938 | display: flex; 939 | justify-content: space-between; 940 | margin: 30px; 941 | padding: 80px; 942 | border: 1px solid #e1e1e1; 943 | } 944 | 945 | #form-details form { 946 | width: 65%; 947 | display: flex; 948 | flex-direction: column; 949 | align-items: flex-start; 950 | } 951 | 952 | #form-details form input, 953 | #form-details form textarea { 954 | width: 100%; 955 | padding: 12px 15px; 956 | outline: none; 957 | margin-bottom: 20px; 958 | border: 1px solid #e1e1e1; 959 | } 960 | 961 | #form-details form button { 962 | background-color: #088178; 963 | color: #fff; 964 | } 965 | 966 | #form-details .people div { 967 | padding-bottom: 25px; 968 | display: flex; 969 | align-items: flex-start; 970 | } 971 | 972 | #form-details .people div img { 973 | width: 65px; 974 | height: 65px; 975 | object-fit: cover; 976 | margin-right: 15px; 977 | } 978 | 979 | #form-details .people div p { 980 | margin: 0; 981 | font-size: 13px; 982 | line-height: 25px; 983 | } 984 | 985 | #form-details .people div p span { 986 | display: block; 987 | font-size: 16px; 988 | font-weight: 600; 989 | color: #000; 990 | } 991 | 992 | #cart { 993 | overflow-x: auto; 994 | } 995 | 996 | #cart table { 997 | width: 100%; 998 | border-collapse: collapse; 999 | table-layout: fixed; 1000 | white-space: nowrap; 1001 | } 1002 | 1003 | #cart table img { 1004 | width: 70px; 1005 | } 1006 | 1007 | #cart table td:nth-child(1) { 1008 | width: 100px; 1009 | text-align: center; 1010 | } 1011 | 1012 | #cart table td:nth-child(2) { 1013 | width: 150px; 1014 | text-align: center; 1015 | } 1016 | 1017 | #cart table td:nth-child(3) { 1018 | width: 250px; 1019 | text-align: center; 1020 | } 1021 | 1022 | #cart table td:nth-child(4), 1023 | #cart table td:nth-child(5), 1024 | #cart table td:nth-child(6) { 1025 | width: 150px; 1026 | text-align: center; 1027 | } 1028 | 1029 | #cart table td:nth-child(5) input { 1030 | width: 70px; 1031 | padding: 10px 5px 10px 15px; 1032 | } 1033 | 1034 | #cart table thead { 1035 | border: 1px solid #e2e9e1; 1036 | border-left: none; 1037 | border-right: none; 1038 | } 1039 | 1040 | #cart table thead td { 1041 | font-weight: 700; 1042 | text-transform: uppercase; 1043 | font-size: 13px; 1044 | padding: 18px 0; 1045 | } 1046 | 1047 | #cart table tbody tr td { 1048 | padding-top: 15px; 1049 | } 1050 | 1051 | #cart table tbody td { 1052 | font-size: 13px; 1053 | } 1054 | 1055 | #cart-add { 1056 | display: flex; 1057 | flex-wrap: wrap; 1058 | justify-content: space-between; 1059 | } 1060 | 1061 | #coupon { 1062 | width: 50%; 1063 | margin-bottom: 30px; 1064 | } 1065 | 1066 | #coupon h3 { 1067 | padding-bottom: 15px; 1068 | } 1069 | 1070 | #coupon input { 1071 | padding: 10px 20px; 1072 | outline: none; 1073 | width: 60%; 1074 | margin-right: 10px; 1075 | border: 1px solid #e2e9e1; 1076 | } 1077 | 1078 | #coupon button, 1079 | #subtotal button { 1080 | background-color: #088178; 1081 | color: #fff; 1082 | padding: 12px 20px; 1083 | } 1084 | 1085 | #subtotal { 1086 | width: 50%; 1087 | margin-bottom: 30px; 1088 | border: 1px solid #e2e9e1; 1089 | padding: 30px; 1090 | } 1091 | 1092 | #subtotal table { 1093 | border-collapse: collapse; 1094 | width: 100%; 1095 | margin-bottom: 20px; 1096 | } 1097 | 1098 | #subtotal table td { 1099 | width: 50%; 1100 | border: 1px solid #e2e9e1; 1101 | padding: 10px; 1102 | font-size: 13px; 1103 | } 1104 | 1105 | #form { 1106 | background-color: white; 1107 | margin: 0px; 1108 | padding: 30px 20px; 1109 | text-align: center; 1110 | box-shadow: 1px 1px 4px 1px #e6e6e6; 1111 | } 1112 | 1113 | .input1 { 1114 | display: block; 1115 | width: 30%; 1116 | margin: 40px auto; 1117 | padding: 10px 5px; 1118 | border: none; 1119 | border-bottom: 0.01rem dimgray solid; 1120 | outline: none; 1121 | } 1122 | 1123 | .select1 { 1124 | display: block; 1125 | width: 30%; 1126 | margin: 40px auto; 1127 | padding: 10px 5px; 1128 | border: none; 1129 | border-bottom: 0.01rem dimgray solid; 1130 | outline: none; 1131 | } 1132 | 1133 | .btn { 1134 | outline: none; 1135 | border: none; 1136 | padding: 10px 30px; 1137 | background-color: navy; 1138 | color: white; 1139 | border-radius: 1rem; 1140 | width: 20%; 1141 | cursor: pointer; 1142 | } 1143 | 1144 | a.signn { 1145 | color: #465b52; 1146 | font-size: 18px; 1147 | } 1148 | 1149 | div.sign { 1150 | display: flex; 1151 | margin: 30px 0; 1152 | justify-content: center; 1153 | } 1154 | 1155 | div.titlecheck { 1156 | display: flex; 1157 | margin: 30px 0; 1158 | justify-content: center; 1159 | } 1160 | 1161 | .d-flex { 1162 | display: flex; 1163 | flex-direction: row; 1164 | background: #f6f6f6; 1165 | border-radius: 0 0px 5px; 1166 | padding: 25px; 1167 | justify-content: space-between; 1168 | } 1169 | 1170 | .Yorder { 1171 | margin-right: 200px; 1172 | height: 600px; 1173 | padding: 20px; 1174 | border: 1px solid #dadada; 1175 | background-color: white; 1176 | padding: 30px; 1177 | 1178 | box-shadow: 1px 1px 4px 1px #e6e6e6; 1179 | width: 428px; 1180 | overflow: auto; 1181 | } 1182 | 1183 | .container { 1184 | width: 100%; 1185 | padding-right: 15px; 1186 | padding-left: 15px; 1187 | margin-right: auto; 1188 | margin-left: auto; 1189 | } 1190 | 1191 | #form1 { 1192 | background-color: white; 1193 | margin-left: 100px; 1194 | padding: 30px; 1195 | text-align: left; 1196 | box-shadow: 1px 1px 4px 1px #e6e6e6; 1197 | width: 800px; 1198 | } 1199 | 1200 | .btn1 { 1201 | outline: none; 1202 | border: none; 1203 | padding: 10px 30px; 1204 | background-color: navy; 1205 | color: white; 1206 | border-radius: 1rem; 1207 | width: 80%; 1208 | cursor: pointer; 1209 | margin-left: 70px; 1210 | } 1211 | 1212 | .btn112 { 1213 | outline: none; 1214 | border: none; 1215 | padding: 10px 30px; 1216 | background-color: navy; 1217 | color: white; 1218 | border-radius: 1rem; 1219 | width: 80%; 1220 | cursor: pointer; 1221 | margin-top: 30px; 1222 | margin-left: 70px; 1223 | } 1224 | 1225 | .table1 { 1226 | margin: 0; 1227 | padding: 0; 1228 | } 1229 | 1230 | .th1 { 1231 | border-bottom: 1px solid #dadada; 1232 | padding: 10px 0; 1233 | } 1234 | 1235 | .tr1 > td:nth-child(1) { 1236 | text-align: left; 1237 | color: #2d2d2a; 1238 | } 1239 | 1240 | .tr1 > td:nth-child(2) { 1241 | text-align: right; 1242 | color: #52ad9c; 1243 | } 1244 | 1245 | .td1 { 1246 | border-bottom: 1px solid #dadada; 1247 | padding: 25px 25px 25px 0; 1248 | } 1249 | 1250 | .input2 { 1251 | margin: 15px 10px; 1252 | margin-left: 80px; 1253 | 1254 | } 1255 | 1256 | .btn2 { 1257 | outline: none; 1258 | border: none; 1259 | padding: 10px 30px; 1260 | background-color: navy; 1261 | color: white; 1262 | border-radius: 1rem; 1263 | width: 80%; 1264 | cursor: pointer; 1265 | margin-left: 40px; 1266 | margin-top: 80px; 1267 | } 1268 | 1269 | .title { 1270 | padding-top: 15px; 1271 | position: absolute; 1272 | left: 45%; 1273 | } 1274 | 1275 | .icon-count { 1276 | background-color: #ff0000; 1277 | color: #fff; 1278 | float: right; 1279 | font-size: 11px; 1280 | left: -25px; 1281 | padding: 2px; 1282 | position: relative; 1283 | } 1284 | 1285 | /* End */ 1286 | 1287 | /* Sidenav */ 1288 | .sidenav { 1289 | background-color: #fff; 1290 | color: #333; 1291 | margin-top: 100px; 1292 | border-bottom-right-radius: 25px; 1293 | height: 86%; 1294 | left: 0; 1295 | overflow-x: hidden; 1296 | padding-top: 20px; 1297 | position: absolute; 1298 | top: 70px; 1299 | width: 250px; 1300 | } 1301 | 1302 | .url { 1303 | margin: 20px 0px; 1304 | } 1305 | 1306 | .profile { 1307 | margin-bottom: 20px; 1308 | margin-top: -12px; 1309 | text-align: center; 1310 | } 1311 | 1312 | .profile img { 1313 | border-radius: 50%; 1314 | box-shadow: 0px 0px 5px 1px grey; 1315 | } 1316 | 1317 | .name { 1318 | font-size: 20px; 1319 | font-weight: bold; 1320 | padding-top: 20px; 1321 | } 1322 | 1323 | .job { 1324 | font-size: 16px; 1325 | font-weight: bold; 1326 | padding-top: 10px; 1327 | } 1328 | 1329 | .url, 1330 | hr { 1331 | text-align: center; 1332 | } 1333 | 1334 | .url hr { 1335 | margin-left: 20%; 1336 | width: 60%; 1337 | } 1338 | 1339 | .url a { 1340 | color: #fff; 1341 | display: block; 1342 | font-size: 20px; 1343 | margin: 20px; 1344 | padding: 6px 8px; 1345 | text-decoration: none; 1346 | } 1347 | 1348 | .url a:hover, 1349 | .url .active { 1350 | background-color: #e8f5ff; 1351 | border-radius: 28px; 1352 | color: #000; 1353 | margin-left: 14%; 1354 | width: 65%; 1355 | } 1356 | 1357 | /* End */ 1358 | 1359 | /* Main */ 1360 | .main { 1361 | margin-top: 2%; 1362 | margin-left: 29%; 1363 | font-size: 28px; 1364 | padding: 0 10px; 1365 | width: 58%; 1366 | } 1367 | 1368 | .main h2 { 1369 | color: #333; 1370 | font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; 1371 | font-size: 24px; 1372 | margin-bottom: 10px; 1373 | } 1374 | 1375 | .main .card { 1376 | background-color: #fff; 1377 | border-radius: 18px; 1378 | box-shadow: 1px 1px 8px 0 grey; 1379 | height: auto; 1380 | margin-bottom: 30px; 1381 | padding: 20px 0 20px 50px; 1382 | } 1383 | 1384 | .main .card table { 1385 | border: none; 1386 | font-size: 16px; 1387 | height: 270px; 1388 | width: 80%; 1389 | } 1390 | 1391 | .edit { 1392 | position: absolute; 1393 | color: #e7e7e8; 1394 | right: 14%; 1395 | } 1396 | 1397 | .social-media { 1398 | text-align: center; 1399 | width: 90%; 1400 | } 1401 | 1402 | .social-media span { 1403 | margin: 0 10px; 1404 | } 1405 | 1406 | .fa-facebook:hover { 1407 | color: #4267b3 !important; 1408 | } 1409 | 1410 | .fa-twitter:hover { 1411 | color: #1da1f2 !important; 1412 | } 1413 | 1414 | .fa-instagram:hover { 1415 | color: #ce2b94 !important; 1416 | } 1417 | 1418 | .fa-invision:hover { 1419 | color: #f83263 !important; 1420 | } 1421 | 1422 | .fa-github:hover { 1423 | color: #161414 !important; 1424 | } 1425 | 1426 | .fa-whatsapp:hover { 1427 | color: #25d366 !important; 1428 | } 1429 | 1430 | .fa-snapchat:hover { 1431 | color: #fffb01 !important; 1432 | } 1433 | 1434 | /* End */ 1435 | -------------------------------------------------------------------------------- /website/wishlist.php: -------------------------------------------------------------------------------- 1 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | ByteBazaar 28 | 29 | 30 | 31 | 32 | 40 | 41 | 42 | 43 | 76 | 77 | 82 | 83 |
    84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 118 | 121 | 122 | 123 | 124 | 125 | "; 126 | } 127 | ?> 128 | 129 |
    RemoveImageProductPrice
    119 | 120 | $pname$$price
    130 |
    131 | 132 | 161 | 162 | 163 | 164 | 165 | --------------------------------------------------------------------------------