AGI Home | About AGIContact UsSearch 
View Complete Calendar
Member Society Events
Add an Item
Search Calendar
Use Calendar on Your Site
AGI Home
  
Geoscience Calendar

Embedding The Geosciences Calendar into your website.

The Geosciences Calendar is implemented as a modular design to allow geoscience organizations to embed the Geosciences Calendar into their own website if they wish. There are two basic means to incorporate the calendar - either the entire calendar or a subsection of entries selected by Subject areas.

Dynamically Linking The Geosciences Calendar
To embed the calendar function into your web site, you need to use one of two methods:

  1. Frames
  2. Server-side Scripting Languages (PHP, ASP, etc.)

This document will focus on the issue of utilizing a server-side scripting language, and in particular PHP. The basic calendar function is contained within the file: http://calendar.agiweb.org/showcal.html. Embedding this page into your web site would use a URL aware include() command in PHP. To incorporate the entire file in your own HTML document, you would write your code as:
<HMTL>
... PUT YOUR HTML CODE HERE ...
<? include("http://www.agiweb.org/calendar/showcal.html"); ?>
... PUT THE REST OF YOUR HTML HERE ...
</HTML>

The URL for calling showcal.html has 2 possible syntaxes:
  1. Total Calendar:
    include("http://www.agiweb.org/calendar/showcal.html");
  2. New Entries in the last month:
    include("http://www.agiweb.org/calendar/showcal.html?view=new");

Need help or do you want to arrange for direct access to the database? Please contact Christopher Keane at keane@agiweb.org.

 



  Information Services |Geoscience Education |Public Policy |Environmental
Geoscience
 |
Publications |Workforce |AGI Events


agi logo

© 2008 All rights reserved. American Geological Institute, 4220 King Street, Alexandria, VA 22302-1502.
Please send any comments or problems with this site to: webmaster@agiweb.org.
Privacy Policy