Copybara bot | be50d49 | 2023-11-30 00:16:42 +0100 | [diff] [blame] | 1 | <?php |
Adrià Vilanova Martínez | 5af8651 | 2023-12-02 20:44:16 +0100 | [diff] [blame^] | 2 | /* |
| 3 | * hores |
| 4 | * Copyright (c) 2023 Adrià Vilanova Martínez |
| 5 | * |
| 6 | * This program is free software: you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU Affero General Public License as |
| 8 | * published by the Free Software Foundation, either version 3 of the |
| 9 | * License, or (at your option) any later version. |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | * GNU Affero General Public License for more details. |
| 15 | * |
| 16 | * You should have received a copy of the GNU Affero General Public |
| 17 | * License along with this program. |
| 18 | * If not, see http://www.gnu.org/licenses/. |
| 19 | */ |
| 20 | |
Copybara bot | be50d49 | 2023-11-30 00:16:42 +0100 | [diff] [blame] | 21 | require_once("core.php"); |
| 22 | security::checkType(security::WORKER); |
| 23 | security::checkWorkerUIEnabled(); |
| 24 | |
| 25 | security::changeActiveView(visual::VIEW_WORKER); |
| 26 | ?> |
| 27 | <!DOCTYPE html> |
| 28 | <html> |
| 29 | <head> |
| 30 | <title><?php echo $conf["appName"]; ?></title> |
| 31 | <?php visual::includeHead(); ?> |
| 32 | <link rel="stylesheet" href="css/dashboard.css"> |
| 33 | |
| 34 | <style> |
| 35 | a { |
| 36 | color: blue; |
| 37 | } |
| 38 | </style> |
| 39 | </head> |
| 40 | <?php visual::printBodyTag(); ?> |
| 41 | <div class="mdl-layout mdl-js-layout mdl-layout--fixed-header mdl-layout--fixed-drawer"> |
| 42 | <?php visual::includeNav(); ?> |
| 43 | <main class="mdl-layout__content"> |
| 44 | <div class="page-content"> |
| 45 | <div class="main mdl-shadow--4dp"> |
| 46 | <h2>Bienvenido</h2> |
| 47 | <p>¡Hola <?=people::userData("name")?>! Bienvenido a tu Panel de Control.</p> |
| 48 | <p>Estas son las diferentes secciones que encontrarás en el aplicativo:</p> |
| 49 | <ul> |
| 50 | <li><b><a href="workerschedule.php">Horario actual</a>:</b> aquí puedes <span class="highlighted">ver tu horario actual</span>, tu <span class="highlighted">calendario laboral</span> y un <span class="highlighted">histórico de todos los horarios</span> que tienes asignados.</li> |
| 51 | <li><b><a href="userincidents.php?id=<?=(int)$_SESSION["id"]?>">Incidencias</a>:</b> aquí puedes ver las <span class="highlighted">incidencias que tienes asignadas</span> e <span class="highlighted">introducir una nueva incidencia</span>.</li> |
| 52 | <li><b><a href="userregistry.php?id=<?=(int)$_SESSION["id"]?>">Registro</a>:</b> aquí se encuentran los <span class="highlighted">registros de tu horario diario</span>. No tiene en cuenta las incidencias que has creado porque es únicamente el horario base de tu jornada laboral.</li> |
| 53 | <li><b><a href="validations.php?>">Validaciones</a>:</b> aquí puedes <span class="highlighted">validar tus incidencias y registros de tu horario diario</span> que todavía no hayas validado.</li> |
| 54 | <li><b><a href="export4worker.php?id=<?=(int)$_SESSION["id"]?>">Exportar registro</a>:</b> aquí puedes <span class="highlighted">descargar tu registro incluyendo incidencias como PDF</span>.</li> |
| 55 | </ul> |
| 56 | </div> |
| 57 | </div> |
| 58 | </main> |
| 59 | </div> |
| 60 | |
| 61 | <?php |
| 62 | visual::smartSnackbar([ |
| 63 | ["passwordchanged", "Se ha cambiado la contraseña correctamente."] |
| 64 | ]); |
| 65 | ?> |
| 66 | </body> |
| 67 | </html> |