Updated the code.
This commit is contained in:
parent
00578fd21e
commit
cb246a1dae
7 changed files with 858 additions and 16 deletions
2
README.md
vendored
2
README.md
vendored
|
@ -2,7 +2,7 @@
|
|||
|
||||
A cool shopping site made using PHP, CSS, Javascript and MySQL.
|
||||
|
||||
Note: Pricing Slider doesn't work. Also the code has security vulnerability against SQL injection so the SQL code needs to be improved.
|
||||
Note: pricing slider and payment provider doesn't work. Also the code has security vulnerability against SQL injection.
|
||||
|
||||
# Installation
|
||||
|
||||
|
|
20
action.php
20
action.php
|
@ -272,9 +272,9 @@ if(isset($_POST["get_seleted_Category"]) || isset($_POST["selectBrand"]) || isse
|
|||
echo "
|
||||
<div class='alert alert-warning'>
|
||||
<a href='#' class='close' data-dismiss='alert' aria-label='close'>×</a>
|
||||
<b>Product is already added into the cart Continue Shopping..!</b>
|
||||
<b>Product is already added into the cart continue shopping.</b>
|
||||
</div>
|
||||
";//not in video
|
||||
";
|
||||
} else {
|
||||
$db_sql = "SELECT * FROM cart";
|
||||
$db_query = mysqli_query($con, $db_sql);
|
||||
|
@ -286,7 +286,7 @@ if(isset($_POST["get_seleted_Category"]) || isset($_POST["selectBrand"]) || isse
|
|||
if(mysqli_query($con,$sql)){
|
||||
echo "<div class='alert alert-danger'>
|
||||
<a href='#' class='close' data-dismiss='alert' aria-label='close'>×</a>
|
||||
<b>Product is removed from wishlist and added to cart</b>
|
||||
<b>Product is added to cart</b>
|
||||
</div>";
|
||||
|
||||
}
|
||||
|
@ -300,7 +300,7 @@ if(isset($_POST["get_seleted_Category"]) || isset($_POST["selectBrand"]) || isse
|
|||
echo "
|
||||
<div class='alert alert-warning'>
|
||||
<a href='#' class='close' data-dismiss='alert' aria-label='close'>×</a>
|
||||
<b>Product is already added into the cart Continue Shopping..!</b>
|
||||
<b>Product is already added into the cart continue shopping.</b>
|
||||
</div>";
|
||||
exit();
|
||||
}
|
||||
|
@ -315,7 +315,7 @@ if(isset($_POST["get_seleted_Category"]) || isset($_POST["selectBrand"]) || isse
|
|||
if(mysqli_query($con,$sql)){
|
||||
echo "<div class='alert alert-danger'>
|
||||
<a href='#' class='close' data-dismiss='alert' aria-label='close'>×</a>
|
||||
<b>Product is removed from wishlist and added to cart</b>
|
||||
<b>Product is added to cart</b>
|
||||
</div>";
|
||||
exit();
|
||||
}
|
||||
|
@ -342,9 +342,9 @@ if(isset($_POST["get_seleted_Category"]) || isset($_POST["selectBrand"]) || isse
|
|||
echo "
|
||||
<div class='alert alert-warning'>
|
||||
<a href='#' class='close' data-dismiss='alert' aria-label='close'>×</a>
|
||||
<b>Product is already added into the wishlist Continue Shopping..!</b>
|
||||
<b>Product is already added into the wishlist continue shopping.</b>
|
||||
</div>
|
||||
";//not in video
|
||||
";
|
||||
} else {
|
||||
$db_sql = "SELECT * FROM wishlist";
|
||||
$db_query = mysqli_query($con, $db_sql);
|
||||
|
@ -356,7 +356,7 @@ if(isset($_POST["get_seleted_Category"]) || isset($_POST["selectBrand"]) || isse
|
|||
if(mysqli_query($con,$sql)){
|
||||
echo "<div class='alert alert-danger'>
|
||||
<a href='#' class='close' data-dismiss='alert' aria-label='close'>×</a>
|
||||
<b>Product is removed from cart and added to wishlist</b>
|
||||
<b>Product is added to wishlist</b>
|
||||
</div>";
|
||||
|
||||
}
|
||||
|
@ -369,7 +369,7 @@ if(isset($_POST["get_seleted_Category"]) || isset($_POST["selectBrand"]) || isse
|
|||
echo "
|
||||
<div class='alert alert-warning'>
|
||||
<a href='#' class='close' data-dismiss='alert' aria-label='close'>×</a>
|
||||
<b>Product is already added into the wishlist Continue Shopping..!</b>
|
||||
<b>Product is already added into the wishlist continue shopping.</b>
|
||||
</div>";
|
||||
exit();
|
||||
}
|
||||
|
@ -383,7 +383,7 @@ if(isset($_POST["get_seleted_Category"]) || isset($_POST["selectBrand"]) || isse
|
|||
if(mysqli_query($con,$sql)){
|
||||
echo "<div class='alert alert-danger'>
|
||||
<a href='#' class='close' data-dismiss='alert' aria-label='close'>×</a>
|
||||
<b>Product is removed from cart and added to wishlist</b>
|
||||
<b>Product is added to wishlist</b>
|
||||
</div>";
|
||||
exit();
|
||||
}
|
||||
|
|
|
@ -268,7 +268,7 @@ span.price {
|
|||
</table>
|
||||
<hr>
|
||||
|
||||
<h3>total<span class='price' style='color:black'><b>$$total</b></span></h3>";
|
||||
<h3>total<span class='price' style='color:black'><b>$total$</b></span></h3>";
|
||||
|
||||
}
|
||||
?>
|
||||
|
|
525
database/onlineshop.sql
vendored
Normal file
525
database/onlineshop.sql
vendored
Normal file
|
@ -0,0 +1,525 @@
|
|||
-- phpMyAdmin SQL Dump
|
||||
-- version 5.2.1
|
||||
-- https://www.phpmyadmin.net/
|
||||
--
|
||||
-- Host: localhost
|
||||
-- Generation Time: May 16, 2024 at 05:54 AM
|
||||
-- Server version: 10.4.32-MariaDB
|
||||
-- PHP Version: 8.1.25
|
||||
|
||||
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
||||
START TRANSACTION;
|
||||
SET time_zone = "+00:00";
|
||||
|
||||
|
||||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
||||
/*!40101 SET NAMES utf8mb4 */;
|
||||
|
||||
--
|
||||
-- Database: `onlineshop`
|
||||
--
|
||||
|
||||
DELIMITER $$
|
||||
--
|
||||
-- Procedures
|
||||
--
|
||||
CREATE DEFINER=`root`@`localhost` PROCEDURE `getcat` (IN `cid` INT) SELECT * FROM categories WHERE cat_id=cid$$
|
||||
|
||||
DELIMITER ;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `admin_info`
|
||||
--
|
||||
|
||||
CREATE TABLE `admin_info` (
|
||||
`admin_id` int(10) NOT NULL,
|
||||
`admin_name` varchar(100) NOT NULL,
|
||||
`admin_email` varchar(300) NOT NULL,
|
||||
`admin_password` varchar(300) NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
|
||||
|
||||
--
|
||||
-- Dumping data for table `admin_info`
|
||||
--
|
||||
|
||||
INSERT INTO `admin_info` (`admin_id`, `admin_name`, `admin_email`, `admin_password`) VALUES
|
||||
(1, 'admin', 'admin@gmail.com', '25f9e794323b453885f5181f1b624d0b');
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `brands`
|
||||
--
|
||||
|
||||
CREATE TABLE `brands` (
|
||||
`brand_id` int(100) NOT NULL,
|
||||
`brand_title` text NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
|
||||
|
||||
--
|
||||
-- Dumping data for table `brands`
|
||||
--
|
||||
|
||||
INSERT INTO `brands` (`brand_id`, `brand_title`) VALUES
|
||||
(1, 'HP'),
|
||||
(2, 'Samsung'),
|
||||
(3, 'Apple'),
|
||||
(4, 'motorolla'),
|
||||
(5, 'LG'),
|
||||
(6, 'Cloth Brand');
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `cart`
|
||||
--
|
||||
|
||||
CREATE TABLE `cart` (
|
||||
`id` int(10) NOT NULL,
|
||||
`p_id` int(10) NOT NULL,
|
||||
`ip_add` varchar(250) NOT NULL,
|
||||
`user_id` int(10) DEFAULT NULL,
|
||||
`qty` int(10) NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
|
||||
|
||||
--
|
||||
-- Dumping data for table `cart`
|
||||
--
|
||||
|
||||
INSERT INTO `cart` (`id`, `p_id`, `ip_add`, `user_id`, `qty`) VALUES
|
||||
(272, 72, '::1', 12, 1),
|
||||
(281, 1, '::1', 12, 1),
|
||||
(282, 8, '::1', 12, 3);
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `categories`
|
||||
--
|
||||
|
||||
CREATE TABLE `categories` (
|
||||
`cat_id` int(100) NOT NULL,
|
||||
`cat_title` text NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
|
||||
|
||||
--
|
||||
-- Dumping data for table `categories`
|
||||
--
|
||||
|
||||
INSERT INTO `categories` (`cat_id`, `cat_title`) VALUES
|
||||
(1, 'Electronics'),
|
||||
(2, 'Women'),
|
||||
(3, 'Men'),
|
||||
(4, 'Kids'),
|
||||
(5, 'Furnitures'),
|
||||
(6, 'Home Appliances');
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `email_info`
|
||||
--
|
||||
|
||||
CREATE TABLE `email_info` (
|
||||
`email_id` int(100) NOT NULL,
|
||||
`email` text NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
|
||||
|
||||
--
|
||||
-- Dumping data for table `email_info`
|
||||
--
|
||||
|
||||
INSERT INTO `email_info` (`email_id`, `email`) VALUES
|
||||
(1, 'admin@gmail.com'),
|
||||
(2, 'batuhanbasoglu@mailbox.org');
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `logs`
|
||||
--
|
||||
|
||||
CREATE TABLE `logs` (
|
||||
`id` int(11) NOT NULL,
|
||||
`user_id` varchar(50) NOT NULL,
|
||||
`action` varchar(50) NOT NULL,
|
||||
`date` datetime NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `orders`
|
||||
--
|
||||
|
||||
CREATE TABLE `orders` (
|
||||
`order_id` int(11) NOT NULL,
|
||||
`user_id` int(11) NOT NULL,
|
||||
`product_id` int(11) NOT NULL,
|
||||
`qty` int(11) NOT NULL,
|
||||
`trx_id` varchar(255) NOT NULL,
|
||||
`p_status` varchar(20) NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
|
||||
|
||||
--
|
||||
-- Dumping data for table `orders`
|
||||
--
|
||||
|
||||
INSERT INTO `orders` (`order_id`, `user_id`, `product_id`, `qty`, `trx_id`, `p_status`) VALUES
|
||||
(1, 12, 7, 1, '07M47684BS5725041', 'Completed'),
|
||||
(2, 14, 2, 1, '07M47684BS5725041', 'Completed');
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `orders_info`
|
||||
--
|
||||
|
||||
CREATE TABLE `orders_info` (
|
||||
`order_id` int(10) NOT NULL,
|
||||
`user_id` int(11) NOT NULL,
|
||||
`f_name` varchar(255) NOT NULL,
|
||||
`email` varchar(255) NOT NULL,
|
||||
`address` varchar(255) NOT NULL,
|
||||
`city` varchar(255) NOT NULL,
|
||||
`state` varchar(255) NOT NULL,
|
||||
`zip` int(10) NOT NULL,
|
||||
`cardname` varchar(255) NOT NULL,
|
||||
`cardnumber` varchar(20) NOT NULL,
|
||||
`expdate` varchar(255) NOT NULL,
|
||||
`prod_count` int(15) DEFAULT NULL,
|
||||
`total_amt` int(15) DEFAULT NULL,
|
||||
`cvv` int(5) NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
|
||||
|
||||
--
|
||||
-- Dumping data for table `orders_info`
|
||||
--
|
||||
|
||||
INSERT INTO `orders_info` (`order_id`, `user_id`, `f_name`, `email`, `address`, `city`, `state`, `zip`, `cardname`, `cardnumber`, `expdate`, `prod_count`, `total_amt`, `cvv`) VALUES
|
||||
(1, 12, 'support', 'batuhanbasoglu@mailbox.org', 'Montreal, Quebec, Canada', 'Montreal', 'Quebec', 560074, 'pokjhgfcxc', '4321 2345 6788 7654', '12/90', 3, 77000, 1234);
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `order_products`
|
||||
--
|
||||
|
||||
CREATE TABLE `order_products` (
|
||||
`order_pro_id` int(10) NOT NULL,
|
||||
`order_id` int(11) NOT NULL,
|
||||
`product_id` int(11) NOT NULL,
|
||||
`qty` int(15) DEFAULT NULL,
|
||||
`amt` int(15) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
|
||||
|
||||
--
|
||||
-- Dumping data for table `order_products`
|
||||
--
|
||||
|
||||
INSERT INTO `order_products` (`order_pro_id`, `order_id`, `product_id`, `qty`, `amt`) VALUES
|
||||
(73, 1, 1, 1, 5000),
|
||||
(74, 1, 4, 2, 64000),
|
||||
(75, 1, 8, 1, 40000);
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `products`
|
||||
--
|
||||
|
||||
CREATE TABLE `products` (
|
||||
`product_id` int(100) NOT NULL,
|
||||
`product_cat` int(100) NOT NULL,
|
||||
`product_brand` int(100) NOT NULL,
|
||||
`product_title` varchar(255) NOT NULL,
|
||||
`product_price` int(100) NOT NULL,
|
||||
`product_desc` text NOT NULL,
|
||||
`product_image` text NOT NULL,
|
||||
`product_keywords` text NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
|
||||
|
||||
--
|
||||
-- Dumping data for table `products`
|
||||
--
|
||||
|
||||
INSERT INTO `products` (`product_id`, `product_cat`, `product_brand`, `product_title`, `product_price`, `product_desc`, `product_image`, `product_keywords`) VALUES
|
||||
(1, 1, 2, 'Samsung galaxy s7 edge', 5000, 'Samsung galaxy s7 edge', 'product07.png', 'samsung mobile electronics'),
|
||||
(2, 1, 3, 'iPhone 5s', 25000, 'iphone 5s', 'http___pluspng.com_img-png_iphone-hd-png-iphone-apple-png-file-550.png', 'mobile iphone apple'),
|
||||
(3, 1, 3, 'iPad air 2', 30000, 'ipad apple brand', 'da4371ffa192a115f922b1c0dff88193.png', 'apple ipad tablet'),
|
||||
(4, 1, 3, 'iPhone 6s', 32000, 'Apple iPhone ', 'http___pluspng.com_img-png_iphone-6s-png-iphone-6s-gold-64gb-1000.png', 'iphone apple mobile'),
|
||||
(5, 1, 2, 'iPad 2', 10000, 'samsung ipad', 'iPad-air.png', 'ipad tablet samsung'),
|
||||
(6, 1, 1, 'samsung Laptop r series', 35000, 'samsung Black combination Laptop', 'laptop_PNG5939.png', 'samsung laptop '),
|
||||
(7, 1, 1, 'Laptop Pavillion', 50000, 'Laptop Hp Pavillion', 'laptop_PNG5930.png', 'Laptop Hp Pavillion'),
|
||||
(8, 1, 4, 'Sony', 40000, 'Sony Mobile', '530201353846AM_635_sony_xperia_z.png', 'sony mobile'),
|
||||
(9, 1, 3, 'iPhone New', 12000, 'iphone', 'iphone-hd-png-iphone-apple-png-file-550.png', 'iphone apple mobile'),
|
||||
(10, 2, 6, 'Red Ladies dress', 1000, 'red dress for girls', 'red dress.jpg', 'red dress '),
|
||||
(11, 2, 6, 'Blue Heave dress', 1200, 'Blue dress', 'images.jpg', 'blue dress cloths'),
|
||||
(12, 2, 6, 'Ladies Casual Cloths', 1500, 'ladies casual summer two colors pleted', '7475-ladies-casual-dresses-summer-two-colors-pleated.jpg', 'girl dress cloths casual'),
|
||||
(13, 2, 6, 'SpringAutumnDress', 1200, 'girls dress', 'Spring-Autumn-Winter-Young-Ladies-Casual-Wool-Dress-Women-s-One-Piece-Dresse-Dating-Clothes-Medium.jpg_640x640.jpg', 'girl dress'),
|
||||
(14, 2, 6, 'Casual Dress', 1400, 'girl dress', 'download.jpg', 'ladies cloths girl'),
|
||||
(15, 2, 6, 'Formal Look', 1500, 'girl dress', 'shutterstock_203611819.jpg', 'ladies wears dress girl'),
|
||||
(16, 3, 6, 'Sweter for men', 600, '2012-Winter-Sweater-for-Men-for-better-outlook', '2012-Winter-Sweater-for-Men-for-better-outlook.jpg', 'black sweter cloth winter'),
|
||||
(17, 3, 6, 'Gents formal', 1000, 'gents formal look', 'gents-formal-250x250.jpg', 'gents wear cloths'),
|
||||
(19, 3, 6, 'Formal Coat', 3000, 'ad', 'images (1).jpg', 'coat blazer gents'),
|
||||
(20, 3, 6, 'Mens Sweeter', 1600, 'jg', 'Winter-fashion-men-burst-sweater.png', 'sweeter gents '),
|
||||
(21, 3, 6, 'T shirt', 800, 'ssds', 'IN-Mens-Apparel-Voodoo-Tiles-09._V333872612_.jpg', 'formal t shirt black'),
|
||||
(22, 4, 6, 'Yellow T shirt ', 1300, 'yello t shirt with pant', '1.0x0.jpg', 'kids yellow t shirt'),
|
||||
(23, 4, 6, 'Girls cloths', 1900, 'sadsf', 'GirlsClothing_Widgets.jpg', 'formal kids wear dress'),
|
||||
(24, 4, 6, 'Blue T shirt', 700, 'g', 'images.jpg', 'kids dress'),
|
||||
(25, 4, 6, 'Yellow girls dress', 750, 'as', 'images (3).jpg', 'yellow kids dress'),
|
||||
(27, 4, 6, 'Formal look', 690, 'sd', 'image28.jpg', 'formal kids dress'),
|
||||
(32, 5, 0, 'Book Shelf', 2500, 'book shelf', 'furniture-book-shelf-250x250.jpg', 'book shelf furniture'),
|
||||
(33, 6, 2, 'Refrigerator', 35000, 'Refrigerator', 'CT_WM_BTS-BTC-AppliancesHome_20150723.jpg', 'refrigerator samsung'),
|
||||
(34, 6, 4, 'Emergency Light', 1000, 'Emergency Light', 'emergency light.JPG', 'emergency light'),
|
||||
(35, 6, 0, 'Vaccum Cleaner', 6000, 'Vaccum Cleaner', 'images (2).jpg', 'Vaccum Cleaner'),
|
||||
(36, 6, 5, 'Iron', 1500, 'gj', 'iron.JPG', 'iron'),
|
||||
(37, 6, 5, 'LED TV', 20000, 'LED TV', 'images (4).jpg', 'led tv lg'),
|
||||
(38, 6, 4, 'Microwave Oven', 3500, 'Microwave Oven', 'images.jpg', 'Microwave Oven'),
|
||||
(39, 6, 5, 'Mixer Grinder', 2500, 'Mixer Grinder', 'singer-mixer-grinder-mg-46-medium_4bfa018096c25dec7ba0af40662856ef.jpg', 'Mixer Grinder'),
|
||||
(40, 2, 6, 'Formal girls dress', 3000, 'Formal girls dress', 'girl-walking.jpg', 'ladies'),
|
||||
(45, 1, 2, 'Samsung Galaxy Note 3', 10000, '0', 'samsung_galaxy_note3_note3neo.JPG', 'samsung galaxy Note 3 neo'),
|
||||
(46, 1, 2, 'Samsung Galaxy Note 3', 10000, '', 'samsung_galaxy_note3_note3neo.JPG', 'samsung galxaxy note 3 neo'),
|
||||
(47, 4, 6, 'Laptop', 650, 'nbk', 'product01.png', 'Dell Laptop'),
|
||||
(48, 1, 7, 'Headphones', 250, 'Headphones', 'product05.png', 'Headphones Sony'),
|
||||
(49, 1, 7, 'Headphones', 250, 'Headphones', 'product05.png', 'Headphones Sony'),
|
||||
(50, 3, 6, 'boys shirts', 350, 'shirts', 'pm1.JPG', 'suit boys shirts'),
|
||||
(51, 3, 6, 'boys shirts', 270, 'shirts', 'pm2.JPG', 'suit boys shirts'),
|
||||
(52, 3, 6, 'boys shirts', 453, 'shirts', 'pm3.JPG', 'suit boys shirts'),
|
||||
(53, 3, 6, 'boys shirts', 220, 'shirts', 'ms1.JPG', 'suit boys shirts'),
|
||||
(54, 3, 6, 'boys shirts', 290, 'shirts', 'ms2.JPG', 'suit boys shirts'),
|
||||
(55, 3, 6, 'boys shirts', 259, 'shirts', 'ms3.JPG', 'suit boys shirts'),
|
||||
(56, 3, 6, 'boys shirts', 299, 'shirts', 'pm7.JPG', 'suit boys shirts'),
|
||||
(57, 3, 6, 'boys shirts', 260, 'shirts', 'i3.JPG', 'suit boys shirts'),
|
||||
(58, 3, 6, 'boys shirts', 350, 'shirts', 'pm9.JPG', 'suit boys shirts'),
|
||||
(59, 3, 6, 'boys shirts', 855, 'shirts', 'a2.JPG', 'suit boys shirts'),
|
||||
(60, 3, 6, 'boys shirts', 150, 'shirts', 'pm11.JPG', 'suit boys shirts'),
|
||||
(61, 3, 6, 'boys shirts', 215, 'shirts', 'pm12.JPG', 'suit boys shirts'),
|
||||
(62, 3, 6, 'boys shirts', 299, 'shirts', 'pm13.JPG', 'suit boys shirts'),
|
||||
(63, 3, 6, 'boys Jeans Pant', 550, 'Pants', 'pt1.JPG', 'boys Jeans Pant'),
|
||||
(64, 3, 6, 'boys Jeans Pant', 460, 'pants', 'pt2.JPG', 'boys Jeans Pant'),
|
||||
(65, 3, 6, 'boys Jeans Pant', 470, 'pants', 'pt3.JPG', 'boys Jeans Pant'),
|
||||
(66, 3, 6, 'boys Jeans Pant', 480, 'pants', 'pt4.JPG', 'boys Jeans Pant'),
|
||||
(67, 3, 6, 'boys Jeans Pant', 360, 'pants', 'pt5.JPG', 'boys Jeans Pant'),
|
||||
(68, 3, 6, 'boys Jeans Pant', 550, 'pants', 'pt6.JPG', 'boys Jeans Pant'),
|
||||
(69, 3, 6, 'boys Jeans Pant', 390, 'pants', 'pt7.JPG', 'boys Jeans Pant'),
|
||||
(70, 3, 6, 'boys Jeans Pant', 399, 'pants', 'pt8.JPG', 'boys Jeans Pant'),
|
||||
(71, 1, 2, 'Samsung galaxy s7', 5000, 'Samsung galaxy s7', 'product07.png', 'samsung mobile electronics'),
|
||||
(72, 1, 2, 'sony Headphones', 3500, 'sony Headphones', 'product02.png', 'sony Headphones electronics'),
|
||||
(73, 1, 2, 'samsung Headphones', 3500, 'samsung Headphones', 'product05.png', 'samsung Headphones electronics'),
|
||||
(74, 1, 1, 'HP i5 laptop', 5500, 'HP i5 laptop', 'product01.png', 'HP i5 laptop electronics'),
|
||||
(75, 1, 1, 'HP i7 laptop 8gb ram', 5500, 'HP i7 laptop 8gb ram', 'product03.png', 'HP i7 laptop 8gb ram electronics'),
|
||||
(76, 1, 5, 'sony note 6gb ram', 4500, 'sony note 6gb ram', 'product04.png', 'sony note 6gb ram mobile electronics'),
|
||||
(77, 1, 4, 'MSV laptop 16gb ram NVIDEA Graphics', 5499, 'MSV laptop 16gb ram', 'product06.png', 'MSV laptop 16gb ram NVIDEA Graphics electronics'),
|
||||
(78, 1, 5, 'dell laptop 8gb ram intel integerated Graphics', 4579, 'dell laptop 8gb ram intel integerated Graphics', 'product08.png', 'dell laptop 8gb ram intel integerated Graphics electronics'),
|
||||
(79, 1, 2, 'camera with 3D pixels', 2569, 'camera with 3D pixels', 'product09.png', 'camera with 3D pixels camera electronics'),
|
||||
(80, 1, 1, 'ytrfdkjsd', 12343, 'sdfhgh', '1542455446_thythtf .jpeg', 'dfgh'),
|
||||
(81, 4, 6, 'Kids blue dress', 300, 'blue dress', '1543993724_pg4.jpg', 'kids blue dress');
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `reviews`
|
||||
--
|
||||
|
||||
CREATE TABLE `reviews` (
|
||||
`review_id` int(100) NOT NULL,
|
||||
`product_id` int(11) NOT NULL,
|
||||
`name` varchar(30) NOT NULL,
|
||||
`email` varchar(50) NOT NULL,
|
||||
`review` varchar(255) NOT NULL,
|
||||
`datetime` datetime NOT NULL,
|
||||
`rating` int(1) NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `user_info`
|
||||
--
|
||||
|
||||
CREATE TABLE `user_info` (
|
||||
`user_id` int(10) NOT NULL,
|
||||
`first_name` varchar(100) NOT NULL,
|
||||
`last_name` varchar(100) NOT NULL,
|
||||
`email` varchar(300) NOT NULL,
|
||||
`password` varchar(300) NOT NULL,
|
||||
`mobile` varchar(10) NOT NULL,
|
||||
`address1` varchar(300) NOT NULL,
|
||||
`address2` varchar(11) NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
|
||||
|
||||
--
|
||||
-- Dumping data for table `user_info`
|
||||
--
|
||||
|
||||
INSERT INTO `user_info` (`user_id`, `first_name`, `last_name`, `email`, `password`, `mobile`, `address1`, `address2`) VALUES
|
||||
(25, 'John', 'Doe', 'sample@gmail.com', 'password', '1234567890', 'Montreal', '');
|
||||
|
||||
--
|
||||
-- Triggers `user_info`
|
||||
--
|
||||
DELIMITER $$
|
||||
CREATE TRIGGER `after_user_info_insert` AFTER INSERT ON `user_info` FOR EACH ROW BEGIN
|
||||
INSERT INTO user_info_backup VALUES(new.user_id,new.first_name,new.last_name,new.email,new.password,new.mobile,new.address1,new.address2);
|
||||
END
|
||||
$$
|
||||
DELIMITER ;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `user_info_backup`
|
||||
--
|
||||
|
||||
CREATE TABLE `user_info_backup` (
|
||||
`user_id` int(10) NOT NULL,
|
||||
`first_name` varchar(100) NOT NULL,
|
||||
`last_name` varchar(100) NOT NULL,
|
||||
`email` varchar(300) NOT NULL,
|
||||
`password` varchar(300) NOT NULL,
|
||||
`mobile` varchar(10) NOT NULL,
|
||||
`address1` varchar(300) NOT NULL,
|
||||
`address2` varchar(11) NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
|
||||
|
||||
--
|
||||
-- Dumping data for table `user_info_backup`
|
||||
--
|
||||
|
||||
INSERT INTO `user_info_backup` (`user_id`, `first_name`, `last_name`, `email`, `password`, `mobile`, `address1`, `address2`) VALUES
|
||||
(25, 'John', 'Doe', 'sample@gmail.com', 'password', '1234567890', 'Montreal', '');
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `wishlist`
|
||||
--
|
||||
|
||||
CREATE TABLE `wishlist` (
|
||||
`id` int(10) NOT NULL,
|
||||
`p_id` int(10) NOT NULL,
|
||||
`ip_add` varchar(250) NOT NULL,
|
||||
`user_id` int(10) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
|
||||
|
||||
--
|
||||
-- Dumping data for table `wishlist`
|
||||
--
|
||||
|
||||
INSERT INTO `wishlist` (`id`, `p_id`, `ip_add`, `user_id`) VALUES
|
||||
(224, 0, '::1', -1),
|
||||
(282, 3, '::1', -1),
|
||||
(283, 73, '::1', 12),
|
||||
(284, 74, '::1', 12),
|
||||
(285, 0, '::1', 12);
|
||||
|
||||
--
|
||||
-- Indexes for dumped tables
|
||||
--
|
||||
|
||||
--
|
||||
-- Indexes for table `admin_info`
|
||||
--
|
||||
ALTER TABLE `admin_info`
|
||||
ADD PRIMARY KEY (`admin_id`);
|
||||
|
||||
--
|
||||
-- Indexes for table `brands`
|
||||
--
|
||||
ALTER TABLE `brands`
|
||||
ADD PRIMARY KEY (`brand_id`);
|
||||
|
||||
--
|
||||
-- Indexes for table `cart`
|
||||
--
|
||||
ALTER TABLE `cart`
|
||||
ADD PRIMARY KEY (`id`);
|
||||
|
||||
--
|
||||
-- Indexes for table `categories`
|
||||
--
|
||||
ALTER TABLE `categories`
|
||||
ADD PRIMARY KEY (`cat_id`);
|
||||
|
||||
--
|
||||
-- Indexes for table `email_info`
|
||||
--
|
||||
ALTER TABLE `email_info`
|
||||
ADD PRIMARY KEY (`email_id`);
|
||||
|
||||
--
|
||||
-- Indexes for table `logs`
|
||||
--
|
||||
ALTER TABLE `logs`
|
||||
ADD PRIMARY KEY (`id`);
|
||||
|
||||
--
|
||||
-- Indexes for table `orders`
|
||||
--
|
||||
ALTER TABLE `orders`
|
||||
ADD PRIMARY KEY (`order_id`);
|
||||
|
||||
--
|
||||
-- Indexes for table `orders_info`
|
||||
--
|
||||
ALTER TABLE `orders_info`
|
||||
ADD PRIMARY KEY (`order_id`),
|
||||
ADD KEY `user_id` (`user_id`);
|
||||
|
||||
--
|
||||
-- Indexes for table `order_products`
|
||||
--
|
||||
ALTER TABLE `order_products`
|
||||
ADD PRIMARY KEY (`order_pro_id`),
|
||||
ADD KEY `order_products` (`order_id`),
|
||||
ADD KEY `product_id` (`product_id`);
|
||||
|
||||
--
|
||||
-- Indexes for table `products`
|
||||
--
|
||||
ALTER TABLE `products`
|
||||
ADD PRIMARY KEY (`product_id`);
|
||||
|
||||
--
|
||||
-- Indexes for table `reviews`
|
||||
--
|
||||
ALTER TABLE `reviews`
|
||||
ADD PRIMARY KEY (`review_id`);
|
||||
|
||||
--
|
||||
-- Indexes for table `user_info`
|
||||
--
|
||||
ALTER TABLE `user_info`
|
||||
ADD PRIMARY KEY (`user_id`);
|
||||
|
||||
--
|
||||
-- Indexes for table `user_info_backup`
|
||||
--
|
||||
ALTER TABLE `user_info_backup`
|
||||
ADD PRIMARY KEY (`user_id`);
|
||||
|
||||
--
|
||||
-- Indexes for table `wishlist`
|
||||
--
|
||||
ALTER TABLE `wishlist`
|
||||
ADD PRIMARY KEY (`id`);
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for dumped tables
|
||||
--
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for table `admin_info`
|
||||
--
|
||||
ALTER TABLE `admin_info`
|
||||
MODIFY `admin_id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
|
||||
COMMIT;
|
||||
|
||||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
317
header-main.php
Normal file
317
header-main.php
Normal file
|
@ -0,0 +1,317 @@
|
|||
<?php
|
||||
session_start();
|
||||
|
||||
?>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
|
||||
|
||||
<title>Cool Shopping Site</title>
|
||||
|
||||
<!-- Google font -->
|
||||
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,500,700" rel="stylesheet"/>
|
||||
|
||||
<!-- Bootstrap -->
|
||||
<link type="text/css" rel="stylesheet" href="css/bootstrap.min.css"/>
|
||||
|
||||
<!-- Slick -->
|
||||
<link type="text/css" rel="stylesheet" href="css/slick.css"/>
|
||||
<link type="text/css" rel="stylesheet" href="css/slick-theme.css"/>
|
||||
|
||||
<!-- nouislider -->
|
||||
<link type="text/css" rel="stylesheet" href="css/nouislider.min.css"/>
|
||||
|
||||
<!-- Font Awesome Icon -->
|
||||
<link rel="stylesheet" href="css/font-awesome.min.css">
|
||||
|
||||
<!-- Custom stlylesheet -->
|
||||
<link type="text/css" rel="stylesheet" href="css/style.css"/>
|
||||
<link type="text/css" rel="stylesheet" href="css/accountbtn.css"/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
|
||||
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
|
||||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<style>
|
||||
#navigation {
|
||||
background: #FF4E50; /* fallback for old browsers */
|
||||
background: -webkit-linear-gradient(to right, #F9D423, #FF4E50); /* Chrome 10-25, Safari 5.1-6 */
|
||||
background: linear-gradient(to right, #F9D423, #FF4E50); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
|
||||
|
||||
|
||||
}
|
||||
#header {
|
||||
|
||||
background: #780206; /* fallback for old browsers */
|
||||
background: -webkit-linear-gradient(to right, #061161, #780206); /* Chrome 10-25, Safari 5.1-6 */
|
||||
background: linear-gradient(to right, #061161, #780206); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
|
||||
|
||||
|
||||
}
|
||||
#top-header {
|
||||
|
||||
|
||||
background: #870000; /* fallback for old browsers */
|
||||
background: -webkit-linear-gradient(to right, #190A05, #870000); /* Chrome 10-25, Safari 5.1-6 */
|
||||
background: linear-gradient(to right, #190A05, #870000); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
|
||||
|
||||
|
||||
}
|
||||
#footer {
|
||||
background: #7474BF; /* fallback for old browsers */
|
||||
background: -webkit-linear-gradient(to right, #348AC7, #7474BF); /* Chrome 10-25, Safari 5.1-6 */
|
||||
background: linear-gradient(to right, #348AC7, #7474BF); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
|
||||
|
||||
|
||||
color: #1E1F29;
|
||||
}
|
||||
#bottom-footer {
|
||||
background: #7474BF; /* fallback for old browsers */
|
||||
background: -webkit-linear-gradient(to right, #348AC7, #7474BF); /* Chrome 10-25, Safari 5.1-6 */
|
||||
background: linear-gradient(to right, #348AC7, #7474BF); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
|
||||
|
||||
|
||||
}
|
||||
.footer-links li a {
|
||||
color: #1E1F29;
|
||||
}
|
||||
.mainn-raised {
|
||||
|
||||
margin: -7px 0px 0px;
|
||||
border-radius: 6px;
|
||||
box-shadow: 0 16px 24px 2px rgba(0, 0, 0, 0.14), 0 6px 30px 5px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.2);
|
||||
|
||||
}
|
||||
|
||||
.glyphicon{
|
||||
display: inline-block;
|
||||
font: normal normal normal 14px/1 FontAwesome;
|
||||
font-size: inherit;
|
||||
text-rendering: auto;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
.glyphicon-chevron-left:before{
|
||||
content:"\f053"
|
||||
}
|
||||
.glyphicon-chevron-right:before{
|
||||
content:"\f054"
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
</style>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<!-- HEADER -->
|
||||
<header>
|
||||
<!-- TOP HEADER -->
|
||||
<div id="top-header">
|
||||
<div class="container">
|
||||
<ul class="header-links pull-left">
|
||||
<li><a href="tel:+14385963135"><i class="fa fa-phone"></i> 438-596-3135</a></li>
|
||||
<li><a href="mailto:batuhanbasoglu@mailbox.org"><i class="fa fa-envelope-o"></i> batuhanbasoglu@mailbox.org</a></li>
|
||||
<li><a href="https://www.google.com/maps/place/Montreal,+QC/"><i class="fa fa-map-marker"></i>Montreal</a></li>
|
||||
</ul>
|
||||
<ul class="header-links pull-right">
|
||||
<li><a href="https://www.bankofcanada.ca/rates/exchange/currency-converter/"><i class="fa fa-usd"></i> CAD</a></li>
|
||||
<li><?php
|
||||
|
||||
include "db.php";
|
||||
if(isset($_SESSION["uid"])){
|
||||
$sql = "SELECT first_name FROM user_info WHERE user_id='$_SESSION[uid]'";
|
||||
$query = mysqli_query($con,$sql);
|
||||
$row=mysqli_fetch_array($query);
|
||||
|
||||
echo '
|
||||
<div class="dropdownn">
|
||||
<a href="#" class="dropdownn" data-toggle="modal" data-target="#myModal" ><i class="fa fa-user-o"></i> Welcome '.$row["first_name"].'</a>
|
||||
<div class="dropdownn-content">
|
||||
<a href="myorders.php" ><i class="fa fa-shopping-basket" aria-hidden="true"></i>My Orders</a>
|
||||
<a href="" data-toggle="modal" data-target="#profile"><i class="fa fa-user-circle" aria-hidden="true" ></i>My Profile</a>
|
||||
<a href="logout.php" ><i class="fa fa-sign-in" aria-hidden="true"></i>Log out</a>
|
||||
|
||||
</div>
|
||||
</div>';
|
||||
|
||||
}else{
|
||||
echo '
|
||||
<div class="dropdownn">
|
||||
<a href="#" class="dropdownn" data-toggle="modal" data-target="#myModal" ><i class="fa fa-user-o"></i> My Account</a>
|
||||
<div class="dropdownn-content">
|
||||
<a href="admin/login.php" ><i class="fa fa-user" aria-hidden="true" ></i>Admin</a>
|
||||
<a href="signin_form.php"><i class="fa fa-sign-in" aria-hidden="true" ></i>Login</a>
|
||||
<a href="signup_form.php"><i class="fa fa-user-plus" aria-hidden="true"></i>Register</a>
|
||||
|
||||
</div>
|
||||
</div>';
|
||||
|
||||
}
|
||||
?>
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- /TOP HEADER -->
|
||||
|
||||
|
||||
|
||||
<!-- MAIN HEADER -->
|
||||
<div id="header">
|
||||
<!-- container -->
|
||||
<div class="container">
|
||||
<!-- row -->
|
||||
<div class="row">
|
||||
<!-- LOGO -->
|
||||
<div class="col-md-3">
|
||||
<div class="header-logo">
|
||||
<a href="index.php" class="logo">
|
||||
<font style="font-style:normal; font-size: 33px;color: aliceblue;font-family: serif">
|
||||
Cool Shopping Site
|
||||
</font>
|
||||
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /LOGO -->
|
||||
|
||||
<div class="col-md-6">
|
||||
</div>
|
||||
|
||||
<!-- ACCOUNT -->
|
||||
<div class="col-md-3 clearfix">
|
||||
<div class="header-ctn">
|
||||
<!-- Wishlist -->
|
||||
|
||||
<!-- /Wishlist -->
|
||||
<div>
|
||||
<a href="wishlist.php">
|
||||
<i class="fa fa-heart-o"></i>
|
||||
<span>Your Wishlist</span>
|
||||
<div id="wishlist-badge" class="qty">0</div>
|
||||
</a>
|
||||
</div>
|
||||
<!-- Cart -->
|
||||
<div class="dropdown">
|
||||
<a class="dropdown-toggle" data-toggle="dropdown" aria-expanded="true">
|
||||
<i class="fa fa-shopping-cart"></i>
|
||||
<span>Your Cart</span>
|
||||
<div class="badge qty">0</div>
|
||||
</a>
|
||||
<div class="cart-dropdown" >
|
||||
<div class="cart-list" id="cart_product">
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="cart-btns">
|
||||
<a href="cart.php" style="width:100%;"><i class="fa fa-edit"></i> edit cart</a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- /Cart -->
|
||||
|
||||
<!-- Menu Toogle -->
|
||||
<div class="menu-toggle">
|
||||
<a href="#">
|
||||
<i class="fa fa-bars"></i>
|
||||
<span>Menu</span>
|
||||
</a>
|
||||
</div>
|
||||
<!-- /Menu Toogle -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- /ACCOUNT -->
|
||||
</div>
|
||||
<!-- row -->
|
||||
</div>
|
||||
<!-- container -->
|
||||
</div>
|
||||
<!-- /MAIN HEADER -->
|
||||
</header>
|
||||
<!-- /HEADER -->
|
||||
<nav id='navigation'>
|
||||
<!-- container -->
|
||||
<div class="container" id="get_category_home">
|
||||
<!-- <div id="responsive-nav">
|
||||
|
||||
<ul class="main-nav nav navbar-nav">
|
||||
<li class="active"><a href="index.php">Home</a></li>
|
||||
<li class="category" cid="1"><a href="store.php">Electronics</a></li>
|
||||
<li class="category" cid="2"><a href="store.php">Ladies Wears</a></li>
|
||||
<li class="category" cid="3"><a href="store.php">Mens Wear</a></li>
|
||||
<li class="category" cid="4"><a href="store.php">Kids Wear</a></li>
|
||||
<li class="category" cid="5"><a href="store.php">Furnitures</a></li>
|
||||
<li class="category" cid="6"><a href="store.php">Home Appliances</a></li>
|
||||
<li class="category" cid="7"><a href="store.php">Electronics Gadgets</a></li>
|
||||
|
||||
</ul>
|
||||
|
||||
</div> -->
|
||||
</div>
|
||||
<!-- /container -->
|
||||
</nav>
|
||||
|
||||
|
||||
<!-- NAVIGATION -->
|
||||
|
||||
<div class="modal fade" id="Modal_login" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
|
||||
<!-- Modal content-->
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<?php
|
||||
include "login_form.php";
|
||||
|
||||
?>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal fade" id="Modal_register" role="dialog">
|
||||
<div class="modal-dialog" style="">
|
||||
|
||||
<!-- Modal content-->
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<?php
|
||||
include "register_form.php";
|
||||
|
||||
?>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -138,9 +138,9 @@ session_start();
|
|||
|
||||
echo '
|
||||
<div class="dropdownn">
|
||||
<a href="#" class="dropdownn" data-toggle="modal" data-target="#myModal" ><i class="fa fa-user-o"></i> Hi '.$row["first_name"].'</a>
|
||||
<a href="#" class="dropdownn" data-toggle="modal" data-target="#myModal" ><i class="fa fa-user-o"></i> Welcome '.$row["first_name"].'</a>
|
||||
<div class="dropdownn-content">
|
||||
<a href="myorders.php" ><i class="fa fa-shopping-basket" aria-hidden="true"></i>My Order</a>
|
||||
<a href="myorders.php" ><i class="fa fa-shopping-basket" aria-hidden="true"></i>My Orders</a>
|
||||
<a href="" data-toggle="modal" data-target="#profile"><i class="fa fa-user-circle" aria-hidden="true" ></i>My Profile</a>
|
||||
<a href="logout.php" ><i class="fa fa-sign-in" aria-hidden="true"></i>Log out</a>
|
||||
|
||||
|
|
|
@ -138,9 +138,9 @@ session_start();
|
|||
|
||||
echo '
|
||||
<div class="dropdownn">
|
||||
<a href="#" class="dropdownn" data-toggle="modal" data-target="#myModal" ><i class="fa fa-user-o"></i> HI '.$row["first_name"].'</a>
|
||||
<a href="#" class="dropdownn" data-toggle="modal" data-target="#myModal" ><i class="fa fa-user-o"></i> Welcome '.$row["first_name"].'</a>
|
||||
<div class="dropdownn-content">
|
||||
<a href="myorders.php" ><i class="fa fa-shopping-basket" aria-hidden="true"></i>My Order</a>
|
||||
<a href="myorders.php" ><i class="fa fa-shopping-basket" aria-hidden="true"></i>My Orders</a>
|
||||
<a href="" data-toggle="modal" data-target="#profile"><i class="fa fa-user-circle" aria-hidden="true" ></i>My Profile</a>
|
||||
<a href="logout.php" ><i class="fa fa-sign-in" aria-hidden="true"></i>Log out</a>
|
||||
|
||||
|
|
Loading…
Reference in a new issue