#!/mod/bin/jimsh package require cgi source /mod/webif/lib/setup puts "Content-Type: text/html" puts "" header require epg.class spinner.class altrow epg_search totop cgi_input puts {} [spinner new { text "Loading Now/Next Information..." size "1.2em" style "margin: 1em;" }] start require epg_popup set stt [cgi_get stt [clock seconds]] if {$stt <= [clock seconds]} { set stt [clock seconds] set current 1 } else { set current 0 } set favgroup [[settings] channel_group] 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 120 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] puts "
" puts "