-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
75 lines (72 loc) · 3.24 KB
/
index.php
File metadata and controls
75 lines (72 loc) · 3.24 KB
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
<?php
require_once 'common.php';
?>
<!DOCTYPE html>
<html>
<head>
<title>
Web MPD
</title>
<?php print web_mpd_render_metatag(); ?>
<?php print web_mpd_render_css(); ?>
<?php print web_mpd_render_js(); ?>
</head>
<body>
<div class="well">
<div class="additional-buttons">
<div class="btn-group">
<button class="btn btn-primary btn-xs" data-toggle="modal" data-target="#popup-upload">Upload music</button>
</div>
</div>
<div class="play-buttons">
<h1 id="current-title">
<?php print web_mpd_current() . ' (#' . web_mpd_current_track_state() . ')'; ?>
</h1>
<div class="btn-group">
<?php print web_mpd_render_buttons(); ?>
<button id="repeat" type="button" class="btn btn-default <?php print web_mpd_is_repeat(); ?>" title="Loop"><span class="glyphicon glyphicon-refresh"></span></button>
<button id="single" type="button" class="btn btn-default <?php print web_mpd_is_single(); ?>" title="Repeat"><span class="glyphicon glyphicon-repeat"></span></button>
<button id="random" type="button" class="btn btn-default <?php print web_mpd_is_random(); ?>" title="Random"><span class="glyphicon glyphicon-random"></span></button>
<button id="mute" type="button" class="btn btn-default <?php print web_mpd_is_mute(); ?>" title="Random"><span class="glyphicon glyphicon-volume-off"></span></button>
</div>
<div class="range-inputs">
<input id="seek" type="range" value="<?php print web_mpd_seek_get(WEB_MPD_SEEK_CURRENT); ?>" min="0" max="<?php print web_mpd_seek_get(WEB_MPD_SEEK_TOTAL); ?>" step="1">
<input id="volume" type="range" value="<?php print web_mpd_volume_get(); ?>" min="0" max="100" step="1">
</div>
</div>
</div>
<div class="well playlist">
<ul class="list-group">
<?php print web_mpd_render_playlist(); ?>
</ul>
</div>
<div class="modal fade" id="popup-upload" tabindex="-1" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
<h4 class="modal-title" id="myModalLabel">Upload music</h4>
</div>
<div class="modal-body">
<ul class="nav nav-tabs" role="tablist">
<li class="active"><a href="#by-file" role="tab" data-toggle="tab">By file</a></li>
<li><a href="#by-url" role="tab" data-toggle="tab">By url</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="by-file">
<div id="uploader"></div>
</div>
<div class="tab-pane" id="by-url">
<input type="text" class="form-control" placeholder="Enter url to a file...">
<input type="submit" class="btn btn-primary" value="Upload">
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal"> Close</button>
</div>
</div>
</div>
</div>
</body>
</html>