Пример #1
0
function folderpane($folder)
{
    jpimport('helpers.def', true);
    return JoomlapackHelperDef::getFolderPane($folder);
}
Пример #2
0
    /**
     * Outputs the folder and file panes to the browser
     *
     */
    function renderPageArea()
    {
        // Get the "backup method"
        jpimport('models.registry', true);
        $profile =& JoomlapackModelRegistry::getInstance();
        $method = $profile->get('backupMethod');
        // Decide what the panes' initial content is going to be
        if ($method == 'ajax') {
            $folderContent = " ";
            $fileContent = " ";
            $folder = '/';
        } else {
            $folder = JRequest::getVar('folder', '');
            $folderContent = JoomlapackHelperDef::getFolderPane($folder);
        }
        // Render the table
        ?>
<h4>
	<?php 
        echo JText::_('DEF_LABEL_CURRENTDIRECTORY');
        ?>
	<span id="currentdirectory"><?php 
        echo $folder;
        ?>
</span>
</h4>
<table border="0" cellspacing="10" width="100%">
<tr>
	<td id="folderpane" valign="top">
		<?php 
        echo $folderContent;
        ?>
	</td>
</tr>
</table>
<?php 
        // If we are on AJAX mode, include a startup script to populate the panes
        if ($method == 'ajax') {
            ?>
<script language="JavaScript" type="text/javascript">
	folderpane('/');
</script>
<?php 
        }
    }