Annotation of /mambo/trunk/administrator/components/com_banners/toolbar.banners.html.php
Parent Directory
|
Revision Log
Revision 1 - (view) (download)
| 1 : | root | 1 | <?php |
| 2 : | /** | ||
| 3 : | * @version $Id: toolbar.banners.html.php,v 1.2 2005/11/08 10:26:19 eliasan Exp $ | ||
| 4 : | * @package Mambo | ||
| 5 : | * @subpackage Banners | ||
| 6 : | * @copyright (C) 2000 - 2005 Miro International Pty Ltd | ||
| 7 : | * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL | ||
| 8 : | * Mambo is Free Software | ||
| 9 : | */ | ||
| 10 : | |||
| 11 : | /** ensure this file is being included by a parent file */ | ||
| 12 : | defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); | ||
| 13 : | |||
| 14 : | /** | ||
| 15 : | * @package Mambo | ||
| 16 : | * @subpackage Banners | ||
| 17 : | */ | ||
| 18 : | class TOOLBAR_banners { | ||
| 19 : | /** | ||
| 20 : | * Draws the menu for to Edit a banner | ||
| 21 : | */ | ||
| 22 : | function _EDIT() { | ||
| 23 : | global $id; | ||
| 24 : | |||
| 25 : | mosMenuBar::startTable(); | ||
| 26 : | mosMenuBar::media_manager( 'banners' ); | ||
| 27 : | mosMenuBar::spacer(); | ||
| 28 : | mosMenuBar::save(); | ||
| 29 : | mosMenuBar::spacer(); | ||
| 30 : | if ( $id ) { | ||
| 31 : | // for existing content items the button is renamed `close` | ||
| 32 : | mosMenuBar::cancel( 'cancel', 'Close' ); | ||
| 33 : | } else { | ||
| 34 : | mosMenuBar::cancel(); | ||
| 35 : | } | ||
| 36 : | mosMenuBar::spacer(); | ||
| 37 : | mosMenuBar::help( '453.screen.banners.edit' ); | ||
| 38 : | mosMenuBar::endTable(); | ||
| 39 : | } | ||
| 40 : | function _DEFAULT() { | ||
| 41 : | mosMenuBar::startTable(); | ||
| 42 : | mosMenuBar::publishList(); | ||
| 43 : | mosMenuBar::unpublishList(); | ||
| 44 : | mosMenuBar::media_manager( 'banners' ); | ||
| 45 : | mosMenuBar::addNewX(); | ||
| 46 : | mosMenuBar::editListX(); | ||
| 47 : | mosMenuBar::deleteList(); | ||
| 48 : | mosMenuBar::help( '453.screen.banners.main' ); | ||
| 49 : | mosMenuBar::endTable(); | ||
| 50 : | } | ||
| 51 : | } | ||
| 52 : | |||
| 53 : | /** | ||
| 54 : | * @package Mambo | ||
| 55 : | */ | ||
| 56 : | class TOOLBAR_bannerClient { | ||
| 57 : | /** | ||
| 58 : | * Draws the menu for to Edit a client | ||
| 59 : | */ | ||
| 60 : | function _EDIT() { | ||
| 61 : | global $id; | ||
| 62 : | |||
| 63 : | mosMenuBar::startTable(); | ||
| 64 : | mosMenuBar::save( 'saveclient' ); | ||
| 65 : | mosMenuBar::spacer(); | ||
| 66 : | if ( $id ) { | ||
| 67 : | // for existing content items the button is renamed `close` | ||
| 68 : | mosMenuBar::cancel( 'cancelclient', 'Close' ); | ||
| 69 : | } else { | ||
| 70 : | mosMenuBar::cancel( 'cancelclient' ); | ||
| 71 : | } | ||
| 72 : | mosMenuBar::spacer(); | ||
| 73 : | mosMenuBar::help( '453.screen.banners.client.edit' ); | ||
| 74 : | mosMenuBar::endTable(); | ||
| 75 : | } | ||
| 76 : | /** | ||
| 77 : | * Draws the default menu | ||
| 78 : | */ | ||
| 79 : | function _DEFAULT() { | ||
| 80 : | mosMenuBar::startTable(); | ||
| 81 : | mosMenuBar::addNewX( 'newclient' ); | ||
| 82 : | mosMenuBar::spacer(); | ||
| 83 : | mosMenuBar::editListX( 'editclient' ); | ||
| 84 : | mosMenuBar::spacer(); | ||
| 85 : | mosMenuBar::deleteList( '', 'removeclients' ); | ||
| 86 : | mosMenuBar::spacer(); | ||
| 87 : | mosMenuBar::help( '453.screen.banners.client.main' ); | ||
| 88 : | mosMenuBar::endTable(); | ||
| 89 : | } | ||
| 90 : | } | ||
| 91 : | ?> |
| ViewVC Help | |
| Powered by ViewVC 1.0.0 |
Web Hosting provided by Network Redux.

