From df02f73c825a403b895e39d4231c454041084ab7 Mon Sep 17 00:00:00 2001 From: Ansab420 Date: Tue, 4 Sep 2018 12:32:22 +0500 Subject: [PATCH 1/9] we have added space --- admin/insert_product.php | 1 + 1 file changed, 1 insertion(+) diff --git a/admin/insert_product.php b/admin/insert_product.php index 344fcb6..68579ee 100644 --- a/admin/insert_product.php +++ b/admin/insert_product.php @@ -3,6 +3,7 @@ ?> + Inserting Product From 4c9d3f83d5d5efeebef2abc03b7fe5bb769cda46 Mon Sep 17 00:00:00 2001 From: Ansab420 Date: Thu, 6 Sep 2018 20:54:24 +0500 Subject: [PATCH 2/9] Display the data in view_products --- admin/view_products.php | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 admin/view_products.php diff --git a/admin/view_products.php b/admin/view_products.php new file mode 100644 index 0000000..0532c73 --- /dev/null +++ b/admin/view_products.php @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + +
From 760f53c3610b31c9361a8fabf314b3548e8af579 Mon Sep 17 00:00:00 2001 From: Ansab420 Date: Thu, 6 Sep 2018 21:02:20 +0500 Subject: [PATCH 3/9] this code is for the quiz --- admin/index.php | 99 ----------------------------------------- admin/view_products.php | 2 +- 2 files changed, 1 insertion(+), 100 deletions(-) delete mode 100644 admin/index.php diff --git a/admin/index.php b/admin/index.php deleted file mode 100644 index 282da5b..0000000 --- a/admin/index.php +++ /dev/null @@ -1,99 +0,0 @@ - - - - - - - - - - - - - E-commerce Admin Panel - Admin Panel - - -
- -
- -
- -
-
-
- - - - - \ No newline at end of file diff --git a/admin/view_products.php b/admin/view_products.php index 0532c73..e46a94e 100644 --- a/admin/view_products.php +++ b/admin/view_products.php @@ -12,7 +12,7 @@ $pro_image=$row_col['pro_image']; $pro_keywords=$row_col['pro_keywords']; ?> - + From d92f2d586d2759319b1441ed7a4c528553480cab Mon Sep 17 00:00:00 2001 From: ansab420 <42957931+ansab420@users.noreply.github.com> Date: Thu, 6 Sep 2018 21:06:19 +0500 Subject: [PATCH 4/9] Delete view_products.php --- admin/view_products.php | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 admin/view_products.php diff --git a/admin/view_products.php b/admin/view_products.php deleted file mode 100644 index e46a94e..0000000 --- a/admin/view_products.php +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - - - - - - -
From e73f90fddabd99c82d0eb99d0fe031d8b2ca6449 Mon Sep 17 00:00:00 2001 From: Ansab420 Date: Thu, 6 Sep 2018 21:21:58 +0500 Subject: [PATCH 5/9] this code is for the quiz --- admin/view_products.php | 1 - 1 file changed, 1 deletion(-) diff --git a/admin/view_products.php b/admin/view_products.php index e46a94e..7da4c82 100644 --- a/admin/view_products.php +++ b/admin/view_products.php @@ -19,7 +19,6 @@ - From ce9fda4c9f65decb7e506a0d2793a6477bbecea2 Mon Sep 17 00:00:00 2001 From: Ansab420 Date: Thu, 6 Sep 2018 21:33:16 +0500 Subject: [PATCH 6/9] this code is for the quiz --- admin/view_products.php | 1 + 1 file changed, 1 insertion(+) diff --git a/admin/view_products.php b/admin/view_products.php index 7da4c82..a220d4d 100644 --- a/admin/view_products.php +++ b/admin/view_products.php @@ -14,6 +14,7 @@ ?> + From e4b1d74bfb7003d8388678d174f0b89bb1448b52 Mon Sep 17 00:00:00 2001 From: Ansab420 Date: Sat, 8 Sep 2018 20:13:27 +0500 Subject: [PATCH 7/9] login with validation added and logout also done and the index page will show name of the admin logged in --- admin/index.php | 128 +++++++++++++++++++++++++++++++++++++++++++++++ admin/login.php | 42 ++++++++++++++-- admin/logout.php | 8 +++ 3 files changed, 175 insertions(+), 3 deletions(-) create mode 100644 admin/index.php create mode 100644 admin/logout.php diff --git a/admin/index.php b/admin/index.php new file mode 100644 index 0000000..edecce4 --- /dev/null +++ b/admin/index.php @@ -0,0 +1,128 @@ + + + + + + + + + + + + + + + E-commerce Admin Panel + Admin Panel + + + + + + + +
+ + +
+ +
+ +
+
+ + +
+ + + + + \ No newline at end of file diff --git a/admin/login.php b/admin/login.php index 361575f..28fe634 100644 --- a/admin/login.php +++ b/admin/login.php @@ -1,3 +1,32 @@ + + + location.href='index.php'"; + } +} +?> + + + + @@ -9,13 +38,20 @@ Admin Login + diff --git a/admin/logout.php b/admin/logout.php new file mode 100644 index 0000000..627e4a4 --- /dev/null +++ b/admin/logout.php @@ -0,0 +1,8 @@ + \ No newline at end of file From 3c79ff74f2e8d20af5c2de0a8bb10aec48090f89 Mon Sep 17 00:00:00 2001 From: Ansab420 Date: Fri, 14 Sep 2018 21:08:47 +0500 Subject: [PATCH 8/9] the admin can edit the detail of any customer --- admin/edit_cust.php | 139 +++++++++++++++++++++++++++++++++++++++ admin/index.php | 4 ++ admin/view_customers.php | 5 +- 3 files changed, 147 insertions(+), 1 deletion(-) create mode 100644 admin/edit_cust.php diff --git a/admin/edit_cust.php b/admin/edit_cust.php new file mode 100644 index 0000000..bd3d35a --- /dev/null +++ b/admin/edit_cust.php @@ -0,0 +1,139 @@ + + +
+
+
+
+

Edit & Update Customer

+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ + +
+
+ +
+
+ +
+
+
+
+
+ diff --git a/admin/index.php b/admin/index.php index b8ffd2e..3ea058d 100644 --- a/admin/index.php +++ b/admin/index.php @@ -123,6 +123,10 @@ else if(isset($_GET['view_customers'])){ include ('view_customers.php'); } + else if(isset($_GET['edit_cust'])){ + include ('edit_cust.php'); + } + else if(isset($_GET['del_customer'])){ include ('del_customer.php'); } diff --git a/admin/view_customers.php b/admin/view_customers.php index 7287a3c..9df3272 100644 --- a/admin/view_customers.php +++ b/admin/view_customers.php @@ -37,7 +37,10 @@ - + + Edit + + Delete From cca109bcd796b9fa18ed54ed46c40ba025f7f8cf Mon Sep 17 00:00:00 2001 From: Ansab420 Date: Fri, 14 Sep 2018 21:35:30 +0500 Subject: [PATCH 9/9] the admin can see the detail of any customer --- admin/details.php | 59 ++++++++++++++++++++++++++++++++++++++++ admin/index.php | 5 ++++ admin/view_customers.php | 7 ++++- 3 files changed, 70 insertions(+), 1 deletion(-) create mode 100644 admin/details.php diff --git a/admin/details.php b/admin/details.php new file mode 100644 index 0000000..a39dcd3 --- /dev/null +++ b/admin/details.php @@ -0,0 +1,59 @@ + + +
+
+

Customer

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameEmailPasswordCountryCityContactAddressImage
+
+
diff --git a/admin/index.php b/admin/index.php index 3ea058d..d73c75a 100644 --- a/admin/index.php +++ b/admin/index.php @@ -123,6 +123,11 @@ else if(isset($_GET['view_customers'])){ include ('view_customers.php'); } + else if(isset($_GET['detail_cust'])){ + include ('details.php'); + } + + else if(isset($_GET['edit_cust'])){ include ('edit_cust.php'); } diff --git a/admin/view_customers.php b/admin/view_customers.php index 9df3272..c953b85 100644 --- a/admin/view_customers.php +++ b/admin/view_customers.php @@ -37,7 +37,12 @@ - + + Details + + + + Edit