| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta http-equiv="X-UA-Compatible" content="ie=edge">
- <title>Lista de personal</title>
- </head>
- <body>
- <h1>Listado de personal para generar firmas de correo electrónico</h1>
- <a href=<?=base_url('FirmaController/generarTodas')?>><button> Generar Todas las firmas</button></a>
- <br>
- <br>
- <table border ="1" style="border: 1px solid black; border-collapse:collapse;">
- <tbody>
- <?php
- foreach ($headers as $header){
- echo "<th>";
- print($header);
- echo "</th>";
- }
- echo "<th>Vista Previa</th>";
-
- foreach($personal as $persona){
- echo "<tr>";
- foreach($headers as $header){
- echo "
- <td>{$persona[$header]}</td>
- ";
- }
- $url = base_url('FirmaController/generarVistaPrevia');
- $id_user=$persona['N'];
- echo "<td><a href=$url/$id_user target='_blank'><button>Generar Previa</button></a></td>";
- echo "</tr>";
- }?>
- </tbody>
- </table>
- </body>
- </html>
|