use Date::Manip; use DBI(); use CGI qw(:standard); require "../common.pl"; require "../sitevariables.pl"; $cur = CGI->new(); $mode = "default"; if($cur->param("mode")) { $mode = $cur->param("mode"); } $day = $cur->param("day"); $month = $cur->param("month"); $year = $cur->param("year"); $sec = $cur->param("sec"); $min = $cur->param("min"); $hour = $cur->param("hour"); $end_min = $cur->param("end_min"); $end_hour = $cur->param("end_hour"); $end_am_pm = $cur->param("end_am_pm"); $am_pm_day = $cur->param("am_pm_day"); $laptop = $cur->param("laptop"); $conf_room = $cur->param("conf_room"); @am_or_pm = ("","AM","PM"); @end_am_or_pm = ("","AM","PM"); ("","Exec","06","11","16","31","35","47","none"); @pretty_months = ("","January","Febuary","March","April","May","June","July","August","September","October","November","December"); $content .= ""; $content .= "
<-- back to calendar 
"; if($cur->param("Delete")){ $content .= delete_appointment($day,$month,$year,$hour,$min,$conf_room,$conf_rooms); } $content .= print_form(); if($cur->param("conf_room")){ $content .= update_day(); } $content .= display_appointments($day,$month,$year,$hour,$min,$am_pm_day,$end_hour,$end_min,$end_am_pm,$conf_room); open (TEMPLATE, "../template.html")||dienice("Content-type: text/html\n\nCould not find template"); while (