#!/mod/bin/jimsh package require cgi source /mod/var/mongoose/lib/epg.class source /mod/var/mongoose/lib/spinner.class source /mod/var/mongoose/lib/altrow source /mod/var/mongoose/lib/cat puts "Content-Type: text/html" puts "" source /mod/var/mongoose/html/lib/header.jim [spinner new { text "Loading EPG Data..." size "1.2em" style "margin: 1em;" }] start cgi_input #cgi_dump source /mod/var/mongoose/lib/epg_popup set service 0 set service 4351 catch { set service [dict get $_cgi service] } set records [epg fetch dump -service $service] set tr [lindex $records 0] $tr get_channel_info set channel_num [$tr get channel_num] set channel_name [$tr get channel_name] puts "
Date | Time | Programme | Synopsis | " } else { puts " | " } puts " | [clock format [$record get start] -format "%a %d %b %Y"] | " puts "[clock format [$record get start] -format "%H:%M"] | " puts [$record cell] puts "[$record get text] | " puts "[$record get warning] | " puts "" flush stdout } puts "
---|