#!/usr/bin/perl -w use CGI qw(:standard -debug); use CGI::Pretty ":standard"; use CGI::Carp qw(fatalsToBrowser); ########### Credits ################# # Script written by R. Todd Vandenbark ##################################### #----------- define variables ---------- my $orgname; # Greek organization name my $contact; # contact name my $cphone; # contact phone my $contem; # contact email my $inputfile='../../org.txt'; # file containing org info my @orglist=""; # list of Greek organizations my $key; # item in array $logo = ''; # ---- read input file ------ open (IN, "$inputfile") || die "Can't open $inputfile: $!\n"; @orglist = ; close IN; # ---- start selection form ---- $method = 'post'; $action = 'deleteorg.cgi'; $encoding = 'application/x-www-form-urlencoded'; my $css = ''; my $title = 'List of organizations'; my $subtitle = 'Select one from list'; print header(); print start_html(-title => $title, -head => $css, -class => 'oneColFixCtrHdr'); print '
'; print '
'; print h2("$subtitle"); print "\n"; print startform($method,$action,$encoding); print '
    '; foreach $key (@orglist) { ($orgname,$contact,$contem,$cphone) = split (/:/, $key); print '
  • '. ''. $orgname . ', ' . $contact . ', ' . $contem . ', ' . $cphone . '
  • ' . "\n"; } print '
'; print '

'; print reset; print '   '; print submit(-name=>'submit', -value=>'Delete'); print '

'; print end_form(); print <
Report a problem.
Main menu. Help function EOF print '
'. ''. '
'; print end_html;