]>
Commit | Line | Data |
---|---|---|
1 | <?php | |
2 | /* | |
3 | Pitchfork Music Player Daemon Client | |
4 | Copyright (C) 2007 Roger Bystrøm | |
5 | ||
6 | This program is free software; you can redistribute it and/or modify | |
7 | it under the terms of the GNU General Public License as published by | |
8 | the Free Software Foundation; version 2 of the License. | |
9 | ||
10 | This program is distributed in the hope that it will be useful, | |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 | GNU General Public License for more details. | |
14 | ||
15 | You should have received a copy of the GNU General Public License along | |
16 | with this program; if not, write to the Free Software Foundation, Inc., | |
17 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | |
18 | */ | |
19 | ||
20 | include_once("../inc/function_test.php"); | |
21 | require_once('../inc/base.php'); | |
22 | require_once("../lang/master.php"); | |
23 | header("Content-Type: text/html; charset=UTF-8"); | |
24 | header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past | |
25 | header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always modified | |
26 | header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0"); // HTTP/1.1 | |
27 | header("Cache-Control: post-check=0, pre-check=0", false); | |
28 | header("Pragma: no-cache"); // HTTP/1.0 | |
29 | ||
30 | ?> | |
31 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> | |
32 | ||
33 | <html> | |
34 | <head> | |
35 | <link rel="stylesheet" type="text/css" href="../std/base.css" /> | |
36 | <link rel="stylesheet" type="text/css" href="../theme/mini/theme.css" /> | |
37 | <meta name="viewport" content="user-scalable=no, initial-scale=1.0, width=device-width" /> | |
38 | <?php | |
39 | $scripts = array("player/preferences.js.php", "lang/en.js", "std/collection.js", "std/toolkit.js", "std/streaming.js", | |
40 | "std/plsearch.js", "std/playlist.js", "std/keyboard.js", "std/browser.js", "std/quickadd.js", | |
41 | "std/command.js", "theme/mini/theme.js" ); | |
42 | if($language != "en") | |
43 | $scripts[] = "lang/".$language.".js"; | |
44 | ||
45 | if(is_null(get_config("metadata_disable"))) | |
46 | $scripts[] = "std/metadata.js"; | |
47 | ||
48 | foreach($scripts as $script) | |
49 | echo "\t\t<script type=\"text/JavaScript\" src=\"../".$script."\"></script>\n"; | |
50 | ?> | |
51 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
52 | <meta name="robots" content="noindex,nofollow" /> | |
53 | <title>Pitchfork MPD Client</title> | |
54 | </head> | |
55 | <body onload='init_player()'> | |
56 | ||
57 | <div class='player_control' style='' id='player_control'> | |
58 | ||
59 | <div id='status_bar'> | |
60 | <p id='status_bar_txt'></p> | |
61 | <img id='status_bar_img' class='status_working' /> | |
62 | </div> | |
63 | ||
64 | <div id='albumart'></div> | |
65 | <div class='pc_artist' > | |
66 | <p class='disp'><span id='disp_title'></span><br/></p> | |
67 | <p class='disp' ><span id='disp_artist'></span><br/></p> | |
68 | <p class='disp'><span id='disp_album'></span><br/></p> | |
69 | <input type='text' id='quickadd' value='<?php echo m("Quick add"); ?>' /> | |
70 | <div id='qa_suggestions' ><p id='qa_suggestions_txt' ></p></div> | |
71 | </div> | |
72 | ||
73 | <div class='pc_ci' > | |
74 | <div class='nomargin'> | |
75 | <img id='previous_button' class='act_button fakelink'/> | |
76 | <img id='stop_button' style='display: none; ' class='act_button fakelink' /> | |
77 | <img id='pp_button' class='act_button fakelink' /> | |
78 | <img id='next_button' class='act_button fakelink'/> | |
79 | </div> | |
80 | <p class='disp' style="display:none;"><span id="disp_info"></span></p> | |
81 | </div> | |
82 | ||
83 | <div class='pc_sliders'> | |
84 | <div id='posslider' ></div> | |
85 | <div id="volslider" ></div> | |
86 | </div> | |
87 | ||
88 | <div class='pc_settings'> | |
89 | <div id='settings_header' class='settings_header'><p class='nomargin' style='padding-left: 10px;'><?php echo m("Server settings"); ?></p></div> | |
90 | <div class='settings_container' id='settings_container'><p id='settings_content'></p></div> | |
91 | </div> | |
92 | ||
93 | <div class='pc_other'><ul class='nomargin'> | |
94 | <li class='menuitem fakelink' title="<?php echo m("Add playlists or audio-files"); ?>" | |
95 | id='playlist_add'><?php echo m("Add playlist"); ?></li> | |
96 | <li class='menuitem fakelink' title="<?php echo m("Save current playlist"); ?>" | |
97 | id='playlist_save'><?php echo m("Save playlist"); ?></li> | |
98 | <li class='menuitem fakelink' title='<?php echo m("Search current playlist"); ?>' | |
99 | id='playlist_search_btn' ><?php echo m("Search playlist"); ?></li> | |
100 | <li class='menuitem' ><a class='pc_other' href='config.php'><?php echo m("Configure"); ?></a></li> | |
101 | ||
102 | <?php | |
103 | if(!is_null(get_config("shout_url"))) | |
104 | echo "\t\t<li class='menuitem fakelink' title='" . m("Start streaming to browser") . "' id='streaming_open'>". | |
105 | m("Streaming") . "</li>\n"; | |
106 | if(is_null(get_config('metadata_disable'))) { | |
107 | echo "\t\t<li title='" . m("Get music recommendations based on current playlist") . "' id='recommendation_open' ". | |
108 | "class='menuitem fakelink'>". m("Recommendation") . "</li>\n"; | |
109 | echo "\t\t<li title='" . m("Get more information about this song/album") . "' id='metadata_open' class='menuitem fakelink'>". | |
110 | m("Song Info") . "</li>\n"; | |
111 | ||
112 | } | |
113 | ?> | |
114 | </ul></div> | |
115 | </div> | |
116 | ||
117 | <div class='tab_select'> | |
118 | <div class='tab_button' onclick='showPlaylist()'>Playlist</div> | |
119 | <div class='tab_button' onclick='showControls()'>Controls</div> | |
120 | </div> | |
121 | ||
122 | <div class='selection_menu'> | |
123 | <img id='crop_items_button' class='menu_button fakelink' title="<?php echo m("Crop to selection"); ?>" /> | |
124 | <img id='remove_items_button' class='menu_button fakelink' title="<?php echo m("Remove selection"); ?>" /> | |
125 | <img id='open_directory_button' class='menu_button fakelink' title="<?php echo m("Open directory"); ?>" /> | |
126 | </div> | |
127 | ||
128 | <div id='content'> | |
129 | <table id='playlist' ></table> | |
130 | </div> | |
131 | ||
132 | <div id="sidebar_header"><p class='nomargin'><span class='fakelink' id='metadata_open_lyrics'>[<?php echo m("Lyrics"); ?>]</span> <span id='metadata_open_description' class='fakelink'>[<?php echo m("Album description"); ?>]</span> <span id='metadata_open_review' class='fakelink'>[<?php echo m("Album review"); ?>]</span> <span id='metadata_close' class='fakelink'>[<?php echo m("Close"); ?>]</span></p></div> | |
133 | <div id='sidebar_display'><p class='nomargin' id='sidebar_display_txt'> </p></div> | |
134 | ||
135 | <div id='pagination_options'><img class="pagination_options" src='' id='pagination_jump_current'/><img class="pagination_options" src='' id='pagination_follow_current'/></div> | |
136 | <?php if(get_config("pagination", "0")!="0") {?> | |
137 | <div id='pagination'><ul id='pagination_list'></ul></div> | |
138 | <div id='pagination_spacer'> </div> | |
139 | <?php } ?> | |
140 | ||
141 | </body> | |
142 | </html> |