|
|
@ -5,6 +5,7 @@ |
|
|
|
<style type="text/css"> |
|
|
|
<style type="text/css"> |
|
|
|
#progressBar {width: 350px; height: 10px; border: 1px solid black; display:none;} |
|
|
|
#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;} |
|
|
|
#progressBarContent {width: 0; height: 10px; background: url("<c:url value="/icons/default_light/progress.png"/>") repeat;} |
|
|
|
|
|
|
|
#randomPlayQueue td { padding: 0 5px; } |
|
|
|
</style> |
|
|
|
</style> |
|
|
|
<script type="text/javascript" src="<c:url value="/dwr/interface/transferService.js"/>"></script> |
|
|
|
<script type="text/javascript" src="<c:url value="/dwr/interface/transferService.js"/>"></script> |
|
|
|
<script type="text/javascript" src="<c:url value="/dwr/engine.js"/>"></script> |
|
|
|
<script type="text/javascript" src="<c:url value="/dwr/engine.js"/>"></script> |
|
|
@ -52,12 +53,12 @@ |
|
|
|
<span style="vertical-align: middle"><fmt:message key="more.random.title"/></span> |
|
|
|
<span style="vertical-align: middle"><fmt:message key="more.random.title"/></span> |
|
|
|
</h2> |
|
|
|
</h2> |
|
|
|
|
|
|
|
|
|
|
|
<form method="post" action="randomPlayQueue.view?"> |
|
|
|
<form id="randomPlayQueue" method="post" action="randomPlayQueue.view?"> |
|
|
|
<table> |
|
|
|
<table> |
|
|
|
<tr> |
|
|
|
<tr> |
|
|
|
<td><fmt:message key="more.random.text"/></td> |
|
|
|
<td><fmt:message key="more.random.text"/></td> |
|
|
|
<td> |
|
|
|
<td> |
|
|
|
<select name="size"> |
|
|
|
<select style="width: 100%;" name="size"> |
|
|
|
<option value="10"><fmt:message key="more.random.songs"><fmt:param value="10"/></fmt:message></option> |
|
|
|
<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="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="30"><fmt:message key="more.random.songs"><fmt:param value="30"/></fmt:message></option> |
|
|
@ -66,22 +67,9 @@ |
|
|
|
<option value="100"><fmt:message key="more.random.songs"><fmt:param value="100"/></fmt:message></option> |
|
|
|
<option value="100"><fmt:message key="more.random.songs"><fmt:param value="100"/></fmt:message></option> |
|
|
|
</select> |
|
|
|
</select> |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
|
|
|
|
<tr> |
|
|
|
|
|
|
|
<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> |
|
|
|
|
|
|
|
</tr> |
|
|
|
|
|
|
|
<tr> |
|
|
|
|
|
|
|
<td><fmt:message key="more.random.year"/></td> |
|
|
|
<td><fmt:message key="more.random.year"/></td> |
|
|
|
<td> |
|
|
|
<td> |
|
|
|
<select name="year"> |
|
|
|
<select style="width: 100%;" name="year"> |
|
|
|
<option value="any"><fmt:message key="more.random.anyyear"/></option> |
|
|
|
<option value="any"><fmt:message key="more.random.anyyear"/></option> |
|
|
|
|
|
|
|
|
|
|
|
<c:forEach begin="0" end="${model.currentYear - 2010}" var="yearOffset"> |
|
|
|
<c:forEach begin="0" end="${model.currentYear - 2010}" var="yearOffset"> |
|
|
@ -102,16 +90,15 @@ |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<tr> |
|
|
|
<td><fmt:message key="more.random.songrating"/></td> |
|
|
|
<td><fmt:message key="more.random.genre"/></td> |
|
|
|
<td> |
|
|
|
<td> |
|
|
|
<select name="songRating"> |
|
|
|
<select style="width: 100%;" name="genre"> |
|
|
|
<option value="any" selected="selected"><fmt:message key="more.random.any"/></option> |
|
|
|
<option value="any"><fmt:message key="more.random.anygenre"/></option> |
|
|
|
<option value="starred"><fmt:message key="more.random.starred"/></option> |
|
|
|
<c:forEach items="${model.genres}" var="genre"> |
|
|
|
<option value="unstarred"><fmt:message key="more.random.unstarred"/></option> |
|
|
|
<option value="${genre.name}"><str:truncateNicely upper="20">${genre.name} (${genre.songCount})</str:truncateNicely></option> |
|
|
|
|
|
|
|
</c:forEach> |
|
|
|
</select> |
|
|
|
</select> |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
|
|
|
|
<tr> |
|
|
|
|
|
|
|
<td><fmt:message key="more.random.albumrating"/></td> |
|
|
|
<td><fmt:message key="more.random.albumrating"/></td> |
|
|
|
<td> |
|
|
|
<td> |
|
|
|
<select name="albumRatingComp"> |
|
|
|
<select name="albumRatingComp"> |
|
|
@ -133,11 +120,19 @@ |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<tr> |
|
|
|
|
|
|
|
<td><fmt:message key="more.random.songrating"/></td> |
|
|
|
|
|
|
|
<td> |
|
|
|
|
|
|
|
<select style="width: 100%;" name="songRating"> |
|
|
|
|
|
|
|
<option value="any" selected="selected"><fmt:message key="more.random.any"/></option> |
|
|
|
|
|
|
|
<option value="starred"><fmt:message key="more.random.starred"/></option> |
|
|
|
|
|
|
|
<option value="unstarred"><fmt:message key="more.random.unstarred"/></option> |
|
|
|
|
|
|
|
</select> |
|
|
|
|
|
|
|
</td> |
|
|
|
<td><fmt:message key="more.random.lastplayed"/></td> |
|
|
|
<td><fmt:message key="more.random.lastplayed"/></td> |
|
|
|
<td> |
|
|
|
<td> |
|
|
|
<select name="lastPlayedComp"> |
|
|
|
<select name="lastPlayedComp"> |
|
|
|
<option value="lt" selected="selected"><fmt:message key="more.random.before"/></option> |
|
|
|
<option value="lt" selected="selected"><</option> |
|
|
|
<option value="gt"><fmt:message key="more.random.after"/></option> |
|
|
|
<option value="gt">></option> |
|
|
|
</select> |
|
|
|
</select> |
|
|
|
<select name="lastPlayedValue"> |
|
|
|
<select name="lastPlayedValue"> |
|
|
|
<option value="any" selected="selected"><fmt:message key="more.random.any"/></option> |
|
|
|
<option value="any" selected="selected"><fmt:message key="more.random.any"/></option> |
|
|
@ -150,31 +145,42 @@ |
|
|
|
</select> |
|
|
|
</select> |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
|
|
|
|
<tr> |
|
|
|
|
|
|
|
<td><fmt:message key="more.random.folder"/></td> |
|
|
|
|
|
|
|
<td> |
|
|
|
|
|
|
|
<select style="width: 100%;" 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><fmt:message key="more.random.playcount"/></td> |
|
|
|
|
|
|
|
<td> |
|
|
|
|
|
|
|
<select name="playCountComp"> |
|
|
|
|
|
|
|
<option value="lt" selected="selected"><</option> |
|
|
|
|
|
|
|
<option value="gt">></option> |
|
|
|
|
|
|
|
</select> |
|
|
|
|
|
|
|
<input type="number" name="playCountValue"/> times |
|
|
|
|
|
|
|
</td> |
|
|
|
|
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<tr> |
|
|
|
<td><fmt:message key="more.random.format"/></td> |
|
|
|
<td><fmt:message key="more.random.format"/></td> |
|
|
|
<td> |
|
|
|
<td> |
|
|
|
<select name="format"> |
|
|
|
<select style="width: 100%;" name="format"> |
|
|
|
<option value="any" selected="selected"><fmt:message key="more.random.any"/></option> |
|
|
|
<option value="any" selected="selected"><fmt:message key="more.random.any"/></option> |
|
|
|
<option value="flac">FLAC</option> |
|
|
|
<option value="flac">FLAC</option> |
|
|
|
<option value="mp3">MP3</option> |
|
|
|
<option value="mp3">MP3</option> |
|
|
|
</select> |
|
|
|
</select> |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<td><fmt:message key="more.random.addtoplaylist"/></td> |
|
|
|
<tr> |
|
|
|
|
|
|
|
<td><fmt:message key="more.random.folder"/></td> |
|
|
|
|
|
|
|
<td> |
|
|
|
<td> |
|
|
|
<select name="musicFolderId"> |
|
|
|
<input name="addToPlaylist" value="true" type="checkbox"/> |
|
|
|
<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> |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<tr> |
|
|
|
<td colspan="2"> |
|
|
|
<td colspan="2"> |
|
|
|
<input type="submit" value="<fmt:message key="more.random.ok"/>"> |
|
|
|
<input type="submit" value="<fmt:message key="more.random.ok"/>"> |
|
|
|
<input type="checkbox" name="addToPlaylist" value="true"/> <fmt:message key="more.random.add"/> |
|
|
|
|
|
|
|
</td> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
<c:if test="${not model.clientSidePlaylist}"> |
|
|
|
<c:if test="${not model.clientSidePlaylist}"> |
|
|
|