Mini Shell
| Direktori : /home/mhcadmin/www/ |
|
|
| Current File : /home/mhcadmin/www/House_Application_Report.php |
<?php
session_start();
require_once 'config/config.php';
require_once 'include/auth_validate.php';
$User = $_SESSION['id'];
$FullName = $_SESSION['Full_Name'];
$NewMessages= "";
$result = mysqli_query( $connection,"SELECT * FROM admin_accounts WHERE id = '$User' ");
$num = mysqli_num_rows($result);
if ($num >0){
$rows = mysqli_fetch_array($result);
$UserAccessName = $rows['UserAccessName'];
}
$SearchedHApplicationID = filter_input(INPUT_GET, 'Application_');
$sql = mysqli_query($connection,"UPDATE houseapplication SET Application_Status ='Old' WHERE HApplicationID ='$SearchedHApplicationID'");
$HouseApplications = mysqli_query( $connection,"SELECT * FROM houseapplication WHERE HApplicationID ='$SearchedHApplicationID'");
include_once('include/AdminHeader.php');
?>
<style>
.tooltip {
position: top;
display: inline-block;
border-bottom: 1px dotted black;
}
.tooltip .tooltiptext {
visibility: hidden;
width: 120px;
background-color: black;
color: #fff;
text-align: center;
border-radius: 6px;
padding: 5px 0;
/* Position the tooltip */
position: absolute;
z-index: 1;
}
.tooltip:hover .tooltiptext {
visibility: visible;
}
</style>
<!--Main container start-->
<div id="page-wrapper">
<div class="row">
<div class="col-lg-6">
</div>
<div class="col-lg-6" style="">
<div class="page-action-links text-right">
<a href="AdminPortal.php">
<button class="btn btn-success"><span class="fa fa-sign-out fa-fw"></span> BACK </button>
</a>
</div>
</div>
</div>
<div class="modal-dialog">
<div id='printableArea'>
<table class="table table-condensed table-bordered table-condensed">
<thead>
<h4 style="text-align:center;"><img src="images/MHCLOGO.png" alt="logo" style="width:65px;height:65px;border:0"><br><br>APPLICATION FOR ACCOMODATION</h4></th>
</thead>
<tbody>
<?php
//while($rws= mysql_fetch_array($result))
while($row = mysqli_fetch_array($HouseApplications)){
echo "<tr style='text-align:left;'><h5><th>1</th><th colspan ='2'>Urban Area:</th><td colspan = '2'>".$row["Area"]."</td><th> Type of House:</th><td>".$row["ClassOfHouse"]."</td></h5></tr>";
echo "<tr style='text-align:left;'><h5><th>2</th><th colspan ='2'>Name of Applicant:</th><td colspan = '4'>".$row["Full_Name"]."</td></h5></tr>";
echo "<tr style='text-align:left;'><h5><th>3</th><th colspan = '2'>Business Address:</th><td colspan = '4'>".$row["Post_Address"]."</td></h5></tr>";
echo "<tr style='text-align:left;'><h5><th>4</th><th colspan = '2'>Email Address:</th><td colspan = '4'>".$row["Email"]."</td></h5></tr>";
echo "<tr style='text-align:left;'><h5><th>5</th><th>5 Home:</th><td colspan = '2'>".$row["Home_Address"]."</td><th> Village:</th><td colspan = '2'>".$row["Village"]."</td></h5></tr>";
echo "<tr style='text-align:left;'><h5><th></th><th>T/A:</th><td colspan = '2'>".$row["TA"]."</td><th> District:</th><td colspan = '2'>".$row["District"]."</td></h5></tr>";
echo "<tr style='text-align:left;'><h5><th>6</th><th>Age:</th><td>".$row["Age"]."</td><th> M.Status:</th><td>".$row["Marital_Status"]."</td><th> Children:</th><td>".$row["Children"]."</td></h5></tr>";
echo "<tr style='text-align:left;'><h5><th>7</th><th colspan = '4'>Employed or self employed:</th><td colspan = '2' >".$row["Employment_Status"]."</td></h5></tr>";
echo "<tr style='text-align:left;'><h5><th>8</th><th colspan = '4'>Present Salary/Income:</th><td colspan = '2'>".$row["Income"]."</td></h5></tr>";
echo "<tr style='text-align:left;'><h5><th>9</th><th colspan = '5'>Do you reside in an M H C /Govt.house:</th><td>".$row["MHC_House"]."</td></h5></tr>";
echo "<tr style='text-align:left;'><h5><th>10</th><th colspan = '5'>If “yes” on No 9, did you get it in your own right?:</th><td>".$row["Own_Right"]."</td></h5></tr>";
echo "<tr style='text-align:left;'><h5><th>11</th><th colspan = '6'>Why are you applying for another house?:</th></h5></tr>";
echo "<tr style='text-align:left;'><h5><th></th><td colspan = '6'> ".$row["Why_Another"]."</td></h5></tr>";
echo "<tr style='text-align:left;'><h5><th>12</th><th colspan = '5'>Are you renting a room /house in THA’s:</th><td></td></h5></tr>";
echo "<tr style='text-align:left;'><h5><th>13</th><th colspan = '5'>Do you have a plot in PHA/THA?:</th><td></td></h5></tr>";
echo "<tr style='text-align:left;'><h5><th>14</th><th colspan = '6'>Explain in brief why you actually need a house in Urban Area mentioned:</th></h5></tr>";
echo "<tr style='text-align:left;'><h5><th></th><td colspan = '6'> ".$row["Briefly_Explain"]."</td></h5></tr>";
echo "<tr style='text-align:left;'><h5><th>15</th><th colspan = '5'>Do you plan to live in this urban area after retirement?:</th><td>".$row["LiveAfterRetire"]."</td></h5></tr>";
echo "<tr style='text-align:left;'><h5><th>16</th><th colspan = '5'>Can you afford to pay full economic rent after retirement?:</th><td>".$row["PayAfterRetire"]."</td></h5></tr>";
echo "<tr style='text-align:left;'><h5><th>17</th><th colspan = '5'>If allocated a house of your liking, could you purchase it?:</th><td>".$row["Purchase"]."</td></h5></tr>";
echo "<tr style='text-align:left;'><h5><th colspan = '2'> Date:</th><td colspan = '2'>".$row["Applicate_Date"]."</td><th> Phone no:</th><td colspan = '2'>".$row["Phone"]."</td></h5></tr>";
} ?>
</tbody>
</table>
</div> </div>
<div class="form-group text-center"><button type="submit" class="btn btn-warning" onclick="printDiv('printableArea')">Print <span class="glyphicon glyphicon-print"></span></button></div>
</div>
<?php include_once('include/footer.php'); ?>