<li><a class="act_ative" href="painel.php?exe=setor/index&setor=<?php echo $setor_id; ?> &action=active" title="Ativar">Ativar</a></li> <?php } else { ?> <li><a class="act_inative" href="painel.php?exe=setor/index&setor=<?php echo $setor_id; ?> &action=inative" title="Inativar">Inativar</a></li> <?php } ?> <li><a class="act_delete" href="painel.php?exe=setor/index&setor=<?php echo $setor_id; ?> &action=delete" title="Excluir">Deletar</a></li> </ul> </article> <?php } echo "<div class=\"clear\"></div>"; $Pager->ExePaginator("ws_setor"); echo $Pager->getPaginator(); } ?> <div class="clear"></div> </section> </div> <!-- content home -->
?> &action=inative" title="Inativar">Inativar</a></li> <?php } ?> <li><a class="act_delete" href="painel.php?exe=empresas/index&emp=<?php echo $empresa_id; ?> &action=delete" title="Excluir">Deletar</a></li> </ul> </article> <?php } } else { $Pager->ReturnPage(); WSErro("Desculpe, ainda não existem empresas cadastradas!", WS_INFOR); } ?> <div class="clear"></div> </section> <?php $Pager->ExePaginator("app_empresas"); echo $Pager->getPaginator(); ?> <div class="clear"></div> </div> <!-- content home -->
<?php } ?> <!--<li><a class="act_delete" href="<?php echo IMP_INCLUDE; ?> admin/&exe=modelo/index&action=delete/<?php echo $modelo_id; ?> " title="Excluir">Deletar</a></li>;--> </ul> </td> </tr> <?php } ?> </tbody> </table> <?php } ?> <div class="row"> <?php $Pager->ExePaginator("imp_modelo"); echo $Pager->getPaginator(); ?> </div> </article>
echo $acao_id; ?> #form" title="Inativar">Inativar</a></li> <?php } ?> <li><a class="act_delete" href="<?php echo FAST_INCLUDE; ?> admin/&exe=acoes/index&action=delete/<?php echo $acao_id; ?> #form" title="Excluir">Deletar</a></li> </ul> </td> </tr> <?php } ?> </tbody> </table> <?php } ?> <div class="row" id="form"> <?php $Pager->ExePaginator("fe_acoes"); echo $Pager->getPaginator(); ?> </div>
&action=active" title="Ativar">Ativar</a></li> <?php } else { ?> <li><a class="act_inative" href="painel.php?exe=membros/index&post=<?php echo $post_id; ?> &action=inative" title="Inativar">Inativar</a></li> <?php } ?> <li><a class="act_delete" href="painel.php?exe=membros/index&post=<?php echo $post_id; ?> &action=delete" title="Excluir">Deletar</a></li> </ul> </article> <?php } } ?> <div class="clear"></div> </section> <?php $Pager->ExePaginator("ws_posts", "#post_type#", "post_type={$post_type}", true); echo $Pager->getPaginator(); ?> </div> <!-- content home -->
$readEmp->setTable('app_cidades'); $readEmp->find("cidade_id={$emp->empresa_cidade}"); $cidade = $readEmp->getResult()->cidade_nome; $emp->empresa_cidade = $cidade; //encontra estado $readEmp->setTable('app_estados'); $readEmp->find("estado_id={$emp->empresa_uf}"); $estado = $readEmp->getResult()->estado_uf; $emp->empresa_uf = $estado; $View->Show((array) $emp, $tpl); } //barra de navegação echo '<footer>'; echo '<nav class="paginator">'; echo '<h2>Mais resultados para NOME DA CATEGORIA</h2>'; $Pager->ExePaginator("app_empresas", "empresa_status = 1 AND empresa_categoria = :cat", "cat={$EmpLink}"); echo $Pager->getPaginator(); echo '</nav>'; echo '</footer>'; } ?> </section> <!--SIDEBAR--> <?php require REQUIRE_PATH . '/inc/sidebar.inc.php'; ?> <div class="clear"></div> </div><!--/ site container -->
<li><a class="act_inative" href="painel.php?exe=posts/index&post=<?php echo $post_id; ?> &action=inative" title="Inativar">Inativar</a></li> <?php } ?> <li><a class="act_delete" href="painel.php?exe=posts/index&post=<?php echo $post_id; ?> &action=delete" title="Excluir">Deletar</a></li> </ul> </article> <?php } } else { $Pager->ReturnPage(); WSErro("Desculpa, ainda não temos posts cadastrados", WS_INFOR); } ?> <div class="clear"></div> </section> <?php $Pager->ExePaginator("ws_posts"); echo $Pager->getPaginator(); ?> <div class="clear"></div> </div> <!-- content home -->
$readArt->Execute()->Query("post_status = 1 AND (post_title LIKE '%' :link '%' OR post_content LIKE '%' :link '%') ORDER BY post_date DESC LIMIT :limit OFFSET :offset", "link={$search}&limit={$Pager->getLimit()}&offset={$Pager->getOffset()}", true); if (!$readArt->Execute()->getResult()) { $Pager->ReturnPage(); WSErro("Desculpe, sua pesquisa não retornou resultados. Você pode resulmir sua pesquisa ou tentar outros termos!", WS_INFOR); } else { $cc = 0; foreach ($readArt->Execute()->getResult() as $cat) { $cc++; $View = new View(); $tpl_cat = $View->Load('article_m'); $class = $cc % 3 == 0 ? ' class="right"' : null; echo "<span{$class}>"; $cat->post_title = Check::Words($cat->post_title, 8); $cat->post_content = Check::Words($cat->post_content, 20); $cat->datetime = date('Y-m-d', strtotime($cat->post_date)); $cat->pubdate = date('d/m/Y H:i', strtotime($cat->post_date)); $View->Show((array) $cat, $tpl_cat); echo "</span>"; } } $Pager->ExePaginator("ws_posts", "post_status = 1 AND (post_title LIKE '%' :link '%' OR post_content LIKE '%' :link '%')", "link={$search}"); echo '<nav class="paginator">'; echo '<h2>Mais resultados para NOME DA CATEGORIA</h2>'; echo $Pager->getPaginator(); echo '</nav>'; ?> </section> <div class="clear"></div> </div><!--/ site container -->
<!DOCTYPE html> <html lang="pt-br"> <head> <meta charset="UTF-8"> <title></title> </head> <body> <?php require './_app/Config.inc.php'; $Atual = filter_input(INPUT_GET, 'atual', FILTER_VALIDATE_INT); $Pager = new Pager('04-gestao-de-resultados.php?atual=', 'Primeira', 'Última'); $Pager->ExePager($Atual, 1); $read = new Read(); $read->ExeRead('ws_categories', 'limit :limit offset :offset', "limit={$Pager->getLimite()}&offset={$Pager->getOffset()}"); $Pager->ExePaginator('ws_categories'); echo $Pager->getPaginator(); var_dump($Pager); ?> </body> </html>
?> " title="Inativar">Inativar</a></li> <?php } ?> <li><a class="act_delete" href="<?php echo IMP_INCLUDE; ?> admin/&exe=impressoras/index&action=delete/<?php echo $impressora_id; ?> " title="Excluir">Deletar</a></li> </ul> </td> </tr> <?php } ?> </tbody> </table> <?php } ?> <div class="row"> <?php $Pager->ExePaginator("imp_impressora"); echo !empty($search) ? "" : $Pager->getPaginator(); ?> </div> </article>
<header> <h1 class="text-center">Equipe <small><?php echo $category_title; ?> </small></h1> <p class="text-center"><?php echo $category_content; ?> </p> </header> <?php $getPage = (int) (!empty($Link->getLocal()[2]) ? $Link->getLocal()[2] : 1); $Pager = new Pager(HOME . '/membros/' . $category_name . '/'); $Pager->ExePager($getPage, 6); $Pager->ExePaginator("ws_posts", "post_status = 1 AND post_type = 'membros' AND (post_category = :cat OR post_cat_parent = :cat)", "cat={$category_id}", true); $Read = new WsPosts(); $Read->Execute()->Query("post_status = 1 AND post_type = 'membros' AND (post_category = :cat OR post_cat_parent = :cat) ORDER BY post_date DESC LIMIT :limit OFFSET :offset", "cat={$category_id}&limit={$Pager->getLimit()}&offset={$Pager->getOffset()}", true); if (!$Read->Execute()->getResult()) { $Pager->ReturnPage(); WSErro("Desculpe, a categoria <b>{$category_title}</b> ainda não tem artigos publicados, favor volte mais tarde!", WS_INFOR); } else { $View = new View(); $membro = $View->Load("article_membro"); $i = 0; echo "\n<!--membros-->\n"; echo "\n<div class='row'>\n"; foreach ($Read->Execute()->getResult() as $item) { if ($i % 2 == 0 && $i != 0) { echo "</div>\n"; echo "<div class='row'>\n";
<?php } ?> <!--<li><a class="act_delete" href="<?php echo IMP_INCLUDE; ?> admin/&exe=modelo/index&action=delete/<?php echo $taxa_id; ?> " title="Excluir">Deletar</a></li>;--> </ul> </td> </tr> <?php } ?> </tbody> </table> <?php } ?> <div class="row"> <?php $Pager->ExePaginator("imp_taxa_impress"); echo $Pager->getPaginator(); ?> </div> </article>
" title="Inativar">Inativar</a></li> <?php } ?> <li><a class="act_delete" href="<?php echo IMP_INCLUDE; ?> admin/&exe=postos/index&action=delete/<?php echo $postos_id; ?> " title="Excluir">Deletar</a></li> </ul> </td> </tr> <?php } ?> </tbody> </table> <?php } ?> <div class="row"> <?php $Pager->ExePaginator("imp_postos"); echo $Pager->getPaginator(); ?> </div> </article>
$Pager = new Pager(HOME . '/categoria/' . $category_name . '/'); $Pager->ExePager($getPage, 3); $readCat = new WsPosts(); $readCat->Execute()->Query("post_status = 1 AND (post_category = :cat OR post_cat_parent = :cat) ORDER BY post_date DESC LIMIT :limit OFFSET :offset", "cat={$category_id}&limit={$Pager->getLimit()}&offset={$Pager->getOffset()}", true); if (!$readCat->Execute()->getResult()) { $Pager->ReturnPage(); WSErro("Desculpe, a categoria <b>{$category_title}</b> ainda não tem artigos publicados, favor volte mais tarde!", WS_INFOR); } else { $cc = 1; $View = new View(); $tpl_m = $View->Load('article_m'); foreach ($readCat->Execute()->getResult() as $cat) { echo "\n<div class='col-md-4'>\n"; $class = $cc % 3 == 0 ? ' class="right"' : null; $cat->post_title = Check::Words($cat->post_title, 8); $cat->post_content = Check::Words($cat->post_content, 20); $cat->datetime = date('Y-m-d', strtotime($cat->post_date)); $cat->pubdate = date('d/m/Y H:i', strtotime($cat->post_date)); $View->Show((array) $cat, $tpl_m); $cc++; echo "\n</div>\n"; } } $Pager->ExePaginator("ws_posts", "post_status = 1 AND (post_category = :cat OR post_cat_parent = :cat)", "cat={$category_id}"); ?> </div><!--/ site container --> <?php echo $Pager->getPaginator(); ?> </section>
echo FAST_INCLUDE; ?> admin/&exe=exames/index&action=delete/<?php echo $ex_id; ?> #form" title="Inativar">Deletar</a></li> <?php } else { ?> concluido <?php } ?> </ul> </td> </tr> <?php } ?> </tbody> </table> <?php } ?> <div class="row" id="form"> <?php $Pager->ExePaginator("fe_exames"); echo $Pager->getPaginator(); ?> </div>
?> &action=active" title="Ativar">Ativar</a></li> <?php } else { ?> <li><a class="act_inative" href="painel.php?exe=perfil/index&perfil=<?php echo $perfil_id; ?> &action=inative" title="Inativar">Inativar</a></li> <?php } ?> <li><a class="act_delete" href="painel.php?exe=perfil/index&perfil=<?php echo $perfil_id; ?> &action=delete" title="Excluir">Deletar</a></li> </ul> </article> <?php } echo "<div class=\"clear\"></div>"; $Pager->ExePaginator("ws_perfil"); echo $Pager->getPaginator(); } ?> <div class="clear"></div> </section> </div> <!-- content home -->
<li><a class="act_ative" href="painel.php?exe=area_trabalho/index&area=<?php echo $area_id; ?> &action=active" title="Ativar">Ativar</a></li> <?php } else { ?> <li><a class="act_inative" href="painel.php?exe=area_trabalho/index&area=<?php echo $area_id; ?> &action=inative" title="Inativar">Inativar</a></li> <?php } ?> <li><a class="act_delete" href="painel.php?exe=area_trabalho/index&area=<?php echo $area_id; ?> &action=delete" title="Excluir">Deletar</a></li> </ul> </article> <?php } echo "<div class=\"clear\"></div>"; $Pager->ExePaginator("ws_area_trabalho"); echo $Pager->getPaginator(); } ?> <div class="clear"></div> </section> </div> <!-- content home -->
echo $mat_id; ?> #form" title="Inativar">Inativar</a></li> <?php } ?> <li><a class="act_delete" href="<?php echo FAST_INCLUDE; ?> admin/&exe=materiais/index&action=delete/<?php echo $mat_id; ?> #form" title="Excluir">Deletar</a></li> </ul> </td> </tr> <?php } ?> </tbody> </table> <?php } ?> <div class="row" id="form"> <?php $Pager->ExePaginator("fe_material"); echo $Pager->getPaginator(); ?> </div>
<li><a class="act_inative" href="painel.php?exe=youtube/index&post=<?php echo $youtube_id; ?> &action=inative" title="Inativar">Inativar</a></li> <?php } ?> <li><a class="act_delete" href="painel.php?exe=youtube/index&post=<?php echo $youtube_id; ?> &action=delete" title="Excluir">Deletar</a></li> </ul> </article> <?php } } else { $Pager->ReturnPage(); WSErro("Desculpa, ainda não temos videos cadastrados", WS_INFOR); } ?> <div class="clear"></div> </section> <?php $Pager->ExePaginator("app_youtube"); echo $Pager->getPaginator(); ?> <div class="clear"></div> </div> <!-- content home -->
<li><a class="act_ative" href="painel.php?exe=setor_type/index&tipo=<?php echo $type_id; ?> &action=active" title="Ativar">Ativar</a></li> <?php } else { ?> <li><a class="act_inative" href="painel.php?exe=setor_type/index&tipo=<?php echo $type_id; ?> &action=inative" title="Inativar">Inativar</a></li> <?php } ?> <li><a class="act_delete" href="painel.php?exe=setor_type/index&tipo=<?php echo $type_id; ?> &action=delete" title="Excluir">Deletar</a></li> </ul> </article> <?php } echo "<div class=\"clear\"></div>"; $Pager->ExePaginator("ws_setor_type"); echo $Pager->getPaginator(); } ?> <div class="clear"></div> </section> </div> <!-- content home -->
$Pager->ExePager($getPage, 6); $Read = new WsPosts(); $Read->setPost_type($post_type); $Read->Execute()->Query("post_status = 1 AND post_type = :type ORDER BY post_date DESC, post_category DESC LIMIT :limit OFFSET :offset", "type={$post_type}&limit={$Pager->getLimit()}&offset={$Pager->getOffset()}", true); if (!$Read->Execute()->getResult()) { $Pager->ReturnPage(); WSErro("Desculpe não temos noticias no momento, favor volte mais tarde!", WS_INFOR); } else { $i = 0; echo "<div class='row'>\n"; foreach ($Read->Execute()->getResult() as $item) { if ($i % 3 == 0 && $i != 0) { echo "</div>\n"; echo "<div class='row'>\n"; } $item->post_title = Check::Words($item->post_title, 4); $item->post_content = Check::Words($item->post_content, 10); $item->datetime = date('Y-m-d', strtotime($item->post_date)); $item->pubdate = date("d/m/Y H:i", strtotime($item->post_date)); $View->Show((array) $item, $membro); $i++; } echo "</div>\n"; } $Pager->ExePaginator("ws_posts", "post_status = 1 AND #post_type#", "post_type={$getResult[0]->post_type}"); ?> </div> <?php echo $Pager->getPaginator(); ?> </div>