#!/mod/bin/jimsh package require cgi source /mod/webif/lib/setup require epg.class cgi_input set table [cgi_get table TBL_RESERVATION] set slot [cgi_get slot 0] set event [rsv slot $table $slot] mheader 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 | " set s [$event get nsttime] set d [$event get nduration] set e $($s + $d) set n [clock seconds] if { $n > $e } { puts "" } 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 | [$event get szCRID] | |
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 "$ev" } puts " | |
Accepted | " if {[$event get aulEventToRecordInfo] ne ""} { puts "Yes" } puts " |