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