blob: 9b3a95b10cf00cfbe2826ffa029508a6c408e860 (
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
|
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="iso-8859-1" %>
<html><head>
<%@ include file="head.jsp" %>
<script type="text/javascript" src="<c:url value="/script/scripts.js"/>"></script>
<script type="text/javascript" src="<c:url value="/script/prototype.js"/>"></script>
<script type="text/javascript" language="javascript">
function enableLdapFields() {
var checkbox = $("ldap");
var table = $("ldapTable");
if (checkbox && checkbox.checked) {
table.show();
} else {
table.hide();
}
}
</script>
</head>
<body class="mainframe bgcolor1" onload="enableLdapFields()">
<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="advanced"/>
</c:import>
<form:form method="post" action="advancedSettings.view" commandName="command">
<table style="white-space:nowrap" class="indent">
<tr>
<td><fmt:message key="advancedsettings.downsamplecommand"/></td>
<td>
<form:input path="downsampleCommand" size="70"/>
<c:import url="helpToolTip.jsp"><c:param name="topic" value="downsamplecommand"/></c:import>
</td>
</tr>
<tr><td colspan="2"> </td></tr>
<tr>
<td><fmt:message key="advancedsettings.coverartlimit"/></td>
<td>
<form:input path="coverArtLimit" size="8"/>
<c:import url="helpToolTip.jsp"><c:param name="topic" value="coverartlimit"/></c:import>
</td>
</tr>
<tr>
<td><fmt:message key="advancedsettings.downloadlimit"/></td>
<td>
<form:input path="downloadLimit" size="8"/>
<c:import url="helpToolTip.jsp"><c:param name="topic" value="downloadlimit"/></c:import>
</td>
</tr>
<tr>
<td><fmt:message key="advancedsettings.uploadlimit"/></td>
<td>
<form:input path="uploadLimit" size="8"/>
<c:import url="helpToolTip.jsp"><c:param name="topic" value="uploadlimit"/></c:import>
</td>
</tr>
<tr>
<td><fmt:message key="advancedsettings.streamport"/></td>
<td>
<form:input path="streamPort" size="8"/>
<c:import url="helpToolTip.jsp"><c:param name="topic" value="streamport"/></c:import>
</td>
</tr>
<tr><td colspan="2"> </td></tr>
<tr>
<td colspan="2">
<form:checkbox path="ldapEnabled" id="ldap" cssClass="checkbox" onclick="javascript:enableLdapFields()"/>
<label for="ldap"><fmt:message key="advancedsettings.ldapenabled"/></label>
<c:import url="helpToolTip.jsp"><c:param name="topic" value="ldap"/></c:import>
</td>
</tr>
<tr><td colspan="2">
<table class="indent" id="ldapTable" style="padding-left:2em">
<tr>
<td><fmt:message key="advancedsettings.ldapurl"/></td>
<td colspan="3">
<form:input path="ldapUrl" size="70"/>
<c:import url="helpToolTip.jsp"><c:param name="topic" value="ldapurl"/></c:import>
</td>
</tr>
<tr>
<td><fmt:message key="advancedsettings.ldapsearchfilter"/></td>
<td colspan="3">
<form:input path="ldapSearchFilter" size="70"/>
<c:import url="helpToolTip.jsp"><c:param name="topic" value="ldapsearchfilter"/></c:import>
</td>
</tr>
<tr>
<td><fmt:message key="advancedsettings.ldapmanagerdn"/></td>
<td>
<form:input path="ldapManagerDn" size="20"/>
</td>
<td><fmt:message key="advancedsettings.ldapmanagerpassword"/></td>
<td>
<form:password path="ldapManagerPassword" size="20"/>
<c:import url="helpToolTip.jsp"><c:param name="topic" value="ldapmanagerdn"/></c:import>
</td>
</tr>
<tr>
<td colspan="5">
<form:checkbox path="ldapAutoShadowing" id="ldapAutoShadowing" cssClass="checkbox"/>
<label for="ldapAutoShadowing"><fmt:message key="advancedsettings.ldapautoshadowing"><fmt:param value="${command.brand}"/></fmt:message></label>
<c:import url="helpToolTip.jsp"><c:param name="topic" value="ldapautoshadowing"/></c:import>
</td>
</tr>
</table>
</td></tr>
<tr>
<td colspan="2" style="padding-top:1.5em">
<input type="submit" value="<fmt:message key="common.save"/>" style="margin-right:0.3em">
<input type="button" value="<fmt:message key="common.cancel"/>" onclick="location.href='nowPlaying.view'">
</td>
</tr>
</table>
</form:form>
<c:if test="${command.reloadNeeded}">
<script language="javascript" type="text/javascript">
parent.frames.left.location.href="left.view?";
parent.frames.playQueue.location.href="playQueue.view?";
</script>
</c:if>
</body></html>
|