HTML_menubar.php
Declares class mosMenuBar
custom( $task='', $icon='', $iconOver='', $alt='', $listSelect=true )
"Writes a custom option and task button for the button bar"
$task = "The task to perform (picked up by the switch($task) blocks)"
$icon = "The image to display"
$iconOver = "The image to display when moused over"
$alt = "The alt text for the icon image"
$listSelect = "True if required to check that a standard list item is checked"
Several functions:
$task = "An override for the task"
$alt = "An override for the alt text"
addNew( $task='new', $alt='New' )
"Writes the common 'new' icon for the button bar"
publish( $task='publish', $alt='Publish' )
"Writes a common 'publish' button"
publishList( $task='publish', $alt='Publish' )
"Writes a common 'publish' button for a list of records"
unpublish( $task='unpublish', $alt='Unpublish' )
"Writes a common 'unpublish' button"
unpublishList( $task='unpublish', $alt='Unpublish' )
"Writes a common 'unpublish' button for a list of records"
archiveList( $task='archive', $alt='Archive' )
"Writes a common 'archive' button for a list of records"
unarchiveList( $task='unarchive', $alt='Unarchive' )
"Writes an unarchive button for a list of records"
editList( $task='edit', $alt='Edit' )
"Writes a common 'edit' button for a list of records"
editHtml( $task='edit_source', $alt='Edit HTML' )
"Writes a common 'edit' button for a template html"
editCss( $task='edit_css', $alt='Edit CSS' )
"Writes a common 'edit' button for a template css"
save( $task='save', $alt='Save' )
"Writes a save button for a given option"
cancel( $task='cancel', $alt='Cancel' )
"Writes a cancel button and invokes a cancel operation (eg a checkin)"
deleteList( $msg='', $task='remove', $alt='Delete' )
"Writes a common 'delete' button for a list of records"
$msg = "Postscript for the 'are you sure' message"
preview( $popup='' )
"Writes a preview button for a given option (opens a popup window)"
$popup = "The name of the popup file (excluding the file extension)"
back()
"Writes a cancel button that will go back to the previous page without doing any other operation"
divider()
"Write a divider between menu buttons"
media_manager( $directory = '' )
"Writes a media_manager button" The media manager provided by Mambo.
$directory = "The sub-drectory to upload the media to"
function spacer( $width='' )
"Writes a spacer cell"
$width = "The width for the cell"
function endTable()
"Writes the end of the menu bar table"