add csv download to ap channel distribution report
This commit is contained in:
		| @@ -1,3 +1,4 @@ | ||||
| [% INCLUDE "download_as.tt" %] | ||||
| <table class="table table-bordered table-condensed table-striped nd_floatinghead"> | ||||
|   <thead> | ||||
|     <tr> | ||||
|   | ||||
							
								
								
									
										10
									
								
								Netdisco/share/views/ajax/report/apchanneldist_csv.tt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								Netdisco/share/views/ajax/report/apchanneldist_csv.tt
									
									
									
									
									
										Normal 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 %] | ||||
		Reference in New Issue
	
	Block a user