| 1 | =head1 NAME | ||
| 2 | |||
| 3 | HTML::FormEngine::SkinClassicConfirm - the standard FormEngine confirm skin | ||
| 4 | |||
| 5 | =head1 ABOUT | ||
| 6 | |||
| 7 | This is the default confirm skin of FormEngine. It is based on the | ||
| 8 | skin class HTML::FormEngine::SkinClassic. | ||
| 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::SkinClassicConfirm; | ||
| 18 | |||
| 19 | use strict; | ||
| 20 | use vars qw(@ISA); | ||
| 21 | use HTML::FormEngine::SkinClassic; | ||
| 22 | @ISA = qw(HTML::FormEngine::SkinClassic); | ||
| 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', '_select_optgroup' => '#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__ |