Calendar Functions - Using PHP






Categories of events in calendar

To create any type of calendar, you need to specify the category whose events should be shown. Here is a current list of categories available (although not all will have events available yet).

Available Categories:
  • All
  • Academic
  • Alumni
  • Athletic
  • Community Events
  • Cont Ed
  • Fine Arts
  • General
  • HR Fac Staff
  • HR Students
  • International Education
  • Scholarship
  • Student Activities


Note: The category can be any one or combination (separated by commas) of the categories listed above. Please make sure the spelling is correct.

Locations of events in calendar

You also have the option of specifying the location whose events should be shown. Here is a current list of locations available

Available Locations:
  • All
  • College-Wide
  • Off-Campus
  • Alpharetta
  • Clarkston
  • Decatur
  • Dunwoody
  • Newton


GPC groups of people interested in events:

You also have the option of specifying the people whose events should be shown. Below is a current list of groups of people available.

Available GPC groups:
  • All
  • Current Student
  • Faculty / Staff
  • Future Student
  • Visitors / Friends



Creating a Large Calendar with Abbreviated Descriptions


Example:

 
< Prev Month November 2014 (this month) Next Month >
Sun. Mon. Tues. Wed. Thurs. Fri. Sat.
            1
Withdraw (...
Withdraw (...
Registrati...
2
Withdraw (...
Withdraw (...
Registrati...
3
Withdraw (...
Withdraw (...
Registrati...
4
Withdraw (...
Withdraw (...
Registrati...
5
Midpoint f...
Withdraw (...
Withdraw (...
Registrati...
6
Withdraw (...
Withdraw (...
Registrati...
7
Withdraw (...
Withdraw (...
Registrati...
8
Withdraw (...
Withdraw (...
Registrati...
9
Withdraw (...
Withdraw (...
Registrati...
10
Withdraw (...
Withdraw (...
Registrati...
11
Orientatio...
Withdraw (...
Withdraw (...
Registrati...
12
Withdraw (...
Withdraw (...
Registrati...
13
Withdraw (...
Withdraw (...
Registrati...
14
Orientatio...
Withdraw (...
Withdraw (...
Registrati...
15
Withdraw (...
Withdraw (...
Registrati...
16
Withdraw (...
Withdraw (...
Registrati...
17
Withdraw (...
Withdraw (...
Registrati...
18
Orientatio...
Withdraw (...
Withdraw (...
Registrati...
19
Withdraw (...
Withdraw (...
Registrati...
20
Priority A...
Withdraw (...
Withdraw (...
Registrati...
21
Withdraw (...
Registrati...
22
Last Day f...
Withdraw (...
Registrati...
23
Withdraw (...
Registrati...
24
Withdraw (...
Registrati...
25
Last Day f...
Registrati...
26
Student St...
Registrati...
27
Thanksgivi...
Registrati...
28
Thanksgivi...
Registrati...
29
Thanksgivi...
Registrati...
30
Thanksgivi...
Registrati...
           


To create a large calendar with abbreviated descriptions, place these lines of code anywhere on your page between the StartGPC() and EndGPC() lines and between PHP tags (<? and ?>):

$calendar_category="academic";  // view details about this line
$calendar_campus="all";  // view details about this line
$people="all";  // view details about this line
$calendar_width=540;  // optional line - values can be between 1 and 540
include "php_classes/calendar.php3";  // required line
echo $cal->get_calendar_grid();  // required line



Creating a Large Calendar with Full Descriptions


Example:

Printable Version
< Prev Month November 2014 (this month) Next Month >
Sun. Mon. Tues. Wed. Thurs. Fri. Sat.
            1
Withdraw (W) - Second Half Classes

Students must withdraw between October 14 and November 5 to receive a 'W' for the class.Withdrawal Policy

Withdraw (WF) - Full Term Classes

Students must withdraw between October 15 and November 24 to receive a 'WF' for the class.
Withdrawal Policy

November 24 is the last day to withdraw from Full Term Classes

Registration for Spring 2015 - Open
Registration is available for Full Term, First Half and Second Half classes for the Spring 2015 Semester.
2
Withdraw (W) - Second Half Classes

Students must withdraw between October 14 and November 5 to receive a 'W' for the class.Withdrawal Policy

Withdraw (WF) - Full Term Classes

Students must withdraw between October 15 and November 24 to receive a 'WF' for the class.
Withdrawal Policy

November 24 is the last day to withdraw from Full Term Classes

Registration for Spring 2015 - Open
Registration is available for Full Term, First Half and Second Half classes for the Spring 2015 Semester.
3
Withdraw (W) - Second Half Classes

Students must withdraw between October 14 and November 5 to receive a 'W' for the class.Withdrawal Policy

Withdraw (WF) - Full Term Classes

Students must withdraw between October 15 and November 24 to receive a 'WF' for the class.
Withdrawal Policy

November 24 is the last day to withdraw from Full Term Classes

Registration for Spring 2015 - Open
Registration is available for Full Term, First Half and Second Half classes for the Spring 2015 Semester.
4
Withdraw (W) - Second Half Classes

Students must withdraw between October 14 and November 5 to receive a 'W' for the class.Withdrawal Policy

Withdraw (WF) - Full Term Classes

Students must withdraw between October 15 and November 24 to receive a 'WF' for the class.
Withdrawal Policy

November 24 is the last day to withdraw from Full Term Classes

Registration for Spring 2015 - Open
Registration is available for Full Term, First Half and Second Half classes for the Spring 2015 Semester.
5
Midpoint for Second Half Term Classes

Withdraw (W) - Second Half Classes

Students must withdraw between October 14 and November 5 to receive a 'W' for the class.Withdrawal Policy

Withdraw (WF) - Full Term Classes

Students must withdraw between October 15 and November 24 to receive a 'WF' for the class.
Withdrawal Policy

November 24 is the last day to withdraw from Full Term Classes

Registration for Spring 2015 - Open
Registration is available for Full Term, First Half and Second Half classes for the Spring 2015 Semester.
6
Withdraw (WF) - Full Term Classes

Students must withdraw between October 15 and November 24 to receive a 'WF' for the class.
Withdrawal Policy

November 24 is the last day to withdraw from Full Term Classes

Withdraw (WF) - Second Half Classes

Students must withdraw between November 6 and November 20 to receive a 'WF' for the class.
Withdrawal Policy

November 20 is the last day to withdraw from Second Half Term Classes

Registration for Spring 2015 - Open
Registration is available for Full Term, First Half and Second Half classes for the Spring 2015 Semester.
7
Withdraw (WF) - Full Term Classes

Students must withdraw between October 15 and November 24 to receive a 'WF' for the class.
Withdrawal Policy

November 24 is the last day to withdraw from Full Term Classes

Withdraw (WF) - Second Half Classes

Students must withdraw between November 6 and November 20 to receive a 'WF' for the class.
Withdrawal Policy

November 20 is the last day to withdraw from Second Half Term Classes

Registration for Spring 2015 - Open
Registration is available for Full Term, First Half and Second Half classes for the Spring 2015 Semester.
8
Withdraw (WF) - Full Term Classes

Students must withdraw between October 15 and November 24 to receive a 'WF' for the class.
Withdrawal Policy

November 24 is the last day to withdraw from Full Term Classes

Withdraw (WF) - Second Half Classes

Students must withdraw between November 6 and November 20 to receive a 'WF' for the class.
Withdrawal Policy

November 20 is the last day to withdraw from Second Half Term Classes

Registration for Spring 2015 - Open
Registration is available for Full Term, First Half and Second Half classes for the Spring 2015 Semester.
9
Withdraw (WF) - Full Term Classes

Students must withdraw between October 15 and November 24 to receive a 'WF' for the class.
Withdrawal Policy

November 24 is the last day to withdraw from Full Term Classes

Withdraw (WF) - Second Half Classes

Students must withdraw between November 6 and November 20 to receive a 'WF' for the class.
Withdrawal Policy

November 20 is the last day to withdraw from Second Half Term Classes

Registration for Spring 2015 - Open
Registration is available for Full Term, First Half and Second Half classes for the Spring 2015 Semester.
10
Withdraw (WF) - Full Term Classes

Students must withdraw between October 15 and November 24 to receive a 'WF' for the class.
Withdrawal Policy

November 24 is the last day to withdraw from Full Term Classes

Withdraw (WF) - Second Half Classes

Students must withdraw between November 6 and November 20 to receive a 'WF' for the class.
Withdrawal Policy

November 20 is the last day to withdraw from Second Half Term Classes

Registration for Spring 2015 - Open
Registration is available for Full Term, First Half and Second Half classes for the Spring 2015 Semester.
11
Orientation - All Campuses (5PM)
(Alpharetta, Clarkston, Decatur, Dunwoody, Newton)

Orientation Sessions at 5PM on all campuses.
Withdraw (WF) - Full Term Classes

Students must withdraw between October 15 and November 24 to receive a 'WF' for the class.
Withdrawal Policy

November 24 is the last day to withdraw from Full Term Classes

Withdraw (WF) - Second Half Classes

Students must withdraw between November 6 and November 20 to receive a 'WF' for the class.
Withdrawal Policy

November 20 is the last day to withdraw from Second Half Term Classes

Registration for Spring 2015 - Open
Registration is available for Full Term, First Half and Second Half classes for the Spring 2015 Semester.
12
Withdraw (WF) - Full Term Classes

Students must withdraw between October 15 and November 24 to receive a 'WF' for the class.
Withdrawal Policy

November 24 is the last day to withdraw from Full Term Classes

Withdraw (WF) - Second Half Classes

Students must withdraw between November 6 and November 20 to receive a 'WF' for the class.
Withdrawal Policy

November 20 is the last day to withdraw from Second Half Term Classes

Registration for Spring 2015 - Open
Registration is available for Full Term, First Half and Second Half classes for the Spring 2015 Semester.
13
Withdraw (WF) - Full Term Classes

Students must withdraw between October 15 and November 24 to receive a 'WF' for the class.
Withdrawal Policy

November 24 is the last day to withdraw from Full Term Classes

Withdraw (WF) - Second Half Classes

Students must withdraw between November 6 and November 20 to receive a 'WF' for the class.
Withdrawal Policy

November 20 is the last day to withdraw from Second Half Term Classes

Registration for Spring 2015 - Open
Registration is available for Full Term, First Half and Second Half classes for the Spring 2015 Semester.
14
Orientation - Dunwoody / Decatur (9AM, 11AM, 2PM)
(Decatur, Dunwoody)

Orientation sessions at Decatur and Dunwoody - sessions at 9AM, 11AM and 2PM.
Withdraw (WF) - Full Term Classes

Students must withdraw between October 15 and November 24 to receive a 'WF' for the class.
Withdrawal Policy

November 24 is the last day to withdraw from Full Term Classes

Withdraw (WF) - Second Half Classes

Students must withdraw between November 6 and November 20 to receive a 'WF' for the class.
Withdrawal Policy

November 20 is the last day to withdraw from Second Half Term Classes

Registration for Spring 2015 - Open
Registration is available for Full Term, First Half and Second Half classes for the Spring 2015 Semester.
15
Withdraw (WF) - Full Term Classes

Students must withdraw between October 15 and November 24 to receive a 'WF' for the class.
Withdrawal Policy

November 24 is the last day to withdraw from Full Term Classes

Withdraw (WF) - Second Half Classes

Students must withdraw between November 6 and November 20 to receive a 'WF' for the class.
Withdrawal Policy

November 20 is the last day to withdraw from Second Half Term Classes

Registration for Spring 2015 - Open
Registration is available for Full Term, First Half and Second Half classes for the Spring 2015 Semester.
16
Withdraw (WF) - Full Term Classes

Students must withdraw between October 15 and November 24 to receive a 'WF' for the class.
Withdrawal Policy

November 24 is the last day to withdraw from Full Term Classes

Withdraw (WF) - Second Half Classes

Students must withdraw between November 6 and November 20 to receive a 'WF' for the class.
Withdrawal Policy

November 20 is the last day to withdraw from Second Half Term Classes

Registration for Spring 2015 - Open
Registration is available for Full Term, First Half and Second Half classes for the Spring 2015 Semester.
17
Withdraw (WF) - Full Term Classes

Students must withdraw between October 15 and November 24 to receive a 'WF' for the class.
Withdrawal Policy

November 24 is the last day to withdraw from Full Term Classes

Withdraw (WF) - Second Half Classes

Students must withdraw between November 6 and November 20 to receive a 'WF' for the class.
Withdrawal Policy

November 20 is the last day to withdraw from Second Half Term Classes

Registration for Spring 2015 - Open
Registration is available for Full Term, First Half and Second Half classes for the Spring 2015 Semester.
18
Orientation - All Campuses (5PM)
(Alpharetta, Clarkston, Decatur, Dunwoody, Newton)

Orientation sessions available at all campuses - 5PM.
Withdraw (WF) - Full Term Classes

Students must withdraw between October 15 and November 24 to receive a 'WF' for the class.
Withdrawal Policy

November 24 is the last day to withdraw from Full Term Classes

Withdraw (WF) - Second Half Classes

Students must withdraw between November 6 and November 20 to receive a 'WF' for the class.
Withdrawal Policy

November 20 is the last day to withdraw from Second Half Term Classes

Registration for Spring 2015 - Open
Registration is available for Full Term, First Half and Second Half classes for the Spring 2015 Semester.
19
Withdraw (WF) - Full Term Classes

Students must withdraw between October 15 and November 24 to receive a 'WF' for the class.
Withdrawal Policy

November 24 is the last day to withdraw from Full Term Classes

Withdraw (WF) - Second Half Classes

Students must withdraw between November 6 and November 20 to receive a 'WF' for the class.
Withdrawal Policy

November 20 is the last day to withdraw from Second Half Term Classes

Registration for Spring 2015 - Open
Registration is available for Full Term, First Half and Second Half classes for the Spring 2015 Semester.
20
Priority Application Deadline - Full Term and First Half
For students wishing to enroll in Full term or First half classes for the Spring of 2015 please ensure you have completed your application and submitted all required documents for processing by this day.
Withdraw (WF) - Full Term Classes

Students must withdraw between October 15 and November 24 to receive a 'WF' for the class.
Withdrawal Policy

November 24 is the last day to withdraw from Full Term Classes

Withdraw (WF) - Second Half Classes

Students must withdraw between November 6 and November 20 to receive a 'WF' for the class.
Withdrawal Policy

November 20 is the last day to withdraw from Second Half Term Classes

Registration for Spring 2015 - Open
Registration is available for Full Term, First Half and Second Half classes for the Spring 2015 Semester.
21
Withdraw (WF) - Full Term Classes

Students must withdraw between October 15 and November 24 to receive a 'WF' for the class.
Withdrawal Policy

November 24 is the last day to withdraw from Full Term Classes

Registration for Spring 2015 - Open
Registration is available for Full Term, First Half and Second Half classes for the Spring 2015 Semester.
22
Last Day for Saturday Classes

Withdraw (WF) - Full Term Classes

Students must withdraw between October 15 and November 24 to receive a 'WF' for the class.
Withdrawal Policy

November 24 is the last day to withdraw from Full Term Classes

Registration for Spring 2015 - Open
Registration is available for Full Term, First Half and Second Half classes for the Spring 2015 Semester.
23
Withdraw (WF) - Full Term Classes

Students must withdraw between October 15 and November 24 to receive a 'WF' for the class.
Withdrawal Policy

November 24 is the last day to withdraw from Full Term Classes

Registration for Spring 2015 - Open
Registration is available for Full Term, First Half and Second Half classes for the Spring 2015 Semester.
24
Withdraw (WF) - Full Term Classes

Students must withdraw between October 15 and November 24 to receive a 'WF' for the class.
Withdrawal Policy

November 24 is the last day to withdraw from Full Term Classes

Registration for Spring 2015 - Open
Registration is available for Full Term, First Half and Second Half classes for the Spring 2015 Semester.
25
Last Day for Second Half Term Classes

Registration for Spring 2015 - Open
Registration is available for Full Term, First Half and Second Half classes for the Spring 2015 Semester.
26
Student Study Day

No classes held. The college is open.

Registration for Spring 2015 - Open
Registration is available for Full Term, First Half and Second Half classes for the Spring 2015 Semester.
27
Thanksgiving Holiday

The college is closed.

Registration for Spring 2015 - Open
Registration is available for Full Term, First Half and Second Half classes for the Spring 2015 Semester.
28
Thanksgiving Holiday

The college is closed.

Registration for Spring 2015 - Open
Registration is available for Full Term, First Half and Second Half classes for the Spring 2015 Semester.
29
Thanksgiving Holiday

The college is closed.

Registration for Spring 2015 - Open
Registration is available for Full Term, First Half and Second Half classes for the Spring 2015 Semester.
30
Thanksgiving Holiday

The college is closed.

Registration for Spring 2015 - Open
Registration is available for Full Term, First Half and Second Half classes for the Spring 2015 Semester.
           


To create a large calendar with full descriptions, place these lines of code anywhere on your page between the StartGPC() and EndGPC() lines and between PHP tags (<? and ?>):

$calendar_category="academic";  // view details about this line
$calendar_campus="all";  // view details about this line
$people="all";  // view details about this line
$calendar_width=540;  // optional line - values can be between 1 and 540
$long_descriptions=true;  // required line
include "php_classes/calendar.php3";  // required line
echo $cal->get_calendar_grid();  // required line



Creating a Small Calendar


Example:

<<November 2014>>
S M T W T F S
            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            


To create a small calendar, place these lines of code anywhere on your page between the StartGPC() and EndGPC() lines and between PHP tags (<? and ?>):

$calendar_category="academic";  // view details about this line
$calendar_campus="all";  // view details about this line
$people="all";  // view details about this line
include "php_classes/calendar.php3";  // required line
echo $cal->get_small_calendar();  // required line



Creating a List of Events


Example:

Please list valid category name(s)

Mon., Sep. 15 thru
Mon., Dec. 8

NURSING SEMINARS
Fall 2014 Schedule - 12 PM - These Dates: Mon., Sept. 15 Clarkston I 1700 Fri., Sept. 26 Dunwoody A 2200 Mon., Oct. 13 Clarkston I 1700 Wed., Oct. 29 Decatur F 2100 Mon., Nov. 3 Clarkston I 1700 Fri., Nov. 4 Newton N13140 Mon., Dec. 8 Clarkston I 1700 Check for changes @ GPC Nursing. Seminars start promptly, 12 PM & last about 1.5 hours.

Wed., Oct. 15 thru
Mon., Nov. 24

Withdraw (WF) - Full Term Classes

Students must withdraw between October 15 and November 24 to receive a 'WF' for the class.
Withdrawal Policy

November 24 is the last day to withdraw from Full Term Classes

Mon., Oct. 27 thru
Tue., Jan. 6, 2015

Registration for Spring 2015 - Open
Registration is available for Full Term, First Half and Second Half classes for the Spring 2015 Semester.

Sat., Nov. 22

Last Day for Saturday Classes


To create a list of events, place these lines of code anywhere on your page between the StartGPC() and EndGPC() lines and between PHP tags (<? and ?>):

$calendar_category="40th anniversary";  // view details about this line
$calendar_campus="all";  // view details about this line
$people="all";  // view details about this line
$calendar_list_number=4;  // optional line - specifies number of events shown (will default to 3 if not specified)
$no_description=false;  // optional line - by default, $no_description is false and the event description is shown (if $no_description is set to true, the event description will not be shown)
include "php_classes/calendar.php3";  // required line
echo $cal->get_calendar_list();  // Option 1 (All Events)
Use Option 1 or 2
echo $cal->get_calendar_list_noacad();  // Option 2 (All with No Academic Events)
Use Option 1 or 2



Creating a Scrollbox of Events


Example:



To create a scrollbox of events, place these lines of code anywhere on your page between the StartGPC() and EndGPC() lines and between PHP tags (<? and ?>):

Note: any page that contains a scrollbox of events will NOT display the "GPC Main Menu" dropdown on the top banner of the GPC Look & Feel.

$calendar_category="academic";  // view details about this line
$calendar_campus="all";  // view details about this line
$people="Current Student";  // view details about this line
$calendar_width=150;  // optional line - values can be between 1 and 540
$scrollbox_delay=4000;  // optional line - values are in milliseconds
include "php_classes/calendar.php3";  // required line
echo $cal->get_scrollbox();  // required line