#!/mod/bin/jimsh package require cgi source /mod/webif/lib/setup require rsv.class progressbar epg.class puts "Content-Type: text/html" puts "" cgi_input #cgi_dump set table [cgi_get table TBL_RESERVATION] set slot [cgi_get slot 0] set event [rsv slot $table $slot] puts " " set s [$event get nsttime] set d [$event get nduration] set e $($s + $d) set n [clock seconds] if { $n > $e } { puts " " set crid [join [lrange [split [$event get szCRID] /] 1 end]] if {$crid != ""} { puts "" } puts "" puts "" puts "
Event [$event get ulslot] [join [$event iconset] ""]
Channel " if {[$event get usLcn] ne ""} { puts "[epg channelicon [$event channel_name] 50] - [$event get usLcn] - [$event channel_name] " } puts "
Event Name [$event name]" if {[$event get ucRecKind] == 4 && [$event name] ne [$event folder]} { puts "(Folder: [$event folder])" } puts "
Start" } else { puts "" } puts "[clock format $s -format "%a %d %b %Y"] [clock format $s -format "%H:%M %Z"]" if {$d > 0 && $n > $s && $n < $e} { puts "
" set perc [expr [expr $n - $s] * 100 / $d] puts "" puts [progressbar $perc] } puts "
Duration [clock format [$event get nduration] -format %T]
" if {[$event isseries]} { puts "Series" } else { puts "Event" } puts " CRID" puts -nonewline " [$event get szCRID]" puts "
Events" set flag 0 foreach ev [split [$event get szEventToRecord] "|"] { if {$ev eq ""} { continue } set ev [string range $ev 1 end] if {$flag} { puts "
" } incr flag set crid [join [lrange [split $ev /] 1 end]] puts -nonewline " $ev" puts "" } puts "
Accepted" if {[$event get aulEventToRecordInfo] ne ""} { puts "Yes" } puts "
"