PHP Classes

File: simple_example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Classes of Arturs Sosins  >  AJAX Calendar  >  simple_example.php  >  Download  
File: simple_example.php
Role: Example script
Content type: text/plain
Description: The simplest example to make it work
Class: AJAX Calendar
Display month calendars browseable using AJAX
Author: By
Last change: credits changed
Date: 4 years ago
Size: 1,418 bytes


Class file image Download
 * This script is developed by Arturs Sosins aka ar2rsawseen,
 * Fee free to distribute and modify code, but keep reference to its creator
 * This can be used to display month calendars browsable using AJAX.
 * It can generate HTML and JavaScript to display a month calendar with
 * links to browse the months using AJAX to avoid page reloading.
 * For more information, examples and online documentation visit:

//This is an example of simply generating calendar without any customixations

//you should always sepecify timezone when dealing with date function like used in calendar

//declaring class instance
$calendar = new calendar();

//processing request
//defining path to jquery and style css included in package
echo '<script type="text/javascript" src="./jquery.js"></script>';
'<style type="text/css" media="all">@import "./style.css";</style>';
//generating calendar with todays date