<html>
  <head>
<link rel="stylesheet" href="../ArchivosCSS/toastr.min.css">
</head>

<!--Modal para Editar--->
<div class="modal fade" id="editar<?php echo $dato['Cedula']; ?>" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true"
  data-bs-backdrop="static" data-bs-keyboard="false">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <h1 class="modal-title fs-5" id="exampleModalLabel">Editar Datos</h1>
        <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
      </div>
      <div class="modal-body">


     <form method="POST" action="./controladores/DatosP/edit_datosp.php">
      <div class="form-group">
            <label for="recipient-name" class="col-form-label">Cedula</label>
        <input type="" name="ide" value="<?php echo $dato['Cedula']; ?>" class="form-control" readonly onmousedown="return false;" 
        maxlength="15">

        </div>
                <div class="form-group">
                  <label for="recipient-name" class="col-form-label">Nombre</label>
                  <input type="text" name="nombre" class="form-control" value="<?php echo $dato['Nombre']; ?>" required="true" 
                  maxlength="20">
                </div>

                <div class="form-group">
                  <label for="recipient-name" class="col-form-label">Apellido</label>
                  <input type="text" name="apellido" class="form-control" value="<?php echo $dato['Apellido']; ?>" required="true" 
                  maxlength="20">
                </div>

                <div class="form-group">
                  <label for="recipient-name" class="col-form-label">Direccion</label>
                  <input type="text" name="direccion" class="form-control" value="<?php echo $dato['Direccion']; ?>" required="true" 
                  maxlength="50">
                </div>

                <div class="form-group">
                  <label for="recipient-name" class="col-form-label">Telefono</label>
                  <input type="tel" name="telefono" class="form-control" value="<?php echo $dato['Telefono']; ?>" required="true" 
                  maxlength="12">
                </div>

                <div class="form-group">
                  <label for="recipient-name" class="col-form-label">Correo</label>
                  <input type="email" name="correo" class="form-control" value="<?php echo $dato['Correo']; ?>" required="true"
                  maxlength="20">
                </div>
      
            <div class="modal-footer">
              <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Cerrar</button>
              <button type="submit" class="btn btn-primary btneditar">Guardar</button>
            </div>
        </form>
       </div>
    </div>
  </div>
</div>



<div class="modal fade" id="eliminar<?php echo $dato['Cedula']; ?>" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true"
  data-bs-backdrop="static" data-bs-keyboard="false">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h4 class="modal-title">
                ¿Realmente deseas eliminar este dato ?
            </h4>
      </div>
      <div class="modal-body">
       <form method="POST" action="./controladores/DatosP/elimdatos.php">
        <input type="hidden" name="ced" value="<?php echo $dato['Cedula']; ?>">
        <strong style="text-align: center !important"> 
            <?php echo $dato['Nombre']; ?>
          </strong>
      <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
        
        <button type="submit" class="btn btn-danger btneliminar">Borrar</button>
      </div>
      </form>
        </div>
    </div>
  </div>
</div>
</html>