function open_folder($folder, $home, $name = '') { $objResponse = new xajaxResponse(); //$objResponse->alert($folder); if (!is_readable($folder)) { $objResponse->alert("The folder is not readable!"); return $objResponse; } $out = jdGetDirectoryList($folder); $id = md5($folder); if ($name != '') { $objResponse->assign($name, "innerHTML", "<a href='#' onClick =\"xajax_close_folder('{$folder}','{$home}', '{$name}', '{$id}')\" ><img src = 'components/com_jdefender/images/icons/folder.png' border='0'> </a>"); } $objResponse->append($id, "innerHTML", $out); return $objResponse; }
</b> </th> </tr> </thead> <tr> <td > <div style='width:100%; overflow:auto; height:300px;'> <div id='sel_home' style='margin-left:20px;text-align:left;'><img src='components/com_jdefender/images/icons/folder.png'> <input type='checkbox' name='param[home]' value = '1' id='folder[home]'> <?php print JText::_('Pack All'); ?> </div> <?php print jdGetDirectoryList(JPATH_ROOT); ?> </div> </td> <td colspan="2"> <div style='width:100%; overflow:auto; height:300px;'> <table class='adminlist'> <thead> <tr> <th width='1%'> <input type='checkbox' name="param[alltables]" value="1" onClick="checkAllTables(<?php print count($this->tablesInfo);