summaryrefslogtreecommitdiff
path: root/albums.php
diff options
context:
space:
mode:
Diffstat (limited to 'albums.php')
-rw-r--r--albums.php49
1 files changed, 49 insertions, 0 deletions
diff --git a/albums.php b/albums.php
new file mode 100644
index 0000000..45ed3ef
--- /dev/null
+++ b/albums.php
@@ -0,0 +1,49 @@
+<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>
+</head>
+
+<body>
+<div id="container">
+ <?php include_once('header.php');?>
+ <?php include_once('titlebar.php');?>
+ <?php include_once('music.php');?>
+ <?php include_once('config.php');?>
+
+ <?php
+ $current_page_index = $_GET['page'];
+ if($current_page_index == null){
+ $current_page_index = 0;
+ }
+ $url = "./albums.php?";
+ $total_page = ceil(get_all_album_count() / Config::$music_per_page);
+ $albumlist = fetch_range_album($current_page_index * Config::$music_per_page, Config::$music_per_page);
+ ?>
+
+ <div style="clear:both;"></div>
+ <div id="music_outer">
+ <div id="music_inner">
+ <div id="music_list">
+
+ <?php require_once 'template.php'?>
+ <?php
+ foreach($albumlist as $album){
+ html_album($album);
+ }
+ ?>
+
+ </div>
+ </div>
+ </div>
+
+
+ <?php include 'paginate.php' ?>
+
+</div>
+
+</body>
+
+</html> \ No newline at end of file