#!/mod/bin/jimsh package require cgi source /mod/var/mongoose/lib/epg.class source /mod/var/mongoose/lib/altrow puts "Content-Type: text/html" puts "" source /mod/var/mongoose/html/lib/header.jim cgi_input #cgi_dump set service 0 set service 4351 catch { set service [dict get $_cgi service] } set records [epg fetch dump -service $service] set channel_num [[lindex $records 0] get channel_num] set channel_name [[lindex $records 0] get channel_name] puts "

Channel: $channel_num - $channel_name

" puts { } set i 0 foreach record $records { altrow if {[$record showing]} { puts "" } else { puts "" } puts "" puts "" puts [$record cell] puts "" puts "" puts "" flush stdout } puts "
Date Time Programme Synopsis
[clock format [$record get start] -format "%a %d %b %Y"] [clock format [$record get start] -format "%H:%M"][$record get text][$record get warning]
" epg cleanup source /mod/var/mongoose/html/lib/footer.jim