Annotation of /mambo/branches/4.6/administrator/components/com_categories/toolbar.categories.html.php
Parent Directory
|
Revision Log
Revision 550 - (view) (download)
| 1 : | root | 1 | <?php |
| 2 : | /** | ||
| 3 : | csouza | 297 | * @package Mambo Open Source |
| 4 : | root | 1 | * @subpackage Categories |
| 5 : | csouza | 297 | * @copyright (C) 2005 - 2006 Mambo Foundation Inc. |
| 6 : | root | 1 | * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL |
| 7 : | csouza | 297 | * |
| 8 : | * Mambo was originally developed by Miro (www.miro.com.au) in 2000. Miro assigned the copyright in Mambo to The Mambo Foundation in 2005 to ensure | ||
| 9 : | * that Mambo remained free Open Source software owned and managed by the community. | ||
| 10 : | root | 1 | * Mambo is Free Software |
| 11 : | csouza | 297 | */ |
| 12 : | root | 1 | |
| 13 : | class TOOLBAR_categories { | ||
| 14 : | /** | ||
| 15 : | * Draws the menu for Editing an existing category | ||
| 16 : | * @param int The published state (to display the inverse button) | ||
| 17 : | */ | ||
| 18 : | function _EDIT() { | ||
| 19 : | global $id; | ||
| 20 : | |||
| 21 : | mosMenuBar::startTable(); | ||
| 22 : | mosMenuBar::media_manager(); | ||
| 23 : | mosMenuBar::spacer(); | ||
| 24 : | mosMenuBar::save(); | ||
| 25 : | mosMenuBar::spacer(); | ||
| 26 : | mosMenuBar::apply(); | ||
| 27 : | mosMenuBar::spacer(); | ||
| 28 : | if ( $id ) { | ||
| 29 : | // for existing content items the button is renamed `close` | ||
| 30 : | csouza | 149 | mosMenuBar::cancel( 'cancel', T_('Close') ); |
| 31 : | root | 1 | } else { |
| 32 : | mosMenuBar::cancel(); | ||
| 33 : | } | ||
| 34 : | mosMenuBar::spacer(); | ||
| 35 : | csouza | 550 | $section=''; |
| 36 : | if (strstr($GLOBALS['section'], 'contact')){ | ||
| 37 : | $section = 'contact.'; | ||
| 38 : | } | ||
| 39 : | if ($GLOBALS['task'] == 'new') { | ||
| 40 : | mosMenuBar::help( $section.'new' ); | ||
| 41 : | } else { | ||
| 42 : | mosMenuBar::help( $section.'edit' ); | ||
| 43 : | } | ||
| 44 : | root | 1 | mosMenuBar::endTable(); |
| 45 : | } | ||
| 46 : | /** | ||
| 47 : | * Draws the menu for Moving existing categories | ||
| 48 : | * @param int The published state (to display the inverse button) | ||
| 49 : | */ | ||
| 50 : | function _MOVE() { | ||
| 51 : | mosMenuBar::startTable(); | ||
| 52 : | mosMenuBar::save( 'movesave' ); | ||
| 53 : | mosMenuBar::spacer(); | ||
| 54 : | mosMenuBar::cancel(); | ||
| 55 : | mosMenuBar::spacer(); | ||
| 56 : | csouza | 550 | mosMenuBar::help( 'move' ); |
| 57 : | root | 1 | mosMenuBar::endTable(); |
| 58 : | } | ||
| 59 : | /** | ||
| 60 : | * Draws the menu for Copying existing categories | ||
| 61 : | * @param int The published state (to display the inverse button) | ||
| 62 : | */ | ||
| 63 : | function _COPY() { | ||
| 64 : | mosMenuBar::startTable(); | ||
| 65 : | mosMenuBar::save( 'copysave' ); | ||
| 66 : | mosMenuBar::spacer(); | ||
| 67 : | mosMenuBar::cancel(); | ||
| 68 : | mosMenuBar::spacer(); | ||
| 69 : | csouza | 550 | mosMenuBar::help( 'copy' ); |
| 70 : | root | 1 | mosMenuBar::endTable(); |
| 71 : | } | ||
| 72 : | /** | ||
| 73 : | * Draws the menu for Editing an existing category | ||
| 74 : | */ | ||
| 75 : | function _DEFAULT(){ | ||
| 76 : | $section = mosGetParam( $_REQUEST, 'section', '' ); | ||
| 77 : | |||
| 78 : | mosMenuBar::startTable(); | ||
| 79 : | mosMenuBar::publishList(); | ||
| 80 : | mosMenuBar::spacer(); | ||
| 81 : | mosMenuBar::unpublishList(); | ||
| 82 : | mosMenuBar::spacer(); | ||
| 83 : | mosMenuBar::addNewX(); | ||
| 84 : | mosMenuBar::spacer(); | ||
| 85 : | if ( $section == 'content' || ( $section > 0 ) ) { | ||
| 86 : | csouza | 149 | mosMenuBar::customX( 'moveselect', 'move.png', 'move_f2.png', T_('Move'), true ); |
| 87 : | root | 1 | mosMenuBar::spacer(); |
| 88 : | csouza | 149 | mosMenuBar::customX( 'copyselect', 'copy.png', 'copy_f2.png', T_('Copy'), true ); |
| 89 : | root | 1 | mosMenuBar::spacer(); |
| 90 : | } | ||
| 91 : | mosMenuBar::editListX(); | ||
| 92 : | mosMenuBar::spacer(); | ||
| 93 : | mosMenuBar::deleteList(); | ||
| 94 : | mosMenuBar::spacer(); | ||
| 95 : | csouza | 550 | |
| 96 : | $section=''; | ||
| 97 : | if (strstr($GLOBALS['section'], 'contact')){ | ||
| 98 : | $section = 'contact.'; | ||
| 99 : | } | ||
| 100 : | mosMenuBar::help( $section.'main' ); | ||
| 101 : | root | 1 | mosMenuBar::endTable(); |
| 102 : | } | ||
| 103 : | } | ||
| 104 : | ?> |
| ViewVC Help | |
| Powered by ViewVC 1.0.0 |
Web Hosting provided by Network Redux.

