Exemple #1
0
							<i class="halflings-icon list"></i>
							<span class="break"></span>
							<b>Students</b>
						</h2>
						<div class="box-icon">
						<a href="studentEntry.php"><i class="halflings-icon plus"></i></a>
							<a href="#" class="btn-minimize">
								<i class="halflings-icon chevron-up"></i>
							</a>
						</div>
					</div>
					
					
					<?php 
$obj = new dbStudent();
$result = $obj->getAllStudentDatas();
?>
					
					
					<div class="box-content">
						<table class="table table-striped table-bordered bootstrap-datatable datatable">
						  <thead>
							  <tr>
								  <th style="text-align:center">Serial</th>
								  <th style="text-align:center">GRNO</th>
								  <th style="text-align:left">F Name</th>
								  <th style="text-align:left">M Name</th>
								  <th style="text-align:left">L Name</th>
								  <th style="text-align:center">Gender</th>
								  <th style="text-align:center">Birth Date</th>
								  <th style="text-align:center">Hostel Stay</th>
					<div class="box-content">
						<form class="form-horizontal" action="hostelStudentSavingPage.php" method="GET">
							<fieldset>

							<!-- OBJECT FOR STUDENT & HOSTELS -->

							<?php 
$hstObj = new dbHostel();
$stdObj = new dbStudent();
$hostelDetail = $hstObj->getHostelNameFromId($_GET['nHostelId']);
$hostelRow = mysqli_fetch_assoc($hostelDetail);
extract($hostelRow);
$roomDetails = $hstObj->getRoomNameFromId($_GET['nRoomId']);
$roomRow = mysqli_fetch_assoc($roomDetails);
extract($roomRow);
$allStudentData = $stdObj->getAllStudentDatas();
//$allStudent = mysqli_fetch_assoc($allStudentData);
//extract($allStudent);
?>

			<input type = "hidden" name = "nHostelId"	value = "<?php 
echo $_GET['nHostelId'];
?>
"	/>
			<input type = "hidden" name = "nRoomId"		value = "<?php 
echo $_GET['nRoomId'];
?>
"	/>
			<input type = "hidden" name = "total"		value = "<?php 
echo $_GET['total'];
?>
								  <th style="width:90px;">Room No</th>
								  <th style="width:90px;">Capacity</th>
								  <th style="width:90px;">GRNO</th>
								  <th style="width:350px;">Name</th>
								  <th style="text-align:center">Operations</th>
							  </tr>
						  </thead>
							
						  <tbody>

								
						<?php 
$obj = new dbStudent();
$allRoom = $hObj->getRoomDetails($hostelName);
//$studentNames = $Obj->displayHostelStudentEntry($hostelName);
$studentNames = $obj->getAllStudentDatas();
while ($roomDetails = mysqli_fetch_assoc($allRoom)) {
    extract($roomDetails);
    ?>
							<tr>
								<!-- ROOM NUMBERS-->
								<td width=85 style="text-align:center">
									<!-- Hostel <?php 
    echo $hostelName;
    ?>
 -->
									Room <?php 
    echo $tRoomNo;
    ?>
									
								</td>