<?php require_once __DIR__ . '/../../opix/models/Apoio.php'; $apoio = new Apoio(); $apoios = $apoio->listar(null, 'RAND()'); ?> <!-- APOIO AO EVENTO --> <div class="container"> <h3>Apoia o Encontro</h3> <div id="wrapper"> <div class="bg-client"> <div class="container"> <div class="row marg50"> <div class="col-lg-12"> <div style="max-width: 1140px; margin: 0px auto; float: left;" class="bx-wrapper"> <div style="width: 100%; overflow: hidden; position: relative; height: 100px;" class="bx-viewport"> <div style="width: 1215%; position: relative; transition-duration: 0s; transform: translate3d(-1410px, 0px, 0px);" class="slider4"> <?php foreach ($apoios as $apoio) { ?> <div style="float: left; list-style: none outside none; position: relative; width: 200px; margin-right: 35px;" class="slide"> <img src="<?php echo Configuracao::$baseUrl . 'apoios/' . $apoio->imagem; ?> "> </div> <?php } ?> </div> </div> </div>
public static function excluir() { $apoio = new Apoio(); $apoio->selecionarPorId($_POST['id']); $apoio->excluir(); }