<?php include_once 'core/lojas-core.php'; $Lojas = new Lojas(); if (isset($_GET['acao']) && is_numeric($_GET['idLoja'])) { if ($_GET['acao'] == 'remover') { $idRemover = (int) $_GET['idLoja']; if ($Lojas->remover($idRemover)) { ?> <script type="text/javascript"> alert('Loja removida com sucesso!'); window.location.href="?page=lojas/lojas.php"; </script> <?php } } } $ordenacaoBusca->campo = 'cidade'; $ordenacaoBusca->ordem = 'asc'; if ($dadosLojas = $Lojas->obterLojas($ordenacaoBusca)) { ?> <h3>Listando as lojas já cadastradas</h3> <br /> <table class="wp-list-table widefat fixed pages" cellspacing="0" style="width:95%;"> <thead> <tr> <th> Bairro </th>