summaryrefslogtreecommitdiff
path: root/album.php
diff options
context:
space:
mode:
Diffstat (limited to 'album.php')
-rw-r--r--album.php78
1 files changed, 78 insertions, 0 deletions
diff --git a/album.php b/album.php
new file mode 100644
index 0000000..c1aae7c
--- /dev/null
+++ b/album.php
@@ -0,0 +1,78 @@
+<html>
+
+<head>
+<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no, target-densityDpi=device-dpi">
+<link rel="stylesheet" href="./res/styles.css">
+<script src="./res/main.js"></script>
+<script>
+</script>
+<style type="text/css">
+.album_container{
+ float:left;
+}
+</style>
+</head>
+
+<body>
+<div id="container">
+ <?php include_once('header.php');?>
+ <?php include_once('titlebar.php');?>
+
+ <div id="music_player_container">
+
+ <div id="album_detail">
+
+ <?php
+ require_once 'music.php';
+ require_once 'template.php';
+
+ $id = $_GET['id'];
+ $album = fetch_album_by_id($id);
+
+ html_album($album);
+ ?>
+
+ <label style="font-size:20px;">For Galante, giving the community what they’ve paid for is his first priority. But beyond that, the developer has a big dream – one that he thinks was worth quitting his day job for.</label>
+
+ <div style="clear:both;"></div>
+
+ </div>
+ <?php require_once 'template.php'?>
+
+ <div id="album_music_list">
+ <?php
+ $current_page_index = $_GET['page'];
+ if($current_page_index == null){
+ $current_page_index = 0;
+ }
+ $url = "./album.php?id=" . $id;
+ $total_page = ceil(get_all_album_music_count($album->uid) / Config::$music_per_page);
+ $musiclist = fetch_album_music_ranged($album->uid, $current_page_index * Config::$music_per_page, Config::$music_per_page);
+ ?>
+
+ <div style="clear:both;"></div>
+ <label style="font-size:25px;font-weight:bold; margin:10px;line-height:30px;color: #c5c5c5;display:block;border-bottom: 2px solid rgb(223, 223, 223);">Music</label>
+ <div id="music_outer">
+
+ <?php
+ $index = $current_page_index * Config::$music_per_page;
+ foreach($musiclist as $music){
+ html_music_wide($music, $index + 1);
+ $index++;
+ }
+ ?>
+
+ </div>
+
+ </div>
+
+ </div>
+
+ <div style="clear:both;"></div>
+
+ <?php include 'paginate.php' ?>
+
+</div>
+</body>
+
+</html>