
|
|
';
echo $alt;
?>
|
setQuery( $sql );
return $database->loadResult();
}
/**
* Writes the common 'new' icon for the button bar
* @param string An override for the task
* @param string An override for the alt text
*/
function addNew( $task='new', $alt=null ) {
mosMenuBar::addToToolBar ($task, $alt, 'New', 'new');
}
/**
* Writes the common 'new' icon for the button bar.
* Extended version of addNew() calling hideMainMenu() before submitbutton().
* @param string An override for the task
* @param string An override for the alt text
*/
function addNewX( $task='new', $alt=null ) {
mosMenuBar::addToToolBar ($task, $alt, 'New', 'new', true);
}
/**
* Writes a common 'publish' button
* @param string An override for the task
* @param string An override for the alt text
*/
function publish( $task='publish', $alt=null ) {
mosMenuBar::addToToolBar ($task, $alt, 'Publish', 'publish');
}
/**
* Writes a common 'publish' button for a list of records
* @param string An override for the task
* @param string An override for the alt text
*/
function publishList( $task='publish', $alt=null ) {
$listprompt = T_('Please make a selection from the list to publish');
mosMenuBar::addToToolBar ($task, $alt, 'Publish', 'publish', false, $listprompt);
}
/**
* Writes a common 'default' button for a record
* @param string An override for the task
* @param string An override for the alt text
*/
function makeDefault( $task='default', $alt=null ) {
$listprompt = T_('Please select an item to make default');
mosMenuBar::addToToolBar ($task, $alt, 'Default', 'publish', false, $listprompt);
}
/**
* Writes a common 'assign' button for a record
* @param string An override for the task
* @param string An override for the alt text
*/
function assign( $task='assign', $alt=null ) {
$listprompt = T_('Please select an item to assign');
mosMenuBar::addToToolBar ($task, $alt, 'Assign', 'publish', false, $listprompt);
}
/**
* Writes a common 'unpublish' button
* @param string An override for the task
* @param string An override for the alt text
*/
function unpublish( $task='unpublish', $alt=null ) {
mosMenuBar::addToToolBar ($task, $alt, 'Unpublish', 'unpublish');
}
/**
* Writes a common 'unpublish' button for a list of records
* @param string An override for the task
* @param string An override for the alt text
*/
function unpublishList( $task='unpublish', $alt=null ) {
$listprompt = T_('Please make a selection from the list to unpublish');
mosMenuBar::addToToolBar ($task, $alt, 'Unpublish', 'unpublish', false, $listprompt);
}
/**
* Writes a common 'archive' button for a list of records
* @param string An override for the task
* @param string An override for the alt text
*/
function archiveList( $task='archive', $alt=null ) {
$listprompt = T_('Please make a selection from the list to archive');
mosMenuBar::addToToolBar ($task, $alt, 'Archive', 'archive', false, $listprompt);
}
/**
* Writes an unarchive button for a list of records
* @param string An override for the task
* @param string An override for the alt text
*/
function unarchiveList( $task='unarchive', $alt=null ) {
$listprompt = T_('Please select a news story to unarchive');
mosMenuBar::addToToolBar ($task, $alt, 'Unarchive', 'unarchive', false, $listprompt);
}
/**
* Writes a common 'edit' button for a list of records
* @param string An override for the task
* @param string An override for the alt text
*/
function editList( $task='edit', $alt=null ) {
$listprompt = T_('Please select an item from the list to edit');
mosMenuBar::addToToolBar ($task, $alt, 'Edit', 'edit', false, $listprompt);
}
/**
* Writes a common 'edit' button for a list of records.
* Extended version of editList() calling hideMainMenu() before submitbutton().
* @param string An override for the task
* @param string An override for the alt text
*/
function editListX( $task='edit', $alt=null ) {
$listprompt = T_('Please select an item from the list to edit');
mosMenuBar::addToToolBar ($task, $alt, 'Edit', 'edit', true, $listprompt);
}
/**
* Writes a common 'edit' button for a template html
* @param string An override for the task
* @param string An override for the alt text
*/
function editHtml( $task='edit_source', $alt=null ) {
$listprompt = T_('Please select an item from the list to edit');
mosMenuBar::addToToolBar ($task, $alt, 'Edit HTML', 'html', false, $listprompt);
}
/**
* Writes a common 'edit' button for a template html.
* Extended version of editHtml() calling hideMainMenu() before submitbutton().
* @param string An override for the task
* @param string An override for the alt text
*/
function editHtmlX( $task='edit_source', $alt=null ) {
$listprompt = T_('Please select an item from the list to edit');
mosMenuBar::addToToolBar ($task, $alt, 'Edit HTML', 'html', true, $listprompt);
}
/**
* Writes a common 'edit' button for a template css
* @param string An override for the task
* @param string An override for the alt text
*/
function editCss( $task='edit_css', $alt=null ) {
$listprompt = T_('Please select an item from the list to edit');
mosMenuBar::addToToolBar ($task, $alt, 'Edit CSS', 'css', false, $listprompt);
}
/**
* Writes a common 'edit' button for a template css.
* Extended version of editCss() calling hideMainMenu() before submitbutton().
* @param string An override for the task
* @param string An override for the alt text
*/
function editCssX( $task='edit_css', $alt=null ) {
$listprompt = T_('Please select an item from the list to edit');
mosMenuBar::addToToolBar ($task, $alt, 'Edit CSS', 'css', true, $listprompt);
}
/**
* Writes a common 'delete' button for a list of records
* @param string Postscript for the 'are you sure' message
* @param string An override for the task
* @param string An override for the alt text
*/
function deleteList( $msg='', $task='remove', $alt=null ) {
$listprompt = T_('Please make a selection from the list to delete');
mosMenuBar::addToToolBar ($task, $alt, 'Delete', 'delete', false, $listprompt);
}
/**
* Writes a common 'delete' button for a list of records.
* Extended version of deleteList() calling hideMainMenu() before submitbutton().
* @param string Postscript for the 'are you sure' message
* @param string An override for the task
* @param string An override for the alt text
*/
function deleteListX( $msg='', $task='remove', $alt=null ) {
$listprompt = T_('Please make a selection from the list to delete');
mosMenuBar::addToToolBar ($task, $alt, 'Delete', 'delete', true, $listprompt);
}
/**
* Write a trash button that will move items to Trash Manager
*/
function trash( $task='remove', $alt=null ) {
mosMenuBar::addToToolBar ($task, $alt, 'Trash', 'delete');
}
/**
* Writes a preview button for a given option (opens a popup window)
* @param string The name of the popup file (excluding the file extension)
*/
function preview( $popup='', $updateEditors=false ) {
$image = mosAdminMenus::ImageCheckAdmin( 'preview.png', '/administrator/images/', NULL, NULL, T_('Preview'), 'preview' );
$image2 = mosAdminMenus::ImageCheckAdmin( 'preview_f2.png', '/administrator/images/', NULL, NULL, T_('Preview'), 'preview', 0 );
$cur_template = mosMenuBar::getTemplate();
?>
|
' . T_('Help'); ?>
|
|
|
|
|
|
|
|