fix padding

git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@409 2a923420-c742-0410-a762-8d5b09965624
This commit is contained in:
hummypkg 2011-09-19 17:11:18 +00:00
parent ff322fdc39
commit fbb64a2e9f
4 changed files with 13 additions and 3 deletions

View File

@ -1,7 +1,7 @@
Package: webif
Priority: optional
Section: web
Version: 0.7.0-3
Version: 0.7.1
Architecture: mipsel
Maintainer: af123@hummypkg.org.uk
Depends: mongoose(>=3.0-2),jim(>=0.71-1),jim-sqlite3(>=0.71-1),jim-cgi(>=0.4),jim-oo,jim-pack,service-control,busybox(>=1.18.3-1),lsof,epg(>=1.0.3),hmt(>=1.0.6),ssmtp

View File

@ -45,7 +45,7 @@ foreach record [lsort -command rsort $records] {
continue
}
set num [$record get channel_num]
if {$num == 0 || $num >= 800} { continue }
if {$num == 0} { continue }
altrow
puts "<td>$num</td>"
puts "<td>[$record channel_icon 50]</td>

View File

@ -76,6 +76,14 @@ rsv method name {} {
return $name
}
rsv method padded {} {
if {$ulPreOffset > 0 || $ulPostOffset > 0} {
return 1
} else {
return 0
}
}
rsv method channel_name {} {
return [string range $szSvcName 1 end]
}

View File

@ -77,7 +77,9 @@ proc {system restartpending} {} {
proc {system padding} {} {
set start 0
set stop 0
set db [sqlite3.open /var/lib/humaxtv/setup.db]
if {[catch {set db [sqlite3.open /var/lib/humaxtv/setup.db]} msg]} {
return {0 0}
}
foreach l [$db query "
select itemName, itemValue
from TBL_MENUCONFIG