summaryrefslogtreecommitdiff
path: root/admin_albums.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin_albums.php')
-rw-r--r--admin_albums.php26
1 files changed, 24 insertions, 2 deletions
diff --git a/admin_albums.php b/admin_albums.php
index 8858f76..9a02f48 100644
--- a/admin_albums.php
+++ b/admin_albums.php
@@ -38,11 +38,33 @@ form .text {
?>
<div style="height:auto;">
- <label class="admin-h1">Albums</label>
- <a id="add-music-link" href="admin_add_album.php">+ new album</a>
+ <label class="admin-h1">Album</label>
+ <a id="add-album-link" href="admin_add_album.php">+ new album</a>
<div style="clear:both;"></div>
</div>
+ <div id="admin-album-list">
+ <?php
+ $page = $_GET['p'];
+ if($page == null){
+ $page = 0;
+ }
+
+ $arr = fetch_range_album($page*AdminConfig::$music_per_page, AdminConfig::$music_per_page);
+ $total_page = ceil(get_all_album_count() / AdminConfig::$music_per_page );
+
+ if($arr != null && count($arr) > 0){
+ foreach($arr as $album){
+ html_admin_album($album);
+ }
+ }
+
+ $url = "./admin_albums.php?";
+ $current_page_index = $page;
+ ?>
+
+ </div>
+
<?php require_once 'admin_paginate.php';?>
<div>