-->
<div class="col-md-12">

<?php 
$files = null;
if ($folder == null) {
    if (isset($_GET["q"]) && $_GET["q"] != "") {
        $files = FileData::getQRootByUserId($_SESSION["user_id"], $_GET["q"]);
    } else {
        $files = FileData::getRootByUserId($_SESSION["user_id"]);
    }
} else {
    if (isset($_GET["q"]) && $_GET["q"] != "") {
        $files = FileData::getQByFolderId($folder->id, $_GET["q"]);
    } else {
        $files = FileData::getAllByFolderId($folder->id);
    }
}
?>

<?php 
if (isset($_GET["folder"]) && $_GET["folder"] != "" && $folder == null) {
    ?>
	<p class="alert alert-danger">Estas intentando acceder a una carpeta que no existe!</p>
<?php 
}
?>


<?php 
if (count($files) > 0) {