Exemplo n.º 1
0
    /**
     * Draws the standard footer
     *
     */
    public static function footer()
    {
        $v = EcrHtml::getVersionFromCHANGELOG('com_easycreator');
        //-- If the version contains a hyphen, it must be a snapshot - color orange.
        $color = false === strpos($v, '-') ? 'green' : 'orange';
        $version = '<strong style="color: ' . $color . ';">' . $v . '</strong>';
        ?>
    <div class="ecrFooter">
        <span class="img icon16-easycreator">EasyCreator</span> <?php 
        echo $version;
        ?>
	    is made and partially Copyright &copy; 2008 - 2015 by <a href="https://github.com/elkuku"
        class="external">El KuKu</a> and <a href="https://github.com/elkuku/EasyCreator/graphs/contributors"
	                                        class="external">
		    Others
	    </a>
        <br/>
        <small><em style="color: silver;"><span class="img icon16-joomla"></span>
            EasyCreator is not affiliated with or endorsed by the <a
                href="http://joomla.org" class="external">Joomla! Project</a>. It is
            not supported or warranted by the <a href="http://joomla.org"
                                                 class="external">Joomla! Project</a> or <a
                href="http://opensourcematters.org/" class="external">Open Source
                Matters</a>.<br/>
            <a
                href="http://www.joomla.org/about-joomla/the-project/conditional-use-logos.html"
                class="external">The Joomla! logo</a> is used under a limited license
            granted by <a href="http://opensourcematters.org/" class="external">Open
                Source Matters</a> the trademark holder in the United States and other
            countries.</em></small>
    </div>
    <?php 
        if (defined('ECR_DEBUG') && ECR_DEBUG) {
            EcrDebugger::printSysVars('get');
            EcrDebugger::printSysVars('post');
        }
        echo "\n" . '<!-- EasyCreator END -->' . "\n";
    }
Exemplo n.º 2
0
    <tr>
    <td colspan="2"><hr /></td>
    </tr>

    <tr>
        <td colspan="2" class="ecr_button" onclick="submitform('createTable');"><?php 
echo jgettext('CREATE Table');
?>
</td>
    </tr>
</table>
 -->
           </div>
            <div class="b">
                <div class="b">
                    <div class="b"></div>
                </div>
            </div>

</td>
<td>&nbsp;</td>
<td width="10%" nowrap="nowrap">
</td>
</tr>
</table>

<input type="hidden" name="old_task" value="tables" />
<?php 
ECR_DEBUG ? EcrDebugger::varDump($this->project) : null;
Exemplo n.º 3
0
/**
 * @param EcrProjectBase $project
 *
 * @return mixed
 */
function drawProject(EcrProjectBase $project)
{
    echo '<h1>' . $project->name . '</h1>';
    echo '<h3>' . $project->comName . '</h2>';
    echo '<h3>credits..</h2>';
    $reflection = new EcrProjectReflection();
    switch ($project->type) {
        case 'component':
            //    #		$comPath = 'components'.DS.$project->com_com_name;
            $reflection->reflectProject($project);
            $reflections = $reflection->getReflections();
            ECR_DEBUG ? EcrDebugger::dPrint($reflections, 'Reflection') : null;
            //			{
            //			echo '<pre>';
            //				print_r($reflections);
            //			}
            //			echo '</pre>';
            break;
        default:
            echo 'Sorry ' . $project->type . ' not supported yet..';
            return;
            break;
    }
    //switch
    ?>
<table width="100%" class="adminlist">
    <tr>
        <th>Controllers</th>
        <th>Views</th>
    </tr>
    <tr valign="top">
        <td><?php 
    displayReflectedFiles($reflections, 'controllers', $project);
    ?>
</td>
        <td><?php 
    displayReflectedFiles($reflections, 'views', $project);
    ?>
</td>
    </tr>
    <tr>
        <th>Models</th>
        <th>Tables</th>
    </tr>
    <tr valign="top">
        <td><?php 
    displayReflectedFiles($reflections, 'models', $project);
    ?>
</td>
        <td><?php 
    displayReflectedFiles($reflections, 'tables', $project);
    ?>
</td>
    </tr>
</table>
<?php 
}
Exemplo n.º 4
0
 /**
  * Executes a Shell command.
  *
  * @param string $command The command to execute
  * @param array $arguments Arguments to pass
  *
  * @uses shell_exec() !!
  *
  * @return string Console output
  */
 public function cliSystem($command, $arguments = array())
 {
     $args = implode(' ', $arguments);
     $cmd = $this->cliBase . $command . ' ' . $args;
     ECR_DEBUG ? EcrDebugger::dEcho($cmd) : '';
     echo '<pre class="console">';
     $lastLine = system($cmd);
     echo '</pre>';
     return $lastLine;
 }