yweb: deactivate not supported settings for coolstream

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@444 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
yjogol
2010-03-01 08:33:59 +00:00
parent c72022ed6e
commit b4aca3a5b1
2 changed files with 28 additions and 11 deletions

View File

@@ -81,12 +81,14 @@ function init(){
~=} ~=}
<li class="disabled" title="{=L:restriced_by_management_ip=}">{=L:parental=}</a></li> <li class="disabled" title="{=L:restriced_by_management_ip=}">{=L:parental=}</a></li>
<li class="disabled" title="{=L:restriced_by_management_ip=}">{=L:recording=}</a></li> <li class="disabled" title="{=L:restriced_by_management_ip=}">{=L:recording=}</a></li>
{=if-not-equal:{=global-var-get:boxtype=}~coolstream~
<li class="disabled" title="{=L:restriced_by_management_ip=}">{=L:direct_recording=}</a></li> <li class="disabled" title="{=L:restriced_by_management_ip=}">{=L:direct_recording=}</a></li>
=}
<li class="disabled" title="{=L:restriced_by_management_ip=}">{=L:audio_player=}</a></li> <li class="disabled" title="{=L:restriced_by_management_ip=}">{=L:audio_player=}</a></li>
{=if-not-equal:{=global-var-get:boxtype=}~coolstream~ {=if-not-equal:{=global-var-get:boxtype=}~coolstream~
<li class="disabled" title="{=L:restriced_by_management_ip=}">{=L:esound_server=}</a></li> <li class="disabled" title="{=L:restriced_by_management_ip=}">{=L:esound_server=}</a></li>
~=}
<li class="disabled" title="{=L:restriced_by_management_ip=}">{=L:movieplayer=}</a></li> <li class="disabled" title="{=L:restriced_by_management_ip=}">{=L:movieplayer=}</a></li>
~=}
<li class="disabled" title="{=L:restriced_by_management_ip=}">{=L:pictureviewer=}</a></li> <li class="disabled" title="{=L:restriced_by_management_ip=}">{=L:pictureviewer=}</a></li>
{=if-not-equal:{=global-var-get:boxtype=}~coolstream~ {=if-not-equal:{=global-var-get:boxtype=}~coolstream~
<li class="disabled" title="{=L:restriced_by_management_ip=}">{=L:lcd_display=}</a></li> <li class="disabled" title="{=L:restriced_by_management_ip=}">{=L:lcd_display=}</a></li>
@@ -94,8 +96,8 @@ function init(){
<li class="disabled" title="{=L:restriced_by_management_ip=}">{=L:key_settings=}</a></li> <li class="disabled" title="{=L:restriced_by_management_ip=}">{=L:key_settings=}</a></li>
{=if-not-equal:{=global-var-get:boxtype=}~coolstream~ {=if-not-equal:{=global-var-get:boxtype=}~coolstream~
<li class="disabled" title="{=L:restriced_by_management_ip=}">{=L:boot_options=}</a></li> <li class="disabled" title="{=L:restriced_by_management_ip=}">{=L:boot_options=}</a></li>
~=}
<li class="disabled" title="{=L:restriced_by_management_ip=}">{=L:others=}</a></li> <li class="disabled" title="{=L:restriced_by_management_ip=}">{=L:others=}</a></li>
~=}
<li class="disabled" title="{=L:restriced_by_management_ip=}">{=L:peronalization=}</li> <li class="disabled" title="{=L:restriced_by_management_ip=}">{=L:peronalization=}</li>
~ ~
<li><a target="work" href="Y_Boxcontrol_Bouquet_Editor_Main.yhtm">{=L:bouquet_editor=}</a></li> <li><a target="work" href="Y_Boxcontrol_Bouquet_Editor_Main.yhtm">{=L:bouquet_editor=}</a></li>
@@ -104,12 +106,14 @@ function init(){
~=} ~=}
<li><a target="work" href="Y_Settings_neutrino_forms.yhtm?form=neutrino_form-data_parental">{=L:parental=}</a></li> <li><a target="work" href="Y_Settings_neutrino_forms.yhtm?form=neutrino_form-data_parental">{=L:parental=}</a></li>
<li><a target="work" href="Y_Settings_neutrino_forms.yhtm?form=neutrino_form-data_record">{=L:recording=}</a></li> <li><a target="work" href="Y_Settings_neutrino_forms.yhtm?form=neutrino_form-data_record">{=L:recording=}</a></li>
{=if-not-equal:{=global-var-get:boxtype=}~coolstream~
<li><a target="work" href="Y_Settings_neutrino_forms.yhtm?form=neutrino_form-data_direct_recording">{=L:direct_recording=}</a></li> <li><a target="work" href="Y_Settings_neutrino_forms.yhtm?form=neutrino_form-data_direct_recording">{=L:direct_recording=}</a></li>
=}
<li><a target="work" href="Y_Settings_neutrino_forms.yhtm?form=neutrino_form-data_audioplayer">{=L:audio_player=}</a></li> <li><a target="work" href="Y_Settings_neutrino_forms.yhtm?form=neutrino_form-data_audioplayer">{=L:audio_player=}</a></li>
{=if-not-equal:{=global-var-get:boxtype=}~coolstream~ {=if-not-equal:{=global-var-get:boxtype=}~coolstream~
<li><a target="work" href="Y_Settings_neutrino_forms.yhtm?form=neutrino_form-data_esound">{=L:esound_server=}</a></li> <li><a target="work" href="Y_Settings_neutrino_forms.yhtm?form=neutrino_form-data_esound">{=L:esound_server=}</a></li>
~=}
<li><a target="work" href="Y_Settings_neutrino_forms.yhtm?form=neutrino_form-data_movieplayer">{=L:movieplayer=}</a></li> <li><a target="work" href="Y_Settings_neutrino_forms.yhtm?form=neutrino_form-data_movieplayer">{=L:movieplayer=}</a></li>
~=}
<li><a target="work" href="Y_Settings_neutrino_forms.yhtm?form=neutrino_form-data_pictureviewer">{=L:pictureviewer=}</a></li> <li><a target="work" href="Y_Settings_neutrino_forms.yhtm?form=neutrino_form-data_pictureviewer">{=L:pictureviewer=}</a></li>
{=if-not-equal:{=global-var-get:boxtype=}~coolstream~ {=if-not-equal:{=global-var-get:boxtype=}~coolstream~
<li><a target="work" href="Y_Settings_lcd.yhtm">{=L:lcd_display=}</a></li> <li><a target="work" href="Y_Settings_lcd.yhtm">{=L:lcd_display=}</a></li>
@@ -119,8 +123,8 @@ function init(){
~=} ~=}
{=if-not-equal:{=global-var-get:boxtype=}~coolstream~ {=if-not-equal:{=global-var-get:boxtype=}~coolstream~
<li><a target="work" href="Y_Settings_neutrino_forms.yhtm?form=neutrino_form-data_bootoptions">{=L:boot_options=}</a></li> <li><a target="work" href="Y_Settings_neutrino_forms.yhtm?form=neutrino_form-data_bootoptions">{=L:boot_options=}</a></li>
~=}
<li><a target="work" href="Y_Settings_neutrino_forms.yhtm?form=neutrino_form-data_diverse">{=L:others=}</a></li> <li><a target="work" href="Y_Settings_neutrino_forms.yhtm?form=neutrino_form-data_diverse">{=L:others=}</a></li>
~=}
{=if-not-equal:{=global-var-get:boxtype=}~coolstream~ {=if-not-equal:{=global-var-get:boxtype=}~coolstream~
<li><a target="work" href="Y_Settings_personalize.yhtm">{=L:peronalization=}</a></li> <li><a target="work" href="Y_Settings_personalize.yhtm">{=L:peronalization=}</a></li>
~=} ~=}

View File

@@ -38,6 +38,7 @@ start-block~neutrino_form-data_record
<div class="work_box_body"> <div class="work_box_body">
<form name="f" class="y_form" action="/y/cgi"> <form name="f" class="y_form" action="/y/cgi">
<table cellspacing="0" border="0" cellpadding="2" width="100%"> <table cellspacing="0" border="0" cellpadding="2" width="100%">
{=if-not-equal:{=global-var-get:boxtype=}~coolstream~
<tr><td colspan="2" class="y_form_header">{=L:set.rec.rec_dest=}</td></tr> <tr><td colspan="2" class="y_form_header">{=L:set.rec.rec_dest=}</td></tr>
<tr> <tr>
<td width="35%">{=L:set.rec.device=}</td> <td width="35%">{=L:set.rec.device=}</td>
@@ -106,6 +107,7 @@ start-block~neutrino_form-data_record
<input type="radio" id="vcr1" name="vcr_no_scart" value="1"/>{=L:on=} <input type="radio" id="vcr1" name="vcr_no_scart" value="1"/>{=L:on=}
</td> </td>
</tr> </tr>
=}
{=if-not-equal:{=global-var-get:boxtype=}~coolstream~ {=if-not-equal:{=global-var-get:boxtype=}~coolstream~
<tr> <tr>
<td>{=L:set.rec.spts=}</td> <td>{=L:set.rec.spts=}</td>
@@ -202,6 +204,7 @@ start-block~neutrino_form-data_record
function form_init() function form_init()
{ {
var val = ""; var val = "";
{=if-not-equal:{=global-var-get:boxtype=}~coolstream~
val = "{=ini-get:/var/tuxbox/config/neutrino.conf;recording_server_ip;10.10.10.10=}"; val = "{=ini-get:/var/tuxbox/config/neutrino.conf;recording_server_ip;10.10.10.10=}";
document.f.ip.value = val; document.f.ip.value = val;
val = "{=ini-get:/var/tuxbox/config/neutrino.conf;recording_server_port;4000=}"; val = "{=ini-get:/var/tuxbox/config/neutrino.conf;recording_server_port;4000=}";
@@ -214,13 +217,17 @@ function form_init()
obj_set_radio_value('vcr_no_scart', "{=ini-get:/var/tuxbox/config/neutrino.conf;recording_vcr_no_scart;0=}"); obj_set_radio_value('vcr_no_scart', "{=ini-get:/var/tuxbox/config/neutrino.conf;recording_vcr_no_scart;0=}");
obj_set_radio_value('in_spts_mode', "{=ini-get:/var/tuxbox/config/neutrino.conf;recording_in_spts_mode;true=}"); obj_set_radio_value('in_spts_mode', "{=ini-get:/var/tuxbox/config/neutrino.conf;recording_in_spts_mode;true=}");
val = "{=ini-get:/var/tuxbox/config/neutrino.conf;recording_stopsectionsd;0~cache=}";
document.f.stopsectionsd.selectedIndex = val;
val = "{=ini-get:/var/tuxbox/config/neutrino.conf;recording_type;0=}";
document.f.rec_type.selectedIndex = val;
change_rec_type();
=}
obj_set_radio_value('timeshift_pause', "{=ini-get:/var/tuxbox/config/neutrino.conf;timeshift_pause;0=}"); obj_set_radio_value('timeshift_pause', "{=ini-get:/var/tuxbox/config/neutrino.conf;timeshift_pause;0=}");
obj_set_radio_value('auto_delete', "{=ini-get:/var/tuxbox/config/neutrino.conf;auto_delete;true=}"); obj_set_radio_value('auto_delete', "{=ini-get:/var/tuxbox/config/neutrino.conf;auto_delete;true=}");
obj_set_radio_value('temp_timeshift', "{=ini-get:/var/tuxbox/config/neutrino.conf;temp_timeshift;0=}"); obj_set_radio_value('temp_timeshift', "{=ini-get:/var/tuxbox/config/neutrino.conf;temp_timeshift;0=}");
val = "{=ini-get:/var/tuxbox/config/neutrino.conf;recording_stopsectionsd;0~cache=}";
document.f.stopsectionsd.selectedIndex = val;
val = "{=ini-get:/var/tuxbox/config/neutrino.conf;recording_audio_pids_default;true=}"; val = "{=ini-get:/var/tuxbox/config/neutrino.conf;recording_audio_pids_default;true=}";
val = parseInt(val); val = parseInt(val);
if(val & 1) if(val & 1)
@@ -235,12 +242,10 @@ function form_init()
document.f.audio_ac3[1].checked = true; document.f.audio_ac3[1].checked = true;
else else
document.f.audio_ac3[0].checked = true; document.f.audio_ac3[0].checked = true;
val = "{=ini-get:/var/tuxbox/config/neutrino.conf;recording_type;0=}";
document.f.rec_type.selectedIndex = val;
change_rec_type();
} }
function change_rec_type() function change_rec_type()
{ {
{=if-not-equal:{=global-var-get:boxtype=}~coolstream~
if(document.f.rec_type.selectedIndex != 1) if(document.f.rec_type.selectedIndex != 1)
$('ip','port', 'mac', 'wol0', 'wol1').invoke('disable'); $('ip','port', 'mac', 'wol0', 'wol1').invoke('disable');
else else
@@ -258,13 +263,16 @@ function change_rec_type()
$$('.audio').invoke('enable'); $$('.audio').invoke('enable');
} }
change_mac(); change_mac();
=}
} }
function change_mac() function change_mac()
{ {
{=if-not-equal:{=global-var-get:boxtype=}~coolstream~
var vis = document.f.wol[0].checked; var vis = document.f.wol[0].checked;
if(document.f.rec_type.selectedIndex == 1) if(document.f.rec_type.selectedIndex == 1)
document.f.mac.disabled = vis; document.f.mac.disabled = vis;
=}
} }
function do_submit() function do_submit()
{ {
@@ -282,6 +290,7 @@ end-block~neutrino_form-data_record
# ------- yWeb save Settings # ------- yWeb save Settings
start-block~neutrino_record_save_settings start-block~neutrino_record_save_settings
{=if-not-equal:{=global-var-get:boxtype=}~coolstream~
{=ini-set:/var/tuxbox/config/neutrino.conf;recording_server_ip;{=ip=}~open=} {=ini-set:/var/tuxbox/config/neutrino.conf;recording_server_ip;{=ip=}~open=}
{=ini-set:/var/tuxbox/config/neutrino.conf;recording_server_port;{=port=}~cache=} {=ini-set:/var/tuxbox/config/neutrino.conf;recording_server_port;{=port=}~cache=}
{=ini-set:/var/tuxbox/config/neutrino.conf;recording_server_mac;{=mac=}~cache=} {=ini-set:/var/tuxbox/config/neutrino.conf;recording_server_mac;{=mac=}~cache=}
@@ -292,13 +301,15 @@ start-block~neutrino_record_save_settings
{=ini-set:/var/tuxbox/config/neutrino.conf;recording_zap_on_announce;{=zap_on_announce=}~cache=} {=ini-set:/var/tuxbox/config/neutrino.conf;recording_zap_on_announce;{=zap_on_announce=}~cache=}
{=ini-set:/var/tuxbox/config/neutrino.conf;recording_vcr_no_scart;{=vcr_no_scart=}~cache=} {=ini-set:/var/tuxbox/config/neutrino.conf;recording_vcr_no_scart;{=vcr_no_scart=}~cache=}
{=ini-set:/var/tuxbox/config/neutrino.conf;recording_in_spts_mode;{=in_spts_mode=}~cache=} {=ini-set:/var/tuxbox/config/neutrino.conf;recording_in_spts_mode;{=in_spts_mode=}~cache=}
{=ini-set:/var/tuxbox/config/neutrino.conf;timeshiftdir;{=timeshiftdir=}~cache=} ~
{=ini-set:/var/tuxbox/config/neutrino.conf;timeshiftdir;{=timeshiftdir=}~open=}
{=ini-set:/var/tuxbox/config/neutrino.conf;record_hours;{=record_hours=}~cache=} {=ini-set:/var/tuxbox/config/neutrino.conf;record_hours;{=record_hours=}~cache=}
{=ini-set:/var/tuxbox/config/neutrino.conf;timeshift_pause;{=timeshift_pause=}~cache=} {=ini-set:/var/tuxbox/config/neutrino.conf;timeshift_pause;{=timeshift_pause=}~cache=}
{=ini-set:/var/tuxbox/config/neutrino.conf;auto_timeshift;{=auto_timeshift=}~cache=} {=ini-set:/var/tuxbox/config/neutrino.conf;auto_timeshift;{=auto_timeshift=}~cache=}
{=ini-set:/var/tuxbox/config/neutrino.conf;auto_delete;{=auto_delete=}~cache=} {=ini-set:/var/tuxbox/config/neutrino.conf;auto_delete;{=auto_delete=}~cache=}
{=ini-set:/var/tuxbox/config/neutrino.conf;temp_timeshift;{=temp_timeshift=}~cache=} {=ini-set:/var/tuxbox/config/neutrino.conf;temp_timeshift;{=temp_timeshift=}~cache=}
{=ini-set:/var/tuxbox/config/neutrino.conf;recording_audio_pids_default;{=recording_audio_pids_default=}~save=} {=ini-set:/var/tuxbox/config/neutrino.conf;recording_audio_pids_default;{=recording_audio_pids_default=}~save=}
=}
{=ini-set:/var/tuxbox/config/timerd.conf;EXTRA_TIME_START;{=EXTRA_TIME_START=}=} {=ini-set:/var/tuxbox/config/timerd.conf;EXTRA_TIME_START;{=EXTRA_TIME_START=}=}
{=ini-set:/var/tuxbox/config/timerd.conf;EXTRA_TIME_END;{=EXTRA_TIME_END=}=} {=ini-set:/var/tuxbox/config/timerd.conf;EXTRA_TIME_END;{=EXTRA_TIME_END=}=}
{=ini-set:/var/tuxbox/config/timerd.conf;ZAPTO_EXTRA_TIME_START;{=ZAPTO_EXTRA_TIME_START=}=} {=ini-set:/var/tuxbox/config/timerd.conf;ZAPTO_EXTRA_TIME_START;{=ZAPTO_EXTRA_TIME_START=}=}
@@ -1178,6 +1189,7 @@ start-block~neutrino_form-data_pictureviewer
<td>{=L:set.pv.start_dir=}</td> <td>{=L:set.pv.start_dir=}</td>
<td><input type="text" name="picviewer_picturedir" size="20" value="{=ini-get:/var/tuxbox/config/neutrino.conf;picviewer_picturedir~cache=}" /></td> <td><input type="text" name="picviewer_picturedir" size="20" value="{=ini-get:/var/tuxbox/config/neutrino.conf;picviewer_picturedir~cache=}" /></td>
</tr> </tr>
{=if-not-equal:{=global-var-get:boxtype=}~coolstream~
<tr> <tr>
<td>{=L:set.pv.decoding_server_ip=}</td> <td>{=L:set.pv.decoding_server_ip=}</td>
<td><input type="text" name="picviewer_decode_server_ip" size="15" maxlength="15" value="{=ini-get:/var/tuxbox/config/neutrino.conf;picviewer_decode_server_ip~cache=}" /></td> <td><input type="text" name="picviewer_decode_server_ip" size="15" maxlength="15" value="{=ini-get:/var/tuxbox/config/neutrino.conf;picviewer_decode_server_ip~cache=}" /></td>
@@ -1186,6 +1198,7 @@ start-block~neutrino_form-data_pictureviewer
<td>{=L:set.pv.decoding_server_port=}</td> <td>{=L:set.pv.decoding_server_port=}</td>
<td><input type="text" name="picviewer_decode_server_port" size="5" maxlength="5" value="{=ini-get:/var/tuxbox/config/neutrino.conf;picviewer_decode_server_port~cache=}" /></td> <td><input type="text" name="picviewer_decode_server_port" size="5" maxlength="5" value="{=ini-get:/var/tuxbox/config/neutrino.conf;picviewer_decode_server_port~cache=}" /></td>
</tr> </tr>
=}
</table> </table>
<br/> <br/>
<input type="hidden" name="tmpl" value="Y_Settings_neutrino_forms.yhtm"/> <input type="hidden" name="tmpl" value="Y_Settings_neutrino_forms.yhtm"/>