From 7a62e717c0e760243c12dca967f3d016e1012a3f Mon Sep 17 00:00:00 2001 From: Mansoor Zafar Date: Mon, 10 Sep 2018 11:29:05 +0500 Subject: [PATCH 1/5] with changes before 10/09/2018 --- admin/index.php | 84 ++++++++++++++++----- admin/insert_product.php | 155 +++++++++++++++++++------------------- admin/view_brands.php | 50 +++++++++--- admin/view_categories.php | 50 +++++++++--- admin/view_customers.php | 82 ++++++++++---------- 5 files changed, 263 insertions(+), 158 deletions(-) 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_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 - \ 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

    - +
    +
    +

    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 From e18102bc1428db418d30e62d6b89cdf807a336db Mon Sep 17 00:00:00 2001 From: Mansoor Zafar Date: Mon, 10 Sep 2018 11:32:02 +0500 Subject: [PATCH 2/5] with changes before 10/09/2018 --- admin/del_brand.php | 9 +++ admin/del_cat.php | 10 +++ 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/insert_brand.php | 32 +++++++++ admin/insert_category.php | 32 +++++++++ admin/view_products.php | 52 ++++++++++++++ 10 files changed, 377 insertions(+) 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/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/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 From 70dcbcfe63ab0785a1b88204f3603ce4ee205c99 Mon Sep 17 00:00:00 2001 From: Mansoor Zafar Date: Mon, 10 Sep 2018 11:34:56 +0500 Subject: [PATCH 3/5] with changes before 10/09/2018 --- .idea/ecommerce.iml | 8 ++++++++ .idea/misc.xml | 6 ++++++ .idea/modules.xml | 8 ++++++++ .idea/vcs.xml | 6 ++++++ 4 files changed, 28 insertions(+) create mode 100644 .idea/ecommerce.iml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.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 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 f98f0b3a98f47a1640ec949c205ba664bdabd03c Mon Sep 17 00:00:00 2001 From: Mansoor Zafar Date: Mon, 10 Sep 2018 11:37:08 +0500 Subject: [PATCH 4/5] with changes before 10/09/2018 --- admin/del_brand.php | 3 ++- admin/edit_cat.php | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/admin/del_brand.php b/admin/del_brand.php index ceb08bb..97b44ec 100644 --- a/admin/del_brand.php +++ b/admin/del_brand.php @@ -6,4 +6,5 @@ if($run_del){ header('location: index.php?view_brands'); } -} \ No newline at end of file +} + diff --git a/admin/edit_cat.php b/admin/edit_cat.php index dfab5b7..f146335 100644 --- a/admin/edit_cat.php +++ b/admin/edit_cat.php @@ -38,5 +38,7 @@ + + From d68421cb09f70e88cebbdd307eec05f301fba856 Mon Sep 17 00:00:00 2001 From: Mansoor Zafar Date: Thu, 13 Sep 2018 11:48:25 +0500 Subject: [PATCH 5/5] with changes before 13/09/2018 --- admin/del_brand.php | 6 +++-- admin/del_cat.php | 4 +++- admin/del_customer.php | 3 +++ admin/del_pro.php | 3 +++ admin/edit_brand.php | 3 +++ admin/edit_cat.php | 5 ++-- admin/edit_pro.php | 3 +++ admin/index.php | 7 +++++- admin/insert_brand.php | 5 ++++ admin/insert_category.php | 5 ++++ admin/insert_product.php | 12 +++++++--- admin/login.php | 48 +++++++++++++++++++++++++++++++++++---- admin/view_brands.php | 5 ++++ admin/view_categories.php | 5 ++++ admin/view_customers.php | 5 ++++ admin/view_products.php | 5 ++++ 16 files changed, 110 insertions(+), 14 deletions(-) diff --git a/admin/del_brand.php b/admin/del_brand.php index 97b44ec..3a49272 100644 --- a/admin/del_brand.php +++ b/admin/del_brand.php @@ -1,4 +1,7 @@ - - diff --git a/admin/edit_pro.php b/admin/edit_pro.php index f6ff5cc..b02d5f0 100644 --- a/admin/edit_pro.php +++ b/admin/edit_pro.php @@ -1,4 +1,7 @@ @@ -78,6 +82,7 @@
    +

    diff --git a/admin/insert_category.php b/admin/insert_category.php index 4b36937..50fc5e5 100644 --- a/admin/insert_category.php +++ b/admin/insert_category.php @@ -1,3 +1,8 @@ +
    diff --git a/admin/insert_product.php b/admin/insert_product.php index d2d6beb..5dce0d5 100644 --- a/admin/insert_product.php +++ b/admin/insert_product.php @@ -1,3 +1,8 @@ +
    @@ -7,14 +12,15 @@
    - +
    +
    diff --git a/admin/login.php b/admin/login.php index 361575f..9b7058f 100644 --- a/admin/login.php +++ b/admin/login.php @@ -1,3 +1,29 @@ + @@ -11,13 +37,25 @@ Admin Login - + +

    +

    Admin Login

    - - - +
    + +
    +
    + + +
    + - \ No newline at end of file + + + + diff --git a/admin/view_brands.php b/admin/view_brands.php index 1c33bd0..b760ebe 100644 --- a/admin/view_brands.php +++ b/admin/view_brands.php @@ -1,3 +1,8 @@ +

    Brands

    diff --git a/admin/view_categories.php b/admin/view_categories.php index df95e1d..1c8625e 100644 --- a/admin/view_categories.php +++ b/admin/view_categories.php @@ -1,3 +1,8 @@ +

    Categories

    diff --git a/admin/view_customers.php b/admin/view_customers.php index 32344a2..7287a3c 100644 --- a/admin/view_customers.php +++ b/admin/view_customers.php @@ -1,3 +1,8 @@ +

    Customers

    diff --git a/admin/view_products.php b/admin/view_products.php index 00bfd82..2e57b8c 100644 --- a/admin/view_products.php +++ b/admin/view_products.php @@ -1,3 +1,8 @@ +

    Products