Current File : /home/inlingua/public_html/icentex/admin_conveyance/ingl_conveyance_main.view.php |
<?php
// Include header
include "header_conveyance.php";
echo "<h3>".$succFailMesg."</h3>";
?>
<table border='0' class='pa-nor pa-table' width="100%">
<!--<tr valign='top'><td>instructor</td><td><?php echo $dbObject->getDbField('instructor');?> </td></tr>-->
<tr valign='top'><td width="10%">Month</td><td><?php echo $dbObject->getDbField('month');?> </td></tr>
<tr valign='top'><td>Year</td><td><?php echo $dbObject->getDbField('year');?> </td></tr>
<tr valign='top'><td>Total Amount</td><td><?php echo $dbObject->getDbField('totalAmount');?> </td></tr>
<tr valign='top'><td colspan="2">
<table width="100%">
<tr style="background-color:#cccccc;">
<td>Date </td>
<td>Start </td>
<td>Center1 </td>
<td>Km1 </td>
<td>Center2 </td>
<td>Km2 </td>
<td>Center3 </td>
<td>Km3 </td>
<td>Center4 </td>
<td>Km4 </td>
<td>End </td>
<td>Km5 </td>
<td>Kms </td>
<td>Band </td>
<td>Total </td>
<td>Remarks </td>
</tr>
<?php
$queryService="select * from ingl_conveyance where basic_recNo='".$_REQUEST[kV]."' order by recNo";
$resultService=mysqli_query($conn,$queryService);
$countservice=mysqli_num_rows($resultService);
while($numSevice=mysqli_fetch_array($resultService))
{
?>
<tr valign="top" >
<td valign="top"><nobr><?php echo $numSevice['date_conveyance'];?></nobr></td>
<td valign="top"><?php echo $numSevice['start_center'];?></td>
<td valign="top">
<?php
$queryloc="select * from timesheet_location where recNo='".$numSevice['center1']."' order by location";
$resultloc=mysqli_query($conn,$queryloc) or die(mysqli_query($conn,));
$num=mysqli_fetch_array($resultloc);
if($numSevice['center1']=="9" || $numSevice['center1']=="Other" || $numSevice['center1']=="Training" || $numSevice['center1']=="Actual Exp.")
{
if($numSevice['center1']=="9")
{
$num['location']="".$num['location']." , ".$numSevice['other1']."";
}
else
{
$num['location']="".$numSevice['center1']." , ".$numSevice['other1']."";
}
}
echo $num['location'];
?>
</td>
<td valign="top">
<?php echo $numSevice['km1'];?>
</td>
<td valign="top"><?php
$queryloc="select * from timesheet_location where recNo='".$numSevice['center2']."' order by location";
$resultloc=mysqli_query($conn,$queryloc) or die(mysqli_query($conn,));
$num=mysqli_fetch_array($resultloc);
if($numSevice['center2']=="9" || $numSevice['center2']=="Other" || $numSevice['center2']=="Training" || $numSevice['center2']=="Actual Exp.")
{
if($numSevice['center2']=="9")
{
$num['location']="".$num['location']." , ".$numSevice['other2']."";
}
else
{
$num['location']="".$numSevice['center2']." , ".$numSevice['other2']."";
}
}
echo $num['location'];
?>
</td>
<td valign="top">
<?php echo $numSevice['km2'];?>
</td>
<td valign="top"><?php
$queryloc="select * from timesheet_location where recNo='".$numSevice['center3']."' order by location";
$resultloc=mysqli_query($conn,$queryloc) or die(mysqli_query($conn,));
$num=mysqli_fetch_array($resultloc);
if($numSevice['center3']=="9" || $numSevice['center3']=="Other" || $numSevice['center3']=="Training" || $numSevice['center3']=="Actual Exp.")
{
if($numSevice['center3']=="9")
{
$num['location']="".$num['location']." , ".$numSevice['other3']."";
}
else
{
$num['location']="".$numSevice['center3']." , ".$numSevice['other3']."";
}
}
echo $num['location'];
?>
</td>
<td valign="top">
<?php echo $numSevice['km3'];?>
</td>
<td><?php
$queryloc="select * from timesheet_location where recNo='".$numSevice['center4']."' order by location";
$resultloc=mysqli_query($conn,$queryloc) or die(mysqli_query($conn,));
$num=mysqli_fetch_array($resultloc);
if($numSevice['center4']=="9" || $numSevice['center4']=="Other" || $numSevice['center4']=="Training" || $numSevice['center4']=="Actual Exp.")
{
if($numSevice['center4']=="9")
{
$num['location']="".$num['location']." , ".$numSevice['other4']."";
}
else
{
$num['location']="".$numSevice['center4']." , ".$numSevice['other4']."";
}
}
echo $num['location'];
?>
</td>
<td valign="top">
<?php echo $numSevice['km4'];?>
</td>
<td><?php echo $numSevice['center5'];?> </td>
<td>
<?php echo $numSevice['km5'];?>
</td>
<td valign="top"><?php echo $numSevice['totalkms'];?></td>
<td valign="top"><?php echo $numSevice['Band'];?> </td>
<td valign="top"><?php echo $numSevice['total'];?> </td>
<td valign="top"><?php echo $numSevice['remarks'];?> </td>
</tr>
<?php
}
?>
</table>
</td></tr>
</table>
<?php
// Include footer
include "footer_conveyance.php";
?>