$msg = $msg_ok; $msgClass = "msgSucesso"; } else { $msg = $msg_erro; } } if (!isPost($_POST['txtBusca'])) { # GERA A PAGINAÇÂO $Tabela = $nomeTabela; $Where = "order by data desc"; $ItemPorPagina = 20; $UtilObjeto = 's'; $Paginacao = Paginacao::geraPaginacao($UtilObjeto, $Tabela, $Where, $ItemPorPagina); # LISTA PAGINAÇÃO $Pagina = "noticias/index.php"; $ListaPaginacao = Paginacao::exibirPaginacao($Paginacao['npaginas'], $Paginacao['pgfim'], $Paginacao['pginicio'], $Pagina, $Paginacao['total']); } include PATHADMIN . 'modal-excluir.php'; ?> <section role="main" class="content-body"> <header class="page-header"> <h2><?php echo $titulo . ' > ' . $acao; ?> </h2> <div class="right-wrapper pull-right"> <ol class="breadcrumbs"> <li> <a href="<?php echo URLADMIM;
function smarty_function_paginacao($params, &$smarty) { $pag = new Paginacao($params["tabela"], $params["filtros"], $params["total"]); $pag->setUrl($params["url"]); $pag->exibirPaginacao($params["gets"]); }