PATH:
var
/
www
/
vhosts
/
lahuertaatomica.es
/
httpdocs
/
admin
/
modules
/
comentarios
/
Editing: select_tpl.php
<link type="text/css" rel="stylesheet" href="css/paginacion.css"> <section id="select-items"> <h3 class="tituloseccion">Comentarios recibidos</h3> <?php if (isset($error) && $error != null): ?> <?php switch ($error) { case 1: echo "<p class='error-ok'>Comentario borrado con éxito</p>"; break; case 2: echo "<p class='error-ko'>No se ha podido borrar el comentario</p>"; break; case 3: echo "<p class='error-ok'>Comentario modificado con éxito</p>"; break; case 4: echo "<p class='error-ko'>No se ha podido modificar el comentario</p>"; break; case 6: echo "<p class='error-ko'>Todos los campos son obligatorios</p>"; break; } ?> <?php endif; ?> <?php if ($NP > 1): ?> <div class="paginacion arriba"> <?php require("paginacion.php"); ?> </div> <?php endif; ?> <?php if ($total > 0): ?> <table border="1"> <thead> <tr> <th>#</th> <th>Cliente</th> <th>Nombre</th> <th>Cargo</th> <th>Comentario</th> <th>Acciones</th> </tr> </thead> <tbody> <?php while ($fila = mysqli_fetch_assoc($registros)): ?> <tr> <td class="td-50"><?php echo $fila["IDComentario"]; ?></td> <td class="td-150"><?php echo $fila["Cliente"]; ?></td> <td class="td-150"><?php echo $fila["Nombre"]; ?></td> <td class="td-150"><?php echo $fila["Cargo"]; ?></td> <td><?php echo $fila["Comentario"]; ?></td> <td class="td-acciones"> <a href="index.php?seccion=update-comentarios&idcomentario=<?php echo $fila["IDComentario"]; ?>"><i class="fa fa-edit" aria-hidden="true"></i></a> <a href="index.php?seccion=delete-comentarios&idcomentario=<?php echo $fila["IDComentario"]; ?>"><i class="fa fa-trash" aria-hidden="true"></i></a> </td> </tr> <?php endwhile; ?> </tbody> </table> <?php else: ?> <p class="vacio">No hay comentarios para mostrar.</p> <?php endif; ?> </section>
SAVE
CANCEL