From d05632e8d384b49885bb6b748d587e752526c428 Mon Sep 17 00:00:00 2001 From: hummypkg Date: Tue, 6 Nov 2012 22:58:17 +0000 Subject: [PATCH] various updates git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@1210 2a923420-c742-0410-a762-8d5b09965624 --- CONTROL/control | 4 +- var/mongoose/cgi-bin/xepg.jim | 81 ++++++++++++++++++++++++------ var/mongoose/html/img/cal.gif | Bin 0 -> 228 bytes var/mongoose/html/m/browse.jim | 33 +++++++++++- var/mongoose/html/sched/sched.jim | 12 ++--- 5 files changed, 106 insertions(+), 24 deletions(-) create mode 100644 var/mongoose/html/img/cal.gif diff --git a/CONTROL/control b/CONTROL/control index c81296c..905dea2 100644 --- a/CONTROL/control +++ b/CONTROL/control @@ -1,9 +1,9 @@ Package: webif Priority: optional Section: web -Version: 0.10.0 +Version: 0.10.0-1 Architecture: mipsel Maintainer: af123@hummypkg.org.uk -Depends: webif-channelicons(>=1.0.3),mongoose(>=3.0-7),jim(>=0.73-1),jim-oo,jim-sqlite3(>=0.73),jim-cgi(>=0.5),service-control(>=1.2),busybox(>=1.19.3-1),lsof,epg(>=1.0.9),hmt(>=1.1.6),ssmtp,anacron,trm,openssl-command,nicesplice,id3v2,file,rsvsync(>=1.0.2),webif-charts(>=1.2),stripts(>=1.1.2) +Depends: webif-channelicons(>=1.0.3),mongoose(>=3.0-7),jim(>=0.73-1),jim-oo,jim-sqlite3(>=0.73),jim-cgi(>=0.5),service-control(>=1.2),busybox(>=1.19.3-1),lsof,epg(>=1.0.9),hmt(>=1.1.6),ssmtp,anacron,trm,openssl-command,nicesplice,id3v2,file,rsvsync(>=1.0.2),webif-charts(>=1.2),stripts(>=1.1.2),smartmontools Suggests: ffmpeg Description: An evolving web interface for the Humax. diff --git a/var/mongoose/cgi-bin/xepg.jim b/var/mongoose/cgi-bin/xepg.jim index 8420d0a..206564f 100755 --- a/var/mongoose/cgi-bin/xepg.jim +++ b/var/mongoose/cgi-bin/xepg.jim @@ -11,19 +11,23 @@ require epg.class spinner.class altrow epg_search totop cgi_input -puts {} +puts { + + +} [spinner new { - text "Loading Now/Next Information..." + text "Loading EPG Information..." size "1.2em" style "margin: 1em;" }] start require epg_popup -set stt [cgi_get stt [clock seconds]] -if {$stt <= [clock seconds]} { - set stt [clock seconds] +set now [clock seconds] +set stt [cgi_get stt $now] +if {$stt <= $now} { + set stt $now set current 1 } else { set current 0 @@ -40,7 +44,7 @@ set stt [expr int($stt / 1800.0) * 1800] set ett $(int($stt + $seconds)) set offset $(($ostt - $stt) / 1800.0) -set chanpx 120 +set chanpx 160 set eventpx 1000 set totalpx $($chanpx + $eventpx) set contwidth $($totalpx + 50) @@ -64,21 +68,40 @@ if {$::qepg} { } set got [clock milliseconds] -puts "
" -if {$stt > [clock seconds]} { - puts "" +proc but {label time {active 1}} { + puts -nonewline "" } -puts "" + +puts "
" + +but "<< -1 Week" $($stt - 3600 * 24 * 7) $($stt - $now >= 3600 * 24 * 7) +but "<< -1 Day" $($stt - 3600 * 24) $($stt - $now >= 3600 * 24) +but "<< Earlier", $($stt - 3600 * 4) $($stt > $now) +but "< Now >" $now $($current == 0) +but ">> Later" $ett; +but ">> +1 Day" $($stt + 3600 * 24) $($stt < $now + 8 * 3600 * 24) +but ">> +1 Week" $($stt + 3600 * 24 * 7) $($stt < $now + 8 * 3600 * 24) + puts "
" puts " +
" puts "
" -puts [clock format $stt -format {%a %D}] +puts [clock format $stt -format {%a %d/%m/%Y}] +puts "" puts "
" puts "
 
" @@ -173,6 +196,9 @@ puts " Switch to standard now/next display.
+" + +puts "