FormEngine/SkinComplexConfirm.pm untested

filter: Statementstmt 0.0% 0 / 31 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 38 CC 1 SCAR 6.9
CC
1
Cov
0%
_get_templ
2.0
_get_confirm_skin
2.0
BEGIN
2.0
CRAP 2.0
1 =head1 NAME
2  
3 HTML::FormEngine::SkinComplexConfirm - the confirm skin for SkinComplex
4  
5 =head1 ABOUT
6  
7 This is a confirm skin. It is based on the skin class
8 HTML::FormEngine::SkinComplex.
9  
10 The confirm skin replaces the original skin when the confirm form is
11 created. Read L<HTML::FormEngine> for more.
12  
13 =cut
14  
15 ######################################################################
16  
17 package HTML::FormEngine::SkinComplexConfirm;
18  
19 use strict;
20 use vars qw(@ISA);
21 use HTML::FormEngine::SkinComplex;
22 @ISA = qw(HTML::FormEngine::SkinComplex);
23  
24 ######################################################################
25  
26 sub _get_templ {
27 my $self = shift;
28 my %skin = %{HTML::FormEngine::SkinClassic::_get_templ({'_check' => '#confirm_check_prepare 2', '_radio' => '#confirm_check_prepare 2', '_select' => '#confirm_check_prepare 2'})};
29  
30 $skin{main} = '
31 <form action="<&ACTION&>" method="<&METHOD&>" name="<&FORMNAME&>" accept="<&ACCEPT&>" enctype="<&ENCTYPE&>" target="<&TARGET&>" id="<&FORMNAME&>" <&FORM_EXTRA&>>
32 <table border=<&FORM_TABLE_BORDER&> cellspacing=<&FORM_TABLE_CELLSP&> cellpadding=<&FORM_TABLE_CELLPAD&> align="<&FORM_ALIGN&>" <&FORM_TABLE_EXTRA&>>
33 <tr <&ROW_CONFMSG_EXTRA&>><td colspan=3 align="<&CONFMSG_ALIGN&>" <&TD_CONFMSG_EXTRA&>><!<&#gettext_var CONFIRMSG&><br><br>!CONFIRMSG!></td></tr><~
34 <tr <&FORM_ROW_EXTRA&>><&TEMPL&></tr>~TEMPL FORM_ROW_EXTRA~>
35 <tr <&LROW_EXTRA&>>
36 <td align="<&CANCEL_ALIGN&>" <&LCOL_EXTRA&>>
37 <!<input type="submit" name="<&CONFIRM_CANCEL&>" value="<&#gettext_var CANCEL&>"/>!CANCEL!>
38 </td>
39 <td align="<&SUBMIT_ALIGN&>" colspan=2 <&LCOL_EXTRA&>>
40 <!<input type="submit" value="<&SUBMIT&>" name="<&CONFIRMED&>" <&SUBMIT_EXTRA&>/>!SUBMIT!>
41 </td>
42 </tr>
43 </table>
44 <~<&HIDDEN&>~HIDDEN~>
45 <input type="hidden" name="<&FORMNAME&>" value="1" />
46 </form>';
47  
48 $skin{'_text'} = '<&_print&>';
49 $skin{'_radio'} = '<&_print_option&>';
50 $skin{'_select'} = '<&_print_option&>';
51 $skin{'_select_optgroup'} ='<&_print_option&>';
52 $skin{'_select_flexible'} = '<&_templ&>';
53 $skin{'_optgroup'} = '<&_print_option&>';
54 $skin{'optgroup'} = '<&#confirm_check_prepare 2&><&_print_option&>';
55 $skin{'optgroup_flexible'} = '<&_templ&>';
56 $skin{'_option'} = '<&_print_option&>';
57 $skin{'option'} = '<&#confirm_check_prepare 2&><&_print_option&>';
58 $skin{'_check'} = '<&_print_option&>';
59 $skin{'_textarea'} = '<&_print&>';
60  
61 return \%skin;
62 }
63  
64 sub _get_confirm_skin {
65 return undef;
66 }
67  
68 1;
69  
70 __END__