From de8e1c1fdfdd7dac8f58284692e85bff373acfd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alperen=20KA=C3=87MAZ?= Date: Sat, 30 Jan 2021 19:23:56 +0300 Subject: [PATCH] bootstrap 5.0 added admin paymnet page --- .../account.php | 26 +- .../admin/adminAddNewAdmin.php | 225 ++++++++++++ .../admin/adminAddNewUser.php | 225 ++++++++++++ .../admin/adminBills.php | 345 ++++++++++++------ .../admin/adminComplaint.php | 62 ++-- .../admin/adminInfo.php | 61 ++-- .../admin/adminPanel.php | 65 ++-- .../complaint.php | 41 ++- .../css/account.css | 1 + .../css/admin/adminAccount.css | 7 +- .../css/admin/adminPayment.css | 11 +- .../css/log-in.css | 2 +- .../index/showBills.php | 2 +- .../information.php | 49 ++- .../main.php | 10 + .../to-do.php | 180 ++++++--- 16 files changed, 1031 insertions(+), 281 deletions(-) create mode 100644 Projects/Project-1_DesignApartmentManager(NEW)/admin/adminAddNewAdmin.php create mode 100644 Projects/Project-1_DesignApartmentManager(NEW)/admin/adminAddNewUser.php diff --git a/Projects/Project-1_DesignApartmentManager(NEW)/account.php b/Projects/Project-1_DesignApartmentManager(NEW)/account.php index bde93de..95da22b 100644 --- a/Projects/Project-1_DesignApartmentManager(NEW)/account.php +++ b/Projects/Project-1_DesignApartmentManager(NEW)/account.php @@ -13,6 +13,16 @@ + + + + + + + + + + @@ -69,21 +79,21 @@ function logoutFun() {
- Your Information is ; + PERSONAL INFORMATION
-
+
User Name diff --git a/Projects/Project-1_DesignApartmentManager(NEW)/admin/adminAddNewAdmin.php b/Projects/Project-1_DesignApartmentManager(NEW)/admin/adminAddNewAdmin.php new file mode 100644 index 0000000..39ab531 --- /dev/null +++ b/Projects/Project-1_DesignApartmentManager(NEW)/admin/adminAddNewAdmin.php @@ -0,0 +1,225 @@ + + + + + + + + Account + + + + + + + + + + + + + + + + + +
+
+

ACCOUNT

+
+
+ + + + + + +

BURAYA INFORMATION ICONU VE BİLGİ EKLE

+ + + +
+
+ +
+
+ ADMIN FIRST + +
+ Please enter a Name in the textarea +
+
+
+ ADMIN LAST + +
+ Please enter a Surname in the textarea +
+
+
+ ADMIN USER NAME + +
+ Please enter a User name in the textarea +
+
+
+ ADMIN GSM-1 + +
+ Please enter a GSM in the textarea +
+
+
+ ADMIN GSM-2 + +
+ Please enter a Different GSM in the textarea +
+
+
+ ADMIN E-MAIL + +
+ Please enter a E-Mail address in the textarea +
+
+
+ ADMIN PASSWORD + +
+ Please describe the Password in the textarea +
+
+
+ + + + + Registration Successful

"; + } elseif ($_GET['adminNewAdmin'] == "failed") { + echo "

Registration Failed

"; + } + } + ?> + + + 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' => md5($_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; + } + } else { + echo "
"; + } + } + ?> + "; + } elseif ($_GET['update'] == "no") { + echo "
"; + } + } + ?> +
+
+ + + + + + + \ No newline at end of file diff --git a/Projects/Project-1_DesignApartmentManager(NEW)/admin/adminAddNewUser.php b/Projects/Project-1_DesignApartmentManager(NEW)/admin/adminAddNewUser.php new file mode 100644 index 0000000..f5c9402 --- /dev/null +++ b/Projects/Project-1_DesignApartmentManager(NEW)/admin/adminAddNewUser.php @@ -0,0 +1,225 @@ + + + + + + + + Account + + + + + + + + + + + + + + + + + +
+
+

ACCOUNT

+
+
+ + + + +
+ +

BURAYA INFORMATION ICONU VE BİLGİ EKLE

+ + + +
+
+
+
+ +
+ FIRST + +
+ Please enter a Name in the textarea +
+
+
+ LAST + +
+ Please enter a Surname in the textarea +
+
+
+ USER NAME + +
+ Please enter a Username in the textarea +
+
+
+ #FLAT + +
+ Please enter a Flat number in the textarea +
+
+
+ GSM + +
+ Please enter a GSM in the textarea +
+
+
+ E-MAIL + +
+ Please enter a E-Mail address in the textarea +
+
+
+ PASSWORD + +
+ Please describe the Password in the textarea +
+
+
+ + + + + Registration Successful

"; + } elseif ($_GET['adminUserSign'] == "failed") { + echo "

Registration Failed

"; + } + } + ?> +
+ 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' => md5($_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; + } + } else { + echo "
"; + } + } + ?> + "; + } elseif ($_GET['update'] == "no") { + echo "
"; + } + } + ?> +
+
+ + + + + + + \ No newline at end of file diff --git a/Projects/Project-1_DesignApartmentManager(NEW)/admin/adminBills.php b/Projects/Project-1_DesignApartmentManager(NEW)/admin/adminBills.php index baf030e..1c833ed 100644 --- a/Projects/Project-1_DesignApartmentManager(NEW)/admin/adminBills.php +++ b/Projects/Project-1_DesignApartmentManager(NEW)/admin/adminBills.php @@ -10,10 +10,19 @@ - Bills + Payment + + + + + + + + + @@ -29,119 +38,249 @@ + MANAGEMENT SYSTEM + + + + +
+
+
+

+ +

+
+
+
+ + + + + + + + + + + + + + + + + prepare("SELECT * FROM bills"); + $checkUserInDB->execute(); + while ($pullinfo = $checkUserInDB->fetch(PDO::FETCH_ASSOC)) { + ?> + + + + + + + + + + + + + + + +
Bill IDBill Dateis okRentCorridor Electric BillMaintenance BillCorridor Cleaning BillFuel BillSUMUPDATEDELETE
+ + ADDED NEW BILL
"; + } elseif ($_GET['addNewBill'] == "no") { + echo ""; + } + } + if (isset($_GET['update'])) { + if ($_GET['update'] == "ok") { + + echo ""; + } elseif ($_GET['update'] == "no") { + echo ""; + } + } + ?> +
+
+
+
+ + +
+

+ +

+
+
+
+
+
+ RENT + +
+
+ LIGHT + +
+
+ WATER + +
+
+ CLEANING + +
+
+ FUEL + +
+
+ SHOW THE BILL + +
+ +

+ ADDED NEW BILL
"; + } elseif ($_GET['addNewBill'] == "no") { + echo ""; + } + } + ?> + + + prepare("INSERT into bills set + rent=:rent, + corridorLight=:corridorLight, + corridorWater=:corridorWater, + corridorCleaning=:corridorCleaning, + fuel =:fuel, + isOK =:isOK + "); + + $insert = $kaydet->execute(array( + 'rent' => $_POST['rent'], + 'corridorLight' => $_POST['corridorLight'], + 'corridorWater' => $_POST['corridorWater'], + 'corridorCleaning' => $_POST['corridorCleaning'], + 'fuel' => $_POST['fuel'], + 'isOK' => $_POST['isOK'] + )); + if ($insert) { + header("Location:../admin/adminBills.php?addNewBill=ok"); + exit; + } else { + header("Location:../admin/adminBills.php?addNewBill=no"); + exit; + } + } + ?> + +
+
+
+
+ + +
+

+ +

+
+
+
+ + + + + Invoice Number + Payer Date + Payer ID + Payer Name + Payer Flat No + Amount Paid + + "; + $checkUserInDB = $db->prepare('SELECT * FROM billpayers'); + $checkUserInDB->execute(); + while ($pullinfo = $checkUserInDB->fetch(PDO::FETCH_ASSOC)) { + ?> + + + + + + + + + + +
+ +
+
+
+
- + \ No newline at end of file diff --git a/Projects/Project-1_DesignApartmentManager(NEW)/admin/adminComplaint.php b/Projects/Project-1_DesignApartmentManager(NEW)/admin/adminComplaint.php index 357a179..f81ea79 100644 --- a/Projects/Project-1_DesignApartmentManager(NEW)/admin/adminComplaint.php +++ b/Projects/Project-1_DesignApartmentManager(NEW)/admin/adminComplaint.php @@ -14,6 +14,15 @@ + + + + + + + + + @@ -27,29 +36,38 @@ diff --git a/Projects/Project-1_DesignApartmentManager(NEW)/admin/adminInfo.php b/Projects/Project-1_DesignApartmentManager(NEW)/admin/adminInfo.php index b3a1f68..084eb9d 100644 --- a/Projects/Project-1_DesignApartmentManager(NEW)/admin/adminInfo.php +++ b/Projects/Project-1_DesignApartmentManager(NEW)/admin/adminInfo.php @@ -14,6 +14,14 @@ + + + + + + + + @@ -28,29 +36,38 @@ diff --git a/Projects/Project-1_DesignApartmentManager(NEW)/admin/adminPanel.php b/Projects/Project-1_DesignApartmentManager(NEW)/admin/adminPanel.php index 94ce388..ecc4e9e 100644 --- a/Projects/Project-1_DesignApartmentManager(NEW)/admin/adminPanel.php +++ b/Projects/Project-1_DesignApartmentManager(NEW)/admin/adminPanel.php @@ -14,6 +14,15 @@ + + + + + + + + + @@ -27,34 +36,42 @@ -
prepare("SELECT * FROM maintopics"); @@ -66,7 +83,7 @@ function logoutFun() {

-

+

diff --git a/Projects/Project-1_DesignApartmentManager(NEW)/complaint.php b/Projects/Project-1_DesignApartmentManager(NEW)/complaint.php index 71fdc6c..b9ed36c 100644 --- a/Projects/Project-1_DesignApartmentManager(NEW)/complaint.php +++ b/Projects/Project-1_DesignApartmentManager(NEW)/complaint.php @@ -14,6 +14,16 @@ + + + + + + + + + + @@ -70,7 +80,7 @@ function logoutFun() {
-
+


@@ -111,14 +121,14 @@ function logoutFun() {
- +
- - - - + + + + @@ -129,16 +139,14 @@ function logoutFun() { while ($pullinfo = $checkUserInDB->fetch(PDO::FETCH_ASSOC)) { $say++ ?> - - - - - - - - - - + + + + + + + +
#NameSurnameFlat NoAboutFirstLast#FlatSubject Complain
@@ -164,6 +172,7 @@ function logoutFun() {
+ diff --git a/Projects/Project-1_DesignApartmentManager(NEW)/css/account.css b/Projects/Project-1_DesignApartmentManager(NEW)/css/account.css index c47e829..554c20c 100644 --- a/Projects/Project-1_DesignApartmentManager(NEW)/css/account.css +++ b/Projects/Project-1_DesignApartmentManager(NEW)/css/account.css @@ -32,6 +32,7 @@ body { } .main-item{ + padding:2%; line-height: 1.5; text-align: left; diff --git a/Projects/Project-1_DesignApartmentManager(NEW)/css/admin/adminAccount.css b/Projects/Project-1_DesignApartmentManager(NEW)/css/admin/adminAccount.css index 1012da8..e77da01 100644 --- a/Projects/Project-1_DesignApartmentManager(NEW)/css/admin/adminAccount.css +++ b/Projects/Project-1_DesignApartmentManager(NEW)/css/admin/adminAccount.css @@ -30,6 +30,7 @@ body { flex-direction: row; } .main-item { + margin: -2% 10%; padding: 2%; line-height: 1.5; text-align: center; @@ -37,12 +38,6 @@ body { flex-grow: 1; flex-basis: 0; } -.main-item h2 { - color: #da4167; -} -.main-item p { - margin-top: 0.5rem; -} .links{ diff --git a/Projects/Project-1_DesignApartmentManager(NEW)/css/admin/adminPayment.css b/Projects/Project-1_DesignApartmentManager(NEW)/css/admin/adminPayment.css index 1171efb..9c3ecb3 100644 --- a/Projects/Project-1_DesignApartmentManager(NEW)/css/admin/adminPayment.css +++ b/Projects/Project-1_DesignApartmentManager(NEW)/css/admin/adminPayment.css @@ -24,11 +24,18 @@ body { .section{ - margin: 5% 1%; + margin: 0 1% 0 1%; +} +.main-update{ + margin: 0 40% 0 20%; } -.links{ +footer{ + width: 100%; + bottom: 0; position: fixed; +} +.links{ width: 100%; height: 7.5%; bottom: 0; diff --git a/Projects/Project-1_DesignApartmentManager(NEW)/css/log-in.css b/Projects/Project-1_DesignApartmentManager(NEW)/css/log-in.css index d8613e1..a9042e3 100644 --- a/Projects/Project-1_DesignApartmentManager(NEW)/css/log-in.css +++ b/Projects/Project-1_DesignApartmentManager(NEW)/css/log-in.css @@ -241,4 +241,4 @@ span { } #admin{ left: 850px; -} +} \ No newline at end of file diff --git a/Projects/Project-1_DesignApartmentManager(NEW)/index/showBills.php b/Projects/Project-1_DesignApartmentManager(NEW)/index/showBills.php index 74fe31c..46ac666 100644 --- a/Projects/Project-1_DesignApartmentManager(NEW)/index/showBills.php +++ b/Projects/Project-1_DesignApartmentManager(NEW)/index/showBills.php @@ -22,7 +22,7 @@ - > +
diff --git a/Projects/Project-1_DesignApartmentManager(NEW)/information.php b/Projects/Project-1_DesignApartmentManager(NEW)/information.php index 5643f29..727e62c 100644 --- a/Projects/Project-1_DesignApartmentManager(NEW)/information.php +++ b/Projects/Project-1_DesignApartmentManager(NEW)/information.php @@ -14,6 +14,16 @@ + + + + + + + + + + @@ -73,7 +83,7 @@ function logoutFun() {
- +
@@ -85,27 +95,26 @@ function logoutFun() { - prepare("SELECT * FROM usersinfo"); - $checkUserInDB->execute(); - $say = 0; - while ($pullinfo = $checkUserInDB->fetch(PDO::FETCH_ASSOC)) { - $say++ - ?> - - - - - - - - - - - - + prepare("SELECT * FROM usersinfo"); + $checkUserInDB->execute(); + $say = 0; + while ($pullinfo = $checkUserInDB->fetch(PDO::FETCH_ASSOC)) { + $say++ + ?> + + + + + + + + + +
#GSM
+