| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
=head1 NAME |
|
2
|
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
HTML::FormEngine::SkinClassic - the standard FormEngine skin |
|
4
|
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
=head1 ABOUT |
|
6
|
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
This is the default skin of FormEngine. It is based on the skin class |
|
8
|
|
|
|
|
|
|
HTML::FormEngine::SkinComplex. |
|
9
|
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
To understand the diffrence between I and I |
|
11
|
|
|
|
|
|
|
read the source code and L. |
|
12
|
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
=cut |
|
14
|
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
###################################################################### |
|
16
|
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
package HTML::FormEngine::SkinClassic; |
|
18
|
|
|
|
|
|
|
|
|
19
|
1
|
|
|
1
|
|
4
|
use strict; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
30
|
|
|
20
|
1
|
|
|
1
|
|
4
|
use vars qw(@ISA); |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
37
|
|
|
21
|
1
|
|
|
1
|
|
510
|
use HTML::FormEngine::SkinComplex; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
129
|
|
|
22
|
|
|
|
|
|
|
@ISA = qw(HTML::FormEngine::SkinComplex); |
|
23
|
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
###################################################################### |
|
25
|
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
#NOTE: its important that templates which do not implement a certain field but are of a generic type (reuseable) begin with _, else the seperate algorithm does not work |
|
27
|
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
sub _get_templ { |
|
29
|
1
|
|
|
1
|
|
1
|
my %skin = %{HTML::FormEngine::SkinComplex::_get_templ(@_)}; |
|
|
1
|
|
|
|
|
6
|
|
|
30
|
|
|
|
|
|
|
|
|
31
|
1
|
|
|
|
|
14
|
$skin{_row} = ' |
|
32
|
|
|
|
|
|
|
| >><not_null&>!TITLE!> |
|
33
|
|
|
|
|
|
|
| ><&_column <arg 0&>,<arg 1&>,<arg 2&>&> |
|
34
|
|
|
|
|
|
|
| ><error&> | <seperate ,1&>
|
35
|
|
|
|
|
|
|
'; |
|
36
|
|
|
|
|
|
|
|
|
37
|
1
|
|
|
|
|
2
|
$skin{_row_notitle} = ' |
|
38
|
|
|
|
|
|
|
| ><&_column <arg 0&>,<arg 1&>,<arg 2&>&> |
|
39
|
|
|
|
|
|
|
| ><error&> | <seperate ,1&>
|
40
|
|
|
|
|
|
|
'; |
|
41
|
|
|
|
|
|
|
|
|
42
|
1
|
|
|
|
|
2
|
$skin{_row_notitle_noerror} = ' |
|
43
|
|
|
|
|
|
|
| ><&_column <arg 0&>,<arg 1&>&> | <seperate ,1&>
|
44
|
|
|
|
|
|
|
'; |
|
45
|
|
|
|
|
|
|
|
|
46
|
1
|
|
|
|
|
2
|
$skin{_row_noerror} = ' |
|
47
|
|
|
|
|
|
|
| >><not_null&>!TITLE!> |
|
48
|
|
|
|
|
|
|
| colspan=2><&_column <arg 0&>,<arg 1&>,<arg 2&>&> | <seperate ,1&>
|
49
|
|
|
|
|
|
|
'; |
|
50
|
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
#_row_error_nl |
|
52
|
1
|
|
|
|
|
2
|
$skin{_row2} = ' |
|
53
|
|
|
|
|
|
|
| >><not_null&>!TITLE!> |
|
54
|
|
|
|
|
|
|
| colspan=2><&_column <arg 0&>,<arg 1&>,<arg 2&>&> |
|
55
|
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
| ><error&> | <seperate ,1&>
|
58
|
|
|
|
|
|
|
'; |
|
59
|
|
|
|
|
|
|
|
|
60
|
1
|
|
|
|
|
11
|
return \%skin; |
|
61
|
|
|
|
|
|
|
} |
|
62
|
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
sub _get_confirm_skin { |
|
65
|
0
|
|
|
0
|
|
|
require HTML::FormEngine::SkinClassicConfirm; |
|
66
|
0
|
|
|
|
|
|
return new HTML::FormEngine::SkinClassicConfirm; |
|
67
|
|
|
|
|
|
|
} |
|
68
|
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
1; |
|
70
|
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
__END__ |