#! /dcs/bin/perl # # this perl script makes the signup sheet. use strict; use CGI; $|=1; #-------------- globals---------- STARTS ------------------ my $progName="signup.pl"; my $query=new CGI; my $g_debug=0; my $g_title="Sign-up for the Final Presentation (3/22/02)"; # # time slot info # my @times = ( 'time '. "8:00am!8:15am!8:30am!8:45am!9:00am!9:15am!9:30am!9:45am ", 'time '. "10:00am!10:15am!10:30am!10:45am!11:00am!11:15am ", 'time '. "13:00pm!13:15pm!13:30pm!13:45pm!14:00pm!14:15pm!14:30pm!14:45pm ", # 'time '. # "1:30pm!2:30pm!3:30pm ", ); #-------------- globals---------- ENDS ------------------ my $debugPrefix = ""; my $rosterDB = "roster.db"; # name and student ID my $scheduleDB = "schedule.db"; # groups and time slots. my $groupDB = "group.db"; # definition of groups my @students=(); my @teams=(); my %sInfo = (); # multiply indexed by $id, 'name' or 'email' my %schedule=(); # maps date!hour!min to team string. &readRoster; &readGroups; &readSchedule; print $query->header; &printHTMLHeader(); # decide what to do based on the input if ($query->param("login")) { &printLoginPage(); } elsif ($query->param("new")) { &processNewPage(); } elsif ($query->param("debug")) { # &printRoster(@students); &printGroups(); } elsif ($query->param("register")) { ®isterTeam(); } elsif ($query->param("signup")) { &signUp(); } else { &printDefaultPage(); } &printHTMLTrailer(); sub printHTMLTrailer { my $e3 = "http://e3.uci.edu"; print << "EOF";
| [ EEE Home | UCI Home | Site Search | Help ] |
| Links on these pages to commercial sites do not represent endorsement by the University of California or its affiliates. See UCI Administrative Policies & Procedures Section 800-16 for the World Wide Web Publishing Policy |