From 3c7b396741ffb431525a10953951a99cb2f29c2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alperen=20KA=C3=87MAZ?= Date: Sun, 3 Jan 2021 21:07:18 +0300 Subject: [PATCH] new php adds --- Projects/project1_main/account.php | 106 ++++++++++---- Projects/project1_main/admin/adminAccount.php | 1 + Projects/project1_main/admin/adminBills.php | 115 +++++++++++++++ .../project1_main/admin/adminComplaint.php | 79 +++++----- Projects/project1_main/admin/adminInfo.php | 1 + Projects/project1_main/admin/adminPanel.php | 1 + Projects/project1_main/admin/adminTODO.php | 44 +++--- .../project1_main/index/new_user_sign.php | 1 + Projects/project1_main/index/payBill.php | 137 ++++++++++++++++++ Projects/project1_main/to-do.php | 57 +++++--- 10 files changed, 438 insertions(+), 104 deletions(-) create mode 100644 Projects/project1_main/admin/adminBills.php create mode 100644 Projects/project1_main/index/payBill.php diff --git a/Projects/project1_main/account.php b/Projects/project1_main/account.php index a721397..08436eb 100644 --- a/Projects/project1_main/account.php +++ b/Projects/project1_main/account.php @@ -24,7 +24,7 @@ - - -

Account Transactions

@@ -46,54 +43,107 @@
-

Your Information is ;

-

User name

-

Name

-

Surname

-

Phone

-

Email

+

Your Information is ;


+

User name:


+

Name:


+

Surname:


+

Phone:


+

Email:


+

Flat:


-
+ -

+

-

+

-

+

-

+

-

+

-

+

-

+

+ +

+
+
+ prepare("UPDATE usersinfo set + userUsername=:userUsername, + userName=:userName, + userSurname=:userSurname, + userEmail=:userEmail, + userUsername=:userUsername, + userFlatno=:userFlatno, + userPassword=:userPassword, + userGSM=:userGSM + + where userID={$_SESSION['userID']} + "); + + $insert = $kaydet->execute(array( + + 'userName' => $_POST['userName'], + 'userSurname' => $_POST['userSurname'], + 'userEmail' => $_POST['userEmail'], + 'userUsername' => $_POST['userUsername'], + 'userFlatno' => $_POST['userFlatno'], + 'userPassword' => $_POST['userPasswordNEW'], + 'userGSM' => $_POST['userGSM'] + )); + + + + if ($insert) { + //echo "kayıt başarılı"; + Header("Location:account.php?update=ok&bilgilerim_id=$bilgilerim_id"); + exit; + } else { + //echo "kayıt başarısız"; + Header("Location:account.php?update=no&bilgilerim_id=$bilgilerim_id"); + exit; + } + } + + + + ?>
diff --git a/Projects/project1_main/admin/adminAccount.php b/Projects/project1_main/admin/adminAccount.php index f2b17d6..c0c3249 100644 --- a/Projects/project1_main/admin/adminAccount.php +++ b/Projects/project1_main/admin/adminAccount.php @@ -27,6 +27,7 @@ + diff --git a/Projects/project1_main/admin/adminBills.php b/Projects/project1_main/admin/adminBills.php new file mode 100644 index 0000000..32d1281 --- /dev/null +++ b/Projects/project1_main/admin/adminBills.php @@ -0,0 +1,115 @@ + + + + + + + + Document + + + + + + + +
+
+

to-do page

+
+
+ + + + + +
+ + + + + + + + + + + + + + + + prepare("SELECT * FROM bills"); + $checkUserInDB->execute(); + while ($pullinfo = $checkUserInDB->fetch(PDO::FETCH_ASSOC)) { + ?> + + + + + + + + + + + + + + + +
Bill IDBill Dateis okRentCorridor Electric BillMaintenance BillCorridor Cleaning BillFuel BillSUMUPDATE


+ + + +

+
+ +
+ + +
+ + + \ No newline at end of file diff --git a/Projects/project1_main/admin/adminComplaint.php b/Projects/project1_main/admin/adminComplaint.php index f826c18..d056180 100644 --- a/Projects/project1_main/admin/adminComplaint.php +++ b/Projects/project1_main/admin/adminComplaint.php @@ -28,6 +28,7 @@ + @@ -36,48 +37,48 @@
- +
+ + + + + + + + + + + + prepare("SELECT * FROM complains"); + $checkUserInDB->execute(); + $say = 0; + while ($pullinfo = $checkUserInDB->fetch(PDO::FETCH_ASSOC)) { + $say++ + ?> - - - - - - - - - + + + + + + + + + - prepare("SELECT * FROM complains"); - $checkUserInDB->execute(); - $say = 0; - while ($pullinfo = $checkUserInDB->fetch(PDO::FETCH_ASSOC)) { - $say++ - ?> - - - - - - - - - - - - -
S.NOComplain IDNameSurnameUser NameFlat NoAboutComplainDelete
S.NOComplain IDNameSurnameUser NameFlat NoAboutComplainDelete
- + + + } + + ?>
diff --git a/Projects/project1_main/admin/adminInfo.php b/Projects/project1_main/admin/adminInfo.php index 2fdcf1c..c6219bb 100644 --- a/Projects/project1_main/admin/adminInfo.php +++ b/Projects/project1_main/admin/adminInfo.php @@ -27,6 +27,7 @@ + diff --git a/Projects/project1_main/admin/adminPanel.php b/Projects/project1_main/admin/adminPanel.php index 6f4e097..a67d4b0 100644 --- a/Projects/project1_main/admin/adminPanel.php +++ b/Projects/project1_main/admin/adminPanel.php @@ -27,6 +27,7 @@ + diff --git a/Projects/project1_main/admin/adminTODO.php b/Projects/project1_main/admin/adminTODO.php index 720d1ad..28e4115 100644 --- a/Projects/project1_main/admin/adminTODO.php +++ b/Projects/project1_main/admin/adminTODO.php @@ -28,6 +28,7 @@ + @@ -44,21 +45,22 @@ $checkUserInDB->execute(); while ($pullinfo = $checkUserInDB->fetch(PDO::FETCH_ASSOC)) { ?> -
  • ID:
  • -
  • -
    +
    +
  • ID:
  • +
  • +

    @@ -71,24 +73,26 @@ $checkUserInDB->execute(); while ($pullinfo = $checkUserInDB->fetch(PDO::FETCH_ASSOC)) { ?> -
  • ID:
  • +
    +
  • ID:
  • Date:
  • -
  • Light: ₺
  • -
  • Water: ₺
  • +
  • Lights: ₺
  • +
  • Pool Maintenance: ₺
  • Extra: ₺
  • -
    +
  • IS OK:
  • +

    @@ -98,6 +102,8 @@ + +