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/index.php b/admin/index.php
index 282da5b..32c44e5 100644
--- a/admin/index.php
+++ b/admin/index.php
@@ -33,28 +33,39 @@
- Insert New Category
+
+ Insert New Category
+
- View All Categories
+
+ View All Categories
+
- Insert New Brand
+
+ Insert New Brand
+
- View All Brands
+
+ View All Brands
- View Customers
+
+ View Customers
- View Orders
+
+ View Orders
- View Payments
+
+ View Payments
- Admin logout
+
+ Admin logout
@@ -71,15 +82,47 @@
if(isset($_GET['insert_product'])){
include ('insert_product.php');
}
+ else if(isset($_GET['view_products'])){
+ include ('view_products.php');
+ }
+ else if(isset($_GET['edit_pro'])){
+ include ('edit_pro.php');
+ }
+ else if(isset($_GET['del_pro'])){
+ include ('del_pro.php');
+ }
else if(isset($_GET['view_categories'])){
include ('view_categories.php');
}
- else if(isset($_GET['view_customers'])){
- include ('view_customers.php');
+ else if(isset($_GET['insert_category'])){
+ include ('insert_category.php');
+ }
+ else if(isset($_GET['edit_cat'])){
+ include ('edit_cat.php');
+ }
+ else if(isset($_GET['del_cat'])){
+ include ('del_cat.php');
}
else if(isset($_GET['view_brands'])) {
include('view_brands.php');
}
+ else if(isset($_GET['insert_brand'])) {
+ include('insert_brand.php');
+ }
+ else if(isset($_GET['edit_brand'])) {
+ include('edit_brand.php');
+ }
+ else if(isset($_GET['del_brand'])) {
+ include('del_brand.php');
+ }
+ else if(isset($_GET['view_customers'])){
+ include ('view_customers.php');
+ }
+ else if(isset($_GET['del_customer'])){
+ include ('del_customer.php');
+ }
+
+
?>
diff --git a/admin/view_brands.php b/admin/view_brands.php
index dd3df9c..1c33bd0 100644
--- a/admin/view_brands.php
+++ b/admin/view_brands.php
@@ -1,12 +1,38 @@
- Brands
-
- $brand_title";
- }
- ?>
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/admin/view_categories.php b/admin/view_categories.php
index c326a31..df95e1d 100644
--- a/admin/view_categories.php
+++ b/admin/view_categories.php
@@ -1,12 +1,38 @@
- Categories
-
+
\ No newline at end of file
diff --git a/admin/view_customers.php b/admin/view_customers.php
index c96822f..32344a2 100644
--- a/admin/view_customers.php
+++ b/admin/view_customers.php
@@ -1,41 +1,47 @@
-Customers
-
-
-
+
+
+
Customers
+
+
- | Name |
- Email |
- Country |
- City |
- Contact |
- Address |
- Image |
+ # |
+ Name |
+ Email |
+ Image |
+ Actions |
-
-
-
- $cust_name |
- $cust_email |
- $cust_country |
- $cust_city |
- $cust_contact |
- $cust_address |
-  |
- ";
- }
- ?>
-
+
+
+ No Customer found ";
+ }
+ else {
+ $i = 0;
+ while ($row_cust = mysqli_fetch_array($run_cust)) {
+ $cust_id = $row_cust['cust_id'];
+ $cust_name = $row_cust['cust_name'];
+ $cust_email = $row_cust['cust_email'];
+ $cust_image = $row_cust['cust_image'];
+ ?>
+
+ |
+ |
+ |
+  |
+
+ Delete
+
+ |
+
+
+
+
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/admin/view_products.php b/admin/view_products.php
new file mode 100644
index 0000000..00bfd82
--- /dev/null
+++ b/admin/view_products.php
@@ -0,0 +1,52 @@
+
+
+
Products
+
+
+
+ | # |
+ Title |
+ Image |
+ Price |
+ Actions |
+
+
+
+ No Product found in selected criteria ";
+ }
+ else {
+ $i = 0;
+ while ($row_pro = mysqli_fetch_array($run_pro)) {
+ $pro_id = $row_pro['pro_id'];
+ $pro_cat = $row_pro['pro_cat'];
+ $pro_brand = $row_pro['pro_brand'];
+ $pro_title = $row_pro['pro_title'];
+ $pro_price = $row_pro['pro_price'];
+ $pro_image = $row_pro['pro_image'];
+ ?>
+
+ |
+ |
+  |
+ /- |
+
+ Edit
+
+
+ Delete
+
+ |
+
+
+
+
+
+
\ No newline at end of file