mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 23:13:00 +02:00
Origin commit data
------------------
Commit: 9604d04d00
Author: vanhofen <vanhofen@gmx.de>
Date: 2018-11-01 (Thu, 01 Nov 2018)
Origin message was:
------------------
- vusolo4k: simplify and unify code from commit 59f48036674e482236336f18b440189e83bd013b
206 lines
7.4 KiB
Plaintext
206 lines
7.4 KiB
Plaintext
{=include-block:Y_Blocks.txt;management_check_top=}
|
|
{=include-block:Y_Blocks.txt;head=}
|
|
<script type="text/javascript" src="/Y_Baselib.js"></script>
|
|
<script type="text/javascript">
|
|
//<![CDATA[
|
|
function do_submit(){
|
|
show_waitbox(true);
|
|
do_reload = false;
|
|
style_new = document.f.style.value;
|
|
if (style_old != style_new)
|
|
{
|
|
do_reload = true;
|
|
loadSyncURL("/control/exec?Y_Tools&style_set&" + style_new);
|
|
}
|
|
yhttpd_cache_clear("");
|
|
document.f.submit();
|
|
if (do_reload == true)
|
|
{
|
|
alert("Style changed. Maybe you'll have to reload this site.");
|
|
/* ugly mess */
|
|
top.top_main.prim_menu.location.reload();
|
|
top.top_main.base.sec_menu.location.reload();
|
|
//FIXME top.top_main.base.work.location.reload();
|
|
top.top_left.location.reload();
|
|
top.top_right.location.reload();
|
|
}
|
|
}
|
|
function do_init(){
|
|
val = "{=ini-get:%(CONFIGDIR)/Y-Web.conf;fb;0~open=}";
|
|
var sel=2;
|
|
switch(val){
|
|
case "-2": // d-box philips
|
|
case "-1": // d-box nokia old
|
|
case "0": // auto
|
|
case "1": // cst hd1/bse
|
|
case "2": // cst neo
|
|
case "3": // cst zee/neo2
|
|
case "4": // cst neo twin
|
|
case "5": // cst tank
|
|
case "6": // cst trinity
|
|
case "7": // cst link
|
|
case "8": // cst trinity duo
|
|
case "9": // ax hd51
|
|
case "10": // mutant hd51
|
|
case "11": // vu solo4k
|
|
sel=(sel*1+val*1);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
document.f.fb.selectedIndex = sel;
|
|
obj_set_radio_value('screenshot_rc', "{=ini-get:%(CONFIGDIR)/Y-Web.conf;screenshot_rc;false~cache=}");
|
|
val = "{=ini-get:%(CONFIGDIR)/Y-Web.conf;start_page;bouquets~cache=}";
|
|
var sel=4;
|
|
switch(val){
|
|
case "bouquets": sel=0; break;
|
|
case "control": sel=1; break;
|
|
case "remote": sel=2; break;
|
|
case "screenshot": sel=3; break;
|
|
}
|
|
document.f.start_page.selectedIndex = sel;
|
|
style_old = "{=ini-get:%(CONFIGDIR)/Y-Web.conf;style~cache=}";
|
|
//NI
|
|
if ("{=ini-get:%(CONFIGDIR)/Y-Web.conf;yweb_box_name=}" == "${HOSTNAME}") {
|
|
document.f.hostname.checked = true;
|
|
document.f.yweb_box_name.value = "${HOSTNAME}";
|
|
document.f.yweb_box_name.readOnly = true;
|
|
document.f.yweb_box_name.style.color='#aaaaaa'
|
|
}
|
|
}
|
|
//NI
|
|
function do_switch_hostname()
|
|
{
|
|
if(document.f.hostname.checked == true)
|
|
{
|
|
document.f.yweb_box_name.value = "${HOSTNAME}";
|
|
document.f.yweb_box_name.readOnly = true;
|
|
document.f.yweb_box_name.style.color='#aaaaaa'
|
|
}
|
|
else
|
|
{
|
|
document.f.yweb_box_name.value = "";
|
|
document.f.yweb_box_name.readOnly = false;
|
|
document.f.yweb_box_name.style.color='#555555'
|
|
document.f.yweb_box_name.focus();
|
|
}
|
|
}
|
|
//]]>
|
|
</script>
|
|
<style type="text/css">
|
|
input[type="text"],
|
|
select {
|
|
width: 220px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body onload="do_init()">
|
|
{=var-set:wait_text={=L:save_values=}=}{=include-block:Y_Blocks.txt;snip_wait=}
|
|
<div class="work_box">
|
|
<div class="work_box_head"><div class="work_box_head_h2">
|
|
{=var-set:help_url=Help-Settings-yWeb=}{=var-set:menu=yWeb=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
|
|
<div class="work_box_body">
|
|
<form name="f" class="y_form" action="/y/cgi">
|
|
<table border="0" class="y_form_table">
|
|
<tr><td class="y_form_header" colspan="4">{=L:set.yweb.management_IPs=}</td></tr>
|
|
<tr>
|
|
<td>IP 1</td>
|
|
<td colspan="3"><input type="text" name="managementIP" size="15" value="{=ini-get:%(CONFIGDIR)/Y-Web.conf;management_ip=}" title="{=L:set.yweb.enter_ip_desc=}"/></td>
|
|
</tr>
|
|
<tr>
|
|
<td>IP 2</td>
|
|
<td colspan="3"><input type="text" name="managementIP2" size="15" value="{=ini-get:%(CONFIGDIR)/Y-Web.conf;management_ip2=}" title="{=L:set.yweb.enter_ip_desc=}"/></td>
|
|
</tr>
|
|
<tr><td class="y_form_header" colspan="4">{=L:set.yweb.wake_on_lan=}</td></tr>
|
|
<tr>
|
|
<td>MAC 1</td>
|
|
<td><input type="text" name="wol_mac_1" size="17" value="{=ini-get:%(CONFIGDIR)/Y-Web.conf;wol_mac_1=}" title="{=L:set.yweb.enter_mac_desc=}"/></td>
|
|
<td>{=L:set.yweb.description=}</td>
|
|
<td><input type="text" name="wol_desc_1" size="17" value="{=ini-get:%(CONFIGDIR)/Y-Web.conf;wol_desc_1=}" title="{=L:set.yweb.enter_description_desc=}"/></td>
|
|
</tr>
|
|
<tr>
|
|
<td>MAC 2</td>
|
|
<td><input type="text" name="wol_mac_2" size="17" value="{=ini-get:%(CONFIGDIR)/Y-Web.conf;wol_mac_2=}" title="{=L:set.yweb.enter_mac_desc=}"/></td>
|
|
<td>{=L:set.yweb.description=}</td>
|
|
<td><input type="text" name="wol_desc_2" size="17" value="{=ini-get:%(CONFIGDIR)/Y-Web.conf;wol_desc_2=}" title="{=L:set.yweb.enter_description_desc=}"/></td>
|
|
</tr>
|
|
<tr>
|
|
<td>MAC 3</td>
|
|
<td><input type="text" name="wol_mac_3" size="17" value="{=ini-get:%(CONFIGDIR)/Y-Web.conf;wol_mac_3=}" title="{=L:set.yweb.enter_mac_desc=}"/></td>
|
|
<td>{=L:set.yweb.description=}</td>
|
|
<td><input type="text" name="wol_desc_3" size="17" value="{=ini-get:%(CONFIGDIR)/Y-Web.conf;wol_desc_3=}" title="{=L:set.yweb.enter_description_desc=}"/></td>
|
|
</tr>
|
|
<tr><td class="y_form_header" colspan="4">{=L:set.yweb.box_tag=}</td></tr>
|
|
<tr>
|
|
<td>{=L:set.yweb.box_tag=}</td>
|
|
<td colspan="3"><input type="text" name="yweb_box_name" size="17" value="{=ini-get:%(CONFIGDIR)/Y-Web.conf;yweb_box_name=}"
|
|
title="{=L:box_tag_desc=}"/>
|
|
<!-- //NI -->
|
|
<input type="checkbox" name="hostname" value="Hostname" onclick="do_switch_hostname()"/> Hostname
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>{=L:set.yweb.box_color=}</td>
|
|
<td colspan="3"><input type="text" name="yweb_box_color" size="8" value="{=ini-get:%(CONFIGDIR)/Y-Web.conf;yweb_box_color=}"
|
|
title="{=L:box_color_desc=}"/></td>
|
|
</tr>
|
|
<tr><td class="y_form_header" colspan="4">{=L:others=}</td></tr>
|
|
<tr>
|
|
<td>{=L:set.yweb.remote=}</td>
|
|
<td>
|
|
<select name="fb" title="{=L:remote=}">
|
|
<option value="-2">d-Box | Philips</option>
|
|
<option value="-1">d-Box | Nokia (alt)</option>
|
|
<option value="0" selected="selected">{=L:automatic=}</option>
|
|
<option value="1">CST HD-1 | BSE</option>
|
|
<option value="2">CST HD-1plus | Neo</option>
|
|
<option value="3">CST HD-1plus | Zee/Neo2</option>
|
|
<option value="4">CST HD-1plus | Neo Twin</option>
|
|
<option value="5">CST HD-2 | Tank</option>
|
|
<option value="6">CST HD-2 | Trinity</option>
|
|
<option value="7">CST HD-2 | Link</option>
|
|
<option value="8">CST HD-2 | Trinity Duo</option>
|
|
<option value="9">AX | HD51</option>
|
|
<option value="10">Mutant | HD51</option>
|
|
<option value="11">VU+ | Solo 4K</option>
|
|
</select>
|
|
</td>
|
|
<td>{=L:set.yweb.screenshot_rc=}</td>
|
|
<td>
|
|
<input type="radio" name="screenshot_rc" value="false" />{=L:off=}
|
|
<input type="radio" name="screenshot_rc" value="true" />{=L:on=}
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>{=L:set.yweb.start_page=}</td>
|
|
<td colspan="3">
|
|
<select name="start_page" title="{=L:start_page=}">
|
|
<option value="bouquets" selected="selected">{=L:bc.menue.bouquets=}</option>
|
|
<option value="control">{=L:bc.menue.control=}</option>
|
|
<option value="remote">{=L:bc.menue.remote=}</option>
|
|
<option value="screenshot">{=L:bc.menue.screenshot=}</option>
|
|
<option value="none">{=L:empty=}</option>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Styles</td>
|
|
<td>
|
|
<select name="style" title="Style">
|
|
{=script:Y_Tools style_get=}
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<br/>
|
|
<input type="hidden" name="tmpl" value="Y_Settings_yWeb.yhtm"/>
|
|
<input type="hidden" name="execute" value="include-block:Y_Blocks.txt;yWeb_save_settings;nix"/>
|
|
<button type="button" ytype="save" title="{=L:save_values_desc=}" onclick="do_submit()">{=L:save=}</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|
|
{=include-block:Y_Blocks.txt;management_check_bottom=}
|
|
|