Source for file calendar.php
Documentation is available at calendar.php
// name of the language file that needs to be included
$language_file = 'agenda';
// including the claroline global
include('../inc/global.inc.php');
if(isset ($_GET['id_session']))
$_SESSION['id_session'] = $_GET['id_session'];
// the variables for the days and the months
// Defining the shorts for the days
// Defining the days of the week to allow translation of the days
// Defining the months of the year to allow translation of the months
$MonthsLong = array(get_lang("JanuaryLong"), get_lang("FebruaryLong"), get_lang("MarchLong"), get_lang("AprilLong"), get_lang("MayLong"), get_lang("JuneLong"), get_lang("JulyLong"), get_lang("AugustLong"), get_lang("SeptemberLong"), get_lang("OctoberLong"), get_lang("NovemberLong"), get_lang("DecemberLong"));
font-family: verdana, arial, helvetica, sans-serif;
table.calendar .monthyear
background-color: #4171B5;
background-color: #D3DFF1;
background-color: #f5f5f5;
table.calendar td.selected
border: 1px solid #ff0000;
background-color: #FFCECE;
table.calendar td a:hover
background-color: #ffff00;
table.calendar .monthyear a
table.calendar .monthyear a:hover
background-color: #ffff00;
<script language="JavaScript" type="text/javascript">
/* added 2004-06-10 by Michael Keck
* we need this for Backwards-Compatibility and resolving problems
* with non DOM browsers, which may have problems with css 2 (like NC 4)
var isDOM = (typeof(document.getElementsByTagName) != 'undefined'
&& typeof(document.createElement) != 'undefined')
var isIE4 = (typeof(document.all) != 'undefined'
&& parseInt(navigator.appVersion) >= 4)
var isNS4 = (typeof(document.layers) != 'undefined')
var capable = (isDOM || isIE4 || isNS4)
// Uggly fix for Opera and Konqueror 2.2 that are half DOM compliant
if (typeof(window.opera) != 'undefined') {
var browserName = ' ' + navigator.userAgent.toLowerCase();
if ((browserName.indexOf('konqueror 7') == 0)) {
} else if (typeof(navigator.userAgent) != 'undefined') {
var browserName = ' ' + navigator.userAgent.toLowerCase();
if ((browserName.indexOf('konqueror') > 0) && (browserName.indexOf('konqueror/3') == 0)) {
} // end if... else if...
<script type="text/javascript" src="tbl_change.js"></script>
<script type="text/javascript">
var month_names = new Array(
foreach($MonthsLong as $index => $month)
var day_names = new Array(
foreach($DaysShort as $index => $day)
<body onLoad="initCalendar();">
<div id="calendar_data"></div>
<div id="clock_data"></div>
|