Add new views and styles for music application

- Created new CSS files for styling the application, including home.css and style.css.
- Implemented 403 and 404 error views with appropriate messages and navigation.
- Developed a dump view to display deleted elements with restoration options.
- Enhanced home view to include music search functionality and display results.
- Added listplay view for managing music playlists, including creation and deletion options.
- Implemented loadmusic view for uploading new music with necessary fields.
- Created login and register views for user authentication.
- Developed sound view to display individual music tracks with playback controls and options for liking and deleting.
- Updated menu view to include navigation links based on user authentication status.
This commit is contained in:
2026-01-05 17:20:17 -04:00
parent 24f62ca4c2
commit a8624fc847
33 changed files with 1370 additions and 0 deletions

42
view/dump.view.php Normal file
View File

@@ -0,0 +1,42 @@
<div class="body">
<?php include $views['menu']; ?>
<div class="container mt-5">
<h1 class="text-muted">Elementos Eliminados (<?= count($elementDelete) ?>)</h1>
<?php if(empty($elementDelete)):?>
<hr class="dropdown-divider">
<h2 class="text-muted text-center"><i>No Hay Elemento Eliminados.</i></h2>
<hr class="dropdown-divider">
<?php else:?>
<table class="table text-white">
<thead>
<tr>
<th>Nombre</th>
<th>Fecha</th>
<th>Acci&oacute;n</th>
</tr>
</thead>
<tbody>
<?php foreach ($elementDelete as $element) : ?>
<tr>
<td><?= $element['name'] ?></td>
<td><?= date('h:i A | d M Y', strtotime($element['date'])) ?></td>
<td>
<?php if (time() < (strtotime($element['date']) + 86400)) : ?>
<form action="" method="post">
<input type="hidden" name="delete" value="<?= $element['id'] ?>">
<input type="hidden" name="origin" value="<?= $element['origin'] ?>">
<button type="submit" class="btn btn-info">Restaurar</button>
</form>
<?php else:?>
<span class="text-muted"><i>No Disponible</i></span>
<?php endif; ?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php endif;?>
<br><br>
<span class="text-muted"><i>Nota: solo dispone de 24 horas para restaurar un elemento y 1 hora para borrar una m&uacute;sica.</i></span>
</div>
</div>