header("Location: ../index.html"); //envío al usuario a la pag. de autenticación //sino, actualizo la fecha de la sesión } else { $_SESSION["ultimoAcceso"] = $ahora; } } if (isset($_REQUEST['ID'])) { $ID = $_REQUEST['ID']; } else { header("Location: V_Delincuente.php"); } require '../header.php'; include_once "../Modelo/M_Delincuente.php"; $md = new Delincuente(); $sx = $md->Elegir_Delincuente($ID); $Nombre = ""; $Alias = ""; $CI = 0; while ($row = mysql_fetch_array($sx)) { $Nombre = $row['Nombre']; $Alias = $row['Alias']; $CI = $row['CI']; } ?> <form action="../Controlador/C_Delincuente.php" method="POST"> <div class="container" > <h2 style="font-size: 40px; color:black; margin-left: 55px; margin-top: 55px;">Modificar Delincuente</h2> <section class="content bgcolor-1" style="margin-left: 80px;"> <span class="input input--nao"> <input class="input__field input__field--nao" type="text" id="input-1" name="ID" value="<?php
<div class="row" style="margin-top: -200px;"> <table class="table table-striped table-bordered" style="margin-top: 80px;"> <thead> <tr> <th style="background:black; color:white; text-align: center;">ID</th> <th style="background:black; color:white; text-align: center;">Delincuente</th> <th style="background:black; color:white; text-align: center;">CI Oficial</th> <th style="background:black; color:white; text-align: center;">Nombre Oficial</th> <th style="background:black; color:white; text-align: center;">Fecha</th> <th style="background:black; color:white; text-align: center;">Acciones</th> </tr> </thead> <tbody> <?php while ($row = mysql_fetch_array($sx)) { $ca = $md->Elegir_Delincuente($row['ID_D']); $co = $mo->Modificar_O($row['ID_O']); while ($ra = mysql_fetch_array($ca)) { $Alias_D = $ra[3]; } while ($ro = mysql_fetch_array($co)) { $Nombre_O = $ro[0]; } ?> <?php echo '<tr>'; ?> <?php echo '<td style="text-align:center;">' . $row['ID_D'] . '</td>'; ?>