WebGUI 3.4.0 release
This commit is contained in:
parent
80f7752f32
commit
a93b42789a
23 changed files with 3262 additions and 568 deletions
33
lib/WebGUI/Macro/FormParam.pm
Normal file
33
lib/WebGUI/Macro/FormParam.pm
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
package WebGUI::Macro::FormParam;
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
# WebGUI is Copyright 2001-2002 Plain Black Software.
|
||||
#-------------------------------------------------------------------
|
||||
# Please read the legal notices (docs/legal.txt) and the license
|
||||
# (docs/license.txt) that came with this distribution before using
|
||||
# this software.
|
||||
#-------------------------------------------------------------------
|
||||
# http://www.plainblack.com info@plainblack.com
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
use strict;
|
||||
use WebGUI::Macro;
|
||||
use WebGUI::Session;
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
sub _replacement {
|
||||
my (@param);
|
||||
@param = WebGUI::Macro::getParams($1);
|
||||
return $session{form}{$param[0]};
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
sub process {
|
||||
my ($output, $temp, @param);
|
||||
$output = $_[0];
|
||||
$output =~ s/\^FormParam\((.*?)\)\;/_replacement($1)/ge;
|
||||
return $output;
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue