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
  • Academics
  • Athletics
  • Community Events
  • Fine Arts
  • General
  • Human Resources
  • Payroll


Note: The category can be any one of the categories listed above. Please make sure the spelling is correct.

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
  • Future Student
  • Faculty/Staff
  • Visitor / Friends


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
  • Newton
  • College-Wide
  • Alpharetta
  • Decatur
  • Clarkston
  • Dunwoody
  • Off-Campus


Creating an Iframe Calendar & Subscription Links


Embed a Calendar in your webpage. Choose the desired Category:

Note: For the calendar to properly display on your page, you cannot enable any sidebars. The calendar must be on a full page.

Please select a category for the subscription link:






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="all";  // view details about this line
$calendar_campus="all";  // view details about this line
$people="all";  // view details about this line
$calendar_width=400;  // optional line - values can be between 1 and 540
include "php_classes/calendar.php3";  // required line
echo $cal->get_scrollbox();  // required line


Creating a List of Events


Example:

Wed Jan 14 2015 thru Thu Mar 5 2015 Withdrawals - Full Term
Tue Jan 20 2015 thru Wed Mar 4 2015 Spring Registration
Tue Jan 27 2015 thru Tue May 19 2015 Summer Registration
Mon Mar 2 2015 thru Mon Mar 2 2015 Drop for Nonpayment - Second Half
http://depts.gpc.edu/~finaid/spr15purgeplan_R3.pdf
Mon Mar 2 2015 thru Tue Mar 3 2015 Final Exams - First Half
http://depts2.gpc.edu/~gpcem/registrar/final_exam_spring2015.html
Tue Mar 3 2015 thru Tue Mar 3 2015 Mobile Clinic
http://depts.gpc.edu/~gpcshc/mobileunit.htm


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="all";  // view details about this line
$calendar_campus="all";  // view details about this line
$people="all";  // view details about this line
$calendar_list_number=6;  // 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();  // (All Events)



No Academics List


Example:


Tue Mar 3 2015
thru Tue Mar 3 2015

(Newton)

Mobile Clinic

http://depts.gpc.edu/~gpcshc/mobileunit.htm

Wed Mar 4 2015
thru Wed Mar 4 2015

(College-Wide)

Writing the Veteran Experience Workshop

http://the-hooch.com

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

$calendar_category="all";  // view details about this line
$calendar_campus="all";  // view details about this line
$people="all";  // view details about this line
$calendar_list_number=2;  // 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_noacad();  // (All with No Academic Events)