Exemple #1
0
         <tr>
             <th class="tooltip-all">
                 <i class="tooltip-glyphicon fa fa-check-square check-all" title="Marcar todos"></i>
                 <i class="tooltip-glyphicon fa fa-check-square-o reverse-check" title="Inverter seleção"></i>
                 <i class="tooltip-glyphicon fa fa-square-o uncheck-all" title="Desmarcar todos"></i>
             </th>
             <th>Nome</th>
             <th>Tamanho</th>
             <th>Data</th>
             <th>Atributos</th>
             <th>Opções</th>
         </tr>
         </thead>
         <tbody class="table-arquivos">
         <?php 
 if (is_array($children = $f->nlist($dirAtual))) {
     $f->logout();
     $items = array();
     foreach ($children as $child) {
         $chunks = preg_split("/\\s+/", $child);
         list($item['permissao'], $item['numero'], $item['usuario'], $item['grupo'], $item['tamanho'], $item['mes'], $item['dia'], $item['hora']) = $chunks;
         $item['tipo'] = $chunks[0][0] === 'd' ? 'Diretório' : 'Arquivo';
         array_splice($chunks, 0, 8);
         $items[implode(" ", $chunks)] = $item;
     }
 }
 if ($dirAtual != '.') {
     ?>
             <tr>
                 <?php 
     $back = explode(DIRECTORY_SEPARATOR, $dirAtual);