Código de: paginas/setup.php
<?
if (!$AUTH->_gerente AND !$AUTH->_admin) {
$S->erro = 'Você não possui acesso a esta área.';
include($APP->setup->aplicativos.'404.php');
} else {
?>
<!-- Home -->
<div id="home">
<div class="h3 text-success" style="margin-top: 0px;">
<i class="<?= $S->icone ?>"></i>
<span> Publicidades / Gerenciar <setup-nome>Seções</setup-nome> </span>
</div>
<hr>
<div id="wizard-novo">
<div class="portlet-body form">
<div class="form-wizard">
<span id="controle-ajax" class="hidden" acao="" action="<?= SDIR.'!/setup' ?>"></span>
<div class="tab-content">
<div class="tab-pane active" id="tab-secoes">
<div class="table-toolbar">
<div class="row">
<div class="col-md-6 col-xs-12">
<div class="btn-group">
<button id="adicionarG" class="btn green no-shadow no-radius no-transform font-s13"> Nova Seção
<i class="fa fa-plus"></i>
</button>
</div>
</div>
</div>
</div>
<table class="table table-striped table-hover table-bordered" id="tabela_secoes">
<thead>
<tr>
<th> Seção </th>
<th width="1%"> Editar </th>
<th width="1%"> Deletar </th>
</tr>
</thead>
<tbody>
<? if ($G = $IMAGEM->secoes) { foreach($G as $g) { ?>
<tr secao-ID="<?= $g->id ?>">
<td> <?= $g->nome ?> </td>
<td width="1%">
<button type="button" class="edit btn btn-xs btn-success no-transform no-shadow no-radius font-s13">Editar</button>
</td>
<td width="1%">
<button type="button" class="delete btn btn-xs btn-danger no-transform no-shadow no-radius font-s13">Excluir</button>
</td>
</tr>
<? } } ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- /HOME -->
<? $JS .=
'';
?>
<? } ?>