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:
43
view/listplay.view.php
Normal file
43
view/listplay.view.php
Normal file
@@ -0,0 +1,43 @@
|
||||
<div class="body">
|
||||
<?php include $views['menu']; ?>
|
||||
<div class="container-fluid mt-4">
|
||||
<?php if (!isset($_GET['listmusic'])) : ?>
|
||||
<h1 class="text-muted">Listas de Reproducción</h1>
|
||||
<div class="dropdown-divider"></div>
|
||||
<?php if (count($listsName) == 0) : ?>
|
||||
<h3 class="text-muted text-center">No hay listas de reproducción disponibles.</h3>
|
||||
<?php else : ?>
|
||||
<?php foreach ($listsName as $listName) : ?>
|
||||
<form action="" method="post" id="form_<?= $listName['listName'] ?>">
|
||||
<a href="./?view=<?= $view ?>&listmusic=<?= md5($listName['idList']) ?>">
|
||||
<h2 class="text-white"><i class="fas fa-plus"></i> <?= $listName['listName'] ?>
|
||||
<a href="#" onclick="document.getElementById('form_<?= $listName['listName'] ?>').submit()"><i class="fas fa-trash-alt text-danger cursor-pointer"></i></a>
|
||||
<input type="hidden" name="deleteList" value="<?= $listName['idList'] ?>">
|
||||
</h2>
|
||||
</a>
|
||||
</form>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
<div class="dropdown-divider"></div>
|
||||
<button class="btn btn-primary" id="show-add-new-list" onclick="onClick.home.hidden('new-list');onClick.home.hidden('show-add-new-list');">Nueva Lista</button>
|
||||
<div id="new-list" hidden>
|
||||
<br>
|
||||
<form action="" method="post">
|
||||
<div class="form-group">
|
||||
<label for="listname" class="text-white">Nombre de Lista</label><br>
|
||||
<input type="text" name="txtListName" id="listname" minlength="3" required><br>
|
||||
<button class="btn btn-danger" type="button" onclick="onClick.home.hidden('new-list');onClick.home.hidden('show-add-new-list');">Cancelar</button>
|
||||
<button class="btn btn-primary" type="submit">Crear</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<?php else : ?>
|
||||
<h1 class="text-muted">Lista de Reproducción <?=$listMusics['listName']?></h1>
|
||||
<div class="dropdown-divider"></div>
|
||||
<?php foreach($listMusics['musics'] as $music):?>
|
||||
<?php $sound = $music['music'];?>
|
||||
<?php include $views['sound'];?>
|
||||
<?php endforeach;?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user