Example #1
0
<?php

defined('_JEXEC') || die('=;)');
/**
 * @package    EasyCreator
 * @subpackage Frontent
 * @author     Nikolai Plath (elkuku)
 * @author     Created on 24-Sep-2008
 */
?>
<table style="width: 100%">
    <tr>
        <td>
            <?php 
easyHTML::projectSelector();
?>
        </td>
        <td align="center">
            <strong style="color: red;">
                <?php 
echo jgettext('Please select a project');
?>
            </strong>
        </td>
    </tr>
</table>
Example #2
0
 * @subpackage Frontend
 * @author     EasyJoomla {@link http://www.easy-joomla.org Easy-Joomla.org}
 * @author     Nikolai Plath (elkuku) {@link http://www.nik-it.de NiK-IT.de}
 * @author     Created on 24-Sep-2008
 */
//-- No direct access
defined('_JEXEC') or die('=;)');
jimport('joomla.filesystem.file');
// --Global functions
require_once JPATH_COMPONENT_ADMINISTRATOR . DS . 'functions.php';
//-- Load helpers
ecrLoadHelper('project');
ecrLoadHelper('projecthelper');
//-- Global constants
require_once JPATH_COMPONENT_ADMINISTRATOR . DS . 'defines.php';
$document =& JFactory::getDocument();
//-- Add css
$document->addStyleSheet('components/com_easycreator/assets/css/default.css');
//-- Add javascript
$document->addScript(JURI::root() . 'components/com_easycreator/assets/js/easycreator.js');
//-- Include standard html
JLoader::import('helpers.html', JPATH_COMPONENT);
//-- Require the base controller
require_once JPATH_COMPONENT . DS . 'controller.php';
$controller = new EasyCreatorController();
easyHTML::start();
//-- Perform the Request task
$controller->execute(JRequest::getVar('task'));
easyHTML::end();
//-- Redirect if set by the controller
$controller->redirect();