function show_dir($path, $dir, $listdir) { $count = HTML_Media::num_files(COM_MEDIA_BASE . $listdir . $path); $num_files = $count[0]; $num_dir = $count[1]; if ($listdir == '/') { $listdir = ''; } $link = 'index3.php?option=com_media&task=list&listdir=' . $listdir . $path; $overlib = '<table>'; $overlib .= '<tr>'; $overlib .= '<td>'; $overlib .= 'Arquivos:'; $overlib .= '</td>'; $overlib .= '<td>'; $overlib .= $num_files; $overlib .= '</td>'; $overlib .= '</tr>'; $overlib .= '<tr>'; $overlib .= '<td>'; $overlib .= 'Diretórios:'; $overlib .= '</td>'; $overlib .= '<td>'; $overlib .= $num_dir; $overlib .= '</td>'; $overlib .= '</tr>'; $overlib .= '</table>'; $overlib .= '<br/> *Clique para abrir*'; ?> <div style="float:left; padding: 5px"> <div class="imgTotal" onmouseover="return overlib( '<?php echo $overlib; ?> ', CAPTION, '<?php echo $dir; ?> ', BELOW, RIGHT, WIDTH, 150 );" onmouseout="return nd();"> <div align="center" class="imgBorder"> <a href="<?php echo $link; ?> " target="imgManager" onclick="javascript:updateDir();"> <img src="components/com_media/images/folder.gif" width="80" height="80" border="0" /></a> </div> </div> <div class="imginfoBorder"> <small> <?php echo substr($dir, 0, 10) . (strlen($dir) > 10 ? '...' : ''); ?> </small> <div class="buttonOut"> <a href="index2.php?option=com_media&task=deletefolder&delFolder=<?php echo $path; ?> &listdir=<?php echo $listdir; ?> &<?php echo josSpoofValue(); ?> =1" target="_top" onclick="return deleteFolder('<?php echo $dir; ?> ', <?php echo $num_files; ?> );"> <img src="components/com_media/images/edit_trash.gif" width="15" height="15" border="0" alt="Delete" /></a> </div> </div> </div> <?php }
function show_dir($path, $dir, $listdir) { global $mosConfig_absolute_path; $num_files = HTML_Media::num_files($mosConfig_absolute_path . $path); // Fix for Bug [0000577] if ($listdir == '/') { $listdir = ''; } ?> <td> <table width="102" border="0" cellpadding="0" cellspacing="2"> <tr> <td align="center" class="imgBorder")"> <a href="index3.php?option=com_media&task=list&listdir=<?php echo $listdir . $path; ?> " target="imgManager" onClick="javascript:updateDir();"> <img src="components/com_media/images/folder.gif" width="80" height="80" border="0" alt="<?php echo $dir; ?> "> </a> </td> </tr> <tr> <td> <?php echo $dir; ?> </td> </tr> <tr> <td><table width="100%" border="0" cellspacing="1" cellpadding="2"> <tr> <td width="1%" class="buttonOut"> <a href="index2.php?option=com_media&task=deletefolder&delFolder=<?php echo $path; ?> &listdir=<?php echo $listdir; ?> " target="_top" onClick="return deleteFolder('<?php echo $dir; ?> ', <?php echo $num_files; ?> );"><img src="components/com_media/images/edit_trash.gif" width="15" height="15" border="0" alt="<?php echo T_('Delete'); ?> "></a></td> <td width="99%" class="imgCaption"></td> </tr> </table></td> </tr> </table> </td> <?php }