From d663ac02afc859d91462920bddf4d0594599fde8 Mon Sep 17 00:00:00 2001 From: mahambutt Date: Tue, 4 Sep 2018 13:43:36 +0500 Subject: [PATCH 1/8] verify password --- admin/login.php | 1 + 1 file changed, 1 insertion(+) diff --git a/admin/login.php b/admin/login.php index 361575f..c066b26 100644 --- a/admin/login.php +++ b/admin/login.php @@ -15,6 +15,7 @@

Admin Login

+ From e0951e012603b4535670e65984d6e8824d4d1a8c Mon Sep 17 00:00:00 2001 From: mahambutt Date: Thu, 6 Sep 2018 21:11:37 +0500 Subject: [PATCH 2/8] view products --- .idea/ecommerce-master.iml | 8 ++ .idea/misc.xml | 6 ++ .idea/modules.xml | 8 ++ .idea/vcs.xml | 6 ++ admin/assets/css/custom.css | 4 + admin/index.php | 25 +++++- admin/insert_product.php | 156 ++++++++++++++++++------------------ admin/login.php | 1 - admin/view.php | 37 +++++++++ change_pass.php | 50 ++++++++++++ 10 files changed, 221 insertions(+), 80 deletions(-) create mode 100644 .idea/ecommerce-master.iml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml create mode 100644 admin/view.php diff --git a/.idea/ecommerce-master.iml b/.idea/ecommerce-master.iml new file mode 100644 index 0000000..c956989 --- /dev/null +++ b/.idea/ecommerce-master.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..c7f20e6 --- /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/assets/css/custom.css b/admin/assets/css/custom.css index f4a9140..e7e57f6 100644 --- a/admin/assets/css/custom.css +++ b/admin/assets/css/custom.css @@ -90,3 +90,7 @@ a, a:hover, a:focus { color: #fff; background: #6d7fcc; } + +#content { + width: 100%; +} \ No newline at end of file diff --git a/admin/index.php b/admin/index.php index 29e7a82..31043b6 100644 --- a/admin/index.php +++ b/admin/index.php @@ -1,3 +1,6 @@ + @@ -10,6 +13,7 @@ E-commerce Admin Panel + Admin Panel
@@ -24,7 +28,7 @@
  • - + View All Products
  • @@ -62,6 +66,25 @@
    +
    + +
    diff --git a/admin/insert_product.php b/admin/insert_product.php index 344fcb6..d2d6beb 100644 --- a/admin/insert_product.php +++ b/admin/insert_product.php @@ -1,82 +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

    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    +
    + +
    +
    - - - +
    +
    Admin Login - diff --git a/admin/view.php b/admin/view.php new file mode 100644 index 0000000..e72204f --- /dev/null +++ b/admin/view.php @@ -0,0 +1,37 @@ +

    All product

    + diff --git a/change_pass.php b/change_pass.php index e69de29..748b492 100644 --- a/change_pass.php +++ b/change_pass.php @@ -0,0 +1,50 @@ + +

    Change Your Password

    +
    +
    + +
    + + + + + + + + + + + + + + + + + +
    Enter Current Password:
    Enter New Password:
    Confirm Password:
    +
    From 90040b08263d71193e020a61fabad84b4bc7af72 Mon Sep 17 00:00:00 2001 From: mahambutt Date: Thu, 6 Sep 2018 21:15:59 +0500 Subject: [PATCH 3/8] view products --- admin/view.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/view.php b/admin/view.php index e72204f..8a0e569 100644 --- a/admin/view.php +++ b/admin/view.php @@ -24,12 +24,12 @@ $pro_image = $row_pro['pro_image']; echo" - $pro_title + $pro_title - $pro_price
    + $pro_price
    "; } ?> From ee0d0ecc3e0d130e54d40b75b680554e0a2d38ca Mon Sep 17 00:00:00 2001 From: mahambutt Date: Thu, 6 Sep 2018 21:23:36 +0500 Subject: [PATCH 4/8] view All product --- admin/view.php | 38 ++++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/admin/view.php b/admin/view.php index 8a0e569..78fcca3 100644 --- a/admin/view.php +++ b/admin/view.php @@ -1,28 +1,28 @@

    All product

      - + } + $run_pro = mysqli_query($con,$get_pro); + $count_pro = mysqli_num_rows($run_pro); + + + 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']; + echo" $pro_title @@ -34,4 +34,6 @@ } ?> + +
    From f80d76809dd44fae778674546db868beec220b47 Mon Sep 17 00:00:00 2001 From: mahambutt Date: Thu, 6 Sep 2018 22:21:54 +0500 Subject: [PATCH 5/8] Insert New Brand --- admin/index.php | 3 +++ admin/insert_brand.php | 40 ++++++++++++++++++++++++++++++++++++++++ admin/view.php | 3 --- 3 files changed, 43 insertions(+), 3 deletions(-) create mode 100644 admin/insert_brand.php diff --git a/admin/index.php b/admin/index.php index 31043b6..0b1c1dc 100644 --- a/admin/index.php +++ b/admin/index.php @@ -83,6 +83,9 @@ else if(isset($_GET['view_brands'])) { include('view_brands.php'); } + else if(isset($_GET['insert_brand'])){ + include ('insert_brand.php'); + } ?> diff --git a/admin/insert_brand.php b/admin/insert_brand.php new file mode 100644 index 0000000..0c227d2 --- /dev/null +++ b/admin/insert_brand.php @@ -0,0 +1,40 @@ +
      +
      +
      +
      +

      Insert New Brand

      +
      +
      + +
      + +
      +
      +
      +
      + +
      +
      +
      +
      +
      + + + $pro_title"; +} + +?> +
    diff --git a/admin/view.php b/admin/view.php index 78fcca3..7614231 100644 --- a/admin/view.php +++ b/admin/view.php @@ -33,7 +33,4 @@ "; } ?> - - - From d0ebebd8442203d2b7e4b5324afd4c43bc4f25c8 Mon Sep 17 00:00:00 2001 From: mahambutt Date: Thu, 6 Sep 2018 22:32:13 +0500 Subject: [PATCH 6/8] Insert new brands....... --- admin/insert_brand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/insert_brand.php b/admin/insert_brand.php index 0c227d2..d33eb32 100644 --- a/admin/insert_brand.php +++ b/admin/insert_brand.php @@ -5,9 +5,9 @@

    Insert New Brand

    - +
    - +
    From 1b06cd34c9ae622a6d1e2c15bb226b3ad7a95357 Mon Sep 17 00:00:00 2001 From: mahambutt Date: Thu, 6 Sep 2018 23:43:02 +0500 Subject: [PATCH 7/8] Insert new categories....... --- admin/index.php | 5 ++++- admin/insert_categories.php | 38 +++++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 admin/insert_categories.php diff --git a/admin/index.php b/admin/index.php index 0b1c1dc..f3764d3 100644 --- a/admin/index.php +++ b/admin/index.php @@ -33,7 +33,7 @@
  • - Insert New Category + Insert New Category
  • View All Categories @@ -86,6 +86,9 @@ else if(isset($_GET['insert_brand'])){ include ('insert_brand.php'); } + else if(isset($_GET['insert_categories'])){ + include ('insert_categories.php'); + } ?>
  • diff --git a/admin/insert_categories.php b/admin/insert_categories.php new file mode 100644 index 0000000..b214146 --- /dev/null +++ b/admin/insert_categories.php @@ -0,0 +1,38 @@ +
      +
      +
      +
      +

      Insert New Categories

      +
      +
      + +
      + +
      +
      +
      +
      + +
      +
      +
      +
      +
      + +
    From da9341cd4152682f68da54942a98c84d653b028a Mon Sep 17 00:00:00 2001 From: mahambutt Date: Fri, 7 Sep 2018 00:14:57 +0500 Subject: [PATCH 8/8] viewAll_products --- admin/index.php | 7 +------ admin/insert_brand.php | 40 ------------------------------------- admin/insert_categories.php | 38 ----------------------------------- 3 files changed, 1 insertion(+), 84 deletions(-) delete mode 100644 admin/insert_brand.php delete mode 100644 admin/insert_categories.php diff --git a/admin/index.php b/admin/index.php index f3764d3..3ceedca 100644 --- a/admin/index.php +++ b/admin/index.php @@ -83,12 +83,7 @@ else if(isset($_GET['view_brands'])) { include('view_brands.php'); } - else if(isset($_GET['insert_brand'])){ - include ('insert_brand.php'); - } - else if(isset($_GET['insert_categories'])){ - include ('insert_categories.php'); - } + ?> diff --git a/admin/insert_brand.php b/admin/insert_brand.php deleted file mode 100644 index d33eb32..0000000 --- a/admin/insert_brand.php +++ /dev/null @@ -1,40 +0,0 @@ -
      -
      -
      -
      -

      Insert New Brand

      -
      -
      - -
      - -
      -
      -
      -
      - -
      -
      -
      -
      -
      - - - $pro_title"; -} - -?> -
    diff --git a/admin/insert_categories.php b/admin/insert_categories.php deleted file mode 100644 index b214146..0000000 --- a/admin/insert_categories.php +++ /dev/null @@ -1,38 +0,0 @@ -
      -
      -
      -
      -

      Insert New Categories

      -
      -
      - -
      - -
      -
      -
      -
      - -
      -
      -
      -
      -
      - -