summaryrefslogtreecommitdiff
path: root/albums.php
blob: 45ed3efb55e41fe8961dc27528098f684a2ed429 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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>