grashoper has asked for the wisdom of the Perl Monks concerning the following question:
help subroutine.<% use Win32::OLE; #use strict; #use warnings; my $User = $Request->item("Login")->item(); my $Site = $Request->item("Site")->item(); #my $topic= $Request->item("Topic")->item(); my $Referer = $Request->ServerVariables("HTTP_REFERER")->item(); my $topic = $Request->ServerVariables->{'QUERY_STRING'}->item("Top +ic"); my %topics = ( home => 'TEMPO%205%20Help%20Topics-01-1.html', listingmgr => 'TEMPO%205%20Help%20Topics-06-1.html', cma => 'TEMPO%205%20Help%20Topics-11-1.html', hotsheetmgr => 'TEMPO%205%20Help%20Topics-10-1.html', clientmgr => 'TEMPO%205%20Help%20Topics-05-1.html', tempofinancials => 'TEMPO%205%20Help%20Topics-14-1.html', tools => 'TEMPO%205%20Help%20Topics-18-1.html', rep => 'TEMPO%205%20Help%20Topics-12-01.html', taxmgr => 'TEMPO%205%20Help%20Topics-13-1.html', TempoMemberInfo => 'TEMPO%205%20Help%20Topics-19-1.html', email => 'TEMPO%205%20Help%20Topics-09-1.html', ); if (!defined($topic)) { } my $startpoint = $topics{$topic}; if (!defined($startpoint)) { exit(); } return $startpoint;
sub tHelp(\$topics) if ($Session->{'usrType'} eq 'Std') { if ($Request->ServerVariables("SERVER_NAME")->item()=~/tempohelp/i +) { my $startpoint=$topics($topic);'Content/HELP/TPO/default/Tempo_ +help-08-1.html'; my $target='Tempo%20help_frame'; $str .= shadowBox("Tempo Help", qq^<help_iframe name="$target" +startpoint="$startpoint"/>^ , ($g_docWidth/5*4-(2*$g_docSpace))); return $str; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: linking into dynamically generated file passing hash value
by shmem (Chancellor) on Nov 08, 2007 at 09:06 UTC |