From a37e58a7463a54794fcdff00296b9aa2de0a1b8b Mon Sep 17 00:00:00 2001 From: Mohsin Haneef Date: Tue, 4 Sep 2018 12:38:46 +0500 Subject: [PATCH 1/4] this is a new test file --- admin/view_customer.php | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 admin/view_customer.php diff --git a/admin/view_customer.php b/admin/view_customer.php new file mode 100644 index 0000000..16385af --- /dev/null +++ b/admin/view_customer.php @@ -0,0 +1,7 @@ + Date: Tue, 4 Sep 2018 12:41:22 +0500 Subject: [PATCH 2/4] this is a new test file --- .idea/ecommerce.iml | 8 ++++++++ .idea/misc.xml | 6 ++++++ .idea/modules.xml | 8 ++++++++ 3 files changed, 22 insertions(+) create mode 100644 .idea/ecommerce.iml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml diff --git a/.idea/ecommerce.iml b/.idea/ecommerce.iml new file mode 100644 index 0000000..c956989 --- /dev/null +++ b/.idea/ecommerce.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..3117c65 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file From 7981d744b4e55e0f8419cb00da331ed2c0d15c55 Mon Sep 17 00:00:00 2001 From: Mohsin Haneef Date: Thu, 6 Sep 2018 11:47:41 +0500 Subject: [PATCH 3/4] commit message --- .idea/vcs.xml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .idea/vcs.xml 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 From b23a3c80281163622936364f8ccb293bb69b72af Mon Sep 17 00:00:00 2001 From: Mohsin Haneef Date: Mon, 10 Sep 2018 11:32:29 +0500 Subject: [PATCH 4/4] updated files --- admin/del_brand.php | 9 +++ admin/del_cat.php | 9 +++ admin/del_customer.php | 9 +++ admin/del_pro.php | 9 +++ admin/edit_brand.php | 42 +++++++++++ admin/edit_cat.php | 42 +++++++++++ admin/edit_pro.php | 140 ++++++++++++++++++++++++++++++++++ admin/index.php | 84 ++++++++++++++++----- admin/insert_brand.php | 32 ++++++++ admin/insert_category.php | 32 ++++++++ admin/insert_product.php | 155 +++++++++++++++++++------------------- admin/view_brands.php | 50 +++++++++--- admin/view_categories.php | 50 +++++++++--- admin/view_customers.php | 82 ++++++++++---------- admin/view_products.php | 52 +++++++++++++ 15 files changed, 639 insertions(+), 158 deletions(-) create mode 100644 admin/del_brand.php create mode 100644 admin/del_cat.php create mode 100644 admin/del_customer.php create mode 100644 admin/del_pro.php create mode 100644 admin/edit_brand.php create mode 100644 admin/edit_cat.php create mode 100644 admin/edit_pro.php create mode 100644 admin/insert_brand.php create mode 100644 admin/insert_category.php create mode 100644 admin/view_products.php diff --git a/admin/del_brand.php b/admin/del_brand.php new file mode 100644 index 0000000..ceb08bb --- /dev/null +++ b/admin/del_brand.php @@ -0,0 +1,9 @@ + +
+
+
+
+

Update brand

+
+
+ +
+ +
+
+
+
+ +
+
+
+
+
diff --git a/admin/edit_cat.php b/admin/edit_cat.php new file mode 100644 index 0000000..dfab5b7 --- /dev/null +++ b/admin/edit_cat.php @@ -0,0 +1,42 @@ + +
+
+
+
+

Update Category

+
+
+ +
+ +
+
+
+
+ +
+
+
+
+
diff --git a/admin/edit_pro.php b/admin/edit_pro.php new file mode 100644 index 0000000..f6ff5cc --- /dev/null +++ b/admin/edit_pro.php @@ -0,0 +1,140 @@ + +
+
+
+
+

Edit & Update Product

+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ +
+
+
+
+
diff --git a/admin/index.php b/admin/index.php index 7de0707..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
  • @@ -67,17 +78,52 @@
    - +
    diff --git a/admin/insert_brand.php b/admin/insert_brand.php new file mode 100644 index 0000000..5bad1eb --- /dev/null +++ b/admin/insert_brand.php @@ -0,0 +1,32 @@ +
    +
    +
    +
    +

    Insert New Brand

    +
    +
    + +
    + +
    +
    +
    +
    + +
    +
    +
    +
    +
    + \ No newline at end of file diff --git a/admin/insert_category.php b/admin/insert_category.php new file mode 100644 index 0000000..4b36937 --- /dev/null +++ b/admin/insert_category.php @@ -0,0 +1,32 @@ +
    +
    +
    +
    +

    Insert New Category

    +
    +
    + +
    + +
    +
    +
    +
    + +
    +
    +
    +
    +
    + \ No newline at end of file diff --git a/admin/insert_product.php b/admin/insert_product.php index 07e1bbe..d2d6beb 100644 --- a/admin/insert_product.php +++ b/admin/insert_product.php @@ -1,81 +1,82 @@ - - - - Inserting Product - - - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    Insert New Product here

    Product Title:
    Product Category: - -
    Product Brand: - -
    Product Image:
    Product Price:
    Product Description:
    Product Keywords:
    - +
    +
    + +
    +

    Insert New Product

    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    +
    + +
    +
    - - - +
    +
    Brands -
      - $brand_title"; - } - ?> -
    \ No newline at end of file +
    +
    +

    Brands

    + + + + + + + + + + + + + + + + + +
    #NameActions
    + Edit + + + Delete + +
    +
    +
    \ 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

    -
      -$cat_title"; -} -?> -
    +
    +
    +

    Categories

    + + + + + + + + + + + + + + + + + +
    #NameActions
    + Edit + + + Delete + +
    +
    +
    \ 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

    +
    + - - - - - - - + + + + + - - - - - - - - - - - "; - } - ?> - + + + 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']; + ?> + + + + + + + + + +
    NameEmailCountryCityContactAddressImage#NameEmailImageActions
    $cust_name$cust_email$cust_country$cust_city$cust_contact$cust_address
    + 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

    + + + + + + + + + + + + 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']; + ?> + + + + + + + + + +
    #TitleImagePriceActions
    /- + Edit + + + Delete + +
    +
    +
    \ No newline at end of file