Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.50 KB | None | 0 0
  1.  
  2. <?php
  3.  
  4. $album = array(
  5. array(
  6. "AlbumTitle" => "k3",
  7. "AlbumImage" => "images/download.jpg",
  8. "AlbumVideo" => "movies/k3allekleuren.mp4",
  9. "Tracks" => array(
  10. array(
  11. "TrackTitle" => "Alle kleuren",
  12. "TrackDuration" => "3:38",
  13. "TrackMP3" => "songs/K3-Alle-Kleuren.mp3",
  14. ),
  15. array(
  16. "TrackTitle" => "Drie biggetjes",
  17. "TrackDuration" => "3:44",
  18. "TrackMP3" => "songs/K3-De3Biggetjes.mp3",
  19. ),
  20. array(
  21. "TrackTitle" => "Toveren",
  22. "TrackDuration" => "3:08",
  23. "TrackMP3" => "songs/K3-Toveren.mp3",))));
  24. ?>
  25. <!DOCTYPE html>
  26. <html>
  27. <head>
  28. <meta charset="utf-8" />
  29. <meta name="description" content="Radio Gaga. - Enjoy The Greatest Hits">
  30. <link rel="stylesheet" type="text/css" href="css/style.css">
  31. <title>Radio Gaga. - Playlist</title>
  32. </head>
  33. <body>
  34. <header id="header">
  35.  
  36. <div id="logo">
  37. <a href="index.html">radio gaga.</a>
  38. </div>
  39.  
  40. <nav id="main-nav">
  41. <ul>
  42. <li><a href="index.html">Home</a></li>
  43. <li><a href="playlist.php">Playlist</a></li>
  44. </ul>
  45. </nav>
  46. </header>
  47. <div class="main-container">
  48. <div class="album-container">
  49. <a onclick=
  50. "document.getElementById('big-block-one').style.display='block';
  51. document.getElementById('big-block-two').style.display='none';
  52. document.getElementById('big-block-three').style.display='none';
  53. ">
  54. <img src="images/download.jpg">
  55. </a>
  56.  
  57. <img src="images/download (1).jpg">
  58. <img src="images/download (2).jpg">
  59. </div>
  60. <div class="playlist-container">
  61. <h1>K3</h1>
  62. <video src="movies/k3allekleuren.mp4" width="630" poster="images/download.jpg" controls></video>
  63. <table id="table">
  64. <thead>
  65. <th>Track</th>
  66. <th>Title</th>
  67. <th>Duration</th>
  68. <th>Play</th>
  69. </thead>
  70. <?php $n1 += 1;
  71. foreach($album[0]["Tracks"] as $track) {?>
  72. <tbody>
  73. <td><?php echo $n1++;?></td>
  74. <td><?php echo $track["TrackTitle"];?></td>
  75. <td><?php echo $track["TrackDuration"];?></td>
  76. <td><a onclick="
  77. player = document.getElementById('audio');
  78. player.src='<?php echo $track['TrackMP3'];?>';
  79. player.play();"
  80. > Press to play
  81. </a>
  82. </td>
  83. </tr>
  84. </tbody>
  85. <?php
  86. }
  87. ?>
  88. </table>
  89. <div>
  90. <audio id="audio" src="" controls>
  91. Your browser does not support the audio element.
  92. </audio>
  93. </div>
  94. </div>
  95. <div class="clearfix"></div>
  96. </div>
  97. </body>
  98. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement