| 1 |
|
| 2 |
################################################################################### |
| 3 |
# |
| 4 |
# Embperl - Copyright (c) 1997-2008 Gerald Richter / ecos gmbh www.ecos.de |
| 5 |
# Embperl - Copyright (c) 2008-2014 Gerald Richter |
| 6 |
# |
| 7 |
# You may distribute under the terms of either the GNU General Public |
| 8 |
# License or the Artistic License, as specified in the Perl README file. |
| 9 |
# |
| 10 |
# THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR |
| 11 |
# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED |
| 12 |
# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
| 13 |
# |
| 14 |
# $Id$ |
| 15 |
# |
| 16 |
################################################################################### |
| 17 |
|
| 18 |
package Embperl::Form::Control::line ; |
| 19 |
|
| 20 |
use strict ; |
| 21 |
use base 'Embperl::Form::Control' ; |
| 22 |
|
| 23 |
use Embperl::Inline ; |
| 24 |
|
| 25 |
1 ; |
| 26 |
|
| 27 |
__EMBPERL__ |
| 28 |
|
| 29 |
[# --------------------------------------------------------------------------- |
| 30 |
# |
| 31 |
# show - output the control |
| 32 |
#] |
| 33 |
|
| 34 |
[$ sub show ($self, $req) |
| 35 |
|
| 36 |
my $span = ($self->{width_percent}) ; |
| 37 |
my $state = $self -> {state} ; |
| 38 |
$] |
| 39 |
<table class="ef-element ef-element-width-[+ $self -> {width_percent} +] ef-element-[+ $self -> {type} +] [+ $self -> {state} +]"> |
| 40 |
<tr> <td class="cBase cTransparentBox" colspan="[+ $span +] [+ $state +]"><hr class="cControlLine"></td> |
| 41 |
</tr></table> |
| 42 |
[$endsub$] |
| 43 |
|
| 44 |
|
| 45 |
__END__ |
| 46 |
|
| 47 |
=pod |
| 48 |
|
| 49 |
=head1 NAME |
| 50 |
|
| 51 |
Embperl::Form::Control::line - A horizontal line an Embperl Form |
| 52 |
|
| 53 |
|
| 54 |
=head1 SYNOPSIS |
| 55 |
|
| 56 |
{ |
| 57 |
type => 'line', |
| 58 |
} |
| 59 |
|
| 60 |
=head1 DESCRIPTION |
| 61 |
|
| 62 |
Used to create a horizontal line inside an Embperl Form. |
| 63 |
See Embperl::Form on how to specify parameters. |
| 64 |
|
| 65 |
=head2 PARAMETER |
| 66 |
|
| 67 |
=head3 type |
| 68 |
|
| 69 |
Needs to be 'line' |
| 70 |
|
| 71 |
|
| 72 |
=head1 Author |
| 73 |
|
| 74 |
G. Richter (richter at embperl dot org) |
| 75 |
|
| 76 |
=head1 See Also |
| 77 |
|
| 78 |
perl(1), Embperl, Embperl::Form |
| 79 |
|
| 80 |
|