<htlml>
  <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">

  <style>
    .Mayusc{
      text-transform: capitalize;
    }
  </style>

     <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;">

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

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

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



</form>
<script src="../ArchivosJS/jquery-3.6.0.min.js"></script> 
   <script src="../ArchivosJS/toastr.min.js"></script>
    
    <script type="text/javascript">
      $(document).ready(function(){
        $('.btneditar').click(function(){
         toastr["info"]("SE HA EDITADO EXITOSAMENTE");
        
        });
         toastr.options = { "positionClass": "toast-bottom-right","showDuration": "500","preventDuplicates": true
           };
      });

    </script>
    
    </html>
