Exemplo n.º 1
0
<?php

include_once "../config/init.php";
$resultado_listado = Conductor::buscar_conductor($_POST['cedula']);
if ($resultado_listado == true) {
    foreach ($resultado_listado as $row) {
        echo "<div class='container-fluid'>";
        echo "<div class='table-responsive'>";
        echo "<table class='table table-hover'>";
        echo "<thead>";
        echo "<tr>\n                <th class='text-center'>#</th>\n                <th class='text-center'>N° Cedula</th>\n                <th class='text-center'>Nombres</th>\n                <th class='text-center'>Apellidos</th>\n                <th class='text-center'>Fecha de Certificación</th>\n                <th class='text-center'>Opciones</th>\n                </tr>";
        echo "</thead>";
        echo "<tbody>";
        echo "<tr>";
        echo '<th scope="row" class="text-center">' . $row->id_conductor . '</th>';
        echo "<td class='text-center'>" . $row->cedula_conductor . "</td>";
        echo "<td class='text-center'>" . $row->nombre_conductor . "</td>";
        echo "<td class='text-center'>" . $row->apellido_conductor . "</td>";
        echo "<td class='text-center'>" . $row->fecha_conductor . "</td>";
        echo '<td class="text-center">
                            <button type="submit" rel=' . $row->id_conductor . ' class="actualizar btn btn-success btn-xs btn-block" data-toggle="modal" data-target="#myModal">Actualizar</button>
                            <a rel=' . $row->id_conductor . ' href="./reporte.php?id=' . $row->id_conductor . '" class="btn btn-danger btn-xs btn-block" target="_blank">PDF</a>
                    </td>';
        echo "</tr>";
        echo "</tbody>";
        echo "</table>";
        echo "</div>";
        echo "<div class='row'>";
        if (file_exists("../img/conductor/cedula/" . $row->id_conductor . "_cedula.png")) {
            echo "<div class='col-md-6'>\n            <div class='panel panel-primary'>\n                <div class='panel-heading'>\n                    <h3 class='panel-title'>Foto de la Cedula</h3>\n                </div>\n                <div class='panel-body text-center'>\n                    <img src='../img/conductor/cedula/" . $row->id_conductor . "_cedula.png' alt='foto de la Cedula no ha sido cargada' class='img-responsive img-thumbnail'>\n                </div>\n            </div>\n        </div>";
        }