add csv download to ap channel distribution report

This commit is contained in:
Eric A. Miller
2013-09-18 23:50:27 -04:00
parent 0824d7936a
commit 5d4df72a24
3 changed files with 36 additions and 1 deletions

View File

@@ -1,3 +1,4 @@
[% INCLUDE "download_as.tt" %]
<table class="table table-bordered table-condensed table-striped nd_floatinghead">
<thead>
<tr>

View File

@@ -0,0 +1,10 @@
[% USE CSV -%]
[% CSV.dump([ 'Channel' 'Count' ]) %]
[% WHILE (row = results.next) %]
[% mylist = [] %]
[% mylist.push(row.channel) %]
[% mylist.push(row.get_column('ch_count')) %]
[% CSV.dump(mylist) %]
[% END %]