summaryrefslogtreecommitdiff
path: root/admin_modify_album.php
blob: 48124382ac6ac8a8f2d5c064a7d7ff761ee170e2 (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<html>

<head>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no, target-densityDpi=device-dpi">
<style type="text/css">
#container {
    margin:0 auto; 
    max-width: 500px;
}
form .title {
    display:block;
    font-size:0.8em;
    margin-bottom: 3px;
}
form .section{ 
    margin-bottom: 10px;
    padding: 5px;
    background: #efefef;
}
form .text { 
    width: 100%;
}
</style>

</head>

<body>
    <div id="container">

<?php require_once 'utils.php';?>
<?php require_once 'config.php';?>
<?php require_once 'music.php';?>

<?php 
    require_once('checkadmin.php');
?>

<?php 	
    $album_id = $_GET['aid'];	
    $album = fetch_album_by_id($album_id);	
?>

<h1 style="font-size:1.2em;display:block;color:#c5c5c5;" >Add Album</h1>

    <form action="admin_new_album.php" method="post" enctype="multipart/form-data">
        <input type="hidden" name="aid" value="<?php echo $album->uid;?>"/>
        <div class="section"> 
        <label class="title" for="title" >title:</label>
        <input class="text" type="text" name="title" value="<?php echo $album->title; ?>"/><br/>
        </div>
        <div class="section"> 
        <label class="title" for="description" >description:</label>
        <textarea class="text" type="text" name="description" style="max-width:100%;min-height:60px;"><?php echo $album->description;?></textarea><br/>
        </div>
        <div class="section"> 
        <label class="title" for="coverImage" >cover:</label>
        <input type="file" name="coverImage"/>
        </div>
        <div class="section"> 
        <label class="title" for="music_list" >music ids (seprate with comma):</label>
        <textarea class="text" type="text" name="music_list" style="max-width:100%;min-height:60px;"><?php echo get_albums_music_id_string($album);?></textarea><br/>
        </div>
        <input style="float:right" type="submit" value="Update" name="submit"/>
    </form>

    <div>

</body>

</html>