Auto commit: 2026-01-31T15:07:49.609Z
This commit is contained in:
parent
34d0f1308b
commit
ecf75c4f35
61
index.php
61
index.php
@ -509,11 +509,10 @@ try {
|
||||
<canvas id="visualizer"></canvas>
|
||||
|
||||
<div class="mt-4 pt-3 border-top border-white border-opacity-10 position-relative" style="z-index: 2;">
|
||||
<a href="#playlistSection" class="btn btn-sm btn-outline-light rounded-pill px-4 mb-2 w-100">
|
||||
<i class="fas fa-list-ul me-2"></i> Lista de Reproducción
|
||||
</a>
|
||||
|
||||
<?php if ($isAdmin): ?>
|
||||
<a href="#playlistSection" class="btn btn-sm btn-outline-light rounded-pill px-4 mb-2 w-100">
|
||||
<i class="fas fa-list-ul me-2"></i> Gestión de Playlist
|
||||
</a>
|
||||
<div class="mt-2 small text-primary fw-bold"><i class="fas fa-user-shield me-1"></i> PANEL ADMINISTRADOR</div>
|
||||
<a href="?logout=1" class="btn btn-sm btn-outline-danger px-4 rounded-pill mt-2 w-100">Cerrar Sesión</a>
|
||||
<?php endif; ?>
|
||||
@ -540,21 +539,19 @@ try {
|
||||
<div class="right-content">
|
||||
<img src="<?= $promoImage ?>" alt="Lili Records Promo" class="promo-image">
|
||||
|
||||
<!-- Playlist Window -->
|
||||
<?php if ($isAdmin): ?>
|
||||
<!-- Playlist Window (Admin Only) -->
|
||||
<div class="comments-window mb-4" id="playlistSection" style="min-height: auto;">
|
||||
<div class="comments-header border-0 mb-3">
|
||||
<div>
|
||||
<h5 class="mb-1"><i class="fas fa-list-ul me-2 text-primary"></i>Lista de Reproducción</h5>
|
||||
<p class="small opacity-60 mb-0">Canciones programadas y sonando al aire.</p>
|
||||
<h5 class="mb-1"><i class="fas fa-list-ul me-2 text-primary"></i>Gestión de Playlist</h5>
|
||||
<p class="small opacity-60 mb-0">Control total de canciones para la radio.</p>
|
||||
</div>
|
||||
<?php if ($isAdmin): ?>
|
||||
<button class="btn btn-sm btn-outline-primary rounded-pill px-3" onclick="document.getElementById('addSongForm').classList.toggle('d-none')">
|
||||
<i class="fas fa-plus me-1"></i> Añadir
|
||||
</button>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<?php if ($isAdmin): ?>
|
||||
<div id="addSongForm" class="mb-4 d-none p-3 rounded-4" style="background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border);">
|
||||
<form action="manage_songs.php" method="POST" class="row g-2">
|
||||
<input type="hidden" name="action" value="add">
|
||||
@ -571,13 +568,12 @@ try {
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="comments-list" style="max-height: 400px; flex: none;">
|
||||
<?php if (empty($songs)): ?>
|
||||
<div class="text-center py-4 opacity-30">
|
||||
<i class="fas fa-music fa-3x mb-3"></i>
|
||||
<p>No hay canciones programadas.</p>
|
||||
<p>No hay canciones en la lista.</p>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<?php foreach ($songs as $song): ?>
|
||||
@ -587,30 +583,27 @@ try {
|
||||
<span class="song-artist-text"><?= htmlspecialchars($song['artist']) ?></span>
|
||||
</div>
|
||||
<div class="d-flex align-items-center gap-2">
|
||||
<?php if ($isAdmin): ?>
|
||||
<form action="manage_songs.php" method="POST" class="m-0">
|
||||
<input type="hidden" name="action" value="toggle_active">
|
||||
<input type="hidden" name="id" value="<?= $song['id'] ?>">
|
||||
<button type="submit" class="btn-toggle-song <?= $song['is_active'] ? 'active' : '' ?> py-1 px-3">
|
||||
<?= $song['is_active'] ? 'AL AIRE' : 'PONER AL AIRE' ?>
|
||||
</button>
|
||||
</form>
|
||||
<form action="manage_songs.php" method="POST" class="m-0" onsubmit="return confirm('¿Eliminar canción?')">
|
||||
<input type="hidden" name="action" value="delete">
|
||||
<input type="hidden" name="id" value="<?= $song['id'] ?>">
|
||||
<button type="submit" class="btn-delete-song" style="width: 28px; height: 28px;">
|
||||
<i class="fas fa-trash-alt" style="font-size: 0.7rem;"></i>
|
||||
</button>
|
||||
</form>
|
||||
<?php elseif ($song['is_active']): ?>
|
||||
<span class="badge rounded-pill bg-primary px-3 py-2" style="font-size: 0.65rem;">SONANDO</span>
|
||||
<?php endif; ?>
|
||||
<form action="manage_songs.php" method="POST" class="m-0">
|
||||
<input type="hidden" name="action" value="toggle_active">
|
||||
<input type="hidden" name="id" value="<?= $song['id'] ?>">
|
||||
<button type="submit" class="btn-toggle-song <?= $song['is_active'] ? 'active' : '' ?> py-1 px-3">
|
||||
<?= $song['is_active'] ? 'AL AIRE' : 'PONER AL AIRE' ?>
|
||||
</button>
|
||||
</form>
|
||||
<form action="manage_songs.php" method="POST" class="m-0" onsubmit="return confirm('¿Eliminar canción?')">
|
||||
<input type="hidden" name="action" value="delete">
|
||||
<input type="hidden" name="id" value="<?= $song['id'] ?>">
|
||||
<button type="submit" class="btn-delete-song" style="width: 28px; height: 28px;">
|
||||
<i class="fas fa-trash-alt" style="font-size: 0.7rem;"></i>
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- Messages Window -->
|
||||
<div class="comments-window">
|
||||
@ -652,14 +645,14 @@ try {
|
||||
<form action="submit_request.php" method="POST" class="request-form mt-auto pt-4">
|
||||
<div class="row g-2 mb-2">
|
||||
<div class="col-sm-6">
|
||||
<input type="text" name="name" class="form-control form-control-glass" placeholder="Tu nombre" required>
|
||||
<input type="text" name="name" class="form-control glass-input" placeholder="Tu nombre" required style="background: #fff; border: none; color: #000; border-radius: 18px; padding: 0.9rem 1.4rem; font-weight: 500; width: 100%;">
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<input type="text" name="phone" class="form-control form-control-glass" placeholder="Tu WhatsApp">
|
||||
<input type="text" name="phone" class="form-control glass-input" placeholder="Tu WhatsApp" style="background: #fff; border: none; color: #000; border-radius: 18px; padding: 0.9rem 1.4rem; font-weight: 500; width: 100%;">
|
||||
</div>
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<textarea name="message" class="form-control form-control-glass" rows="1" placeholder="Mensaje o canción..." required></textarea>
|
||||
<textarea name="message" class="form-control glass-input" rows="1" placeholder="Mensaje o canción..." required style="background: #fff; border: none; color: #000; border-radius: 18px; padding: 0.9rem 1.4rem; font-weight: 500;"></textarea>
|
||||
<button type="submit" class="btn btn-send-request text-white px-4">
|
||||
<i class="fas fa-paper-plane"></i>
|
||||
</button>
|
||||
@ -845,4 +838,4 @@ try {
|
||||
fetchMetadata();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user