mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 23:13:00 +02:00
yWeb: move data from /src to /data
Origin commit data
------------------
Branch: ni/coolstream
Commit: 29847283ad
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-12-15 (Thu, 15 Dec 2016)
Origin message was:
------------------
- yWeb: move data from /src to /data
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
95
data/y-web/Y_Tools_Boxcontrol.yhtm
Normal file
95
data/y-web/Y_Tools_Boxcontrol.yhtm
Normal file
@@ -0,0 +1,95 @@
|
||||
{=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 standby(_standby){
|
||||
var _cec = (document.getElementById('checkCEC').checked == true) ? "on" : "off";
|
||||
goUrl("/control/standby?"+_standby+"&cec="+_cec);
|
||||
}
|
||||
//]]>
|
||||
</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");'/>
|
||||
CEC: <input id="checkCEC" name="checkCEC" type="checkbox" checked="checked"/>
|
||||
</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>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user