Beispiel #1
0
 function display($tpl = null)
 {
     global $mainframe, $option;
     $db =& JFactory::getDBO();
     $db =& JFactory::getDBO();
     $lists = JCEHelper::accessList('access', '', 1, 'parent.document.adminForm.accessall.value=this.value;');
     $this->assignRef('lists', $lists);
     parent::display($tpl);
 }
Beispiel #2
0
JHTML::stylesheet('icons.css', 'administrator/components/com_jce/css/');
$updater =& JCEUpdater::getInstance();
?>

<table class="admintable">
    <tr>
        <td width="55%" valign="top" colspan="2">
		<div id="cpanel"><?php 
$link = 'index.php?option=com_jce&amp;type=config';
JCEHelper::quickiconButton($link, 'icon-48-config.png', JText::_('Configuration'));
$link = 'index.php?option=com_jce&amp;type=plugin';
JCEHelper::quickiconButton($link, 'icon-48-plugin.png', JText::_('Plugins'));
$link = 'index.php?option=com_jce&amp;type=group';
JCEHelper::quickiconButton($link, 'icon-48-user.png', JText::_('Groups'));
$link = 'index.php?option=com_jce&amp;type=install';
JCEHelper::quickiconButton($link, 'icon-48-install.png', JText::_('Install'));
?>
</div>
        <div class="clr"></div>
        </td>
    </tr>
	<tr>
    	<td>
        	<table class="admintable">
            	<tr>
                    <td class="key">
                        <?php 
echo JText::_('Forum');
?>

                    </td>
 function help($type, $alt = 'Help')
 {
     jimport('joomla.plugin.helper');
     $plugin = JPluginHelper::getPlugin('editors', 'jce');
     $url = 'http://www.joomlacontenteditor.net/index.php?option=com_content&tmpl=component&view=article&task=findkey';
     if (isset($plugin->params)) {
         $params = new JParameter($plugin->params);
         $url = $params->get('help', $url);
     }
     if (strpos($type, '.') === false) {
         $type = $type . '.view';
     }
     $type = $type[0];
     $bar =& JToolBar::getInstance('toolbar');
     $bar->appendButton('Popup', 'help', $alt, $url . '&lang=' . JCEHelper::getLanguage() . '&keyref=admin.' . $type, 700, 560);
 }
		</div>
		<?php 
    }
    ?>
	<div id="cpanel">
		<?php 
    $link = 'index.php?option=com_jce&amp;type=config';
    quickiconButton($link, 'icon-48-config.png', JText::_('Configuration'));
    $link = 'index.php?option=com_jce&amp;type=plugin';
    quickiconButton($link, 'icon-48-plugin.png', JText::_('Plugins'));
    $link = 'index.php?option=com_jce&amp;type=group';
    quickiconButton($link, 'icon-48-user.png', JText::_('Groups'));
    $link = 'index.php?option=com_jce&amp;type=install';
    quickiconButton($link, 'icon-48-install.png', JText::_('Install'));
    if (!JCEHelper::checkEditorInstall() && JCEHelper::checkEditorPath()) {
        $link = 'index.php?option=com_jce&amp;type=fixinstall-editor';
        quickiconButton($link, 'icon-48-cpanel.png', JText::_('Install Editor'));
    }
    if (!JCEHelper::checkPlugins()) {
        $link = 'index.php?option=com_jce&amp;type=fixinstall-plugins';
        quickiconButton($link, 'icon-48-cpanel.png', JText::_('Fix Plugins'));
    }
    if (!JCEHelper::checkGroups()) {
        $link = 'index.php?option=com_jce&amp;type=fixinstall-groups';
        quickiconButton($link, 'icon-48-cpanel.png', JText::_('Fix Groups'));
    }
    ?>
	</div>
    <div class="clr"></div>
	<?php 
}