| 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<SkinClassic> and I<SkinComplex> | ||
| 11 | read the source code and L<HTML::FormEngine::SkinComplex>. | ||
| 12 | |||
| 13 | =cut | ||
| 14 | |||
| 15 | ###################################################################### | ||
| 16 | |||
| 17 | package HTML::FormEngine::SkinClassic; | ||
| 18 | |||
| 19 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 20 | 1 | ▶ | use vars qw(@ISA); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 21 | 1 | ▶ | use HTML::FormEngine::SkinComplex; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 22 | 1 | @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 | 1 | ▶ | sub _get_templ { |
|
Subroutine
_get_templ: called CC=1 SCAR=0.0
| |||
| 29 | 1 | my %skin = %{HTML::FormEngine::SkinComplex::_get_templ(@_)}; | |
| 30 | |||
| 31 | 1 | $skin{_row} = ' | |
| 32 | <td valign="<&TITLE_VALIGN&>" align="<&TITLE_ALIGN&>" <&TD_EXTRA_TITLE&>><!<&#label&><span <&SP_NOTNULL&>><&#not_null&></span>!TITLE!></td> | ||
| 33 | <td <&TD_EXTRA&>><&_column <&#arg 0&>,<&#arg 1&>,<&#arg 2&>&></td> | ||
| 34 | <td align="<&ERROR_ALIGN&>" valign="<&ERROR_VALIGN&>" <&TD_EXTRA_ERROR&>><&#error&></td><&#seperate ,1&> | ||
| 35 | '; | ||
| 36 | |||
| 37 | 1 | $skin{_row_notitle} = ' | |
| 38 | <td colspan=2 <&TD_EXTRA&>><&_column <&#arg 0&>,<&#arg 1&>,<&#arg 2&>&></td> | ||
| 39 | <td align="<&ERROR_ALIGN&>" valign="<&ERROR_VALIGN&>" <&TD_EXTRA_ERROR&>><&#error&></td><&#seperate ,1&> | ||
| 40 | '; | ||
| 41 | |||
| 42 | 1 | $skin{_row_notitle_noerror} = ' | |
| 43 | <td colspan=3 <&TD_EXTRA&>><&_column <&#arg 0&>,<&#arg 1&>&></td><&#seperate ,1&> | ||
| 44 | '; | ||
| 45 | |||
| 46 | 1 | $skin{_row_noerror} = ' | |
| 47 | <td valign="<&TITLE_VALIGN&>" align="<&TITLE_ALIGN&>" <&TD_EXTRA_TITLE&>><!<&#label&><span <&SP_NOTNULL&>><&#not_null&></span>!TITLE!></td> | ||
| 48 | <td <&TD_EXTRA&> colspan=2><&_column <&#arg 0&>,<&#arg 1&>,<&#arg 2&>&></td><&#seperate ,1&> | ||
| 49 | '; | ||
| 50 | |||
| 51 | #_row_error_nl | ||
| 52 | 1 | $skin{_row2} = ' | |
| 53 | <td valign="<&TITLE_VALIGN&>" align="<&TITLE_ALIGN&>" <&TD_EXTRA_TITLE&>><!<&#label&><span <&SP_NOTNULL&>><&#not_null&></span>!TITLE!></td> | ||
| 54 | <td <&TD_EXTRA&> colspan=2><&_column <&#arg 0&>,<&#arg 1&>,<&#arg 2&>&></td> | ||
| 55 | </tr> | ||
| 56 | <tr> | ||
| 57 | <td align="<&ERROR_ALIGN&>" valign="<&ERROR_VALIGN&>" colspan=3 <&TD_EXTRA_ERROR&>><&#error&></td><&#seperate ,1&> | ||
| 58 | '; | ||
| 59 | |||
| 60 | 1 | return \%skin; | |
| 61 | } | ||
| 62 | |||
| 63 | |||
| 64 | 0 | ▶ | sub _get_confirm_skin { |
|
Subroutine
_get_confirm_skin: not called CC=1 SCAR=6.9
| |||
| 65 | 0 | require HTML::FormEngine::SkinClassicConfirm; | |
| 66 | 0 | return new HTML::FormEngine::SkinClassicConfirm; | |
| 67 | } | ||
| 68 | |||
| 69 | 1 | 1; | |
| 70 | |||
| 71 | __END__ | ||