group search terms together

git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@215 2a923420-c742-0410-a762-8d5b09965624
This commit is contained in:
hummypkg 2011-06-30 00:16:10 +00:00
parent 444ca7370b
commit 6efcb5bde0

View File

@ -38,8 +38,10 @@ proc cts {type img text} {
puts { puts {
<br> <br>
<fieldset>
<legend>Content Type Searches</legend>
<table> <table>
<tr><td rowspan=2 valign=top>Content Type Searches</td> <tr>
<td> <td>
} }
@ -65,7 +67,7 @@ cts 8 "Society" "Social/Political/Economic"
puts "</td><td>" puts "</td><td>"
cts 6 "Music" "Music/Ballet/Dance" cts 6 "Music" "Music/Ballet/Dance"
puts "</tr></table>" puts "</tr></table></fieldset>"
set db [sqlite3.open /var/lib/humaxtv/setup.db] set db [sqlite3.open /var/lib/humaxtv/setup.db]
set res [$db query { set res [$db query {
@ -75,8 +77,12 @@ set res [$db query {
$db close $db close
if {[llength $res] > 0} { if {[llength $res] > 0} {
puts "<table cellpadding=5>" puts "
puts "<tr><td>Keyword Searches</td>" <fieldset>
<legend>Keyword Searches</legend>
<table cellpadding=5>
<tr>
"
foreach keyword $res { foreach keyword $res {
set kw [string range [lindex $keyword 1] 1 end] set kw [string range [lindex $keyword 1] 1 end]
# Clean the keyword string. # Clean the keyword string.
@ -84,8 +90,11 @@ if {[llength $res] > 0} {
puts "<td><a href=/cgi-bin/epg_search.jim?term=[cgi_quote_url $kw]>$kw puts "<td><a href=/cgi-bin/epg_search.jim?term=[cgi_quote_url $kw]>$kw
</a></td>" </a></td>"
} }
puts "</tr>" puts "
puts "</table>" </tr>
</table>
</fieldset>
"
} }
puts " puts "