#!/mod/bin/jimsh package require cgi source /mod/webif/lib/setup header require epg.class spinner.class altrow epg_search totop puts { } [spinner new { text "Loading EPG Information..." size "1.2em" style "margin: 1em;" }] start require epg_popup set now [clock seconds] set stt [cgi_get stt $now] if {$stt <= $now} { set stt $now set current 1 } else { set current 0 } set favgroup [[settings] channel_group] set hours [expr 1.0 * [[settings] xepghours]] if {$hours == 0} { set hours 4.0 } set seconds $($hours * 3600) set ostt $stt set stt [expr int($stt / 1800.0) * 1800] set ett $(int($stt + $seconds)) set offset $(($ostt - $stt) / 1800.0) set chanpx 160 set eventpx 1000 set totalpx $($chanpx + $eventpx) set contwidth $($totalpx + 50) set hourpx $($eventpx / $hours) set minpx $($hourpx / 60.0) set secpx $($minpx / 60.0) set start [clock milliseconds] if {$::qepg} { if {$favgroup} { set records [epg dbfetch dump \ -trange "$stt:$ett" -fav $favgroup] } else { set records [epg dbfetch dump -trange "$stt:$ett"] } } else { require channelsort set records [channelsort [epg fetch dump -trange "$stt:$ett"]] } set got [clock milliseconds] proc but {label time {active 1}} { puts -nonewline "" } puts "" puts "
" puts "