/** * Draws the menu to edit a menu item */ function _EDIT() { global $id; if (!$id) { $cid = josGetArrayInts('cid'); $id = $cid[0]; } $menutype = strval(mosGetParam($_REQUEST, 'menutype', 'mainmenu')); mosMenuBar::startTable(); if (!$id) { $link = 'index2.php?option=com_menus&menutype=' . $menutype . '&task=new&hidemainmenu=1&' . josSpoofValue() . '=1'; mosMenuBar::back('Back', $link); mosMenuBar::spacer(); } mosMenuBar::save(); mosMenuBar::spacer(); mosMenuBar::apply(); mosMenuBar::spacer(); if ($id) { // for existing content items the button is renamed `close` mosMenuBar::cancel('cancel', 'Close'); } else { mosMenuBar::cancel(); } mosMenuBar::spacer(); mosMenuBar::help('screen.menus.edit'); mosMenuBar::endTable(); }
function _VIEW() { mosMenuBar::startTable(); mosMenuBar::back(); mosMenuBar::spacer(); mosMenuBar::endTable(); }
/** * Draws the menu to edit a menu item */ function _EDIT($type) { global $id; $hs = ''; if (!$id) { $cid = mosGetParam($_POST, 'cid', array(0)); $id = $cid[0]; } $menutype = mosGetParam($_REQUEST, 'menutype', 'mainmenu'); mosMenuBar::startTable(); if (!$id) { $link = 'index2.php?option=com_menus&menutype=' . $menutype . '&task=new&hidemainmenu=1'; mosMenuBar::back(T_('Back'), $link); mosMenuBar::spacer(); } mosMenuBar::save(); mosMenuBar::spacer(); mosMenuBar::apply(); mosMenuBar::spacer(); if ($id) { // for existing content items the button is renamed `close` mosMenuBar::cancel('cancel', T_('Close')); } else { mosMenuBar::cancel(); } mosMenuBar::spacer(); mosMenuBar::help($type); mosMenuBar::endTable(); }
function ABOUT_MENU() { mosMenuBar::startTable(); mosMenuBar::back(); mosMenuBar::spacer(); mosMenuBar::endTable(); }
function _SETTINGS() { mosMenuBar::startTable(); mosMenuBar::save(); mosMenuBar::spacer(); mosMenuBar::back(); mosMenuBar::endTable(); }
public static function about() { if (JCOMMENTS_JVERSION == '1.0') { mosMenuBar::startTable(); mosMenuBar::spacer(); mosMenuBar::back(); mosMenuBar::spacer(); mosMenuBar::endTable(); } else { JToolBarHelper::title(JText::_('A_SUBMENU_ABOUT'), 'jcomments-logo'); JToolBarHelper::back(); JCommentsSubMenuHelper::addSubMenu(); } }
public static function _VIEW() { mosMenuBar::startTable(); mosMenuBar::back(); mosMenuBar::endTable(); }
} } else { if ($task == "edtimg") { mosMenuBar::save('save', _ZOOM_SAVE); mosMenuBar::spacer(); } } mosMenuBar::spacer(); mosMenuBar::back(_ZOOM_BACK); break; case 'upload': $url = "index2.php?option=com_zoom&page=mediamgr"; if (!empty($zoom->_gallery)) { $url .= "&catid=" . $zoom->_gallery->_id; } mosMenuBar::back(_ZOOM_BACK, $url); break; case 'settings': mosMenuBar::save('save', _ZOOM_SAVE); mosMenuBar::spacer(); mosMenuBar::cancel('cancel', _ZOOM_WINDOW_CLOSE); break; case 'credits': case 'zoomthumb': mosMenuBar::back(_ZOOM_BACK); break; default: mosMenuBar::spacer(); break; } mosMenuBar::endTable();
function PERMISSION_MENU() { mosMenuBar::startTable(); mosMenuBar::save('savePermissions'); mosMenuBar::back(); mosMenuBar::endTable(); }
function ABOUT() { mosMenuBar::startTable(); mosMenuBar::back(); mosMenuBar::spacer(); mosMenuBar::custom('cpanel', 'tool.png', 'tool_f2.png', _ACA_MENU_CPANEL, false); mosMenuBar::endTable(); }
case "cancel": mosMenuBar::startTable(); mosMenuBar::spacer(); mosMenuBar::endTable(); break; case "editautoresponder": mosMenuBar::startTable(); mosMenuBar::save( 'saveautoresponder', _UDDEIM_TOOLBAR_SAVE ); mosMenuBar::back("Back", $index."?option=$option&task=usersettings"); mosMenuBar::spacer(); mosMenuBar::endTable(); break; case "editautoforward": mosMenuBar::startTable(); mosMenuBar::save( 'saveautoforward', _UDDEIM_TOOLBAR_SAVE ); mosMenuBar::back("Back", $index."?option=$option&task=usersettings"); mosMenuBar::spacer(); mosMenuBar::endTable(); break; case "settings": default: if (strncasecmp($ver->RELEASE, "3.0", 3)) { // if NOT Version 3.0 which had a bug // if ($xver<3) { mosMenuBar::startTable(); // mosMenuBar::customX( 'usersettings', '../components/com_uddeim/images/user.png', '../components/com_uddeim/images/user.png', 'User settings', false ); // mosMenuBar::customX( 'usersettings', 'user.png', 'user.png', 'User settings', false ); // mosMenuBar::customX( 'backuprestore', 'archive.png', 'archive_f2.png', 'Backup & Restore', false ); if (uddeIMcheckPlugin('mcp')) if (uddeIMcheckVersionPlugin('mcp')) mosMenuBar::customX( 'mcp', 'edit.png', 'edit_f2.png', _UDDEIM_TOOLBAR_MCP, false ); if (uddeIMcheckPlugin('spamcontrol'))