<?php include_once "db.php"; include "class.truck.dao.php"; $dao = new DAOtruck(); $truckList = $dao->getVehicleId(9); echo join(', ', $truckList); $count = 1; ?> <html> <head> <title> Test Company </title> </head> <body> <form action = "test.php" method = "post"> <table> <tr> <td> <select name = "truckSelect"> <?php foreach ($truckList as $name) { echo "<option value=\"{$count}\">{$name}</option>"; $count++; } ?> </select> </td> <td><button type = "submit">Submit</button></td>
<?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>
alert("to_address can't be empty"); return false; } return true; } </script> <?php session_start(); include "header.php"; include "class.dispatch.dao.php"; include "class.company.dao.php"; include_once "db.php"; include "class.truck.dao.php"; include "class.trailer.dao.php"; $dao = new DAOtruck(); $truckList = $dao->getVehicleId($_SESSION["uid"], 1); $daoTrailer = new DAOtrailer(); $trailerList = $daoTrailer->getVehicleId($_SESSION["uid"], 1); $count = count($truckList); $daoCompany = new DAOcompany(); $companyList = $daoCompany->getCompany($_SESSION["uid"]); ?> <center> <h3>Add Dispatch</h3> <form name = "frmDispatch" method="POST" action="save.dispatch.php" onsubmit = "return validateDispatch();"> <table cellspacing="5" cellpadding="5"> <?php if (isset($_GET["id"])) { $dao = new DAOdispatch(); $vo = $dao->get($_GET["id"]); ?>