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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
|
HTTP/1.0 200 OK
Content-Type:text/html
<html>
<head>
<meta value="platter" content="lots of lovely music and it's all free!">
<link rel="stylesheet" href="/platdoc/platter.css">
<meta value="dixon" content="am hammy twaart">
<link rel="search" type="application/opensearchdescription+xml" href="searchplugin.plx" title="Distroplat" />
<link rel="icon" href="/platdoc/img/searchplugin.png" type="image/png" />
<link rel="shortcut icon" href="/platdoc/img/searchplugin.png" type="image/png" />
<title>distroplat</title>
<script language="JavaScript">
<!--
function setCookie( name, value )
{
date = new Date();
date.setFullYear( date.getFullYear() + 1 );
newCookie = name + "=" + value + ";path=/; expires=" + date.toGMTString();
document.cookie = newCookie;
}
//-->
</script>
</head>
<body bgcolor="#%BGCOLOUR%">
<table border=0 cellpadding=2 cellspacing=0 width=100% height=100%>
<tr>
<td valign=top>
<img src="/platdoc/img/logo.gif">
<br><small><b>Headlines:</b>
%HEADLINES%
</small>
<h4>Welcome</h4>
<ol>
<li><a href="news.plx" target="%TARGET%"><b>Platter News</b></a></li>
<li><a href="servernews.plx" target="%TARGET%"><b>Server News</b></a></li>
<li><a href="settings.plx" target="%TARGET%"><b>Settings</b></a></li>
<li><a href="trawler.plx" target="%TARGET%"><b>Content Trawler</b></a></li>
</ol>
</td>
<td rowspan=3> </td>
<td rowspan=3 width=100% height=100%>
%IFRAME%
</td>
</tr>
<tr>
<td >
<table border=0 cellpadding=2 cellspacing=0 width=100% >
<tr valign="top">
<td>
<h3>Search</h3>
</td>
<td align="right" valign="bottom">
<small><a href="javascript:showSimple()">Simple</a> - <a href="javascript:showAdvanced()">Advanced</a></small>
</td>
</tr>
</table>
<table border=0 cellpadding=2 cellspacing=0 align=center>
<tr>
<td>
<form method="get" action="search.plx" target="%TARGET%" name="advanced" style="display:none">
<table>
<tr title="Enter all or part of an artist's name here">
<td>Artist: </td>
<td colspan=2><input type="text" name="artist" size=20></td>
</tr>
<tr title="Enter all or part of a track title here">
<td>Title: </td>
<td colspan=2><input type="text" name="title" size=20></td>
</tr>
<tr title="Enter all or part of an album title here">
<td>Album: </td>
<td colspan=2><input type="text" name="album" size=20></td>
</tr>
<tr title="Distroplat can narrow searches to a date range, but only for albums that the host has dated">
<td>Date Range: </td>
<td colspan=2><input type="text" name="dateFrom" size=4 value="1900"> - <input type="text" name="dateTo" size=4 value="2525"></td>
</tr>
<tr title="Albums only searches from tracks from albums, Misc only everything else">
<td>Scope: </td>
<td colspan=2><input type="radio" name="scope" value="all" checked>All <input type="radio" name="scope" value="album">Albums <input type="radio" name="scope" value="misc">Misc
</tr>
<tr title="Choose whether you want a list of matching tracks or artists">
<td>Search for: </td>
<td colspan=2><input type="radio" name="searchFor" value="artist" checked>Artists <input type="radio" name="searchFor" value="track">Tracks</td>
</tr>
<tr title="Choose whether you want your results returned as a web page, or straight to a playlist">
<td>Results: </td>
<td colspan=2><input type="radio" name="output" value="tracks" checked>Page <input type="radio" name="output" value="">Playlist</td>
</tr>
<tr title="Setting a number here will take that many random selections from your search results">
<td>Random: </td>
<td><select name="random">
<option value="0">
<option>1
<option>10
<option>20
<option>30
</select>
</td>
<td align="right" title="Search!">
<small>
<input type="hidden" name="filter" value="music,video,shortcut">
<input type="reset" value=" New "> <input type="submit" value=" Go ">
</small>
</td>
</tr>
</table>
</form>
<form method="get" action="search.plx" target="%TARGET%" name="simple">
<table>
<tr title="Enter all or part of an artist's name here">
<td>Artist: </td>
<td><input type="text" name="artist" size=20></td>
</tr>
<tr title="Enter all or part of a track title here">
<td>Title: </td>
<td><input type="text" name="title" size=20></td>
</tr>
<tr>
<td colspan=2 align="right" title="Search!">
<small>
<input type="hidden" name="filter" value="music,video,shortcut">
<input type="hidden" name="scope" value="all">
<input type="hidden" name="output" value="tracks">
<input type="hidden" name="searchFor" value="artist" checked>
<input type="reset" value=" New "> <input type="submit" value=" Go " onClick="submitSimple()">
</small>
</td>
</tr>
</table>
<b>Popular Searches</b><br>
• <a href="search.plx?searchFor=artist&filter=music,video,shortcut&output=artistlist" target="%TARGET%">Full Directory</a><br>
• <a href="search.plx?searchFor=artist&filter=music,video,shortcut&scope=album&output=artistlist" target="%TARGET%">Album Directory</a><br>
• <a href="search.plx?searchFor=artist&random=1&filter=music,video,shortcut&output=artistlist" target="%TARGET%">Random Artist</a><br>
• <a href="search.plx?searchFor=artist&random=1&filter=music,video,shortcut&scope=album&output=artistlist" target="%TARGET%">Random Artist <small>excluding misc</small></a><br>
Random Music Playlist:
<a href="search.plx?searchFor=track&random=10&filter=music">10</a>,
<a href="search.plx?searchFor=track&random=20&filter=music">20</a>,
<a href="search.plx?searchFor=track&random=30&filter=music">30</a>
</p>
</form>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td valign=bottom>
<small>%CUSTOM%
<hr size=1 color=white align=left>
Version: <b>%VERSION%</b><br>
User: <b>%USER%</b><br>
<a href="javascript:setCookie('target', '_top');location.reload();">Mobile</a></small>
</td>
</tr>
</table>
<script language="javascript">
<!--
ourCookies = document.cookie.split("; ");
for (var i=0; i < ourCookies.length; i++)
{
var ourCrumb = ourCookies[i].split("=");
if (ourCrumb.length == 2)
{
if (ourCrumb[0] == 'searchtype')
{
searchtype = ourCrumb[1];
if (searchtype == 'advanced') showAdvanced();
}
}
}
function setCookie( name, value )
{
date = new Date();
date.setFullYear( date.getFullYear() + 1 );
newCookie = name + "=" + value + ";path=/; expires=" + date.toGMTString();
document.cookie = newCookie;
}
function showSimple() {
document.forms[0].style.display="none";
document.forms[1].style.display="block";
setCookie('searchtype', 'simple');
}
function submitSimple() {
if (document.forms[1].title.value.length > 0)
document.forms[1].searchFor.value = 'track';
else
document.forms[1].searchFor.value = 'artist';
document.forms[1].submit();
}
function showAdvanced() {
document.forms[1].style.display="none";
document.forms[0].style.display="block";
setCookie('searchtype', 'advanced');
}
//-->
</script>
</body>
</html>
|