blob: 3381c3a862b2ec59158dea43f2ea2eac1ec233c9 (
plain)
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
|
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="iso-8859-1" %>
<%--@elvariable id="command" type="net.sourceforge.subsonic.command.PlayerSettingsCommand"--%>
<html><head>
<%@ include file="head.jsp" %>
<script type="text/javascript" src="<c:url value="/script/scripts.js"/>"></script>
</head>
<body class="mainframe bgcolor1">
<script type="text/javascript" src="<c:url value="/script/wz_tooltip.js"/>"></script>
<script type="text/javascript" src="<c:url value="/script/tip_balloon.js"/>"></script>
<c:import url="settingsHeader.jsp">
<c:param name="cat" value="player"/>
<c:param name="restricted" value="${not command.admin}"/>
</c:import>
<fmt:message key="common.unknown" var="unknown"/>
<c:choose>
<c:when test="${empty command.players}">
<p><fmt:message key="playersettings.noplayers"/></p>
</c:when>
<c:otherwise>
<c:url value="playerSettings.view" var="deleteUrl">
<c:param name="delete" value="${command.playerId}"/>
</c:url>
<c:url value="playerSettings.view" var="cloneUrl">
<c:param name="clone" value="${command.playerId}"/>
</c:url>
<table class="indent">
<tr>
<td><b><fmt:message key="playersettings.title"/></b></td>
<td>
<select name="player" onchange="location='playerSettings.view?id=' + options[selectedIndex].value;">
<c:forEach items="${command.players}" var="player">
<option ${player.id eq command.playerId ? "selected" : ""}
value="${player.id}">${player.description}</option>
</c:forEach>
</select>
</td>
</tr>
<tr>
<td style="padding-right:1em"><div class="forward"><a href="${deleteUrl}"><fmt:message key="playersettings.forget"/></a></div></td>
<td><div class="forward"><a href="${cloneUrl}"><fmt:message key="playersettings.clone"/></a></div></td>
</tr>
</table>
<form:form commandName="command" method="post" action="playerSettings.view">
<form:hidden path="playerId"/>
<table class="ruleTable indent">
<c:forEach items="${command.technologyHolders}" var="technologyHolder">
<c:set var="technologyName">
<fmt:message key="playersettings.technology.${fn:toLowerCase(technologyHolder.name)}.title"/>
</c:set>
<tr>
<td class="ruleTableHeader">
<form:radiobutton id="radio-${technologyName}" path="technologyName" value="${technologyHolder.name}"/>
<b><label for="radio-${technologyName}">${technologyName}</label></b>
</td>
<td class="ruleTableCell" style="width:40em">
<fmt:message key="playersettings.technology.${fn:toLowerCase(technologyHolder.name)}.text"/>
</td>
</tr>
</c:forEach>
</table>
<table class="indent" style="border-spacing:3pt">
<tr>
<td><fmt:message key="playersettings.type"/></td>
<td colspan="3">
<c:choose>
<c:when test="${empty command.type}">${unknown}</c:when>
<c:otherwise>${command.type}</c:otherwise>
</c:choose>
</td>
</tr>
<tr>
<td><fmt:message key="playersettings.lastseen"/></td>
<td colspan="3"><fmt:formatDate value="${command.lastSeen}" type="both" dateStyle="long" timeStyle="medium"/></td>
</tr>
<tr>
<td colspan="4"> </td>
</tr>
<tr>
<td><fmt:message key="playersettings.name"/></td>
<td><form:input path="name" size="16"/></td>
<td colspan="2"><c:import url="helpToolTip.jsp"><c:param name="topic" value="playername"/></c:import></td>
</tr>
<tr>
<td><fmt:message key="playersettings.coverartsize"/></td>
<td>
<form:select path="coverArtSchemeName" cssStyle="width:8em">
<c:forEach items="${command.coverArtSchemeHolders}" var="coverArtSchemeHolder">
<c:set var="coverArtSchemeName">
<fmt:message key="playersettings.coverart.${fn:toLowerCase(coverArtSchemeHolder.name)}"/>
</c:set>
<form:option value="${coverArtSchemeHolder.name}" label="${coverArtSchemeName}"/>
</c:forEach>
</form:select>
</td>
<td colspan="2"><c:import url="helpToolTip.jsp"><c:param name="topic" value="cover"/></c:import></td>
</tr>
<tr>
<td><fmt:message key="playersettings.maxbitrate"/></td>
<td>
<form:select path="transcodeSchemeName" cssStyle="width:8em">
<c:forEach items="${command.transcodeSchemeHolders}" var="transcodeSchemeHolder">
<form:option value="${transcodeSchemeHolder.name}" label="${transcodeSchemeHolder.description}"/>
</c:forEach>
</form:select>
</td>
<td>
<c:import url="helpToolTip.jsp"><c:param name="topic" value="transcode"/></c:import>
</td>
<td class="warning">
<c:if test="${not command.transcodingSupported}">
<fmt:message key="playersettings.nolame"/>
</c:if>
</td>
</tr>
</table>
<table class="indent" style="border-spacing:3pt">
<tr>
<td>
<form:checkbox path="dynamicIp" id="dynamicIp" cssClass="checkbox"/>
<label for="dynamicIp"><fmt:message key="playersettings.dynamicip"/></label>
</td>
<td><c:import url="helpToolTip.jsp"><c:param name="topic" value="dynamicip"/></c:import></td>
</tr>
<tr>
<td>
<form:checkbox path="autoControlEnabled" id="autoControlEnabled" cssClass="checkbox"/>
<label for="autoControlEnabled"><fmt:message key="playersettings.autocontrol"/></label>
</td>
<td><c:import url="helpToolTip.jsp"><c:param name="topic" value="autocontrol"/></c:import></td>
</tr>
</table>
<c:if test="${not empty command.allTranscodings}">
<table class="indent">
<tr><td><b><fmt:message key="playersettings.transcodings"/></b></td></tr>
<c:forEach items="${command.allTranscodings}" var="transcoding" varStatus="loopStatus">
<c:if test="${loopStatus.count % 3 == 1}"><tr></c:if>
<td style="padding-right:2em">
<form:checkbox path="activeTranscodingIds" id="transcoding${transcoding.id}" value="${transcoding.id}" cssClass="checkbox"/>
<label for="transcoding${transcoding.id}">${transcoding.name}</label>
</td>
<c:if test="${loopStatus.count % 3 == 0 or loopStatus.count eq fn:length(command.allTranscodings)}"></tr></c:if>
</c:forEach>
</table>
</c:if>
<input type="submit" value="<fmt:message key="common.save"/>" style="margin-top:1em;margin-right:0.3em">
<input type="button" value="<fmt:message key="common.cancel"/>" style="margin-top:1em" onclick="location.href='nowPlaying.view'">
</form:form>
</c:otherwise>
</c:choose>
<c:if test="${command.reloadNeeded}">
<script language="javascript" type="text/javascript">parent.frames.playQueue.location.href="playQueue.view?"</script>
</c:if>
</body></html>
|