if (!Auth::is_logged_in()) { Auth::print_login_msg(); } $t = new Template1(translate('Online Scheduler')); $s = new Schedule(isset($_GET['scheduleid']) ? $_GET['scheduleid'] : null); // Print HTML headers $t->printHTMLHeader(); // Print welcome box $t->printWelcome(); // Begin main table $t->startMain(); ob_start(); // The schedule may take a long time to print out, so buffer all of that HTML data if ($s->isValid) { // Print Calendar Navigation on the left side $t->startNavLinkTable(); $t->showNavLinksTable(Auth::isAdmin()); $t->endNavLinkTable(); // $s->print_calendars(); //$s->print_color_key(); $t->splitTable(); // Print out links to jump to new date // $s->print_jump_links(); $s->print_schedule(); } else { $s->print_error(); } ob_end_flush(); // Write all of the HTML out // End main table $t->endMain();