line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package CGI::OptimalQuery::InteractiveQuery2; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
598
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
23
|
|
4
|
1
|
|
|
1
|
|
3
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
21
|
|
5
|
1
|
|
|
1
|
|
2
|
no warnings qw( uninitialized redefine ); |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
25
|
|
6
|
1
|
|
|
1
|
|
2
|
use base 'CGI::OptimalQuery::Base'; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
1670
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub output { |
9
|
0
|
|
|
0
|
0
|
|
my $o = shift; |
10
|
|
|
|
|
|
|
|
11
|
0
|
|
|
|
|
|
my %opts = %{ $o->get_opts() }; |
|
0
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
# evalulate code refs |
14
|
0
|
|
|
|
|
|
for (qw(httpHeader htmlFooter htmlHeader OQdocTop |
15
|
|
|
|
|
|
|
OQdocBottom OQformTop OQformBottom )) { |
16
|
0
|
0
|
|
|
|
|
$opts{$_} = $opts{$_}->($o) if ref($opts{$_}) eq 'CODE'; |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
# define defaults |
20
|
0
|
|
0
|
|
|
|
$opts{OQdocTop} ||= ''; |
21
|
0
|
|
0
|
|
|
|
$opts{OQdocBottom} ||= ''; |
22
|
0
|
|
0
|
|
|
|
$opts{OQformTop} ||= ''; |
23
|
0
|
|
0
|
|
|
|
$opts{OQformBottom} ||= ''; |
24
|
0
|
|
0
|
|
|
|
$opts{editButtonLabel}||= 'edit'; |
25
|
0
|
|
0
|
|
|
|
$opts{disable_sort} ||= 0; |
26
|
0
|
|
0
|
|
|
|
$opts{disable_filter} ||= 0; |
27
|
0
|
|
0
|
|
|
|
$opts{disable_select} ||= 0; |
28
|
0
|
|
0
|
|
|
|
$opts{mutateRecord} ||= undef; |
29
|
0
|
|
0
|
|
|
|
$opts{editLink} ||= undef; |
30
|
0
|
|
0
|
|
|
|
$opts{htmlExtraHead} ||= ""; |
31
|
0
|
0
|
|
|
|
|
if (! exists $opts{usePopups}) { |
32
|
0
|
|
|
|
|
|
$opts{usePopups}=1; |
33
|
|
|
|
|
|
|
} else { |
34
|
0
|
0
|
|
|
|
|
$opts{usePopups}=($opts{usePopups}) ? 1 : 0; |
35
|
|
|
|
|
|
|
} |
36
|
0
|
0
|
|
|
|
|
if (! exists $opts{useAjax}) { |
37
|
0
|
|
|
|
|
|
$opts{useAjax} = $opts{usePopups}; |
38
|
|
|
|
|
|
|
} else { |
39
|
0
|
0
|
|
|
|
|
$opts{useAjax}=($opts{useAjax}) ? 1 : 0; |
40
|
|
|
|
|
|
|
} |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
$opts{httpHeader} = $$o{q}->header(-type=>'text/html',-expires=>'now') |
43
|
0
|
0
|
|
|
|
|
unless exists $opts{httpHeader}; |
44
|
|
|
|
|
|
|
$opts{htmlFooter} = " |