<?php include("../elemetns_web/header.php") ?>
<?php include("../../assets/script/login/login_check.php") ?>
<div>
    <header class="file_header">
        <div><a href="../file/dirfile.php">img </a></div>
        <form method="post" enctype="multipart/form-data">
            <div class="folds">
                <input type="file" class="hidden" name="files[]" multiple>
                <input type="hidden" name="namefold" value="other">
                <input name="namefolduser" type="text" placeholder="nazwa folderu" />
                <button class="green" name="upload">Dodaj Folder</button>
            </div>

        </form>
    </header>
    <ul class="list_user">
        <?php include("../../assets/script/file/manipulationfile.php"); ?>
        <?php include("../../assets/script/file/script.php"); ?>

        <?php foreach ($fold_list as $fold) { ?>

            <li>

                <p><?php echo $fold["name_fold"] ?></p>

                <div class="hidden">

                    <form method="post" id="delldir.<?php echo $fold["name_fold"] ?>">
                        <input type="hidden" name="namefold" value="<?php echo $fold["name_fold"] ?>">
                    </form>

                    <form method="get" id="viewfile.<?php echo $fold["name_fold"] ?>" action="../file/viwefile.php">
                        <input type="hidden" name="folder" value="<?php echo $fold["name_fold"] ?>">
                    </form>

                </div>

                <div class="button_continer">

                    <button class="red" form="delldir.<?php echo $fold["name_fold"] ?>" name="delldir">usuń folder </button>
                    <button class="green" form="viewfile.<?php echo $fold["name_fold"] ?>">zobacz pliki </button>

                </div>

            </li>

        <?php } ?>

    </ul>
</div>
<?php include('../elemetns_web/footer.php') ?>