%PDF- %PDF-
Direktori : /proc/309157/root/home/waritko/subsonic/ROOT/WEB-INF/jsp/ |
Current File : //proc/309157/root/home/waritko/subsonic/ROOT/WEB-INF/jsp/more.jsp |
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="iso-8859-1"%> <html><head> <%@ include file="head.jsp" %> <style type="text/css"> body a {text-decoration: underline;} .more-header {padding-top: 1em; padding-bottom: 0.3em;} .more-shortcut {font-weight: 600; padding-left: 2em; padding-right: 0.5em;} .more-shortcut-descr {padding-left: 1em; padding-right: 3em; font-weight: 300;} #progressBar {width: 350px; height: 10px; border: 1px solid black; display:none;} #progressBarContent {width: 0; height: 10px; background: url("<c:url value="/icons/default_light/progress.png"/>") repeat;} </style> <script type="text/javascript" src="<c:url value="/dwr/engine.js"/>"></script> <script type="text/javascript" src="<c:url value="/dwr/util.js"/>"></script> <script type="text/javascript" src="<c:url value="/dwr/interface/transferService.js"/>"></script> <script type="text/javascript"> function refreshProgress() { transferService.getUploadInfo(updateProgress); } function updateProgress(uploadInfo) { var progressBar = document.getElementById("progressBar"); var progressBarContent = document.getElementById("progressBarContent"); var progressText = document.getElementById("progressText"); if (uploadInfo.bytesTotal > 0) { var percent = Math.ceil((uploadInfo.bytesUploaded / uploadInfo.bytesTotal) * 100); var width = parseInt(percent * 3.5) + 'px'; progressBarContent.style.width = width; progressText.innerHTML = percent + "<fmt:message key="more.upload.progress"/>"; progressBar.style.display = "block"; progressText.style.display = "block"; window.setTimeout("refreshProgress()", 1000); } else { progressBar.style.display = "none"; progressText.style.display = "none"; window.setTimeout("refreshProgress()", 5000); } } </script> </head> <body class="mainframe bgcolor1" onload="${model.user.uploadRole ? "refreshProgress()" : ""}"> <h1><fmt:message key="more.title"/></h1> <c:if test="${model.user.streamRole}"> <h2 class="more-header"><i class="fa fa-random fa-lg icon"></i> <fmt:message key="more.random.title"/></h2> <form method="post" action="randomPlayQueue.view?"> <table> <tr> <td><fmt:message key="more.random.text"/></td> <td> <select name="size"> <option value="10"><fmt:message key="more.random.songs"><fmt:param value="10"/></fmt:message></option> <option value="20" selected><fmt:message key="more.random.songs"><fmt:param value="20"/></fmt:message></option> <option value="30"><fmt:message key="more.random.songs"><fmt:param value="30"/></fmt:message></option> <option value="40"><fmt:message key="more.random.songs"><fmt:param value="40"/></fmt:message></option> <option value="50"><fmt:message key="more.random.songs"><fmt:param value="50"/></fmt:message></option> </select> </td> <td><fmt:message key="more.random.genre"/></td> <td> <select name="genre"> <option value="any"><fmt:message key="more.random.anygenre"/></option> <c:forEach items="${model.genres}" var="genre"> <option value="${genre.name}"><str:truncateNicely upper="20">${genre.name} (${genre.songCount})</str:truncateNicely></option> </c:forEach> </select> </td> <td><fmt:message key="more.random.year"/></td> <td> <select name="year"> <option value="any"><fmt:message key="more.random.anyyear"/></option> <c:forEach begin="0" end="${model.currentYear - 2010}" var="yearOffset"> <c:set var="year" value="${model.currentYear - yearOffset}"/> <option value="${year} ${year}">${year}</option> </c:forEach> <option value="2015 2020">2015 – 2020</option> <option value="2010 2015">2010 – 2015</option> <option value="2005 2010">2005 – 2010</option> <option value="2000 2005">2000 – 2005</option> <option value="1990 2000">1990 – 2000</option> <option value="1980 1990">1980 – 1990</option> <option value="1970 1980">1970 – 1980</option> <option value="1960 1970">1960 – 1970</option> <option value="1950 1960">1950 – 1960</option> <option value="0 1949">< 1950</option> </select> </td> <td><fmt:message key="more.random.folder"/></td> <td> <select name="musicFolderId"> <option value="-1"><fmt:message key="more.random.anyfolder"/></option> <c:forEach items="${model.musicFolders}" var="musicFolder"> <option value="${musicFolder.id}">${musicFolder.name}</option> </c:forEach> </select> </td> <td> <input type="submit" value="<fmt:message key="more.random.ok"/>"> </td> </tr> <c:if test="${not model.clientSidePlaylist}"> <tr> <td colspan="9"> <input type="checkbox" name="autoRandom" id="autoRandom" class="checkbox"/> <label for="autoRandom"><fmt:message key="more.random.auto"/></label> </td> </tr> </c:if> </table> </form> </c:if> <a href="http://subsonic.org/pages/apps.jsp" target="_blank"><img alt="Apps" src="<c:url value="/icons/default_light/apps.png"/>" style="float: right;margin-left: 3em; margin-right: 3em"/></a> <h2 class="more-header"><i class="fa fa-android fa-lg icon"></i> <fmt:message key="more.apps.title"/></h2> <fmt:message key="more.apps.text"/> <a href="<c:url value="${model.jamstashUrl}"/>" target="_blank"> <img alt="Jamstash" src="<c:url value="/icons/default_light/jamstash.png"/>" style="float: right;margin-left: 3em; margin-right: 3em"/> </a> <h2 class="more-header"><i class="fa fa-html5 fa-lg icon"></i> <fmt:message key="more.jamstash.title"/></h2> <fmt:message key="more.jamstash.text"><fmt:param>${model.jamstashUrl}</fmt:param></fmt:message> <h2 class="more-header"><i class="fa fa-area-chart fa-lg icon"></i> <fmt:message key="more.status.title"/></h2> <fmt:message key="more.status.text"/> <a name="shortcuts"></a> <h2 class="more-header"><i class="fa fa-keyboard-o fa-lg icon"></i> <fmt:message key="more.keyboard.title"/></h2> <table class="indent music" style="width:inherit"> <tr> <th colspan="2" class="center"><fmt:message key="more.keyboard.playback"/></th> <th colspan="2" class="center"><fmt:message key="more.keyboard.navigation"/></th> <th colspan="2" class="center"><fmt:message key="more.keyboard.general"/></th> </tr> <tr> <td class="more-shortcut">Space</td><td class="more-shortcut-descr"><fmt:message key="more.keyboard.playpause"/></td> <td class="more-shortcut">g <fmt:message key="more.keyboard.then"/> h</td><td class="more-shortcut-descr"><fmt:message key="more.keyboard.home"/></td> <td class="more-shortcut">/</td><td class="more-shortcut-descr"><fmt:message key="more.keyboard.search"/></td> </tr> <tr> <td class="more-shortcut"><i class="fa fa-long-arrow-left"></i></td><td class="more-shortcut-descr"><fmt:message key="more.keyboard.previous"/></td> <td class="more-shortcut">g <fmt:message key="more.keyboard.then"/> i</td><td class="more-shortcut-descr"><fmt:message key="more.keyboard.index"/></td> <td class="more-shortcut">m</td><td class="more-shortcut-descr"><fmt:message key="more.keyboard.sidebar"/></td> </tr> <tr> <td class="more-shortcut"><i class="fa fa-long-arrow-right"></i></td><td class="more-shortcut-descr"><fmt:message key="more.keyboard.next"/></td> <td class="more-shortcut">g <fmt:message key="more.keyboard.then"/> p</td><td class="more-shortcut-descr"><fmt:message key="more.keyboard.playlists"/></td> <td class="more-shortcut">q</td><td class="more-shortcut-descr"><fmt:message key="more.keyboard.playqueue"/></td> </tr> <tr> <td class="more-shortcut">Shift <i class="fa fa-long-arrow-left"></i></td><td class="more-shortcut-descr"><fmt:message key="more.keyboard.seekbackward"/></td> <td class="more-shortcut">g <fmt:message key="more.keyboard.then"/> o</td><td class="more-shortcut-descr"><fmt:message key="more.keyboard.podcasts"/></td> <td class="more-shortcut">l</td><td class="more-shortcut-descr"><fmt:message key="more.keyboard.listgrid"/></td> </tr> <tr> <td class="more-shortcut">Shift <i class="fa fa-long-arrow-right"></i></td><td class="more-shortcut-descr"><fmt:message key="more.keyboard.seekforward"/></td> <td class="more-shortcut">g <fmt:message key="more.keyboard.then"/> s</td><td class="more-shortcut-descr"><fmt:message key="more.keyboard.settings"/></td> <td class="more-shortcut">?</td><td class="more-shortcut-descr"><fmt:message key="more.keyboard.shortcuts"/></td> </tr> <tr> <td class="more-shortcut">–</td><td class="more-shortcut-descr"><fmt:message key="more.keyboard.volumedown"/></td> <td class="more-shortcut">g <fmt:message key="more.keyboard.then"/> d</td><td class="more-shortcut-descr"><fmt:message key="more.keyboard.radio"/></td> <td></td><td></td> </tr> <tr> <td class="more-shortcut">+</td><td class="more-shortcut-descr"><fmt:message key="more.keyboard.volumeup"/></td> <td class="more-shortcut">g <fmt:message key="more.keyboard.then"/> b</td><td class="more-shortcut-descr"><fmt:message key="more.keyboard.bookmarks"/></td> <td></td><td></td> </tr> <tr> <td class="more-shortcut">*</td><td class="more-shortcut-descr"><fmt:message key="more.keyboard.star"/></td> <td class="more-shortcut">g <fmt:message key="more.keyboard.then"/> t</td><td class="more-shortcut-descr"><fmt:message key="more.keyboard.starred"/></td> <td></td><td></td> </tr> <tr> <td></td><td></td> <td class="more-shortcut">g <fmt:message key="more.keyboard.then"/> r</td><td class="more-shortcut-descr"><fmt:message key="more.keyboard.more"/></td> <td></td><td></td> </tr> <tr> <td></td><td></td> <td class="more-shortcut">g <fmt:message key="more.keyboard.then"/> a</td><td class="more-shortcut-descr"><fmt:message key="more.keyboard.about"/></td> <td></td><td></td> </tr> <tr> <td></td><td></td> <td class="more-shortcut">i <fmt:message key="more.keyboard.then"/> a, b, c …</td><td class="more-shortcut-descr"><fmt:message key="more.keyboard.indexletter"/></td> <td></td><td></td> </tr> </table> <h2 class="more-header"><i class="fa fa-rss fa-lg icon"></i> <fmt:message key="more.podcast.title"/></h2> <fmt:message key="more.podcast.text"/> <c:if test="${model.user.uploadRole}"> <h2 class="more-header"><i class="fa fa-upload fa-lg icon"></i> <fmt:message key="more.upload.title"/></h2> <form method="post" enctype="multipart/form-data" action="upload.view"> <table> <tr> <td><fmt:message key="more.upload.source"/></td> <td colspan="2"><input type="file" id="file" name="file" size="40"/></td> </tr> <tr> <td><fmt:message key="more.upload.target"/></td> <td><input type="text" id="dir" name="dir" size="37" value="${model.uploadDirectory}"/></td> <td><input type="submit" value="<fmt:message key="more.upload.ok"/>"/></td> </tr> <tr> <td colspan="2"> <input type="checkbox" checked name="unzip" id="unzip" class="checkbox"/> <label for="unzip"><fmt:message key="more.upload.unzip"/></label> </td> </tr> </table> </form> <p class="detail" id="progressText"></p> <div id="progressBar"> <div id="progressBarContent"></div> </div> </c:if> <div style="padding-top: 3em"></div> </body></html>