On branch master
[event_calendar.git] / toolbar.eventcalendar.html.php
blob2b8fac66822815e1c103f3a5ec44483143eb5211
1 <?php
3 /*
4 * Event Calendar for Elxis CMS 2008.x and 2009.x
6 * Backend Toolbar HTML 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 /***********************************************************************/
20 /* THE CLASS THAT WILL CONTAIN THE COMPONENT'S TOOLBAR FUNCTIONALITY */
21 /***********************************************************************/
22 class clsEventCalendarToolbarHTML {
23 // Initialize variables
25 // Create control panel menu
26 static public function _CONTROLPANEL() {
27 global $adminLanguage;
29 mosMenuBar::startTable();
30 mosMenuBar::custom( 'cp_save', 'save.png', 'save_f2.png', $adminLanguage->A_SAVE, false );
31 mosMenuBar::spacer();
32 mosMenuBar::custom( 'cp_apply', 'apply.png', 'apply_f2.png', $adminLanguage->A_APPLY, false );
33 mosMenuBar::spacer();
34 mosMenuBar::cancel( 'cp_cancel' );
35 mosMenuBar::spacer();
36 mosMenuBar::wiki( 'Event_Calendar_(component)' );
37 mosMenuBar::endTable();
40 // Create event list menu
41 static public function _DEFAULT() {
42 mosMenuBar::startTable();
43 mosMenuBar::publishList();
44 mosMenuBar::spacer();
45 mosMenuBar::unpublishList();
46 mosMenuBar::spacer();
47 mosMenuBar::addNew();
48 mosMenuBar::spacer();
49 mosMenuBar::editList();
50 mosMenuBar::spacer();
51 mosMenuBar::spacer();
52 mosMenuBar::deleteList();
53 mosMenuBar::spacer();
54 mosMenuBar::wiki( 'Event_Calendar_(component)' );
55 mosMenuBar::endTable();
58 // Create edit/add event form
59 static public function _EDIT(){
60 mosMenuBar::startTable();
61 mosMenuBar::save();
62 mosMenuBar::spacer();
63 mosMenuBar::apply();
64 mosMenuBar::spacer();
65 mosMenuBar::cancel();
66 mosMenuBar::spacer();
67 mosMenuBar::wiki( 'Event_Calendar_(component)' );
68 mosMenuBar::endTable();