forked from hummypkg/webif
fix minor bugs
git-svn-id: file:///root/webif/svn/pkg/webif/trunk@2332 2a923420-c742-0410-a762-8d5b09965624
This commit is contained in:
parent
03002d4b60
commit
217b08922f
@ -1,7 +1,7 @@
|
||||
Package: webif
|
||||
Priority: optional
|
||||
Section: web
|
||||
Version: 1.2.1-6
|
||||
Version: 1.2.1-7
|
||||
Architecture: mipsel
|
||||
Maintainer: af123@hummypkg.org.uk
|
||||
Depends: webif-channelicons(>=1.1.14),lighttpd(>=1.4.35-2),jim(>=0.76),jim-oo,jim-sqlite3(>=0.76),jim-cgi(>=0.7),jim-binary(>=0.76),service-control(>=2.1),busybox(>=1.20.2-1),lsof(>=4.87),epg(>=1.2.0),hmt(>=2.0.3),ssmtp,anacron,trm(>=1.1),openssl-command,nicesplice,id3v2,file,rsvsync(>=1.0.2),webif-charts(>=1.2-1),stripts(>=1.2.5-3),smartmontools,tmenu(>=1.08),ffmpeg,id3v2,multienv(>=1.6),tcpping(>=1.1),e2fsprogs,wireless-tools(>=29-1),dbupdate,mongoose,recmon(>=2.0.2)
|
||||
|
@ -38,7 +38,7 @@ proc eventheader {{table TBL_RESERVATION} note} {
|
||||
puts "<h3>$note</h3>"
|
||||
puts "
|
||||
</legend>
|
||||
<table class=tablesorter data-sortlist=\"$sortlist\">
|
||||
<table class=\"schedule tablesorter\" data-sortlist=\"$sortlist\">
|
||||
<thead>
|
||||
<tr>
|
||||
<th data-sorter=false> </th>
|
||||
@ -62,7 +62,7 @@ proc eventheader {{table TBL_RESERVATION} note} {
|
||||
}
|
||||
|
||||
proc eventrow {event {table TBL_RESERVATION} {pending 0}} {
|
||||
global svcmap svckeys ended
|
||||
global svcmap svckeys num_ended
|
||||
|
||||
set name [$event name]
|
||||
|
||||
@ -72,15 +72,15 @@ proc eventrow {event {table TBL_RESERVATION} {pending 0}} {
|
||||
set n [clock seconds]
|
||||
|
||||
if {$n > $e && [$event get ersvtype] <= 3} {
|
||||
set _ended 1
|
||||
incr ended
|
||||
set ended 1
|
||||
incr num_ended
|
||||
} else {
|
||||
set _ended 0
|
||||
set ended 0
|
||||
}
|
||||
|
||||
set attrs "table=$table sid=[$event get ulslot] \
|
||||
reckind=[$event get ucRecKind] rsvtype=[$event get ersvtype] \
|
||||
ar=[expr ! [$event padded]] ended=$_ended"
|
||||
ar=[expr ! [$event padded]] ended=$ended"
|
||||
if {$pending} {
|
||||
append attrs " class=\"blueshade strike\""
|
||||
}
|
||||
@ -210,7 +210,7 @@ proc eventrow {event {table TBL_RESERVATION} {pending 0}} {
|
||||
}
|
||||
|
||||
proc eventfooter {rawlink} {
|
||||
global ended
|
||||
global num_ended
|
||||
|
||||
puts "</tbody></table>"
|
||||
puts "
|
||||
@ -218,13 +218,13 @@ proc eventfooter {rawlink} {
|
||||
<button class=selall>Select All</button>
|
||||
<button class=selnone>Select None</button>
|
||||
"
|
||||
if {$ended} {
|
||||
if {$num_ended} {
|
||||
puts "
|
||||
<button class=selended>Select Finished</button>
|
||||
"
|
||||
}
|
||||
puts "
|
||||
<button class=delselected>Delete Selected
|
||||
<button class=\"delselected red\">Delete Selected
|
||||
<span class=delselcnt></span></button>
|
||||
"
|
||||
puts "
|
||||
@ -245,7 +245,7 @@ proc ekey {event} {
|
||||
|
||||
set pmap {}
|
||||
set events [rsv list pending]
|
||||
set ended 0
|
||||
set num_ended 0
|
||||
if {[llength $events] > 0} {
|
||||
eventheader pending "Pending Scheduled Events"
|
||||
foreach event $events {
|
||||
@ -256,7 +256,7 @@ if {[llength $events] > 0} {
|
||||
}
|
||||
|
||||
set events [rsv list]
|
||||
set ended 0
|
||||
set num_ended 0
|
||||
eventheader live "Scheduled Events"
|
||||
foreach event $events {
|
||||
if {[ekey $event] in $pmap} {
|
||||
|
@ -156,7 +156,11 @@ proc {system dustbinsize} {} {
|
||||
set bin [system dustbin]
|
||||
set ret 0
|
||||
if {[file isdirectory $bin]} {
|
||||
lassign [exec /mod/bin/busybox/du -s $bin] ret
|
||||
if {[catch {
|
||||
lassign [exec /mod/bin/busybox/du -s $bin] ret
|
||||
}]} {
|
||||
set ret 0
|
||||
}
|
||||
}
|
||||
return $($ret * 1024)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user