From 0852648c6dcce215f4c0982bb5eb23222daa948d Mon Sep 17 00:00:00 2001 From: nomankhan123 Date: Sat, 8 Sep 2018 08:45:58 -0700 Subject: [PATCH 1/5] making the logout page --- logout.php | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/logout.php b/logout.php index 7efdf20..e72121a 100644 --- a/logout.php +++ b/logout.php @@ -1,5 +1,16 @@ \ No newline at end of file + +//header('location: index.php'); +?> + + + + +
+ for logout the admin panal +
+ + + \ No newline at end of file From 0cc352de6a38eb5f97676b35f2c6cd1646c0b9f5 Mon Sep 17 00:00:00 2001 From: nomankhan123 Date: Fri, 14 Sep 2018 10:00:12 -0700 Subject: [PATCH 2/5] 1)make the search bar async 2)making the registration page more attractive by using bootstrap 3)picture zooming when curser is on the picture. changing the colors --- admin/view_products.php | 6 +++++- all_products.php | 3 ++- cart.php | 2 +- css/mystyle.css | 41 ++++++++++++++++++++++++++++++++++++++++- customer_register.php | 25 +++++++++++++------------ functions/functions.php | 17 +++++++++++------ index.php | 38 +++++++++++++++++++++++++++++++------- search_products.php | 12 ++++++++++++ 8 files changed, 115 insertions(+), 29 deletions(-) create mode 100644 search_products.php diff --git a/admin/view_products.php b/admin/view_products.php index 2e57b8c..7323dcc 100644 --- a/admin/view_products.php +++ b/admin/view_products.php @@ -3,6 +3,10 @@ header('location: login.php?not_admin=You are not Admin!'); } ?> + + + +

Products

@@ -37,7 +41,7 @@ - + /- Edit diff --git a/all_products.php b/all_products.php index 17e016e..8e00b8f 100644 --- a/all_products.php +++ b/all_products.php @@ -8,6 +8,7 @@ My Online Shop +
@@ -42,7 +43,7 @@
-
+
+
My Online Shop +
@@ -88,31 +89,31 @@
-
+ - + - + - + - + - + - + - + - + - + - +

create an Account

create an Account

Name:
Email:
Password:
Image:
Country: Country: - @@ -123,18 +124,18 @@
City:
Contact:
Address:
diff --git a/functions/functions.php b/functions/functions.php index ca58bd1..94c20ab 100644 --- a/functions/functions.php +++ b/functions/functions.php @@ -25,7 +25,7 @@ function getBrands(){ } } -function getPro($flag = ''){ +function getPro($flag = '',$search_pro=''){ global $con; $get_pro = ""; if(!isset($_GET['cat']) && !isset($_GET['brand']) && !isset($_GET['search'])) { @@ -39,9 +39,14 @@ function getPro($flag = ''){ } else if(isset($_GET['brand'])){ $pro_brand_id = $_GET['brand']; $get_pro = "select * from products where pro_brand = '$pro_brand_id'"; - } else if(isset($_GET['search'])){ - $search_query = $_GET['user_query']; - $get_pro = "select * from products where pro_keywords like '%$search_query%'"; + } else if(isset($_GET['search']) || $search_pro != ''){ + $search_query = ''; + if($search_pro == '') + $search_query = $_GET['user_query']; + else { + $search_query = $search_pro; + $get_pro = "select * from products where pro_keywords like '%$search_query%'"; + } } $run_pro = mysqli_query($con,$get_pro); $count_pro = mysqli_num_rows($run_pro); @@ -57,8 +62,8 @@ function getPro($flag = ''){ $pro_image = $row_pro['pro_image']; echo "
-

$pro_title

- +

$pro_title

+

Rs $pro_price/-

Details diff --git a/index.php b/index.php index 40a0cbb..8483ce4 100644 --- a/index.php +++ b/index.php @@ -7,15 +7,36 @@ My Online Shop + + -
+
- -
+
+
diff --git a/search_products.php b/search_products.php new file mode 100644 index 0000000..0bafa29 --- /dev/null +++ b/search_products.php @@ -0,0 +1,12 @@ + +

Rs $pro_price/-

+ Details + + + "; + From 98d882b7b86f5c9d58cc172290eaafffb3707eeb Mon Sep 17 00:00:00 2001 From: nomankhan123 Date: Fri, 14 Sep 2018 10:13:04 -0700 Subject: [PATCH 3/5] 1)make the search bar async 2)making the registration page more attractive by using bootstrap 3)picture zooming when curser is on the picture. 4)changing the colors --- .idea/ecommerce-1.iml | 8 ++++++++ .idea/misc.xml | 6 ++++++ .idea/modules.xml | 8 ++++++++ .idea/vcs.xml | 6 ++++++ admin/admin_logout.php | 19 +++++++++++++++++++ 5 files changed, 47 insertions(+) create mode 100644 .idea/ecommerce-1.iml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml create mode 100644 admin/admin_logout.php diff --git a/.idea/ecommerce-1.iml b/.idea/ecommerce-1.iml new file mode 100644 index 0000000..c956989 --- /dev/null +++ b/.idea/ecommerce-1.iml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..28a804d --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..1e991ce --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/admin/admin_logout.php b/admin/admin_logout.php new file mode 100644 index 0000000..8ece399 --- /dev/null +++ b/admin/admin_logout.php @@ -0,0 +1,19 @@ + + + + + + +
+

for logout the admin panal

+ +
+ + + From 59aafdd6fede10c822bd3e45091a97209034a27c Mon Sep 17 00:00:00 2001 From: nomankhan123 Date: Sat, 15 Sep 2018 23:23:12 -0700 Subject: [PATCH 4/5] 1)make the search bar async 2)making the registration page more attractive by using bootstrap 3)picture zooming when curser is on the picture. 4)changing the colors --- customer_login.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/customer_login.php b/customer_login.php index bf27801..3109927 100644 --- a/customer_login.php +++ b/customer_login.php @@ -33,11 +33,11 @@ Email: - + Password: - + Forgot Password? From a9a99c5c0bacaf4e32675f9f825d3ecc302e9d62 Mon Sep 17 00:00:00 2001 From: nomankhan123 Date: Fri, 21 Sep 2018 22:22:47 -0700 Subject: [PATCH 5/5] 1)try to make the customer page responsive 2)picture zooming --- index.php | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/index.php b/index.php index 8483ce4..e3d06e7 100644 --- a/index.php +++ b/index.php @@ -6,6 +6,7 @@ + My Online Shop @@ -31,19 +32,21 @@ function check_input(q){ -
+
- - + + +
-
+
-
+
@@ -93,7 +96,7 @@ function check_input(q){ ?>
-
+