blib/lib/CGI/OptimalQuery/ExportDataTool.pm untested

filter: Statementstmt 0.0% 0 / 6 Branchbran n/a Conditioncond 0.0% 0 / 2 MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 13 CC 1 SCAR 6.9
CC
1
Cov
0%
on_open
2.0
activate
2.0
BEGIN
2.0
CRAP 2.0
1 package CGI::OptimalQuery::ExportDataTool;
2  
3 use strict;
4  
5 sub on_open {
6 return "
7 <label class=ckbox><input type=checkbox class=OQExportAllResultsInd checked> all pages</label>
8 <p>
9 <strong>download as..</strong><br>
10 <a class=OQDownloadCSV href=#>CSV (Excel)</a>,
11 <a class=OQDownloadHTML href=#>HTML</a>,
12 <a class=OQDownloadXML href=#>XML</a>";
13 }
14  
15 sub activate {
16 my ($o) = @_;
17 $$o{schema}{tools}{export} ||= {
18 title => "Export Data",
19 on_open => \&on_open
20 };
21 }
22  
23 1;