ajout menu déroulant + bouton +
This commit is contained in:
@@ -14,4 +14,11 @@ class Albums extends CI_Controller {
|
||||
$this->load->view('layout/footer_chanson');
|
||||
}
|
||||
|
||||
public function view($AlbumsOfArtistId){
|
||||
$AlbumsOfArtists = $this->model_music->getAlbumsOfArtist($AlbumsOfArtistId);
|
||||
$this->load->view('layout/header');
|
||||
$this->load->view('albums_artist_list',['AlbumsOfArtists'=>$AlbumsOfArtists]);
|
||||
$this->load->view('layout/footer');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -14,4 +14,4 @@ class Song extends CI_Controller {
|
||||
$this->load->view('song_album_list',['songs'=>$songs]);
|
||||
$this->load->view('layout/footer');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
14
ci/application/controllers/connexion.php
Normal file
14
ci/application/controllers/connexion.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class connexion extends CI_Controller {
|
||||
|
||||
public function __construct(){
|
||||
parent::__construct();
|
||||
$this->load->model('model_music');
|
||||
}
|
||||
public function index(){
|
||||
$this->load->view('layout/connexion');
|
||||
}
|
||||
|
||||
}
|
||||
@@ -7,22 +7,36 @@
|
||||
</head>
|
||||
<body>
|
||||
<main class='container'>
|
||||
<header class="navbar">
|
||||
<header class="navbar">
|
||||
<div class="logo">
|
||||
<img src="assets/img/Logo1.png" alt="SpotiFly">
|
||||
</div>
|
||||
<nav class="menu">
|
||||
<ul>
|
||||
<li><?= anchor('https://dwarves.iut-fbleau.fr/~boutaric/SAEWEB2.2/ci/','Home'); ?></li>
|
||||
<li><?= anchor('albums','Albums'); ?></li>
|
||||
<li><?= anchor('artistes','Artistes'); ?></li>
|
||||
<li class="menu_déroulant"><?= anchor('albums','Albums'); ?>
|
||||
<div class="menu_déroulant_content">
|
||||
<?= anchor('https://dwarves.iut-fbleau.fr/~boutaric/SAEWEB2.2/ci/index.php/Song/view/196','New Masters'); ?>
|
||||
<?= anchor('https://dwarves.iut-fbleau.fr/~boutaric/SAEWEB2.2/ci/index.php/Song/view/88','Joe Cocker!'); ?>
|
||||
<?= anchor('https://dwarves.iut-fbleau.fr/~boutaric/SAEWEB2.2/ci/index.php/Song/view/213','Dylan'); ?>
|
||||
<?= anchor('https://dwarves.iut-fbleau.fr/~boutaric/SAEWEB2.2/ci/index.php/Song/view/142','Mothers Milk'); ?>
|
||||
</div>
|
||||
</li>
|
||||
<li class="menu_déroulant"><?= anchor('artistes','Artistes'); ?>
|
||||
<div class="menu_déroulant_content">
|
||||
<?= anchor('https://dwarves.iut-fbleau.fr/~boutaric/SAEWEB2.2/ci/index.php/artistes/view/34','Queen'); ?>
|
||||
<?= anchor('https://dwarves.iut-fbleau.fr/~boutaric/SAEWEB2.2/ci/index.php/Song/view/21','Slayer'); ?>
|
||||
<?= anchor('https://dwarves.iut-fbleau.fr/~boutaric/SAEWEB2.2/ci/index.php/Song/view/63','Muse'); ?>
|
||||
<?= anchor('https://dwarves.iut-fbleau.fr/~boutaric/SAEWEB2.2/ci/index.php/Song/view/62','Tool'); ?>
|
||||
</div>
|
||||
</li>
|
||||
<li><?= anchor('playlist','Playlist'); ?></li>
|
||||
</ul>
|
||||
</nav>
|
||||
<div class="user">
|
||||
<a class="bouton" href="html/Connexion.html">Connexion</a>
|
||||
<a class="bouton" href="html/Inscription.html">S'inscrire</a>
|
||||
</div>
|
||||
<a class="bouton" href="connexion.php">Connexion</a>
|
||||
<a class="bouton" href="html/Inscription.html">S'inscrire</a>
|
||||
</div>
|
||||
</header>
|
||||
<div id="Page">
|
||||
<div class="content">
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
|
||||
<h5>Liste des albums</h5>
|
||||
<section class="container">
|
||||
<?php
|
||||
foreach ($AlbumsOfArtists as $AlbumsOfArtist) {
|
||||
@@ -8,6 +7,7 @@
|
||||
echo anchor("albums/view/{$AlbumsOfArtist->id}", "{$AlbumsOfArtist->name}");
|
||||
echo "<br>";
|
||||
echo "</header>";
|
||||
|
||||
echo '<img src="data:image/jpeg;base64,' . base64_encode($AlbumsOfArtist->jpeg) . '" alt="' . $AlbumsOfArtist->name . '" />';
|
||||
echo "<footer class='short-text'>$AlbumsOfArtist->year</footer>";
|
||||
echo "</article></div>";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<h5>Liste des albums</h5>
|
||||
|
||||
<section class="container">
|
||||
<?php
|
||||
foreach($albums as $album){
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<h5>Artists list</h5>
|
||||
|
||||
<section class="artiste">
|
||||
<?php
|
||||
foreach($artistes as $artiste){
|
||||
|
||||
32
ci/application/views/layout/connexion.php
Normal file
32
ci/application/views/layout/connexion.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Connexion Spotify</title>
|
||||
<link rel="stylesheet" href="assets/connexion.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="login-box">
|
||||
<h1>Se connecter à Spotify</h1>
|
||||
<form action="/login" method="post">
|
||||
<div class="textbox">
|
||||
<input type="email" placeholder="Adresse e-mail" name="email" required>
|
||||
</div>
|
||||
<div class="textbox">
|
||||
<input type="password" placeholder="Mot de passe" name="password" required>
|
||||
</div>
|
||||
<button type="submit" class="btn">Se connecter</button>
|
||||
</form>
|
||||
<hr>
|
||||
<div class="alt-login">
|
||||
<p>Ou se connecter avec</p>
|
||||
<button class="btn social-btn apple">Apple</button>
|
||||
<button class="btn social-btn google">Google</button>
|
||||
<button class="btn social-btn facebook">Facebook</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -17,20 +17,34 @@
|
||||
<nav class="menu">
|
||||
<ul>
|
||||
<li><?= anchor('https://dwarves.iut-fbleau.fr/~boutaric/SAEWEB2.2/ci/','Home'); ?></li>
|
||||
<li><?= anchor('albums','Albums'); ?></li>
|
||||
<li><?= anchor('artistes','Artistes'); ?></li>
|
||||
<li class="menu_déroulant"><?= anchor('albums','Albums'); ?>
|
||||
<div class="menu_déroulant_content">
|
||||
<?= anchor('https://dwarves.iut-fbleau.fr/~boutaric/SAEWEB2.2/ci/index.php/Song/view/196','New Masters'); ?>
|
||||
<?= anchor('https://dwarves.iut-fbleau.fr/~boutaric/SAEWEB2.2/ci/index.php/Song/view/88','Joe Cocker!'); ?>
|
||||
<?= anchor('https://dwarves.iut-fbleau.fr/~boutaric/SAEWEB2.2/ci/index.php/Song/view/213','Dylan'); ?>
|
||||
<?= anchor('https://dwarves.iut-fbleau.fr/~boutaric/SAEWEB2.2/ci/index.php/Song/view/142','Mothers Milk'); ?>
|
||||
</div>
|
||||
</li>
|
||||
<li class="menu_déroulant"><?= anchor('artistes','Artistes'); ?>
|
||||
<div class="menu_déroulant_content">
|
||||
<?= anchor('https://dwarves.iut-fbleau.fr/~boutaric/SAEWEB2.2/ci/index.php/artistes/view/34','Queen'); ?>
|
||||
<?= anchor('https://dwarves.iut-fbleau.fr/~boutaric/SAEWEB2.2/ci/index.php/Song/view/21','Slayer'); ?>
|
||||
<?= anchor('https://dwarves.iut-fbleau.fr/~boutaric/SAEWEB2.2/ci/index.php/Song/view/63','Muse'); ?>
|
||||
<?= anchor('https://dwarves.iut-fbleau.fr/~boutaric/SAEWEB2.2/ci/index.php/Song/view/62','Tool'); ?>
|
||||
</div>
|
||||
</li>
|
||||
<li><?= anchor('playlist','Playlist'); ?></li>
|
||||
</ul>
|
||||
</nav>
|
||||
<div class="user">
|
||||
<a class="bouton" href="html/Connexion.html">Connexion</a>
|
||||
<a class="bouton" href="html/Inscription.html">S'inscrire</a>
|
||||
</div>
|
||||
</header>
|
||||
<a class="bouton" href="connexion.php">Connexion</a>
|
||||
<a class="bouton" href="html/Inscription.html">S'inscrire</a>
|
||||
</div>
|
||||
</header>
|
||||
</main>
|
||||
<script src="../assets/bouton.js"></script>
|
||||
<button id="scrollTopBtn" onclick="scrollToTop()">
|
||||
<span>↑</span>
|
||||
</button>593;</span>
|
||||
</button>
|
||||
</body>
|
||||
</html>
|
||||
<button id="scrollTopBtn" onclick="scrollToTop()">
|
||||
<span>↑</span>
|
||||
</button>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,15 +1,14 @@
|
||||
<h5>Song of the album</h5>
|
||||
|
||||
<section class="list">
|
||||
<?php
|
||||
|
||||
|
||||
foreach($songs as $song){
|
||||
echo "<div><article>";
|
||||
echo "<header class='short-text'>";
|
||||
echo /*anchor("albums/view/{$song->id}",*/"{$song->name}"/*)*/;
|
||||
echo "{$song->name}";
|
||||
echo " <button class='add-to-playlist' data-song='{$song->name}'>+</button>";
|
||||
echo "<br>";
|
||||
echo "</header>";
|
||||
echo "</article></div>";
|
||||
}
|
||||
?>
|
||||
</section>
|
||||
</section>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<h5>Song of the playlist</h5>
|
||||
|
||||
<section class="list">
|
||||
<?php
|
||||
foreach($songPlaylists as $songPlaylist){
|
||||
|
||||
Reference in New Issue
Block a user