ENDOFHEADER } sub print_footer { print << "ENDOFFOOTER";
|
Community Education Links |
Contact Information
|
#!/usr/local/bin/perl -w
# fallcourses.cgi
# Program to display fall course information for Community Education
# After you publish a revised page you have to adjust the properties to 755
use strict;
# ******************** configuration variables
# **********************************************************************
my ($debugit) = 0; # 1 prints variable values at
# specific points for debugging
my ($runline) = "http://alamo.nmsu.edu/comed/fallcourses.cgi";
my ($datafile) = "/web/site/comed/tbl-FallCourse.txt";
my ($yearFallfile) = "/web/site/comed/yearFall.txt";
my ($webpath) = "http://alamo.nmsu.edu/community";
#******************** variable declarations
# **********************************************************************
my ($yearFall) = "";
print "Content-type: text/html\n\n";
# ****************** Main Routine **************************
# ***********************************************************
if ($debugit) { print "Beginning of Main Program
"; }
print_header();
if ($debugit) { print "Determine user input
"; }
if ($debugit) { print "ARGV = $ARGV[0]
"; }
if ($debugit) { print "Display data based on user input
"; }
read_yearFall();
if ($ARGV[0] ne "") {
if ($debugit) { print "ARGV = $ARGV[0]
"; }
if ($debugit) { print "go to print course info routine
"; }
print_courseinfo(); }
else {
print_courselist(); }
print_footer();
# **************** Begin subroutines ***********************
# ***********************************************************
sub print_courseinfo
{
my ($fileinfo) = "";
my (@lines) = "";
my ($line) = "";
# my (@fields) = "";
my (@temp) = "";
my ($i) = "";
my $numrecords = "";
my (@records) = "";
my ($record) = "";
my (@CourseID) = "";
my (@CourseTitle) = "";
my (@Instructor) = "";
my (@Fee);
my (@MaterialsCost) = "";
my (@Dates) = "";
my (@Day1stChoice) = "";
my (@Time) = "";
my (@Location) = "";
my (@CourseDescription) = "";
my (@EvalResults) = "";
my (@AgeRange) = "";
my (@MinStudents) = "";
my (@MaxStudents) = "";
my (@CurrentCount) = "";
my (@PreferredFacility) = "";
my (@Supplies) = "";
my (@Equipment) = "";
my (@WaiverNeeded) = "";
my (@Cancelled) = "";
my (@HoursPerWeek) = "";
my (@StartDate) = "";
my (@EndDate) = "";
my (@Category) = "";
my ($CurCategory) = "";
if ($debugit) { print "Open data file
"; }
# print "
| Back to Course Listing"; #print " |
|---|
Instructor: $Instructor[$i]
"; print "Course Description: $CourseDescription[$i]
| Course ID: | "; # print ""; print " | $CourseID[$i] |
| When: | "; print "$Dates[$i], $Day1stChoice[$i], $Time[$i] | |
| Where: | "; print "$Location[$i] | |
| What Age: | "; print "$AgeRange[$i] | |
| Min. Students: | "; print "$MinStudents[$i] | |
| Max. Students: | "; print "$MaxStudents[$i] | |
| Tuition: | "; print "$Fee[$i] |
Course Title
"; print "| Course Title: | "; #print ""; print " | |||
| "; print "$CourseTitle[$i] | "; #print "Instructor: | "; print " | $Dates[$i] | "; print "$Instructor[$i] |
|
Community Education Links |
Contact Information
|