mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-12 01:30:41 +01:00
40 lines
1.4 KiB
PHP
40 lines
1.4 KiB
PHP
<?php
|
|
/**************************************************************************\
|
|
* eGroupWare SiteMgr - Web Content Management *
|
|
* http://www.egroupware.org *
|
|
* -------------------------------------------- *
|
|
* This program is free software; you can redistribute it and/or modify it *
|
|
* under the terms of the GNU General Public License as published by the *
|
|
* Free Software Foundation; either version 2 of the License, or (at your *
|
|
* option) any later version. *
|
|
\**************************************************************************/
|
|
|
|
/* $Id$ */
|
|
|
|
class module_calendar extends Module
|
|
{
|
|
function module_calendar()
|
|
{
|
|
$this->arguments = array(
|
|
'redirect' => array(
|
|
'type' => 'textfield',
|
|
'label' => lang('Specify where URL of the day links to'),
|
|
),
|
|
);
|
|
|
|
$this->title = lang('Calendar');
|
|
$this->description = lang('This module displays the current month');
|
|
}
|
|
|
|
function get_content(&$arguments,$properties)
|
|
{
|
|
if (!is_object($GLOBALS['egw']->jscalendar))
|
|
{
|
|
$GLOBALS['egw']->jscalendar =& CreateObject('phpgwapi.jscalendar');
|
|
}
|
|
$date = (int) (strtotime(get_var('date',array('POST','GET'))));
|
|
$redirect = $arguments['redirect'] ? $arguments['redirect'] : '#';
|
|
return $GLOBALS['egw']->jscalendar->flat($redirect,$date);
|
|
}
|
|
}
|