Example #1
0
    /**
     * Displays the HTML for this page, directly outputting it to the browser (due to the use of tabs)
     */
    function echoHTML()
    {
        // Load the translations
        // Make the Control Panel HTML
        $cpanel = new JoomlapackCPanelHTML();
        $cpanel->addItem(JoomlapackAbstraction::JPLink('config'), 'config', JoomlapackLangManager::_('CPANEL_CONFIG'));
        $cpanel->addItem(JoomlapackAbstraction::JPLink('configmigrate'), 'configmigrate', JoomlapackLangManager::_('CPANEL_CONFIGMIGRATE'));
        $cpanel->addItem(JoomlapackAbstraction::JPLink('def'), 'def', JoomlapackLangManager::_('CPANEL_DEF'));
        $cpanel->addItem(JoomlapackAbstraction::JPLink('sff'), 'sff', JoomlapackLangManager::_('CPANEL_SFF'));
        $cpanel->addItem(JoomlapackAbstraction::JPLink('dbef'), 'dbef', JoomlapackLangManager::_('CPANEL_DBEF'));
        $cpanel->addItem(JoomlapackAbstraction::JPLink('multidb'), 'multidb', JoomlapackLangManager::_('CPANEL_MULTIDB'));
        $cpanel->addItem(JoomlapackAbstraction::JPLink('pack'), 'backup', JoomlapackLangManager::_('CPANEL_PACK'));
        $cpanel->addItem(JoomlapackAbstraction::JPLink('backupadmin'), 'bufa', JoomlapackLangManager::_('CPANEL_BUADMIN'));
        $cpanel->addItem(JoomlapackAbstraction::JPLink('log'), 'log', JoomlapackLangManager::_('CPANEL_LOG'));
        $cpanel->addItem(JoomlapackAbstraction::JPLink('unlock'), 'reset', JoomlapackLangManager::_('CPANEL_UNLOCK'));
        $cpanelHTML = $cpanel->getHTML();
        // Create the admin form
        echo JoomlapackCommonHTML::getAdminHeadingHTML(JoomlapackLangManager::_('CPANEL_HOME'));
        echo <<<ENDSNIPPET
\t\t<table class="adminform">
\t\t\t<tr>
\t\t\t\t<td width="55%" valign="top">
\t\t\t\t\t{$cpanelHTML}
\t\t\t\t</td>
\t\t\t\t<td width="45%" valign="top">
ENDSNIPPET;
        $this->_getTabsHTML();
        echo <<<ENDSNIPPET
\t\t\t\t</td>
\t\t\t</tr>
\t\t</table>\t\t
ENDSNIPPET;
    }
    function _echoPanel()
    {
        echo JoomlapackCommonHTML::getAdminHeadingHTML(JoomlapackLangManager::_('CPANEL_CONFIGMIGRATE'));
        $cpanel = new JoomlapackCPanelHTML();
        $cpanel->addItem(JoomlapackAbstraction::JPLink('configmigrate', 'export', true), 'cmexport', JoomlapackLangManager::_('CONFIGMIGRATE_EXPORT'));
        $cpanel->addItem(JoomlapackAbstraction::JPLink('configmigrate', 'import'), 'cmimport', JoomlapackLangManager::_('CONFIGMIGRATE_IMPORT'));
        $cpanel->addItem(JoomlapackAbstraction::JPLink('configmigrate', 'fix'), 'cmfix', JoomlapackLangManager::_('CONFIGMIGRATE_FIXFILTERS'));
        $cpanelHTML = $cpanel->getHTML();
        $desc = "<p>" . JoomlapackLangManager::_('CONFIGMIGRATE_DESC1') . "<br/>" . JoomlapackLangManager::_('CONFIGMIGRATE_DESC2') . "</p>";
        echo <<<ENDSNIPPET
\t\t<table class="adminform">
\t\t\t<tr>
\t\t\t\t<td width="100%" valign="top">
\t\t\t\t\t{$cpanelHTML}
\t\t\t\t</td>
\t\t\t</tr>
\t\t\t<tr>
\t\t\t\t<td>{$desc}</td>
\t\t\t</tr>
\t\t\t</table>\t\t
ENDSNIPPET;
    }