| [ Index ] | PHP Cross Reference of Mambo 4.6.5 |
|
| [ Variables ] [ Functions ] [ Classes ] [ Constants ] [ Statistics ] | ||
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * @package Mambo 4 * @subpackage Banners 5 * @author Mambo Foundation Inc see README.php 6 * @copyright (C) 2000 - 2009 Mambo Foundation Inc. 7 * See COPYRIGHT.php for copyright notices and details. 8 * @license GNU/GPL Version 2, see LICENSE.php 9 * 10 * Redistributions of files must retain the above copyright notice. 11 * 12 * Mambo is free software; you can redistribute it and/or 13 * modify it under the terms of the GNU General Public License 14 * as published by the Free Software Foundation; version 2 of the License. 15 */ 16 17 /** ensure this file is being included by a parent file */ 18 defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); 19 class TOOLBAR_banners { 20 /** 21 * Draws the menu for to Edit a banner 22 */ 23 function _EDIT() { 24 global $id; 25 26 mosMenuBar::startTable(); 27 mosMenuBar::save(); 28 mosMenuBar::spacer(); 29 if ( $id ) { 30 // for existing content items the button is renamed `close` 31 mosMenuBar::cancel( 'cancel', T_('Close') ); 32 } else { 33 mosMenuBar::cancel(); 34 } 35 mosMenuBar::spacer(); 36 if ($GLOBALS['task'] == 'edit' || $GLOBALS['task'] == 'editA') { 37 mosMenuBar::help( 'manager.edit' ); 38 } else { 39 mosMenuBar::help( 'manager.new' ); 40 } 41 mosMenuBar::endTable(); 42 } 43 function _DEFAULT() { 44 mosMenuBar::startTable(); 45 mosMenuBar::publishList(); 46 mosMenuBar::spacer(); 47 mosMenuBar::unpublishList(); 48 mosMenuBar::spacer(); 49 mosMenuBar::media_manager( 'banners' ); 50 mosMenuBar::spacer(); 51 mosMenuBar::addNewX(); 52 mosMenuBar::spacer(); 53 mosMenuBar::editListX(); 54 mosMenuBar::spacer(); 55 mosMenuBar::deleteList(); 56 mosMenuBar::spacer(); 57 mosMenuBar::help( 'manager' ); 58 mosMenuBar::endTable(); 59 } 60 } 61 62 /** 63 * @package Mambo 64 */ 65 class TOOLBAR_bannerClient { 66 /** 67 * Draws the menu for to Edit a client 68 */ 69 function _EDIT() { 70 global $id; 71 72 mosMenuBar::startTable(); 73 mosMenuBar::save( 'saveclient' ); 74 mosMenuBar::spacer(); 75 if ( $id ) { 76 // for existing content items the button is renamed `close` 77 mosMenuBar::cancel( 'cancelclient', T_('Close') ); 78 } else { 79 mosMenuBar::cancel( 'cancelclient' ); 80 } 81 mosMenuBar::spacer(); 82 if ($GLOBALS['task'] == 'editclient' || $GLOBALS['task'] == 'editclientA') { 83 mosMenuBar::help( 'client.edit' ); 84 } else { 85 mosMenuBar::help( 'client.new' ); 86 } 87 mosMenuBar::endTable(); 88 } 89 /** 90 * Draws the default menu 91 */ 92 function _DEFAULT() { 93 mosMenuBar::startTable(); 94 mosMenuBar::addNewX( 'newclient' ); 95 mosMenuBar::spacer(); 96 mosMenuBar::editListX( 'editclient' ); 97 mosMenuBar::spacer(); 98 mosMenuBar::deleteList( '', 'removeclients' ); 99 mosMenuBar::spacer(); 100 mosMenuBar::help( 'client' ); 101 mosMenuBar::endTable(); 102 } 103 } 104 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Feb 8 00:05:01 2012 | Cross-referenced by PHPXref 0.7 |
| Mambo API: Mambo is Free software released under the GNU/General Public License, Version 2 |