/** * 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 = JoomlapackHelperSff::getFolderPane($folder); $fileContent = JoomlapackHelperSff::getFilePane($folder); } // Render the table ?> <h4> <?php echo JText::_('SFF_LABEL_CURRENTDIRECTORY'); ?> <span id="currentdirectory"><?php echo $folder; ?> </span> </h4> <table border="0" cellspacing="10" width="100%"> <tr> <td id="folderpane" valign="top" width="40%"> <?php echo $folderContent; ?> </td> <td id="filepane" valign="top"> <?php echo $fileContent; ?> </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 } }
function folderpane($folder) { jpimport('helpers.sff', true); return JoomlapackHelperSff::getFolderPane($folder); }