<?php

$galeriasDao = new \Dao\Galerias();

$galeriasDao->getGaleriaPorId($conecta, base64_decode(filter_input(INPUT_GET, 'id')));

?>

<div class="breadcrumb-holder">

    <div class="container-fluid">

        <ul class="breadcrumb">

            <li class="breadcrumb-item"><a href="./">Home</a></li>

            <li class="breadcrumb-item active">Upload Imagens Galeria | <?php echo $galeriasDao->id; ?></li>

        </ul><!--/.breadcrumb -->

    </div><!---/.container-fluid -->

</div><!--/.breadcrumb-holder -->

<section class="dashboard-counts section-padding">

    <div class="container-fluid">

        <div class="row">

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

                <div class="card">

                    <div class="card-header d-flex align-items-center">

                        <h2 class="h5 display">Upload Imagens Galeria | <?php echo $galeriasDao->nome; ?></h2>

                    </div><!--/.card-header -->

                    <div class="card-footer">

                        <a href="?p=fotos-ordenar&id=<?php echo base64_encode($galeriasDao->id); ?>" class="btn btn-sm btn-warning">

                            <i class="fa fa-plus"></i> Ordenar

                        </a>

                    </div>

                    <div class="card-body">

                        <div class="my-dropzone drop" 

                             data-id="<?php echo $galeriasDao->id; ?>" 

                             data-field="fk_id_galeria"

                             data-action="app/galerias/upload.php"

                             data-folder="<?php echo $pasta; ?>" 

                             data-table="galerias_images"

                             data-callback="?p=fotos&id=<?php echo base64_encode($galeriasDao->id); ?>">

                            <h6 class="dz-message">Solte os arquivos aqui para fazer o upload</h6>

                        </div><!--/.my-dropzone -->

                    </div><!--/.card-body -->

                </div><!--/.card -->

            </div><!--/.col-lg-12 -->

        </div><!--/.row -->

    </div><!--/.container-fluid -->

</section><!--/.dashboard-counts -->