Exemplo n.º 1
0
<?php

include_once "../config/init.php";
$chuto = new Chuto();
if (isset($_POST['fecha_chuto_estado'])) {
    $id_chuto = $_POST['id_chuto'];
    $chuto->id_chuto = $id_chuto;
    $chuto->placa_chuto = $_POST['placa_chuto'];
    $chuto->placa_nueva_chuto = $_POST['placa_nueva_chuto'];
    $chuto->serial_carroceria_chuto = $_POST['serial_carroceria_chuto'];
    $chuto->serial_motor_chuto = $_POST['serial_motor_chuto'];
    $chuto->marca_chuto = $_POST['marca_chuto'];
    $chuto->tipo_chuto = $_POST['tipo_chuto'];
    $chuto->modelo_chuto = $_POST['modelo_chuto'];
    $chuto->a_o_chuto = $_POST['a_o_chuto'];
    $chuto->nombre_color_chuto = $_POST['nombre_color_chuto'];
    $chuto->color_chuto_1 = $_POST['color_chuto_1'];
    $chuto->observacion_chuto_estado = $_POST['observacion_chuto_estado'];
    $chuto->fecha_chuto_estado = $_POST['fecha_chuto_estado'];
    $chuto->id_sede_chuto = $_POST['id_sede_chuto'];
    $chuto->id_chuto_estado = $_POST['id_chuto_estado'];
    $tmp_name1 = $_FILES['foto_placa_chuto']['tmp_name'];
    $tmp_name2 = $_FILES['foto_serial_carroceria_chuto']['tmp_name'];
    $tmp_name3 = $_FILES['foto_serial_motor_chuto']['tmp_name'];
    $tmp_name4 = $_FILES['foto_seguro_chuto']['tmp_name'];
    $tmp_name5 = $_FILES['foto_titulo_chuto']['tmp_name'];
    $ruta1 = "../img/chuto/placa/" . $id_chuto . "_placa.png";
    $ruta2 = "../img/chuto/serial_carroceria/" . $id_chuto . "_serial_carroceria.png";
    $ruta3 = "../img/chuto/serial_motor/" . $id_chuto . "_serial_motor.png";
    $ruta4 = "../img/chuto/seguro/" . $id_chuto . "_seguro.pdf";
    $ruta5 = "../img/chuto/titulo/" . $id_chuto . "_titulo.pdf";
Exemplo n.º 2
0
echo '  </tr>';
echo '  <tr>';
echo '      <td>';
/*echo '      </td>';
echo '  </tr>';
echo '  <tr>';
echo '      <td>';*/
echo '          <h2 class="text-center">Empresa Nacional de Transporte</h2>';
echo '          <h4 class="text-center"><i>Ficha Técnica de Chuto</i></h4>';
echo '      </td>';
echo '  </tr>';
echo '';
echo '</table><br><br><br><br><br>';
include_once "../config/init.php";
$id = $_GET['id'];
$resultado_listado = Chuto::listar_chuto_byid($id);
if ($resultado_listado == true) {
    foreach ($resultado_listado as $row) {
        echo "<table align='center' class='table'>";
        echo "<thead>";
        echo "<tr>\n                <th class='text-center'>#</th>\n                <th class='text-center'>Placa</th>\n                <th class='text-center'>Placa Nueva</th>\n                <th class='text-center'>Serial de Carroceria</th>\n                <th class='text-center'>Serial de Motor</th>\n                <th class='text-center'>Marca</th>\n                <th class='text-center'>Tipo</th>\n                </tr>";
        echo "</thead>";
        echo "<tbody>";
        echo "<tr>";
        echo '<th class="text-center" scope="row">' . $row->id_chuto . '</th>';
        echo "<td class='text-center'>" . $row->placa_chuto . "</td>";
        echo "<td class='text-center'>" . $row->placa_nueva_chuto . "</td>";
        echo "<td class='text-center'>" . $row->serial_carroceria_chuto . "</td>";
        echo "<td class='text-center'>" . $row->serial_motor_chuto . "</td>";
        echo "<td class='text-center'>" . $row->marca_chuto . "</td>";
        echo "<td class='text-center'>" . $row->tipo_chuto . "</td>";
Exemplo n.º 3
0
<?php

include_once "../config/init.php";
$resultado_listado = Chuto::buscar_chutos($_POST['placa'], $_POST['serial'], $_POST['sede'], $_POST['estatus'], $_POST['tipo'], $_POST['a_o']);
if ($resultado_listado == true) {
    //echo "<div class='table-responsive'>";
    echo "<table class='table table-hover table-condensed'>";
    echo "<thead>";
    echo "<tr>\n        <th class='text-center'>Opciones</th>\n\t    <th class='text-center'>#</th>\n\t    <th class='text-center'>Placa</th>\n\t    <th class='text-center'>Placa Nueva</th>\n\t    <th class='text-center'>Serial de Carroceria</th>\n\t    <th class='text-center'>Serial de Motor</th>\n\t    <th class='text-center'>Marca</th>\n\t    <th class='text-center'>Tipo</th>\n\t    <th class='text-center'>Modelo</th>\n\t    <th class='text-center'>Año</th>\n\t    <th class='text-center'>Color</th>\n\t    <th class='text-center'>Observacion</th>\n\t    <th class='text-center'>Fecha Modificacion</th>\n\t    <th class='text-center'>Sede</th>\n\t    <th class='text-center'>Estatus</th>\n\t    </tr>";
    echo "</thead>";
    foreach ($resultado_listado as $row) {
        echo "<tbody>";
        echo "<tr>";
        echo '<td class="text-center">
            <button type="submit" rel=' . $row->id_chuto . ' class="actualizar btn btn-success btn-xs btn-block" data-toggle="modal" data-target="#myModal">Actualizar</button>
        </td>';
        echo '<th class="text-center" scope="row">' . $row->id_chuto . '</th>';
        echo "<td class='text-center'>" . $row->placa_chuto . "</td>";
        echo "<td class='text-center'>" . $row->placa_nueva_chuto . "</td>";
        echo "<td class='text-center'>" . $row->serial_carroceria_chuto . "</td>";
        echo "<td class='text-center'>" . $row->serial_motor_chuto . "</td>";
        echo "<td class='text-center'>" . $row->marca_chuto . "</td>";
        echo "<td class='text-center'>" . $row->tipo_chuto . "</td>";
        echo "<td class='text-center'>" . $row->modelo_chuto . "</td>";
        echo "<td class='text-center'>" . $row->a_o_chuto . "</td>";
        echo '<td class="text-center borde" style="background-color:' . $row->color_chuto_1 . ';"><b>' . $row->nombre_color_chuto . '</b></td>';
        echo "<td class='text-center'>" . $row->observacion_chuto_estado . "</td>";
        echo "<td class='text-center'>" . $row->fecha_chuto_estado . "</td>";
        echo "<td class='text-center'>" . $row->nombre_sede . "</td>";
        echo "<td class='text-center'>" . $row->chuto_estado . "</td>";
        echo "</tr>";
Exemplo n.º 4
0
<?php

include_once "../config/init.php";
$resultado_listado = Chuto::listar_chutos();
echo "<div class='table-responsive'>";
echo "<table class='table table-hover table-condensed'>";
echo "<thead>";
echo "<tr>\n        <th class='text-center'>Actualizar</th>\n        <th class='text-center'>#</th>\n        <th class='text-center'>Placa</th>\n        <th class='text-center'>Placa Nueva</th>\n        <th class='text-center'>Serial de Carroceria</th>\n        <th class='text-center'>Serial de Motor</th>\n        <th class='text-center'>Marca</th>\n        <th class='text-center'>Tipo</th>\n        <th class='text-center'>Modelo</th>\n        <th class='text-center'>Año</th>\n        <th class='text-center'>Color</th>\n        <th class='text-center'>Observacion</th>\n        <th class='text-center'>Fecha Modificacion</th>\n        <th class='text-center'>Sede</th>\n        <th class='text-center'>Estatus</th>\n        </tr>";
echo "</thead>";
foreach ($resultado_listado as $row) {
    echo "<tbody>";
    echo "<tr>";
    echo '<td class="text-center">
            <button type="submit" rel=' . $row->id_chuto . ' class="actualizar btn btn-success btn-xs btn-block" data-toggle="modal" data-target="#myModal">Actualizar</button>
        </td>';
    echo '<th scope="row" class="text-center">' . $row->id_chuto . '</th>';
    echo "<td class='text-center'>" . $row->placa_chuto . "</td>";
    echo "<td class='text-center'>" . $row->placa_nueva_chuto . "</td>";
    echo "<td class='text-center'>" . $row->serial_carroceria_chuto . "</td>";
    echo "<td class='text-center'>" . $row->serial_motor_chuto . "</td>";
    echo "<td class='text-center'>" . $row->marca_chuto . "</td>";
    echo "<td class='text-center'>" . $row->tipo_chuto . "</td>";
    echo "<td class='text-center'>" . $row->modelo_chuto . "</td>";
    echo "<td class='text-center'>" . $row->a_o_chuto . "</td>";
    echo '<td class="borde text-center" style="background-color:' . $row->color_chuto_1 . ';"><b>' . $row->nombre_color_chuto . '</b></td>';
    echo "<td class='text-center'>" . $row->observacion_chuto_estado . "</td>";
    echo "<td class='text-center'>" . $row->fecha_chuto_estado . "</td>";
    echo "<td class='text-center'>" . $row->nombre_sede . "</td>";
    echo "<td class='text-center'>" . $row->chuto_estado . "</td>";
    echo "</tr>";
    echo "</tbody>";
Exemplo n.º 5
0
<?php

include_once "../config/init.php";
$resultado_listado = Chuto::buscar_chutos($_POST['placa'], $_POST['serial'], "", "", "", "");
if ($resultado_listado == true) {
    foreach ($resultado_listado as $row) {
        echo "<div class='table-responsive'>";
        echo "<table class='table table-hover table-condensed'>";
        echo "<thead>";
        echo "<tr>\n            <th class='text-center'>Ficha</th>\n            <th class='text-center'>#</th>\n            <th class='text-center'>Placa</th>\n            <th class='text-center'>Placa Nueva</th>\n            <th class='text-center'>Serial de Carroceria</th>\n            <th class='text-center'>Serial de Motor</th>\n            <th class='text-center'>Marca</th>\n            <th class='text-center'>Tipo</th>\n            </tr>";
        echo "</thead>";
        echo "<tbody>";
        echo "<tr>";
        echo '<td class="text-center">
                        <a rel=' . $row->id_chuto . ' href="./reporte.php?id=' . $row->id_chuto . '" class="btn btn-danger btn-xs btn-block" target="_blank">PDF</a>
                </td>';
        echo '<th class="text-center" scope="row">' . $row->id_chuto . '</th>';
        echo "<td class='text-center'>" . $row->placa_chuto . "</td>";
        echo "<td class='text-center'>" . $row->placa_nueva_chuto . "</td>";
        echo "<td class='text-center'>" . $row->serial_carroceria_chuto . "</td>";
        echo "<td class='text-center'>" . $row->serial_motor_chuto . "</td>";
        echo "<td class='text-center'>" . $row->marca_chuto . "</td>";
        echo "<td class='text-center'>" . $row->tipo_chuto . "</td>";
        echo "</tr>";
        echo "</tbody>";
        echo "<thead>";
        echo "<tr>\n            <th class='text-center'>Modelo</th>\n            <th class='text-center'>Año</th>\n            <th class='text-center'>Color</th>\n            <th class='text-center'>Observacion</th>\n            <th class='text-center'>Fecha Modificacion</th>\n            <th class='text-center'>Sede</th>\n            <th class='text-center'>Estatus</th>\n            </tr>";
        echo "</thead>";
        echo "<tbody>";
        echo "<tr>";
        echo "<td class='text-center'>" . $row->modelo_chuto . "</td>";