On branch master
[event_calendar.git] / toolbar.eventcalendar.php
blobff966f0bf969a8aea643233a52fb1990d22caa5f
1 <?php
3 /*
4 * Event Calendar for Elxis CMS 2008.x and 2009.x
6 * Backend Toolbar Event Handler
8 * @version 1.1
9 * @package eventCalendar
10 * @author Apostolos Koutsoulelos <akoutsoulelos@yahoo.gr>
11 * @copyright Copyright (C) 2009-2010 Apostolos Koutsoulelos. All rights reserved.
12 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
13 * @link
16 // Prevent direct inclusion of this file
17 defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
19 // Includes
20 require_once($mainframe->getCfg('absolute_path').'/administrator/components/com_eventcalendar/toolbar.eventcalendar.html.php'); // Component's html file for the administration area
22 // Intialize variables
24 // Display toolbar
25 switch ($task) {
26 case 'cp':
27 clsEventCalendarToolbarHTML::_CONTROLPANEL();
28 break;
29 case 'new':
30 clsEventCalendarToolbarHTML::_EDIT();
31 break;
32 case 'edit':
33 clsEventCalendarToolbarHTML::_EDIT();
34 break;
35 default:
36 clsEventCalendarToolbarHTML::_DEFAULT();
37 break;