Beispiel #1
0
<?php

session_start();
include "class.truck.dao.php";
include "class.driver.dao.php";
include "class.invoice.dao.php";
include_once "header.php";
$dao = new DAOtruck();
$daoDriver = new DAOdriver();
$daoInvoice = new DAOinvoice();
$truckAvailableList = $dao->getVehicleId($_SESSION["uid"], 1);
$truckLoadedList = $dao->getVehicleId($_SESSION["uid"], 0);
$t_available = count($truckAvailableList);
$t_loaded = count($truckLoadedList);
$c_date = date('Y-m-d');
$driver_detail = $daoDriver->getDrivers($_SESSION['uid']);
$invoice_detail = $daoInvoice->getInvoices($_SESSION['uid']);
?>
<center>
		<font color ="red" face ="Britannic Bold"><h2><U>STATUS</U></h2></font>
		<table class="table table-bordered" >
			<tr><td width = '50%'><center><img src="img/truck.png" width = 80 height = 80 ><br><br>
				Trucks available are <?php 
echo $t_available;
?>
<br>
				Trucks loaded are <?php 
echo $t_loaded;
?>
</center></td>
				<td width = '50%'><center><img src="img/transaction.png" width = 80 height = 80 ><br><br>