summaryrefslogtreecommitdiff
path: root/admin_modify_music.php
blob: 141db7202f8dea9fdb1edffbe7707afc67f344b3 (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
71
72
73
74
75
76
77
78
<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 
    $music_id = $_GET['mid'];
    $music = fetch_music_by_id($music_id);
?>

<h1 style="font-size:1.2em;display:block;color:#c5c5c5;" >Music (Id<?php echo $music->uid;?>)</h1>

<form action="admin_new_music.php" method="post" enctype="multipart/form-data">
    <input type="hidden" name="mid" value="<?php echo $music->uid;?>"/>
    <div class="section"> 
    <label class="title" for="musicFile" >file:</label>
    <input type="file" name="musicFile"/>
    </div>
    <div class="section"> 
    <label class="title" for="coverImage" >cover:</label>
    <input type="file" name="coverImage"/>
    </div>
    <div class="section"> 
    <label class="title" for="musicProj" >project:</label>
    <input type="file" name="musicProj"/>
    </div>
    <div class="section"> 
    <label class="title" for="title" >title:</label>
    <input class="text" type="text" name="title" value="<?php echo $music->title; ?>"/><br/>
    </div>
    <div class="section"> 
    <label class="title" for="tags" >tags (seprate with comma):</label>
    <input class="text" type="text" name="tags" value="<?php echo get_music_tag_string($music); ?>"/><br/>
    </div>
    <div class="section"> 
    <label class="title" for="albums" >albums id (seprate with comma):</label>
    <input class="text" type="text" name="albums" value="<?php echo get_music_albums_id_string($music);?>"/><br/>
    </div>
    <input style="float:right" type="submit" value="Update" name="submit"/>
</form>

    <div>

</body>

</html>