%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/userSettings.jsp |
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="iso-8859-1"%> <%--@elvariable id="command" type="net.sourceforge.subsonic.command.UserSettingsCommand"--%> <html><head> <%@ include file="head.jsp" %> <%@ include file="jquery.jsp" %> <script type="text/javascript" src="<c:url value="/script/scripts-2.0.js"/>"></script> <script type="text/javascript"> function init() { enablePasswordChangeFields(); <c:if test="${command.reload}"> parent.frames.left.location.href="left.view?"; </c:if> } function enablePasswordChangeFields() { var changePasswordCheckbox = $("#passwordChange"); var ldapCheckbox = $("#ldapAuthenticated"); var passwordChangeTable = $("#passwordChangeTable"); var passwordChangeCheckboxTable = $("#passwordChangeCheckboxTable"); if (changePasswordCheckbox && changePasswordCheckbox.is(":checked") && (ldapCheckbox == null || !ldapCheckbox.is(":checked"))) { passwordChangeTable.show(); } else { passwordChangeTable.hide(); } if (changePasswordCheckbox) { if (ldapCheckbox && ldapCheckbox.is(":checked")) { passwordChangeCheckboxTable.hide(); } else { passwordChangeCheckboxTable.show(); } } } </script> </head> <body class="mainframe bgcolor1" onload="init()"> <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:set var="category" value="user"/> <c:set var="toast" value="${command.toast}"/> <%@ include file="settingsHeader.jsp" %> <table class="indent"> <tr> <td><b><fmt:message key="usersettings.title"/></b></td> <td> <select name="username" onchange="location='userSettings.view?userIndex=' + (selectedIndex - 1);"> <option value="">-- <fmt:message key="usersettings.newuser"/> --</option> <c:forEach items="${command.users}" var="user"> <option ${user.username eq command.username ? "selected" : ""} value="${fn:escapeXml(user.username)}">${fn:escapeXml(user.username)}</option> </c:forEach> </select> </td> </tr> </table> <p/> <form:form method="post" action="userSettings.view" commandName="command"> <c:if test="${not command.admin}"> <table> <tr> <td><form:checkbox path="adminRole" id="admin" cssClass="checkbox"/></td> <td><label for="admin"><fmt:message key="usersettings.admin"/></label></td> </tr> <tr> <td><form:checkbox path="settingsRole" id="settings" cssClass="checkbox"/></td> <td><label for="settings"><fmt:message key="usersettings.settings"/></label></td> </tr> <tr> <td style="padding-top:1em"><form:checkbox path="streamRole" id="stream" cssClass="checkbox"/></td> <td style="padding-top:1em"><label for="stream"><fmt:message key="usersettings.stream"/></label></td> </tr> <tr> <td><form:checkbox path="jukeboxRole" id="jukebox" cssClass="checkbox"/></td> <td><label for="jukebox"><fmt:message key="usersettings.jukebox"/></label></td> </tr> <tr> <td><form:checkbox path="downloadRole" id="download" cssClass="checkbox"/></td> <td><label for="download"><fmt:message key="usersettings.download"/></label></td> </tr> <tr> <td><form:checkbox path="uploadRole" id="upload" cssClass="checkbox"/></td> <td><label for="upload"><fmt:message key="usersettings.upload"/></label></td> </tr> <tr> <td><form:checkbox path="shareRole" id="share" cssClass="checkbox"/></td> <td><label for="share"><fmt:message key="usersettings.share"/></label></td> </tr> <tr> <td><form:checkbox path="coverArtRole" id="coverArt" cssClass="checkbox"/></td> <td><label for="coverArt"><fmt:message key="usersettings.coverart"/></label></td> </tr> <tr> <td><form:checkbox path="commentRole" id="comment" cssClass="checkbox"/></td> <td><label for="comment"><fmt:message key="usersettings.comment"/></label></td> </tr> <tr> <td><form:checkbox path="podcastRole" id="podcast" cssClass="checkbox"/></td> <td><label for="podcast"><fmt:message key="usersettings.podcast"/></label></td> </tr> <tr> <td><form:checkbox path="videoConversionRole" id="videoConversion" cssClass="checkbox"/></td> <td><label for="videoConversion"><fmt:message key="usersettings.videoconversion"/></label></td> </tr> </table> </c:if> <c:if test="${not empty command.allMusicFolders}"> <h2><fmt:message key="usersettings.folderaccess"/></h2> <div style="width:75%"> <c:forEach items="${command.allMusicFolders}" var="musicFolder"> <span style="white-space:nowrap"> <form:checkbox path="allowedMusicFolderIds" id="musicFolder${musicFolder.id}" value="${musicFolder.id}" cssClass="checkbox"/> <label for="musicFolder${musicFolder.id}" style="padding-right:1.5em">${musicFolder.name}</label> </span> </c:forEach> </div> </c:if> <table class="indent"> <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> <c:if test="${not command.transcodingSupported}"> <td class="warning"><fmt:message key="playersettings.notranscoder"/></td> </c:if> </tr> </table> <c:if test="${not command.newUser and not command.admin}"> <table class="indent"> <tr> <td><form:checkbox path="deleteUser" id="delete" cssClass="checkbox"/></td> <td><label for="delete"><fmt:message key="usersettings.delete"/></label></td> </tr> </table> </c:if> <c:if test="${command.ldapEnabled and not command.admin}"> <table> <tr> <td><form:checkbox path="ldapAuthenticated" id="ldapAuthenticated" cssClass="checkbox" onclick="enablePasswordChangeFields()"/></td> <td><label for="ldapAuthenticated"><fmt:message key="usersettings.ldap"/></label></td> <td><c:import url="helpToolTip.jsp"><c:param name="topic" value="ldap"/></c:import></td> </tr> </table> </c:if> <c:choose> <c:when test="${command.newUser}"> <table class="indent"> <tr> <td><fmt:message key="usersettings.username"/></td> <td><form:input path="username" cssStyle="width:15em"/></td> <td class="warning"><form:errors path="username" cssStyle="width:15em"/></td> </tr> <tr> <td><fmt:message key="usersettings.email"/></td> <td><form:input path="email" cssStyle="width:15em"/></td> <td class="warning"><form:errors path="email"/></td> </tr> <tr> <td><fmt:message key="usersettings.password"/></td> <td><form:password path="password" cssStyle="width:15em"/></td> <td class="warning"><form:errors path="password"/></td> </tr> <tr> <td><fmt:message key="usersettings.confirmpassword"/></td> <td><form:password path="confirmPassword" cssStyle="width:15em"/></td> <td/> </tr> </table> </c:when> <c:otherwise> <table id="passwordChangeCheckboxTable"> <tr> <td><form:checkbox path="passwordChange" id="passwordChange" onclick="enablePasswordChangeFields();" cssClass="checkbox"/></td> <td><label for="passwordChange"><fmt:message key="usersettings.changepassword"/></label></td> </tr> </table> <table id="passwordChangeTable" style="display:none"> <tr> <td><fmt:message key="usersettings.newpassword"/></td> <td><form:password path="password" id="path"/></td> <td class="warning"><form:errors path="password"/></td> </tr> <tr> <td><fmt:message key="usersettings.confirmpassword"/></td> <td><form:password path="confirmPassword" id="confirmPassword"/></td> <td/> </tr> </table> <table> <tr> <td><fmt:message key="usersettings.email"/></td> <td><form:input path="email" cssStyle="width:20em"/></td> <td class="warning"><form:errors path="email"/></td> </tr> </table> </c:otherwise> </c:choose> <input type="submit" value="<fmt:message key="common.save"/>" style="margin-top:1.5em;margin-right:0.3em"> <input type="button" value="<fmt:message key="common.cancel"/>" onclick="location.href='nowPlaying.view'" style="margin-top:1.5em"> </form:form> </body></html>