forked from gwu-libraries/srrs-mobile
-
Notifications
You must be signed in to change notification settings - Fork 1
/
schedule1.php
executable file
·76 lines (59 loc) · 1.81 KB
/
schedule1.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?php
/**
* Scheduler Application
* This file contians the scheduler application where
* users have an interface for reserving resources,
* viewing other reservations and modifying their own.
* @author Nick Korbel <lqqkout13@users.sourceforge.net>
* @version 07-18-04
* @package phpScheduleIt
*
* Copyright (C) 2003 - 2007 phpScheduleIt
* License: GPL, see LICENSE
*/
list($s_sec, $s_msec) = explode(' ', microtime()); // Start execution timer
/**
* Include Template class
*/
include_once('lib/Template1.class.php');
/**
* Include scheduler-specific output functions
*/
include_once('lib/Schedule1.class.php');
// Check that the user is logged in
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();
list($e_sec, $e_msec) = explode(' ', microtime()); // End execution timer
$tot = ((float)$e_sec + (float)$e_msec) - ((float)$s_sec + (float)$s_msec);
echo '<!--Schedule printout time: ' . sprintf('%.16f', $tot) . ' seconds-->';
// Print HTML footer
//$t->printHTMLFooter();
?>