#!/mod/bin/jimsh source /mod/var/mongoose/lib/setup require altrow rsv.class progressbar puts {
} proc eventheader {{table TBL_RESERVATION}} { puts {Action | " } puts {Channel | Programme | Start Time | Duration | Mode | " } puts " | [$event get ulslot] | " if {[$event get usLcn] ne ""} { puts "[$event get usLcn] [$event channel_name] |
"
} else {
puts " | " } puts " | $name | " 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 " | "
puts "[clock format [$event get nduration] -format %T] | " puts "$rsvicon $RKIcon | " if {[$event get aulEventToRecordInfo] != ""} { puts "" } else { puts " | " } puts "" } proc eventfooter {} { puts " |
---|