Exemple #1
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>";
Exemple #2
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>";