#!/mod/bin/jimsh package require cgi source /mod/webif/lib/setup require altrow rsv.class progressbar epg.class system.class puts "Content-Type: text/html" puts "" set svcmap {} lmap i \ [$::channeldb query {select hSvc, usSvcid from TBL_SVC}] \ { set svcmap([lindex $i 1]) [lindex $i 3] } header require epg_popup puts {
} proc eventheader {{table TBL_RESERVATION} note} { puts { " } proc ekey {event} { set ret "" foreach key {ersvtype nsttime nduration hsvc usevtid} { append ret ".[$event get $key]" } return $ret } set pmap {} set events [rsv list pending] if {[llength $events] > 0} { eventheader pending "Pending Scheduled Events" foreach event $events { eventrow $event pending lappend pmap [ekey $event] } eventfooter puts { } } set events [rsv list] eventheader "live" "Scheduled Events" foreach event $events { if {[ekey $event] in $pmap} { eventrow $event TBL_RESERVATION 1 } else { eventrow $event } } eventfooter puts {