summaryrefslogtreecommitdiff
path: root/templates/front.template
diff options
context:
space:
mode:
Diffstat (limited to 'templates/front.template')
-rw-r--r--templates/front.template216
1 files changed, 216 insertions, 0 deletions
diff --git a/templates/front.template b/templates/front.template
new file mode 100644
index 0000000..c66249f
--- /dev/null
+++ b/templates/front.template
@@ -0,0 +1,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">
+ <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>&nbsp;</td>
+ <td rowspan=3 width="100%">
+ %IFRAME%
+ </td>
+ </tr>
+ <tr>
+ <td height="100%" >
+ <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>&nbsp;-&nbsp;<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">&nbsp;-&nbsp;<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&nbsp;&nbsp;<input type="radio" name="scope" value="album">Albums&nbsp;&nbsp;<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&nbsp;&nbsp;<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&nbsp;&nbsp;<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 ">&nbsp;<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 ">&nbsp;<input type="submit" value=" Go " onClick="submitSimple()">
+ </small>
+ </td>
+ </tr>
+ </table>
+
+ <b>Popular Searches</b><br>
+
+ &nbsp;&#149;&nbsp;<a href="search.plx?searchFor=artist&filter=music,video,shortcut&output=artistlist" target="%TARGET%">Full Directory</a><br>
+ &nbsp;&#149;&nbsp;<a href="search.plx?searchFor=artist&filter=music,video,shortcut&scope=album&output=artistlist" target="%TARGET%">Album Directory</a><br>
+ &nbsp;&#149;&nbsp;<a href="search.plx?searchFor=artist&random=1&filter=music,video,shortcut&output=artistlist" target="%TARGET%">Random Artist</a><br>
+ &nbsp;&#149;&nbsp;<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 width=90% 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>