summaryrefslogtreecommitdiff
path: root/admin_add_album.php
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2022-03-22 20:42:48 +0800
committerchai <chaifix@163.com>2022-03-22 20:42:48 +0800
commitf980b021f1f1df132c4599cb4c1fb127a1ae289a (patch)
tree55c1cf92b0465e238a5ce99d73e883d860d5ab80 /admin_add_album.php
parent627b8e416d138112ad20b1299aca21dccebcd11c (diff)
+ album
Diffstat (limited to 'admin_add_album.php')
-rw-r--r--admin_add_album.php64
1 files changed, 64 insertions, 0 deletions
diff --git a/admin_add_album.php b/admin_add_album.php
new file mode 100644
index 0000000..022ba27
--- /dev/null
+++ b/admin_add_album.php
@@ -0,0 +1,64 @@
+<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');
+?>
+
+<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">
+ <div class="section">
+ <label class="title" for="title" >title:</label>
+ <input class="text" type="text" name="title" /><br/>
+ </div>
+ <div class="section">
+ <label class="title" for="description" >description:</label>
+ <input class="text" type="text" name="description" /><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>
+ <input class="text" type="text" name="music_list" /><br/>
+ </div>
+ <input style="float:right" type="submit" value="Add Album" name="submit"/>
+ </form>
+
+ <div>
+
+</body>
+
+</html> \ No newline at end of file