}
}
proc eventrow {event {table TBL_RESERVATION}} {
set name [$event name]
set attrs "table=$table sid=[$event get ulslot] \
reckind=[$event get ucRecKind] rsvtype=[$event get ersvtype] \
ar=[expr ! [$event padded]]"
altrow $attrs
if {$table eq "pending"} {
puts "[$event pendingicon] | "
}
puts "[$event get ulslot] | "
if {[$event get usLcn] ne ""} {
puts "
[epg channelicon [$event channel_name] 50]
|
[$event get usLcn]
[$event channel_name] |
"
} else {
puts "
| | "
}
puts "
$name"
if {
([$event get ucRecKind] == 4 && $name ne [$event folder]) ||
([$event get ucRecKind] == 1 && [$event folder] ne "")
} {
puts " (Folder: [$event folder])"
}
puts " | "
set s [$event get nsttime]
set d [$event get nduration]
set e $($s + $d)
set n [clock seconds]
set ds "[clock format $s -format "%a %d %b %Y"]
[clock format $s -format "%H:%M %Z"]"
if {$n > $e && [$event get ersvtype] <= 3} {
puts "
--- -- --- ---- --:--"
puts " | --:--:-- | "
} else {
puts " $e} { puts " blood" }
puts "\">$ds"
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 "[join [$event iconset] ""] | "
puts " | "
puts ""
}
proc eventfooter {} {
puts "