示例#1
0
 /**
  * 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();
 }
 /**
  * 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();
 }
示例#3
0
 /**
  * Draws the menu for Editing an existing module
  */
 function _EDIT()
 {
     global $id;
     mosMenuBar::startTable();
     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();
     if ($GLOBALS['task'] == 'new') {
         mosMenuBar::help('new');
     } else {
         if ($_POST) {
             $cid = (int) $GLOBALS['cid'][0];
         } else {
             $cid = (int) $_GET['id'];
         }
         $database =& mamboDatabase::getInstance();
         $database->setQuery('select element from #__mambots where id = ' . $cid);
         $result = $database->loadResult();
         mosMenuBar::help($result ? $result : 'edit');
     }
     mosMenuBar::endTable();
 }
 /**
  * Renders the toolbar for the announcment controller
  */
 function _Announcement()
 {
     mosMenuBar::startTable();
     mosMenuBar::apply('apply');
     mosMenuBar::help('ccevents.help.html');
     mosMenuBar::endTable();
 }
 /**
  * Draws the menu for Editing an existing category
  * @param int The published state (to display the inverse button)
  */
 function _EDIT()
 {
     global $id;
     mosMenuBar::startTable();
     mosMenuBar::media_manager();
     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();
     $section = '';
     if (strstr($GLOBALS['section'], 'com_contact')) {
         $section = 'contact.';
     }
     if (strstr($GLOBALS['section'], 'com_newsfeeds')) {
         $section = 'newsfeeds.';
     }
     if (strstr($GLOBALS['section'], 'com_weblinks')) {
         $section = 'weblinks.';
     }
     if ($GLOBALS['task'] == 'new') {
         mosMenuBar::help($section . 'new');
     } else {
         mosMenuBar::help($section . 'edit');
     }
     mosMenuBar::endTable();
 }
    /**
     * Draws the menu for Editing an existing module
     */
    function _EDIT($cur_template, $publish)
    {
        global $id;
        mosMenuBar::startTable();
        ?>
			<td>
				<a class="toolbar" href="#" onClick="if (typeof document.adminForm.content == 'undefined') { alert('A pré-visualização apenas funciona para `novos´ módulos.'); } else { var content = document.adminForm.content.value; content = content.replace('#', '');  var title = document.adminForm.title.value; title = title.replace('#', ''); window.open('popups/modulewindow.php?title=' + title + '&content=' + content + '&t=<?php 
        echo $cur_template;
        ?>
', 'win1', 'status=no,toolbar=no,scrollbars=auto,titlebar=no,menubar=no,resizable=yes,width=200,height=400,directories=no,location=no'); }" >
					<img src="images/preview_f2.png" alt="Pré-visualizar" border="0" name="preview" align="middle">
					Visualizar</a>
			</td>
		<?php 
        mosMenuBar::spacer();
        mosMenuBar::save();
        mosMenuBar::spacer();
        mosMenuBar::apply();
        mosMenuBar::spacer();
        if ($id) {
            // for existing content items the button is renamed `close`
            mosMenuBar::cancel('cancel', 'Sair');
        } else {
            mosMenuBar::cancel();
        }
        mosMenuBar::spacer();
        mosMenuBar::help('screen.modules.edit');
        mosMenuBar::endTable();
    }
示例#7
0
 function _EDIT()
 {
     global $id;
     mosMenuBar::startTable();
     mosMenuBar::preview('contentwindow', true);
     mosMenuBar::spacer();
     mosMenuBar::media_manager();
     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();
     if ($GLOBALS['task'] == 'new') {
         mosMenuBar::help('new');
     } else {
         mosMenuBar::help('edit');
     }
     mosMenuBar::endTable();
 }
示例#8
0
 /**
 * Draws the menu for edit list
 */
 function EDIT_ITEM()
 {
     mosMenuBar::startTable();
     mosMenuBar::save("save");
     mosMenuBar::spacer();
     mosMenuBar::apply("apply");
     mosMenuBar::spacer();
     mosMenuBar::cancel("cancel");
     mosMenuBar::endTable();
 }
 function _EDIT()
 {
     global $id, $cid, $priTask, $subTask;
     mosMenuBar::startTable();
     mosMenuBar::spacer();
     mosMenuBar::save($priTask . '.save');
     mosMenuBar::spacer();
     mosMenuBar::apply($priTask . '.apply');
     mosMenuBar::spacer();
     mosMenuBar::cancel($priTask . '.cancel', 'Close');
     mosMenuBar::endTable();
 }
 public static function _DEFAULT()
 {
     mosMenuBar::startTable();
     mosMenuBar::save();
     mosMenuBar::spacer();
     mosMenuBar::apply();
     mosMenuBar::spacer();
     mosMenuBar::cancel();
     mosMenuBar::spacer();
     mosMenuBar::help('screen.config');
     mosMenuBar::endTable();
 }
示例#11
0
 function _DEFAULT()
 {
     mosMenuBar::startTable();
     mosMenuBar::save();
     mosMenuBar::spacer();
     mosMenuBar::apply();
     mosMenuBar::spacer();
     mosMenuBar::cancel();
     mosMenuBar::spacer();
     mosMenuBar::help('main');
     mosMenuBar::endTable();
 }
 public static function _EDIT()
 {
     mosMenuBar::startTable();
     mosMenuBar::preview('contentwindow', true);
     mosMenuBar::spacer();
     mosMenuBar::media_manager();
     mosMenuBar::spacer();
     mosMenuBar::save();
     mosMenuBar::spacer();
     mosMenuBar::apply();
     mosMenuBar::spacer();
     mosMenuBar::cancel();
     mosMenuBar::spacer();
     mosMenuBar::help('screen.staticcontent.edit');
     mosMenuBar::endTable();
 }
 function _CONFIG()
 {
     if (!defined('_JEXEC')) {
         mosMenuBar::startTable();
         mosMenuBar::save();
         mosMenuBar::spacer();
         mosMenuBar::apply();
         mosMenuBar::spacer();
         mosMenuBar::cancel();
         mosMenuBar::endTable();
     } else {
         JToolBarHelper::save();
         JToolBarHelper::apply();
         JToolBarHelper::cancel();
     }
 }
 /**
  * Draws the menu to edit a user
  */
 public static function _EDIT()
 {
     global $id;
     mosMenuBar::startTable();
     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.users');
     mosMenuBar::endTable();
 }
示例#15
0
    /**
     * Draws the menu for Editing an existing module
     */
    function _EDIT($cur_template, $publish)
    {
        global $id;
        mosMenuBar::startTable();
        ?>
			<td><a class="toolbar" href="#" onClick="if (typeof document.adminForm.content == 'undefined') { alert('<?php 
        echo T_('You can only preview typed modules.');
        ?>
'); } else { var content = document.adminForm.content.value; content = content.replace('#', '');  var title = document.adminForm.title.value; title = title.replace('#', ''); window.open('popups/modulewindow.php?title=' + title + '&content=' + content + '&t=<?php 
        echo $cur_template;
        ?>
', 'win1', 'status=no,toolbar=no,scrollbars=auto,titlebar=no,menubar=no,resizable=yes,width=200,height=400,directories=no,location=no'); }" onmouseout="MM_swapImgRestore();"  onmouseover="MM_swapImage('preview','','images/preview_f2.png',1);"><img src="images/preview.png" alt="<?php 
        echo T_('Preview');
        ?>
" border="0" name="preview" align="middle"><br /><?php 
        echo T_('Preview');
        ?>
</a></td>
		<?php 
        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();
        $result = '';
        if ($_POST) {
            $cid = (int) $GLOBALS['cid'][0];
        } else {
            $cid = (int) $_GET['id'];
        }
        $database =& mamboDatabase::getInstance();
        $database->setQuery('select module from #__modules where id = ' . $cid);
        $result = substr($database->loadResult(), 4);
        mosMenuBar::help($result ? $result : 'edit');
        mosMenuBar::endTable();
    }
示例#16
0
 function edit()
 {
     mosMenuBar::startTable();
     if ($this->request['act'] != 'catalogs') {
         #mosMenuBar::custom( 'translate', 'edit.png', 'edit_f2.png', T_('Manage Translations'), false );
         #mosMenuBar::spacer();
     } else {
         mosMenuBar::custom('auto_translate', 'copy.png', 'copy_f2.png', T_('Auto Translate'), false);
         mosMenuBar::spacer(20);
         mosMenuBar::apply();
         mosMenuBar::spacer();
     }
     mosMenuBar::save();
     mosMenuBar::spacer();
     mosMenuBar::cancel();
     mosMenuBar::spacer();
     #mosMenuBar::help( 'screen.languages.edit' );
     mosMenuBar::endTable();
 }
 /**
  * Draws the menu for Editing an existing category
  * @param int The published state (to display the inverse button)
  */
 function _EDIT()
 {
     global $id;
     mosMenuBar::startTable();
     mosMenuBar::media_manager();
     mosMenuBar::spacer();
     mosMenuBar::save();
     mosMenuBar::spacer();
     mosMenuBar::apply();
     mosMenuBar::spacer();
     if ($id) {
         // for existing content items the button is renamed `close`
         mosMenuBar::cancel('cancel', 'Sair');
     } else {
         mosMenuBar::cancel();
     }
     mosMenuBar::spacer();
     mosMenuBar::help('screen.categories.edit');
     mosMenuBar::endTable();
 }
示例#18
0
 /**
  * Draws the menu for Editing an existing category
  */
 function _EDIT($task)
 {
     global $id;
     mosMenuBar::startTable();
     mosMenuBar::media_manager();
     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();
     $ref = $task == 'new' ? 'new' : 'edit';
     mosMenuBar::help($ref);
     mosMenuBar::endTable();
 }
示例#19
0
 function _EDIT($applid)
 {
     $cid = mosGetParam($_REQUEST, 'cid', array(0));
     $text = $cid[0] ? 'Edit' : 'New';
     mosMenuBar::startTable();
     mosMenuBar::save('save');
     mosMenuBar::spacer();
     if ($text != 'New') {
         mosMenuBar::apply('apply');
         mosMenuBar::spacer();
     }
     if ($cid[0]) {
         mosMenuBar::cancel('cancel', 'Close');
         mosMenuBar::spacer();
     } else {
         mosMenuBar::cancel('cancel');
         mosMenuBar::spacer();
     }
     mosMenuBar::help('screen.jumi.edit');
     mosMenuBar::spacer();
     mosMenuBar::endTable();
 }
 public static function _EDIT()
 {
     global $id;
     mosMenuBar::startTable();
     mosMenuBar::preview('contentwindow', true);
     mosMenuBar::spacer();
     mosMenuBar::media_manager();
     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.content.edit');
     mosMenuBar::endTable();
 }
 function CUSTOMBBCODE_EDIT_MENU()
 {
     if (JCOMMENTS_JVERSION == '1.5') {
         JToolBarHelper::title(JText::_('Edit'), 'jcomments-custombbcode');
         JToolBarHelper::custom('custombbcode.save', 'save.png', 'save_f2.png', JText::_('A_SAVE'), false);
         JToolBarHelper::apply('custombbcode.apply');
         JToolBarHelper::cancel('custombbcode.cancel');
     } else {
         mosMenuBar::startTable();
         mosMenuBar::spacer();
         mosMenuBar::save('custombbcode.save', JText::_('A_SAVE'));
         mosMenuBar::spacer();
         mosMenuBar::apply('custombbcode.apply');
         mosMenuBar::spacer();
         mosMenuBar::cancel('custombbcode.cancel');
         mosMenuBar::endTable();
     }
 }
示例#22
0
 public static function blacklistEdit()
 {
     if (JCOMMENTS_JVERSION == '1.0') {
         mosMenuBar::startTable();
         mosMenuBar::spacer();
         mosMenuBar::apply('blacklist.apply');
         mosMenuBar::spacer();
         mosMenuBar::save('blacklist.save');
         mosMenuBar::spacer();
         mosMenuBar::cancel('blacklist.cancel');
         mosMenuBar::endTable();
     } else {
         JToolBarHelper::title(JText::_('A_BLACKLIST_EDIT'), 'jcomments-blacklist');
         JToolBarHelper::apply('blacklist.apply');
         JToolBarHelper::save('blacklist.save');
         JToolBarHelper::cancel('blacklist.cancel');
     }
 }
 function CONFIGURATION()
 {
     mosMenuBar::startTable();
     if (class_exists('aca_archive')) {
         mosMenuBar::custom('archiveAll', 'unarchive.png', 'unarchive_f2.png', _ACA_MENU_ARCHIVE_ALL, false);
         mosMenuBar::spacer(50);
     }
     if (class_exists('autonews')) {
         mosMenuBar::custom('reset', 'checked_out.png', 'checked_out.png', 'Reset S.N. Counter', false);
         mosMenuBar::spacer(50);
     }
     if (class_exists('auto')) {
         $flag = auto::viewCron();
     } else {
         $flag = false;
     }
     if ($flag) {
         mosMenuBar::custom('sendQueue', 'forward.png', 'forward_f2.png', _ACA_MENU_SEND_QUEUE, false);
         mosMenuBar::spacer(50);
     }
     if ($GLOBALS[ACA . 'type'] == 'Plus' or $GLOBALS[ACA . 'type'] == 'PRO') {
         mosMenuBar::custom('syncUsers', 'addusers.png', 'addusers.png', _ACA_MENU_SYNC_USERS, false);
         mosMenuBar::spacer(50);
     }
     mosMenuBar::save();
     mosMenuBar::spacer();
     mosMenuBar::apply();
     mosMenuBar::spacer(50);
     mosMenuBar::cancel();
     mosMenuBar::spacer();
     mosMenuBar::custom('cpanel', 'tool.png', 'tool_f2.png', _ACA_MENU_CPANEL, false);
     mosMenuBar::endTable();
 }