| [ 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 Sections 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 20 class TOOLBAR_sections { 21 /** 22 * Draws the menu for Editing an existing category 23 */ 24 function _EDIT($task) { 25 global $id; 26 27 mosMenuBar::startTable(); 28 mosMenuBar::media_manager(); 29 mosMenuBar::spacer(); 30 mosMenuBar::save(); 31 mosMenuBar::spacer(); 32 mosMenuBar::apply(); 33 mosMenuBar::spacer(); 34 if ( $id ) { 35 // for existing content items the button is renamed `close` 36 mosMenuBar::cancel( 'cancel', T_('Close') ); 37 } else { 38 mosMenuBar::cancel(); 39 } 40 mosMenuBar::spacer(); 41 $ref = $task == 'new' ? 'new' : 'edit'; 42 mosMenuBar::help( $ref ); 43 mosMenuBar::endTable(); 44 } 45 /** 46 * Draws the menu for Copying existing sections 47 * @param int The published state (to display the inverse button) 48 */ 49 function _COPY() { 50 mosMenuBar::startTable(); 51 mosMenuBar::save( 'copysave' ); 52 mosMenuBar::spacer(); 53 mosMenuBar::cancel(); 54 mosMenuBar::spacer(); 55 mosMenuBar::help( 'copy' ); 56 mosMenuBar::endTable(); 57 } 58 /** 59 * Draws the menu for Editing an existing category 60 */ 61 function _DEFAULT(){ 62 mosMenuBar::startTable(); 63 mosMenuBar::publishList(); 64 mosMenuBar::spacer(); 65 mosMenuBar::unpublishList(); 66 mosMenuBar::spacer(); 67 mosMenuBar::addNewX(); 68 mosMenuBar::spacer(); 69 mosMenuBar::customX( 'copyselect', 'copy.png', 'copy_f2.png', T_('Copy'), true ); 70 mosMenuBar::spacer(); 71 mosMenuBar::editListX(); 72 mosMenuBar::spacer(); 73 mosMenuBar::deleteList(); 74 mosMenuBar::spacer(); 75 mosMenuBar::help( 'manager' ); 76 mosMenuBar::endTable(); 77 } 78 } 79 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed May 23 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 |