Skip to content

Commit

Permalink
Latest Upload
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmasnyairo committed Nov 3, 2018
1 parent 066bd1c commit bdb6f44
Show file tree
Hide file tree
Showing 49 changed files with 1,648 additions and 125 deletions.
22 changes: 22 additions & 0 deletions add_december_payment.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php
$db = mysqli_connect('localhost', 'root', '', 'faida_estate');
session_start();
$id = $_SESSION['login_id'];

$sql = "SELECT * FROM users WHERE user_id ='$id'";
$query = "SELECT * FROM statement WHERE month ='2018-12'";

$result = mysqli_query($db, $sql);
$result1 = mysqli_query($db, $query);

$row = mysqli_fetch_row($result);
$row1 = mysqli_fetch_row($result1);

$userID = $row[0];
$statementID = $row1[0];

$status = 'Paid';

mysqli_query($db, "INSERT INTO payments (user_id, statementID , status) VALUES ('$userID','$statementID', '$status')");
echo "<script>location.href='../php/my_payments.php';</script>";
?>
2 changes: 1 addition & 1 deletion ajax/addUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
$phoneNo = $_POST['phoneNo'];
$username = $_POST['username'];
$password = $_POST['password'];

$password= password_hash($password, PASSWORD_DEFAULT);
$query = "INSERT INTO users (username, position, houseNumber, email, phoneNo, password) VALUES( '$username' , '$position', '$houseNumber', '$email', '$phoneNo', '$password')" ;

if (!$result = mysqli_query($con, $query)) {
Expand Down
2 changes: 0 additions & 2 deletions ajax/readRequestDetails.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
<?php
// include Database connection file
include("db_connection.php");

// check request
if(isset($_POST['requestID']) && isset($_POST['requestID']) != "")
{
// get User ID
$requestID = $_POST['requestID'];

// Get User Details
$query = "SELECT * FROM admin_requests WHERE requestID = '$requestID'";
if (!$result = mysqli_query($con, $query)) {
Expand Down
6 changes: 0 additions & 6 deletions ajax/readRequestRecords.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php
// include Database connection file
include("db_connection.php");

// Design initial table header
$data = '<table class="table table-bordered table-striped">
<tr>
Expand All @@ -12,13 +11,10 @@
<th>Contact</th>
<th>Delete</th>
</tr>';

$query = "SELECT * FROM admin_requests";

if (!$result = mysqli_query($con, $query)) {
exit(mysqli_error($con));
}

// if query results contains rows then featch those rows
if(mysqli_num_rows($result) > 0)
{
Expand Down Expand Up @@ -46,8 +42,6 @@
// records now found
$data .= '<tr><td colspan="6">Records not found!</td></tr>';
}

$data .= '</table>';

echo $data;
?>
66 changes: 66 additions & 0 deletions css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
body{
padding: 0;
margin: 0;
}
.social
{
position: absolute;
transform: translateY(-50%);
width: 30%;
text-align: center;
margin-left: -1000px;
margin-top: -1px;
}
.sbtn{
display: inline-block;
width: 40px;
height: 40px;
background: #f1f1f1;
margin: 10px;
margin-left: 1px;
border-radius: 30%;
box-shadow: 0 5px 15px -5px #d35400;
color: #e67e22;
overflow: hidden;
position: relative;
}
.sbtn i{
line-height: 40px;
font-size: 16px;
transition: 0.2s linear;
}
.sbtn:hover i{
transition: scale(1.3);
color: #f1f1f1;

}
.sbtn::before{
content: "";
position: absolute;
width: 120%;
height: 120%;
background: #3498db;
transform: rotate(45deg);
left: -110%;
top: 90%;
}
.sbtn:hover::before{
animation: aaa 0.7s 1;
top: -10%;
left: -10%;

}
@keyframes aaa{
0%{
left: -110%;
top: 90%;
}
50%{
left: 10%;
top: -30%;
}
100%{
left: -10%;
top: -10%;
}
}
Binary file added drive-download-20181103T154119Z-001.zip
Binary file not shown.
Loading

0 comments on commit bdb6f44

Please sign in to comment.