<html>
  
<!--ventana para Update--->
<div class="modal fade" id="editar<?php echo $categoria['ID']; ?>" 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 Categoria</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/Categoria/edit_categ.php">
       <div class="form-group">
        <label for="recipient-name" class="col-form-label">ID Categoria</label>
        <input type="" name="id" class="form-control" value="<?php echo $categoria['ID']; ?>" readonly onmousedown="return false;">
        </div>

            <div class="form-group">
                <label for="recipient-name" class="col-form-label">Nombre</label>
                <input type="text" name="editname" class="form-control" value="<?php echo $categoria['Nombre']; ?>" required="true">
               
          </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 btne" >Guardar</button>
          </div>
       </form> 
      </div>
    </div>
  </div>
</div><!---fin ventana Update --->

<!--ventana para Eliminar--->
<div class="modal fade" id="eliminar<?php echo $categoria['ID']; ?>" 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 la categoria ?
            </h4>
      </div>
      <div class="modal-body">
      
             <strong style="text-align: center !important"> 
                    <?php echo $categoria['Nombre']; ?>
        
             </strong>

      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
        <button type="submit" class="btn btn-danger botonBorrar" data-bs-dismiss="modal" id=" <?php echo $categoria['ID']; ?> ">
        Borrar</button>
      </div>
    </div>
  </div>
</div><!---fin ventana Eliminar --->
</html>