示例#1
0
<?php

include_once "../config/init.php";
$cisterna = new Cisterna();
if (isset($_POST['fecha_cisterna_estado'])) {
    $id_cisterna = $_POST['id_cisterna'];
    $cisterna->id_cisterna = $id_cisterna;
    $cisterna->placa_cisterna = $_POST['placa_cisterna'];
    $cisterna->placa_nueva_cisterna = $_POST['placa_nueva_cisterna'];
    $cisterna->serial_carroceria_cisterna = $_POST['serial_carroceria_cisterna'];
    $cisterna->marca_cisterna = $_POST['marca_cisterna'];
    $cisterna->tipo_cisterna = $_POST['tipo_cisterna'];
    $cisterna->modelo_cisterna = $_POST['modelo_cisterna'];
    $cisterna->a_o_cisterna = $_POST['a_o_cisterna'];
    $cisterna->nombre_color_cisterna = $_POST['nombre_color_cisterna'];
    $cisterna->color_cisterna_1 = $_POST['color_cisterna_1'];
    $cisterna->color_cisterna_2 = $_POST['color_cisterna_2'];
    $cisterna->nro_ejes_cisterna = $_POST['nro_ejes_cisterna'];
    $cisterna->capacidad_1erc_cisterna = $_POST['capacidad_1erc_cisterna'];
    $cisterna->capacidad_2doc_cisterna = $_POST['capacidad_2doc_cisterna'];
    $cisterna->capacidad_3erc_cisterna = $_POST['capacidad_3erc_cisterna'];
    $cisterna->capacidad_totalc_cisterna = $_POST['capacidad_totalc_cisterna'];
    $cisterna->observacion_cisterna_estado = $_POST['observacion_cisterna_estado'];
    $cisterna->fecha_cisterna_estado = $_POST['fecha_cisterna_estado'];
    $cisterna->id_sede_cisterna = $_POST['id_sede_cisterna'];
    $cisterna->id_cisterna_estado = $_POST['id_cisterna_estado'];
    $tmp_name1 = $_FILES['foto_placa_cisterna']['tmp_name'];
    $tmp_name2 = $_FILES['foto_serial_carroceria_cisterna']['tmp_name'];
    $tmp_name4 = $_FILES['foto_seguro_cisterna']['tmp_name'];
    $tmp_name5 = $_FILES['foto_titulo_cisterna']['tmp_name'];
    $ruta1 = "../img/cisterna/placa/" . $id_cisterna . "_placa.png";
示例#2
0
    <?php 
include_once '../template/cabecera.php';
include_once "../config/init.php";
$id = $_POST['id'];
$resultado_listado = Cisterna::listar_cisterna_byid($id);
foreach ($resultado_listado as $row) {
    ?>
<div id="page-wrapper">

    <!-- Cabecera del Modal -->
    <div class="modal-header">
        <button type="button" id="cerrar1" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel">Actualización de la Cisterna</h4>
    </div>        
    
    <div class="container-fluid">
        
        <!-- Page Heading -->
        <div class="row">
            <div class="col-lg-12">
                <h3 class="page-header">
                    Cisterna
                </h3>
                <ol class="breadcrumb">
                    <li>
                        <i class="fa fa-dashboard"></i>  <a href="../inicio/index.php">Inicio</a>
                    </li>
                    <li class="active">
                        <img src="../img/cisterna.png" height="18px" alt="Truck"> Actualizar Cisterna
                    </li>
                </ol>
示例#3
0
<?php

include_once "../config/init.php";
$resultado_listado = Cisterna::buscar_cisternas($_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'>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_cisterna . ' href="./reporte.php?id=' . $row->id_cisterna . '" class="btn btn-danger btn-xs btn-block" target="_blank">PDF</a></td>';
        echo '<th class="text-center" scope="row">' . $row->id_cisterna . '</th>';
        echo "<td class='text-center'>" . $row->placa_cisterna . "</td>";
        echo "<td class='text-center'>" . $row->placa_nueva_cisterna . "</td>";
        echo "<td class='text-center'>" . $row->serial_carroceria_cisterna . "</td>";
        echo "<td class='text-center'>" . $row->marca_cisterna . "</td>";
        echo "<td class='text-center'>" . $row->tipo_cisterna . "</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_cisterna . "</td>";
        echo "<td class='text-center'>" . $row->a_o_cisterna . "</td>";
        echo '<td class="text-center borde" style="background-color:' . $row->color_cisterna_1 . ';"><b>' . $row->nombre_color_cisterna . '</b></td>';
示例#4
0
<?php

include_once "../config/init.php";
$resultado_listado = Cisterna::buscar_cisternas("", "", "", "", "", "");
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'>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 1</th>\n        <th class='text-center'>Color 2</th>\n        <th class='text-center'>Nro. Ejes</th>\n        <th class='text-center'>1er Compartimiento <small>(lts)</small></th>\n        <th class='text-center'>2do Compartimiento <small>(lts)</small></th>\n        <th class='text-center'>3er Compartimiento <small>(lts)</small></th>\n        <th class='text-center'>Total Compartimientos <small>(lts)</small></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_cisterna . ' 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_cisterna . '</th>';
    echo "<td class='text-center'>" . $row->placa_cisterna . "</td>";
    echo "<td class='text-center'>" . $row->placa_nueva_cisterna . "</td>";
    echo "<td class='text-center'>" . $row->serial_carroceria_cisterna . "</td>";
    echo "<td class='text-center'>" . $row->marca_cisterna . "</td>";
    echo "<td class='text-center'>" . $row->tipo_cisterna . "</td>";
    echo "<td class='text-center'>" . $row->modelo_cisterna . "</td>";
    echo "<td class='text-center'>" . $row->a_o_cisterna . "</td>";
    echo '<td class="borde text-center" style="background-color:' . $row->color_cisterna_1 . ';"><b>' . $row->nombre_color_cisterna . '</b></td>';
    echo '<td class="borde text-center" style="background-color:' . $row->color_cisterna_2 . ';"><b>' . $row->nombre_color_cisterna . '</b></td>';
    echo "<td class='text-center'>" . $row->nro_ejes_cisterna . "</td>";
    echo "<td class='text-center'>" . $row->capacidad_1erc_cisterna . "</td>";
    echo "<td class='text-center'>" . $row->capacidad_2doc_cisterna . "</td>";
    echo "<td class='text-center'>" . $row->capacidad_3erc_cisterna . "</td>";
    echo "<td class='text-center'>" . $row->capacidad_totalc_cisterna . "</td>";
    echo "<td class='text-center'>" . $row->observacion_cisterna_estado . "</td>";
示例#5
0
<?php

include_once "../config/init.php";
$resultado_listado = Cisterna::buscar_cisternas($_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'>#</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'>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 1</th>\n            <th class='text-center'>Color 2</th>\n            <th class='text-center'>Nro. Ejes</th>\n            <th class='text-center'>1er Compartimiento <small>(lts)</small></th>\n            <th class='text-center'>2do Compartimiento <small>(lts)</small></th>\n            <th class='text-center'>3er Compartimiento <small>(lts)</small></th>\n            <th class='text-center'>Total Compartimientos <small>(lts)</small></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 '<th class="text-center" scope="row">' . $row->id_cisterna . '</th>';
        echo "<td class='text-center'>" . $row->placa_cisterna . "</td>";
        echo "<td class='text-center'>" . $row->placa_nueva_cisterna . "</td>";
        echo "<td class='text-center'>" . $row->serial_carroceria_cisterna . "</td>";
        echo "<td class='text-center'>" . $row->marca_cisterna . "</td>";
        echo "<td class='text-center'>" . $row->tipo_cisterna . "</td>";
        echo "<td class='text-center'>" . $row->modelo_cisterna . "</td>";
        echo "<td class='text-center'>" . $row->a_o_cisterna . "</td>";
        echo '<td class="text-center borde" style="background-color:' . $row->color_cisterna_1 . ';"><b>' . $row->nombre_color_cisterna . '</b></td>';
        echo '<td class="text-center borde" style="background-color:' . $row->color_cisterna_2 . ';"><b>' . $row->nombre_color_cisterna . '</b></td>';
        echo "<td class='text-center'>" . $row->nro_ejes_cisterna . "</td>";
        echo "<td class='text-center'>" . $row->capacidad_1erc_cisterna . "</td>";
        echo "<td class='text-center'>" . $row->capacidad_2doc_cisterna . "</td>";
        echo "<td class='text-center'>" . $row->capacidad_3erc_cisterna . "</td>";
        echo "<td class='text-center'>" . $row->capacidad_totalc_cisterna . "</td>";
        echo "<td class='text-center'>" . $row->observacion_cisterna_estado . "</td>";
        echo "<td class='text-center'>" . $row->fecha_cisterna_estado . "</td>";
        echo "<td class='text-center'>" . $row->nombre_sede . "</td>";