| 1 | ################################################################################### | ||
| 2 | # | ||
| 3 | # Embperl - Copyright (c) 1997-2008 Gerald Richter / ecos gmbh www.ecos.de | ||
| 4 | # Embperl - Copyright (c) 2008-2015 Gerald Richter | ||
| 5 | # Embperl - Copyright (c) 2015-2023 actevy.io | ||
| 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::hidden ; | ||
| 19 | |||
| 20 | use strict ; | ||
| 21 | use base 'Embperl::Form::Control' ; | ||
| 22 | |||
| 23 | use Embperl::Inline ; | ||
| 24 | |||
| 25 | sub noframe { return 1; } | ||
| 26 | |||
| 27 | # --------------------------------------------------------------------------- | ||
| 28 | # | ||
| 29 | # is_hidden - returns true if this is a hidden control | ||
| 30 | # | ||
| 31 | |||
| 32 | sub is_hidden | ||
| 33 | |||
| 34 | { | ||
| 35 | my ($self, $req) = @_ ; | ||
| 36 | |||
| 37 | return 1 ; | ||
| 38 | } | ||
| 39 | |||
| 40 | sub show_control { show (@_) ; } | ||
| 41 | sub show_control_readonly { show (@_) ; } | ||
| 42 | |||
| 43 | |||
| 44 | 1 ; | ||
| 45 | |||
| 46 | __EMBPERL__ | ||
| 47 | |||
| 48 | [# --------------------------------------------------------------------------- | ||
| 49 | # | ||
| 50 | # show_control - output the control | ||
| 51 | #] | ||
| 52 | |||
| 53 | [$ sub show ($self, $req) | ||
| 54 | |||
| 55 | my $name = $self->{name}; | ||
| 56 | my $value = exists $self->{value} ? $self->{value} : $fdat{$name}; | ||
| 57 | |||
| 58 | $] | ||
| 59 | <input type="hidden" name="[+ $name +]" value="[+ $value +]" id="[+ $self->{id} +]"> | ||
| 60 | [$endsub$] | ||
| 61 | |||
| 62 | __END__ |