0 AND CanAcessLibrary()){ $html = ''; foreach($current_folder_content as $c){ if($view == 'list'){ if($c['is_file'] == false){ $html .= '   '. TrimText($c['name'], 50) .' '. $c['i'] .' Items    '; }else{ $html .= '   '. TrimText($c['name'], 50) .' '. formatSizeUnits($c['s']) .'    '; } }else{ if($c['is_file'] == false){ $html .= '
'. $c['name'] .'
'; }else{ $html .= '
'; } } } if($html != ''){ if($view == 'list'){ $html = '
' . $html . '
'; } $output["html"] = $html; }else{ $output["html"] = '
No images in the folder.
'; } }else{ $output["html"] = '
No images in the folder.
'; }