Example #1
0
<?php

require_once '../dao/OrdersDAO.php';
require_once '../dto/OrdersDTO.php';
$fecha = $_POST['txtFecha'];
$ID = $_POST['txtID'];
$orden = new OrdersDAO();
$orden->setModificar($ID_empleado, $fecha);
header('Location: index.php');
Example #2
0
<?php

require_once '../dao/OrdersDAO.php';
require_once '../dto/OrdersDTO.php';
$id = $_GET['EpleadoID'];
$fecha = $_GET['fecha'];
$orden = $_GET['N_orden'];
$despach = $_GET['company'];
$orden_empleado = new OrdersDAO();
$empleado = $orden_empleado->getempleado($id);
?>

<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <body>
        <h1>Modificar Orden</h1>
        <form action="validar.php" method="POST">
        <table border="1">
            <tbody>
                <tr>
                    <?php 
foreach ($empleado as $value) {
    ?>
                    <td>Nombre</td>
                    <td><input type="text" name="txtnombre" value="<?php 
    echo $value->getFirstName();
    echo ' ' . $value->getLastName();
}
Example #3
0
<?php 
require_once '../dao/OrdersDAO.php';
require_once '../dto/OrdersDTO.php';
$ID = $_GET['EmployeeID'];
$orderDAO = new OrdersDAO();
$orden = $orderDAO->getOrders($ID);
?>
   
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <body>
        <h1>Ordenes</h1>
        <table border="1">
            <thead>
                <tr>
                    <th>ORDER ID</th>
                    <th>Employee ID</th>
                    <th>Ship Name</th>
                    <th>Shipped Date</th>
                    <th>Company Name</th>
                    <th>Phone</th>
                </tr>
            </thead>
            <tbody>
                <?php 
foreach ($orden as $value) {
    ?>