package WebGUI::Shortcut; ##################################################################### ##################################################################### # NOTICE: Use of this subsystem is depricated and is not recommended. ##################################################################### ##################################################################### #------------------------------------------------------------------- # 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 Exporter; use strict; use WebGUI::Attachment; use WebGUI::International; use WebGUI::Session; use WebGUI::URL; our @ISA = qw(Exporter); our @EXPORT = qw(&attachmentBox &formHeader &formSave &tableFormRow &helpLink); # The subroutines found herein do nothing other than creating a # short way of doing much longer repetitive tasks. They simply # make the programmer's life easier through fewer keystrokes and # less cluttered code. #------------------------------------------------------------------- sub attachmentBox { my ($output, $attachment); $attachment = WebGUI::Attachment->new($_[0],$_[1],$_[2]); $output = '

'. ''.
		$attachment->getFilename.''.$attachment->getFilename
		.''.$attachment->getFilename.'
'; return $output; } #------------------------------------------------------------------- sub formHeader { my ($output); $output = '

'; return $output; } #------------------------------------------------------------------- sub formSave { my ($output); $output = ''.WebGUI::Form::submit(WebGUI::International::get(62)).''; return $output; } #------------------------------------------------------------------- sub helpLink { my ($output, $namespace); $namespace = $_[1] || "WebGUI"; $output = ''; return $output; } #------------------------------------------------------------------- sub tableFormRow { my ($output); $output = ''.$_[0].''.$_[1].''; return $output; } 1;