Committer: Apostolos Koutsoulelos <apostolos@desktop.(none)>
[arthrology.git] / toolbar.arthrology.html.php
blob76831eafbb1f348e776f00cae486356e1cfc349d
1 <?php
3 /*
4 * Arthrology for Elxis CMS 2008.x and 2009.x
6 * Backend Toolbar HTML Event Handler
8 * @version 1.3
9 * @package Arthrology
10 * @author Apostolos Koutsoulelos <akoutsoulelos@yahoo.gr>
11 * @authorurl http://www.bitcraft-labs.gr
12 * @copyright Copyright (C) 2009-2011 Apostolos Koutsoulelos. All rights reserved.
13 * @license GNU/GPL (http://www.gnu.org/copyleft/gpl.html)
15 * @link http://www.elxis-downloads.com/downloads/miscellaneous/204.html
18 // Prevent direct inclusion of this file
19 defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
21 /***********************************************************************/
22 /* THE CLASS THAT WILL CONTAIN THE COMPONENT'S TOOLBAR FUNCTIONALITY */
23 /***********************************************************************/
24 class clsArthrologyToolbarHTML {
25 // Initialize variables
27 // Create cp menu
28 static public function _CONF() {
29 global $adminLanguage;
31 mosMenuBar::startTable();
32 mosMenuBar::custom( 'conf_save', 'save.png', 'save_f2.png', $adminLanguage->A_SAVE, false );
33 mosMenuBar::spacer();
34 mosMenuBar::custom( 'conf_apply', 'apply.png', 'apply_f2.png', $adminLanguage->A_APPLY, false );
35 mosMenuBar::spacer();
36 mosMenuBar::cancel( 'conf_cancel' );
37 mosMenuBar::endTable();
40 static public function _CP() {
41 global $adminLanguage;
43 mosMenuBar::startTable();
44 mosMenuBar::custom( 'list', 'arthrology_articles.png', 'arthrology_articles_f2.png', $adminLanguage->A_CMP_ARTHROLOGY_TOOLBAR_ARTICLES, false );
45 mosMenuBar::spacer();
46 mosMenuBar::custom( 'cat', 'arthrology_magazines.png', 'arthrology_magazines_f2.png', $adminLanguage->A_CMP_ARTHROLOGY_TOOLBAR_MAGAZINES, false );
47 mosMenuBar::spacer();
48 mosMenuBar::divider();
49 mosMenuBar::spacer();
50 mosMenuBar::custom( 'conf', 'arthrology_config.png', 'arthrology_config_f2.png', $adminLanguage->A_CMP_ARTHROLOGY_TOOLBAR_CONFIG, false );
51 mosMenuBar::endTable();
54 // Create event list menu
55 static public function _LIST() {
56 mosMenuBar::startTable();
57 mosMenuBar::publishList();
58 mosMenuBar::spacer();
59 mosMenuBar::unpublishList();
60 mosMenuBar::spacer();
61 mosMenuBar::addNew();
62 mosMenuBar::spacer();
63 mosMenuBar::editList();
64 mosMenuBar::spacer();
65 mosMenuBar::spacer();
66 mosMenuBar::deleteList();
67 mosMenuBar::endTable();
70 // Create edit/add event form
71 static public function _EDIT(){
72 mosMenuBar::startTable();
73 mosMenuBar::save();
74 mosMenuBar::spacer();
75 mosMenuBar::apply();
76 mosMenuBar::spacer();
77 mosMenuBar::cancel();
78 mosMenuBar::endTable();