git-svn-id: file:///root/webif/svn/pkg/webif/trunk@3435 2a923420-c742-0410-a762-8d5b09965624
87 lines
2.1 KiB
Plaintext
Executable File
87 lines
2.1 KiB
Plaintext
Executable File
|
|
######################################################################
|
|
# Auto-Processing Settings
|
|
|
|
puts "
|
|
<h4>Auto-Processing Settings</h4>
|
|
<div><fieldset style=\"display: inline\">
|
|
<legend>
|
|
Auto-Processing Settings
|
|
</legend>
|
|
<table>
|
|
"
|
|
|
|
puts -nonewline "
|
|
<tr>
|
|
<form class=auto id=autolog method=get action=$env(SCRIPT_NAME)>
|
|
<th class=key>Auto-processing log level</th>
|
|
<td><select id=autolog name=autolog
|
|
class=\"text ui-widget-content ui-corner-all\">
|
|
"
|
|
puts "<option value=0"
|
|
if {$autolog == 0} { puts " selected" }
|
|
puts ">Actions and errors only\n"
|
|
puts "<option value=1"
|
|
if {$autolog == 1} { puts " selected" }
|
|
puts ">Actions, errors and scan information\n"
|
|
puts "<option value=2"
|
|
if {$autolog == 2} { puts " selected" }
|
|
puts ">Debugging information\n"
|
|
puts "
|
|
</select>
|
|
<small>
|
|
<input name=autolog value=\"set\" type=submit>
|
|
</small>
|
|
<div id=autolog_output></div>
|
|
</td>
|
|
</form>
|
|
</tr>
|
|
"
|
|
|
|
setting_toggle "Suspend automatic processing whilst recording?" \
|
|
"noautorec" $noautorec
|
|
setting_toggle "Suspend automatic processing if will record soon?" \
|
|
"noautorecimm" $noautorecimm
|
|
|
|
setting_number autorecperiod "...how many minutes is soon?" $autorecperiod
|
|
|
|
puts -nonewline "
|
|
<tr>
|
|
<form class=auto id=noautohours method=get action=$env(SCRIPT_NAME)>
|
|
<th class=key>Choose hours during which
|
|
automatic processing runs:
|
|
</th>
|
|
<td>
|
|
<input name=\"noautohours\[]\" value=dummy>
|
|
<select name=\"noautohours\[]\" id=s_noautohours
|
|
multiple size=8
|
|
class=\"text ui-widget-content ui-corner-all\">
|
|
"
|
|
loop h 0 24 {
|
|
puts -nonewline "<option value=$h"
|
|
if {$h in $noautohours} { puts -nonewline " selected" }
|
|
puts ">[format "%02d:00 - %02d:59" $h $h]</option>"
|
|
}
|
|
puts "
|
|
</select>
|
|
<small>
|
|
<input name=noautohours value=\"set\" type=submit>
|
|
</small>
|
|
<div id=noautohours_output></div>
|
|
</td>
|
|
</form>
|
|
</tr>
|
|
"
|
|
|
|
puts {
|
|
</table></fieldset></div>
|
|
|
|
<script type=text/javascript>
|
|
$('#s_noautohours').multiSelect({
|
|
selectableHeader: "<div class=odd>Enable during</div>",
|
|
selectionHeader: "<div class=odd>Disable during</div>"
|
|
});
|
|
</script>
|
|
}
|
|
|