"
foreach tw [$db query {
select tsIdx, usTsID, ulFrequency, ucLevel, ucQuality
from TBL_TS
order by ulFrequency
}] {
lassign $tw x tsIdx x usTsID x ulFrequency x ucLevel x ucQuality
altrow
puts "
[f2c $ulFrequency]
[expr $ulFrequency / 1000.0] MHz
"
puts "
[progressbar $ucLevel]
"
puts "
[progressbar $ucQuality]
"
set channels [$db query {
select usLcn, szSvcName, szPrvName, aucDefaultAuthority
from TBL_SVC left join TBL_PRV using (prvIdx)
where tsIdx = %s
order by usLcn
} $tsIdx]
puts "