#!/mod/bin/jimsh source /mod/var/mongoose/lib/setup require altrow rsv.class progressbar set events [rsv list] puts { } foreach event $events { set name [$event name] altrow set rsvicon "" switch [$event get ersvtype] { 1 { set rsvicon "175_1_00_Reservation_Watch.png" } 2 { set rsvicon "175_1_00_Reservation_Watch.png" } 3 { set rsvicon "175_1_11_Reservation_Record.png" } 5 { set rsvicon "745_1_10_Video_2Live.png" } 6 { set rsvicon "745_1_11_Video_1REC.png" } 7 { set rsvicon "345_6_08_ST_Ad_Hoc.png" } } set series 0 if {[$event get ucRecKind] == 4} { set RKIcon "175_1_11_Series_Record.png" set series 1 } else { switch [$event get erepeat] { 1 {set RKIcon "521_1_00_RP_Daily_C.png"} 2 {set RKIcon "521_1_00_RP_Weekly_C.png"} 3 {set RKIcon "521_1_00_RP_Weekdays_C.png"} 4 {set RKIcon "521_1_00_RP_Weekend_C.png"} default {set RKIcon ""} } } if {$rsvicon ne ""} { set rsvicon " } if {$RKIcon ne ""} { set RKIcon " } puts "" if {[$event get usLcn] ne ""} { puts " " } else { puts "" } puts "" set s [$event get nsttime] set d [$event get nduration] set e $($s + $d) set n [clock seconds] if { $n > $e } { puts "" puts "" puts "" puts "" puts "" if {[$event get aulEventToRecordInfo] != ""} { puts "" } puts "" } puts "
 Channel Programme Start Time Duration Mode Event/Series ID Events
[$event get ulslot] [$event get usLcn]
[$event channel_name]
 

 $name" } 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 "
[clock format [$event get nduration] -format %T]$rsvicon $RKIcon" set crid [join [lrange [split [$event get szCRID] /] 1 end]] if {$crid != ""} { puts -nonewline " [$event get szCRID]" puts "" } puts "" 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 "
*
" puts "Click on the CRID to view episodes." puts { }