1<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="iso-8859-1" %> 2<html><head> 3 <%@ include file="head.jsp" %> 4 <%@ include file="jquery.jsp" %> 5 <link href="<c:url value="/style/customScrollbar.css"/>" rel="stylesheet"> 6 7 <script type="text/javascript" language="javascript"> 8 function enableNodesFields() { 9 $("#nodesServiceEnabled").is(":checked") ? $("#nodesTable").show() : $("#nodesTable").hide(); 10 $("#nodesServiceEnabled").is(":checked") ? $("#refreshButton").show() : $("#refreshButton").hide(); 11 } 12 function send2Nodes(url) { 13 parent.playQueue.onSendToNode(url); 14 } 15 function configNode(url) { 16 parent.playQueue.onConfigNode(url); 17 } 18 function controlNode(url, command) { 19 parent.playQueue.onControlNode(url, command); 20 } 21 </script> 22 23</head> 24<style> 25.offline { 26 background-color:red; 27 padding-left:14px; 28 padding-right:14px; 29 border-radius:5px; 30} 31.online { 32 background-color:green; 33 padding-left:14px; 34 padding-right:14px; 35 border-radius:5px; 36} 37 38input[type=button],input[type=submit] { 39 min-width:60px !important; 40} 41</style> 42<body class="mainframe bgcolor1" onload="enableNodesFields()"> 43 44<div id="content_main" class="content_main"> 45<!-- CONTENT --> 46 47<script type="text/javascript" src="<c:url value="/script/wz_tooltip.js"/>"></script> 48<script type="text/javascript" src="<c:url value="/script/tip_balloon.js"/>"></script> 49 50<c:import url="settingsHeader.jsp"> 51 <c:param name="cat" value="node"/> 52 <c:param name="toast" value="${model.reload}"/> 53</c:import> 54<br> 55<form method="post" action="nodeSettings.view"> 56 <br> 57 <div> 58 <input type="checkbox" name="nodesServiceEnabled" id="nodesServiceEnabled" onclick="enableNodesFields()" class="checkbox" 59 <c:if test="${model.nodesServiceEnabled}">checked="checked"</c:if>/> 60 <label for="nodesServiceEnabled"><fmt:message key="nodes.enabled"/></label> 61 <c:import url="helpToolTip.jsp"><c:param name="topic" value="nodeservice"/></c:import> 62 </div> 63 <br> 64 <p class="detail" style="width:60%;white-space:normal"> 65 <fmt:message key="nodes.description"/> 66 </p> 67 68 <table class="indent" id="nodesTable" > 69 <tr> 70 <th colspan="${empty model.nodes ? 0 : 8}" style="padding-left:1em"></th> 71 <th><fmt:message key="nodesettings.url"/></th> 72 <th><fmt:message key="nodesettings.name"/></th> 73 <th style="padding-left:15px"><fmt:message key="nodesettings.online"/></th> 74 <th style="padding-left:5px"><fmt:message key="nodesettings.enabled"/></th> 75 <th style="padding-left:5px"><fmt:message key="common.delete"/></th> 76 </tr> 77 <c:forEach items="${model.nodes}" var="node"> 78 <tr> 79 <td><input type="submit" name="open[${node.id}]" value="open" onclick="window.open('${node.url}','_blank')"/></td> 80 <td><input type="button" name="start[${node.id}]" value="start" onclick="controlNode('${node.url}','start')"/></td> 81 <td><input type="button" name="pause[${node.id}]" value="pause" onclick="controlNode('${node.url}', 'pause')"/></td> 82 <td><input type="button" name="resume[${node.id}]" value="resume" onclick="controlNode('${node.url}', 'resume')"/></td> 83 <td><input type="button" name="skip[${node.id}]" value="skip" onclick="controlNode('${node.url}', 'skip')"/></td> 84 <td><input type="button" name="stop[${node.id}]" value="stop" onclick="controlNode('${node.url}', 'stop')"/></td> 85 <td><input type="button" name="transfer[${node.id}]" value="transfer" onclick="send2Nodes('${node.url}')"/></td> 86 <td><input type="button" name="config[${node.id}]" value="config" onclick="configNode('${node.url}')"/></td> 87 <td><input type="text" name="url[${node.id}]" size="25" value="${node.url}"/></td> 88 <td style="padding-right:10px"><input type="text" name="name[${node.id}]" size="20" value="${node.name}"/></td> 89 <td align="center" class=${node.online ? "online" : "offline"}><input disabled type="checkbox" ${node.online ? "checked" : ""} name="online[${node.id}]" class="checkbox"/></td> 90 <td align="center" class=${node.enabled ? "online" : "offline"}><input type="checkbox" ${node.enabled ? "checked" : ""} name="enabled[${node.id}]" class="checkbox"/></td> 91 <td align="center" style="padding-left:1em"><input type="checkbox" name="delete[${node.id}]" class="checkbox"/></td> 92 </tr> 93 </c:forEach> 94 95 <c:if test="${not empty model.nodes}"> 96 <tr> 97 <th colspan="${empty model.nodes ? 0 : 8}" style="padding-left:1em"></th> 98 <th align="left" style="padding-top:1em"><fmt:message key="nodesettings.add"/></th> 99 </tr> 100 </c:if> 101 <tr> 102 <td colspan="${empty model.nodes ? 0 : 8}"> </td> 103 <td ><input type="text" name="url" size="25" placeholder="<fmt:message key="nodesettings.url"/>"/></td> 104 <td><input type="text" name="name" size="20" placeholder="<fmt:message key="nodesettings.name"/>"/></td> 105 <td align="center" class="online"><input name="online" checked type="checkbox" class="checkbox"/></td> 106 <td align="center" class="online"><input name="enabled" checked type="checkbox" class="checkbox"/></td> 107 <td/> 108 </tr> 109 <tr> 110 111 <td style="padding-top:1.5em" colspan="${empty model.nodes ? 0 : 8}"></td> 112 </tr> 113 </table> 114 115 <c:set var="licenseInfo" value="${model.licenseInfo}"/> 116 <%@ include file="licenseNotice.jsp" %> 117 118 <br> 119 <input type="submit" value="<fmt:message key="common.save"/>" style="margin-left:3px" /> 120 <input type="button" value="<fmt:message key="common.cancel"/>" onclick="location.href='nowPlaying.view'" /> 121 <input type="button" value="refresh" name="refreshButton" id="refreshButton" onclick="location.href='nodeSettings.view?'" /> 122 123</form> 124 125<c:if test="${not empty model.error}"> 126 <p class="warning"><fmt:message key="${model.error}"/></p> 127</c:if> 128 129<!-- CONTENT --> 130</div> 131 132</body></html>