webif/var/mongoose/html/m/search.jim
hummypkg 0a2c7966b5 checkpoint
git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@1182 2a923420-c742-0410-a762-8d5b09965624
2012-10-30 18:58:54 +00:00

37 lines
574 B
Plaintext
Executable File

#!/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 "<ul data-role=listview data-filter=false><li>"
source include/searchform.jim
puts "</li>"
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 "</ul>"
mfooter