mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 15:02:56 +02:00
Your reaction to this commit were remarkable. You demanded with an imperious kind to revert this commit. You spoke about any rules only, and I didn't hear evidencing explanations from you. Admittedly, my commit wasn't very pretty and not the best style because everything was squashed in a single commit with some customizations, but which is ultimately just a formality... that's about it, and was quite compliant with license conditions. In additional, your name was noted on the commit. I'm just reminding you, until a few years ago, you didn't care about licenses. The general copyright mainly lies with yjogol and a lot of changes of the origin yweb code has been coming in by several committers since yweb exists. I won't judge, whether any unique selling points play a role, but such restrictions are exactly what the license should prevent. Especially as, many creeped in brandings in some code parts (not only yweb) do suggest that. Besides neutralizing such things, mainly it was the purpose to get more compatibility, even though some functionalities were removed or switched off. Related to yweb I have decided to take back this commit for the sake of peace, and I hope you are happy with it. However, I still reserve to continue using and adopting yweb.
123 lines
4.6 KiB
Plaintext
123 lines
4.6 KiB
Plaintext
{=var-set:cancache=yPyes=}
|
|
{=include-block:Y_Blocks.txt;head=}
|
|
<script type="text/javascript" src="/Y_Baselib.js"></script>
|
|
<script type="text/javascript" src="/prototype.js"></script>
|
|
<script type="text/javascript">
|
|
//<![CDATA[
|
|
function goConfirmUrl(_meld, _url){
|
|
if (confirm(_meld)==true) goUrl(_url);
|
|
}
|
|
function goUrl(_url){
|
|
var res = trim(loadSyncURL(_url));
|
|
switch(res){
|
|
case "1": res="on"; break;
|
|
case "0": res="off"; break;
|
|
}
|
|
$("out").update(res);
|
|
}
|
|
function set_btn_standby(){
|
|
var res = trim(loadSyncURL("/control/standby"));
|
|
var color = "red";
|
|
switch(res){
|
|
case "off": color = "green"; break;
|
|
}
|
|
$("btn_standby").setStyle({borderColor: color});
|
|
}
|
|
function standby(_standby){
|
|
var _cec = (document.getElementById('checkCEC').checked == true) ? "on" : "off";
|
|
goUrl("/control/standby?"+_standby+"&cec="+_cec);
|
|
}
|
|
function init() {
|
|
set_btn_standby();
|
|
}
|
|
function get_data() {
|
|
set_btn_standby();
|
|
}
|
|
//]]>
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<div class="work_box">
|
|
<div class="work_box_head"><div class="work_box_head_h2">
|
|
{=var-set:help_url=Help-BoxControl-Control=}{=var-set:menu={=L:bc.menue.control=}=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
|
|
<div class="work_box_body">
|
|
<form action="">
|
|
<table class="y_invisible_table" cellpadding="5" width="100%">
|
|
<tr><td class="y_form_header">{=L:bc.control.box=}</td><td class="y_form_header">{=L:bc.control.standby_mode=}</td></tr>
|
|
<tr>
|
|
<td>
|
|
<input type="button" value="{=L:bc.control.reboot=}" onclick='goUrl("/control/exec?Y_Tools&yreboot");'/>
|
|
<input type="button" value="{=L:bc.control.shutdown=}" onclick='goConfirmUrl("{=L:bc.control.shutdown.ask=}","/control/shutdown");'/>
|
|
</td>
|
|
<td>
|
|
<input type="button" value="{=L:on=}" onclick='standby("on");'/>
|
|
<input type="button" value="{=L:off=}" onclick='standby("off");'/>
|
|
<input type="button" value="{=L:bc.control.status=}" onclick='goUrl("/control/standby");' id="btn_standby"/>
|
|
CEC: <input id="checkCEC" name="checkCEC" type="checkbox" checked="checked"/>
|
|
</td>
|
|
</tr>
|
|
<tr><td class="y_form_header">{=L:neutrino=}</td><td class="y_form_header"> <!-- just a placeholder --></td></tr>
|
|
<td>
|
|
<input type="button" value="{=L:bc.control.restart=}" onclick='goUrl("/control/restart");'/>
|
|
</td>
|
|
<td>
|
|
<!-- just a placeholder -->
|
|
</td>
|
|
</tr>
|
|
<tr><td class="y_form_header">{=L:bc.control.playback=}</td><td class="y_form_header">{=L:bc.control.recording_mode=}</td></tr>
|
|
<tr>
|
|
<td>
|
|
<input type="button" value="{=L:on=}" onclick='goUrl("/control/zapto?startplayback");'/>
|
|
<input type="button" value="{=L:off=}" onclick='goUrl("/control/zapto?stopplayback");'/>
|
|
<input type="button" value="{=L:bc.control.status=}" onclick='goUrl("/control/zapto?statusplayback");'/>
|
|
</td>
|
|
<td>
|
|
<input type="button" value="{=L:on=}" onclick='goUrl("/control/setmode?record=start");'/>
|
|
{=comment:disable non-working rec off button~
|
|
<input type="button" value="{=L:off=}" onclick='goUrl("/control/setmode?record=stop");'/>
|
|
=}
|
|
<input type="button" value="{=L:bc.control.status=}" onclick='goUrl("/control/setmode?status");'/>
|
|
</td>
|
|
</tr>
|
|
<tr><td class="y_form_header">{=L:bc.control.epg_sectiond=}</td><td class="y_form_header"> <!-- just a placeholder --></td></tr>
|
|
<tr>
|
|
<td>
|
|
<input type="button" value="{=L:on=}" onclick='goUrl("/control/zapto?startsectionsd");'/>
|
|
<input type="button" value="{=L:off=}" onclick='goUrl("/control/zapto?stopsectionsd");'/>
|
|
<input type="button" value="{=L:bc.control.status=}" onclick='goUrl("/control/zapto?statussectionsd");'/>
|
|
</td>
|
|
<td>
|
|
<!-- just a placeholder -->
|
|
</td>
|
|
</tr>
|
|
<tr><td class="y_form_header">{=L:bc.control.remote=}</td><td class="y_form_header">{=L:bc.control.live_lock=}</td></tr>
|
|
<tr>
|
|
<td>
|
|
<input type="button" value="{=L:on=}" onclick='goUrl("/control/rc?unlock");'/>
|
|
<input type="button" value="{=L:off=}" onclick='goUrl("/control/rc?lock");'/>
|
|
<input type="button" value="{=L:bc.control.status=}" onclick='goUrl("/control/rc?status");'/>
|
|
</td>
|
|
<td>
|
|
<input type="button" value="{=L:bc.control.lock=}" onclick='live_lock();' />
|
|
<input type="button" value="{=L:bc.control.unlock=}" onclick='live_unlock();' />
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<div class="work_box">
|
|
<div class="work_box_head"><div class="work_box_head_h2">
|
|
{=var-set:help_url=Help-BoxControl-Control=}{=var-set:menu={=L:answer=}=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
|
|
<div class="work_box_body">
|
|
<div id="out"></div>
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
//<![CDATA[
|
|
init();
|
|
window.setInterval("get_data();",5000);
|
|
//]]>
|
|
</body>
|
|
</html>
|