#!/mod/bin/jimsh
package require cgi
source /mod/webif/lib/setup
require epg.class
source include/epgcell.jim
cgi_input
set term [cgi_get epgsearchterm ""]
set full [cgi_get epgsearchfull 0]
mheader
source include/searchstyle.jim
puts "
- "
source include/searchform.jim
puts "
"
set cmd search
if {$full} { set cmd searchall }
if {$term ne ""} {
#set records [epg fetch $cmd -extra $term]
set records [epg dbfetch $cmd -term $term]
} else {
set records {}
}
foreach e $records {
epgcell $e
}
puts "
"
mfooter