forked from hummypkg/webif
72 lines
2.0 KiB
Plaintext
Executable File
72 lines
2.0 KiB
Plaintext
Executable File
|
|
######################################################################
|
|
# General Settings
|
|
|
|
puts "
|
|
<h4>General Settings</h4>
|
|
<div><fieldset style=\"display: inline\">
|
|
<legend>
|
|
General Settings
|
|
</legend>
|
|
<table>
|
|
"
|
|
|
|
puts "
|
|
<tr>
|
|
<th class=key>Hostname</th>
|
|
<td>
|
|
<form class=auto id=hostname method=get action=$env(SCRIPT_NAME)>
|
|
<input name=hostname value=\"$hostname\"
|
|
class=\"text ui-widget-content ui-corner-all\"
|
|
length=20 maxlength=50>
|
|
<small>
|
|
<input id=hostname_submit value=\"change\" type=submit>
|
|
</small>
|
|
<div id=hostname_output></div>
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
"
|
|
|
|
setting_toggle "Slide-down toolbar?" "notoolbar" $(!$notoolbar) 1
|
|
setting_toggle "Mobile link on main page?" "nomobile" $(!$nomobile) 1
|
|
setting_toggle "Help links on main page?" "nohelplinks" $(!$nohelplinks) 1
|
|
#setting_toggle "Twitter feed ticker on main page?" "notwitfeed" $(!$notwitfeed) 1
|
|
setting_toggle "Unwatched count on folders?" "nounwatchedcount" $(!$nounwatchedcount) 1
|
|
setting_toggle "Underscore item indicator on folders?" "nounderscore" $(!$nounderscore) 1
|
|
setting_toggle "Hide OTA from Visual View?" "hidevisualota" $hidevisualota
|
|
if {[system pkginst ir]} {
|
|
setting_toggle "Disable channel change confirmation?" \
|
|
"chanchangenc" $chanchangenc 0
|
|
}
|
|
|
|
puts -nonewline "
|
|
<tr>
|
|
<th class=key>Audio extraction type</th>
|
|
<td>
|
|
<form class=auto id=audiomp3 method=get action=$env(SCRIPT_NAME)>
|
|
<select id=audiomp3 name=audiomp3
|
|
class=\"text ui-widget-content ui-corner-all\">
|
|
"
|
|
puts -nonewline " <option value=0"
|
|
if {$audiomp3 == 0} { puts -nonewline " selected" }
|
|
puts ">[$settings audiomp3descr 0] - very fast but less compatible."
|
|
puts -nonewline " <option value=1"
|
|
if {$audiomp3 == 1} { puts -nonewline " selected" }
|
|
puts -nonewline ">[$settings audiomp3descr 1] - around 60 times slower."
|
|
puts "
|
|
</select>
|
|
<small>
|
|
<input name=audiomp3_submit value=\"set\" type=submit>
|
|
</small>
|
|
<div id=audiomp3_output></div>
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
"
|
|
|
|
puts "
|
|
</table></fieldset></div>
|
|
"
|
|
|