当前位置: 首页>>代码示例>>PHP>>正文


PHP Pager::ExePaginator方法代码示例

本文整理汇总了PHP中Pager::ExePaginator方法的典型用法代码示例。如果您正苦于以下问题:PHP Pager::ExePaginator方法的具体用法?PHP Pager::ExePaginator怎么用?PHP Pager::ExePaginator使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Pager的用法示例。


在下文中一共展示了Pager::ExePaginator方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1:

                            <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 -->
开发者ID:adrianosilvareis,项目名称:intranet,代码行数:31,代码来源:index.php

示例2: WSErro

            ?>
&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 -->
开发者ID:adrianosilvareis,项目名称:OutlineTecnolog,代码行数:31,代码来源:index.php

示例3:

                                <?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>
开发者ID:adrianosilvareis,项目名称:intranet,代码行数:30,代码来源:index.php

示例4:

            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>
开发者ID:adrianosilvareis,项目名称:intranet,代码行数:31,代码来源:index.php

示例5:

&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 -->
开发者ID:adrianosilvareis,项目名称:ciddhc,代码行数:31,代码来源:index.php

示例6:

        $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 -->
开发者ID:adrianosilvareis,项目名称:OutlineTecnolog,代码行数:31,代码来源:empresas.php

示例7: AND

$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 -->
开发者ID:adrianosilvareis,项目名称:OutlineTecnolog,代码行数:31,代码来源:pesquisa.php

示例8: Pager

<!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>
开发者ID:BrunoDuarte,项目名称:WS_PHP_ADMIN,代码行数:20,代码来源:04-gestao-de-resultados.php

示例9: Pager

        <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";
开发者ID:adrianosilvareis,项目名称:intranet,代码行数:31,代码来源:membros.php

示例10: Pager

$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>
开发者ID:adrianosilvareis,项目名称:ciddhc,代码行数:31,代码来源:categoria.php

示例11: WSErro

                            <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 -->
开发者ID:adrianosilvareis,项目名称:ciddhc,代码行数:31,代码来源:index.php

示例12: WsPosts

$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>
开发者ID:adrianosilvareis,项目名称:ciddhc,代码行数:31,代码来源:noticias.php


注:本文中的Pager::ExePaginator方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。