#!/mod/bin/jimsh package require cgi source /mod/var/mongoose/lib/setup require rsv.class progressbar 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] set rsvicon [$event icon] if {$rsvicon ne ""} { set rsvicon "" if {[$event get ersvtype] == 3} { if {[$event padded]} { set padding "<- [expr [$event get ulPreOffset] / 60], [expr [$event get ulPostOffset] / 60] ->" append rsvicon \ "\"$padding\"" } else { append rsvicon \ "" } } } set RKIcon [$event RKIcon] if {$RKIcon ne ""} { set RKIcon "" } if {[$event get ucRecKind] == 4} { set series 1 } else { set series 0 } 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] $rsvicon $RKIcon
Channel " if {[$event get usLcn] ne ""} { puts " - [$event get usLcn] - [$event channel_name] " } puts "
Event Name [$event name]
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 $series { 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 "
"