Calendar Functions - Using PHP
- Large Calendar with Abbreviated Descriptions
- Large Calendar with Full Descriptions
- Small Calendar
- List of Events
- Scrollbox of Events
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
- 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 availableAvailable 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:
| |||||||||
| Sun. | Mon. | Tues. | Wed. | Thurs. | Fri. | Sat. | |||
| 1 |
2 |
3 |
4 |
5 |
6 |
||||
| 7 |
8 |
9 |
10 |
11 |
12 |
13 |
|||
| 14 |
15 |
16 |
17 |
18 |
19 |
20 |
|||
| 21 |
22 |
23 Alpharetta...
|
24 Clarkston ...
Newton Cam...
|
25 Decatur Ca...
Dunwoody C...
|
26 |
27 |
|||
| 28 |
29 Early Advi...
Financial ...
|
30 Early Advi...
Financial ...
|
31 Early Advi...
Financial ...
|
||||||
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 |
| |||||||||
| Sun. | Mon. | Tues. | Wed. | Thurs. | Fri. | Sat. | |||
| 1 |
2 |
3 |
4 |
5 |
6 |
||||
| 7 |
8 |
9 |
10 |
11 |
12 |
13 |
|||
| 14 |
15 |
16 |
17 |
18 |
19 |
20 |
|||
| 21 |
22 |
23 Alpharetta
Center - Open
HouseApplicants and prospective applicants can meet GPC faculty, staff, and students, submit admission applications and documents, and tour the campus. Time: 5:00 pm to 7:00 pm Location: Alpharetta Center Please RSVP: Sign up now! |
24 Clarkston
Campus - Open
House Applicants and prospective applicants can meet GPC faculty, staff, and students, submit admission applications and documents, and tour the campus. Time: 5:00 pm to 7:00 pm Location: Bldg N Please RSVP: Sign up now! Newton
Campus - Open
HouseApplicants and prospective applicants can meet GPC faculty, staff, and students, submit admission applications and documents, and tour the campus. Time: 5:00 pm to 7:00 pm Location: Bldg. 2N Please RSVP: Sign up now! |
25 Decatur
Campus - Open
HouseApplicants and prospective applicants can meet GPC faculty, staff, and students, submit admission applications and documents, and tour the campus. Time: 5:00 pm to 7:00 pm Location: Bldg. F Please RSVP: Sign up now! Dunwoody
Campus - Open
House Applicants and prospective applicants can meet GPC faculty, staff, and students, submit admission applications and documents, and tour the campus. Time: 5:00 pm to 7:00 pm Location: Bldg. B Please RSVP: Sign up now! |
26 |
27 |
|||
| 28 |
29 Early
Advisement and
Web
Registration
for Spring
2013 Financial
Purge
ScheduleClasses are purged on a regular basis during the registration period. See the Student Accounts webpage for the Spring 2013 Purge Plan |
30 Early
Advisement and
Web
Registration
for Spring
2013 Financial
Purge
ScheduleClasses are purged on a regular basis during the registration period. See the Student Accounts webpage for the Spring 2013 Purge Plan |
31 Early
Advisement and
Web
Registration
for Spring
2013 Financial
Purge
ScheduleClasses are purged on a regular basis during the registration period. See the Student Accounts webpage for the Spring 2013 Purge Plan |
||||||
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:
| |||||||||||||
| |||||||||||||
| 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 | ||||||||||
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)Wed., May. 22 thru Fri., May. 24 | On Campus Advisement and Registration Assistance Advisement and registration assistance is available on campuses (Weds/Thurs: 9 am-7 pm and Friday 9 am-5 pm). New students must sign up in advance. Sign up now! |
Wed., May. 22 thru Fri., May. 24 | Employee (TAP) Registration |
Wed., May. 22 thru Thu., May. 30 | Web Registration open for Summer 2013 Final Registration and Schedule Adjustment Web registration will end at 7:00 pm EST on Thursday, May 30, 2013. |
Sat., May. 25 thru Fri., May. 31 | NJCAA World Series NJCAA World Series Grand Junction, Colorado May 25 - 31, 2013 TIME - TBA Contact: Dyesha Howard @ 678-891-2361 or dyesha.howard@gpc.edu |
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 |

