Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.29 KB | None | 0 0
  1.  
  2. <?php
  3. $album = array(
  4. array(
  5. "AlbumTitle" => "K3",
  6. "AlbumImage" => "images/download.jpg",
  7. "AlbumVideo" => "movies/k3allekleuren.mp4",
  8. "Tracks" => array(
  9. array(
  10. "TrackTitle" => "Alle kleuren",
  11. "TrackDuration" => "3:38",
  12. "TrackMP3" => "songs/K3-Alle-Kleuren.mp3",
  13. ),
  14. array(
  15. "TrackTitle" => "Drie biggetjes",
  16. "TrackDuration" => "3:44",
  17. "TrackMP3" => "songs/K3-De3Biggetjes.mp3",
  18. ),
  19. array(
  20. "TrackTitle" => "Toveren",
  21. "TrackDuration" => "3:08",
  22. "TrackMP3" => "songs/K3-Toveren.mp3",
  23. array(
  24. array(
  25. "AlbumTitle" => "Backstreet Boys",
  26. "AlbumImage" => "images/download (1).jpg",
  27. "AlbumVideo" => "movies/IWantItThatWay.avi",
  28. "Tracks" => array(
  29. array(
  30. "TrackTitle" => "I want it that way",
  31. "TrackDuration" => "3:39",
  32. "TrackMP3" => "songs/IWantItThatWay.mp3",
  33. ),
  34. array(
  35. "TrackTitle" => "as long as you love me",
  36. "TrackDuration" => "3:38",
  37. "TrackMP3" => "songs/AsLongAsYouLoveMe.mp3",
  38. ),
  39. array(
  40. "TrackTitle" => "Shape of my heart",
  41. "TrackDuration" => "3:48",
  42. "TrackMP3" => "songs/ShapeOfMyHeart.mp3",
  43. array(
  44. array(
  45. "AlbumTitle" => "*NSYNC",
  46. "AlbumImage" => "images/download (2).jpg",
  47. "AlbumVideo" => "movies/TearinUpMyHeart.mp4",
  48. "Tracks" => array(
  49. array(
  50. "TrackTitle" => "Tearin' up my heart",
  51. "TrackDuration" => "3:28",
  52. "TrackMP3" => "songs/TearinUpMyHeart.mp3",
  53. ),
  54. array(
  55. "TrackTitle" => "Bye Bye Bye",
  56. "TrackDuration" => "4:01",
  57. "TrackMP3" => "songs/ByeByeBye.mp3",
  58. ),
  59. array(
  60. "TrackTitle" => "It's gonna be me",
  61. "TrackDuration" => "3:23",
  62. "TrackMP3" => "songs/ItsGonnaBeMe.mp3",
  63. )
  64. )
  65. )
  66. )))))))));
  67. ?>
  68. <!DOCTYPE html>
  69. <html>
  70. <head>
  71. <meta charset="utf-8" />
  72. <meta name="description" content="Radio Gaga. - Enjoy The Greatest Hits">
  73. <link rel="stylesheet" type="text/css" href="css/style.css">
  74. <title>Radio Gaga. - Playlist</title>
  75. </head>
  76. <body>
  77. <header id="header">
  78.  
  79. <div id="logo">
  80. <a href="index.html">radio gaga.</a>
  81. </div>
  82.  
  83. <nav id="main-nav">
  84. <ul>
  85. <li><a href="index.html">Home</a></li>
  86. <li><a href="playlist.php">Playlist</a></li>
  87. </ul>
  88. </nav>
  89. </header>
  90. <div class="main-container">
  91. <div class="album-container">
  92. <a onclick=
  93. "document.getElementById('big-block-one').style.display='block';
  94. document.getElementById('big-block-two').style.display='none';
  95. document.getElementById('big-block-three').style.display='none';
  96. ">
  97. <img src="images/download.jpg" width="200" height="200">
  98. </a>
  99. <a onclick=
  100. "document.getElementById('big-block-one').style.display='block';
  101. document.getElementById('big-block-two').style.display='none';
  102. document.getElementById('big-block-three').style.display='none';
  103. ">
  104. <img src="images/download (1).jpg" width="200" height="200">
  105. </a>
  106. <a onclick=
  107. "document.getElementById('big-block-one').style.display='block';
  108. document.getElementById('big-block-two').style.display='none';
  109. document.getElementById('big-block-three').style.display='none';
  110. ">
  111. <img src="images/download (2).jpg" width="200" height="200">
  112. </a>
  113. </div>
  114. <div class="playlist-container">
  115. <h1><?php echo $album[0]["AlbumTitle"];?></h1>
  116. <video src="<?php echo $album[0]["AlbumVideo"];?>" poster="images/download.jpg" controls>Your browser does not support the video tag.</video>
  117. <table id="table">
  118. <thead>
  119. <th>Track</th>
  120. <th>Title</th>
  121. <th>Duration</th>
  122. <th>Play</th>
  123. </thead>
  124. <?php $n1 = 0; $n1 += 1;
  125. foreach($album[0]["Tracks"] as $track) {?>
  126. <tbody>
  127. <tr>
  128. <td><?php echo $n1++;?></td>
  129. <td><?php echo $track["TrackTitle"];?></td>
  130. <td><?php echo $track["TrackDuration"];?></td>
  131. <td><a onclick="
  132. player = document.getElementById('audio');
  133. player.src='<?php echo $track['TrackMP3'];?>';
  134. player.play();"
  135. > Press to play
  136. </a>
  137. </td>
  138. </tr>
  139. </tbody>
  140. <?php
  141. }
  142. ?>
  143. </table>
  144. <div>
  145. <audio id="audio" src="" controls>
  146. Your browser does not support the audio element.
  147. </audio>
  148. </div>
  149. </div>
  150. <div class="clearfix"></div>
  151. </div>
  152. </body>
  153. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement