Exemplo n.º 1
0
<?php

session_start();
include "class.dispatch.dao.php";
include "class.company.dao.php";
include_once "header.php";
$dao = new DAOdispatch();
$daoCompany = new DAOcompany();
?>
<center><b><u><font face ="Britannic Bold"><h1>Dispatch</h1></font></u></b></center><br>
<a href="form.dispatch.php" class="btn btn-info">Add dispatch</a><br>
<table class="table table-striped">
	<tr class ="info">
		<td>#</td>
		<td>Creation Date</td>
		<td>Carrier</td>
		<td>Pick Up Number</td>
		<td>Pieces</td>
		<td>Space</td>
		<td>Actual Weight</td>
		<td>Assumed Weight</td>
		<td>Type</td>
		<td>Pallets</td>
		<td>Temp</td>
		<td>Miles</td>
		<td>Load#</td>
		<td>Terms</td>
		<td>Attention</td>
		<td>Reference</td>
		<td>Trailer Id</td>
		<td>Truck Id</td>
Exemplo n.º 2
0
<?php

include "db.php";
include "class.dispatch.dao.php";
include "class.company.dao.php";
$dao = new DAOdispatch();
$daoCompany = new DAOcompany();
if (isset($_GET["id"])) {
    $vo = $dao->get($_GET["id"]);
}
$vo_comp = $daoCompany->get($vo->carrier);
$inv_date = date('Y-m-d');
$bal = $vo->total - $vo->advance;
?>

<!DOCTYPE html>
<html lang="en">
<head>
  <title>Your Invoice</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
  <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
</head>
<body>

<div style="width:595px;">


<div class="container">
Exemplo n.º 3
0
<?php

include "db.php";
include "class.dispatch.dao.php";
$dao = new DAOdispatch();
if (isset($_GET["id"])) {
    $vo = $dao->get($_GET["id"]);
    $dao->del($vo);
}
header("Location: dispatch.php");
Exemplo n.º 4
0
<?php

session_start();
include "db.php";
include "class.dispatch.dao.php";
include "class.truck.dao.php";
include "class.trailer.dao.php";
$daoTruck = new DAOtruck();
$daoTruck->setTruckAvailable($_SESSION["uid"], 0, $_POST["truck_id"]);
$daoTrailer = new DAOTrailer();
$daoTrailer->setTrailerAvailable($_SESSION["uid"], 0, $_POST["trailer_id"]);
$dao = new DAOdispatch();
$creation_date = date('Y-m-d');
//echo $_POST["trailer_id"];
//echo $creation_date;
$vo = new dispatch($_SESSION["uid"], $creation_date, $_POST["carrier"], $_POST["pieces"], $_POST["space"], $_POST["act_wgt"], $_POST["as_wgt"], $_POST["type"], $_POST["attention"], $_POST["reference"], $_POST["trailer_id"], $_POST["truck_id"], $_POST["pay_code"], $_POST["pay_type"], $_POST["rate"], $_POST["total"], $_POST["pallets"], $_POST["temp"], $_POST["miles"], $_POST["load_num"], $_POST["load_terms"], $_POST["advance"], $_POST["bill_to"], $_POST["from_address"], $_POST["to_address"], $_POST["pickup_num"]);
//$vo->show();
if (isset($_POST["did"])) {
    $vo->did = $_POST["did"];
}
$dao->save($vo);
header("Location: dispatch.php");