Source for file toolbar.sections.html.php

Documentation is available at toolbar.sections.html.php

  1. <?php
  2. /**
  3. @package Mambo
  4. @subpackage Sections
  5. @copyright  Refer to copyright.php
  6. @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
  7. @author Mambo Foundation Inc see README.php
  8. */ 
  9.  
  10. /** ensure this file is being included by a parent file */
  11. defined'_VALID_MOS' or die'Direct Access to this location is not allowed.' );
  12.  
  13.     /**
  14.     * Draws the menu for Editing an existing category
  15.     */
  16.     function _EDIT($task{
  17.         global $id;
  18.         
  19.         mosMenuBar::startTable();
  20.         mosMenuBar::media_manager();
  21.         mosMenuBar::spacer();
  22.         mosMenuBar::save();
  23.         mosMenuBar::spacer();
  24.         mosMenuBar::apply();
  25.         mosMenuBar::spacer();
  26.         if $id {
  27.             // for existing content items the button is renamed `close`
  28.             mosMenuBar::cancel'cancel'T_('Close') );
  29.         else {
  30.             mosMenuBar::cancel();
  31.         }
  32.         mosMenuBar::spacer();
  33.         $ref $task == 'new' 'new' 'edit';
  34.         mosMenuBar::help$ref );
  35.         mosMenuBar::endTable();
  36.     }
  37.     /**
  38.     * Draws the menu for Copying existing sections
  39.     * @param int The published state (to display the inverse button)
  40.     */
  41.     function _COPY({
  42.         mosMenuBar::startTable();
  43.         mosMenuBar::save'copysave' );
  44.         mosMenuBar::spacer();
  45.         mosMenuBar::cancel();
  46.         mosMenuBar::spacer();
  47.         mosMenuBar::help'copy' );
  48.         mosMenuBar::endTable();
  49.     }
  50.     /**
  51.     * Draws the menu for Editing an existing category
  52.     */
  53.     function _DEFAULT(){
  54.         mosMenuBar::startTable();
  55.         mosMenuBar::publishList();
  56.         mosMenuBar::spacer();
  57.         mosMenuBar::unpublishList();
  58.         mosMenuBar::spacer();
  59.         mosMenuBar::addNewX();
  60.         mosMenuBar::spacer();
  61.         mosMenuBar::customX'copyselect''copy.png''copy_f2.png'T_('Copy')true );
  62.         mosMenuBar::spacer();
  63.         mosMenuBar::editListX();
  64.         mosMenuBar::spacer();
  65.         mosMenuBar::deleteList();
  66.         mosMenuBar::spacer();
  67.         mosMenuBar::help'manager' );
  68.         mosMenuBar::endTable();
  69.     }
  70. }
  71. ?>

Documentation generated on Mon, 05 May 2008 16:23:45 +0400 by phpDocumentor 1.4.0