and a html-template snippet:#!/usr/bin/perl use strict; use warnings; use CGI; use CGI::Carp qw ( fatalsToBrowser ); use HTML::Template; my $q = new CGI; my $app = $q->param('app') || 'help'; my $template = HTML::Template->new(filename => 'app_wrap.tmpl'); my $application_to_call = '/main.html'; $application_to_call = '/cgi-bin/staff.pl' if ($app eq 'staff'); $application_to_call = '/db/staff/selstad.pl' if ($app eq 'adm_sta +ff'); $application_to_call = '/db/staff/birthday.pl' if ($app eq 'birthd +ay'); $application_to_call = '/db/staff/firmenjub.pl' if ($app eq 'jubilee') +; $application_to_call = '/db/staff/location.pl' if ($app eq 'locati +on'); print $q->header(); $template->param(app => $application_to_call); print $template->output(); exit;
<!-- snip --> <frameset frameborder="no" framespacing="0" border="0" rows="80,*"> <frame marginwidth="0" marginheight="0" scrolling="no" src="/logo_t +op.html"> <frame name="main" src="<TMPL_VAR NAME="app">"> </frameset> <!-- snip -->
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to get those CGIs running in a frame.
by Tomte (Priest) on Apr 08, 2004 at 16:06 UTC | |
by neniro (Priest) on Apr 08, 2004 at 16:44 UTC | |
by Tomte (Priest) on Apr 08, 2004 at 17:09 UTC |