Esempio n. 1
0
</div>

<div class="row">
<!--<div class="col-md-3">
<div class="list-group">
<a class="list-group-item">Archivos</a>
</div>
</div>
-->
<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) {
    ?>