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


PHP Pagenate::getPageLinks方法代码示例

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


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

示例1:

            <a id="selectAll" href="#ckb">All</a>&nbsp;&nbsp;
            <a id="selectNone" href="#ckb">None</a>&nbsp;&nbsp;
            <a id="selectToggle" href="#ckb">Toggle</a>&nbsp;&nbsp;
            <?php 
} else {
    echo 'No canned responses';
}
?>
        </td>
     </tr>
    </tfoot>
</table>
<?php 
if ($res && $num) {
    //Show options..
    echo '<div>&nbsp;Page:' . $pageNav->getPageLinks() . '&nbsp;</div>';
    ?>
<p class="centered" id="actions">
    <input class="button" type="submit" name="enable" value="Enable" >
    <input class="button" type="submit" name="disable" value="Disable" >
    <input class="button" type="submit" name="delete" value="Delete" >
</p>
<?php 
}
?>
</form>
<div style="display:none;" class="dialog" id="confirm-action">
    <h3>Please Confirm</h3>
    <a class="close" href="">&times;</a>
    <hr/>
    <p class="confirm-action" style="display:none;" id="enable-confirm">
开发者ID:pkdevboxy,项目名称:osTicket-1.7,代码行数:31,代码来源:cannedresponses.inc.php

示例2:

            <?php echo __('Select'); ?>:&nbsp;
            <a id="selectAll" href="#ckb"><?php echo __('All'); ?></a>&nbsp;&nbsp;
            <a id="selectNone" href="#ckb"><?php echo __('None'); ?></a>&nbsp;&nbsp;
            <a id="selectToggle" href="#ckb"><?php echo __('Toggle'); ?></a>&nbsp;&nbsp;
            <?php
            } else {
                echo __('No users found!');
            }
            ?>
        </td>
     </tr>
    </tfoot>
</table>
<?php
if ($res && $num) { //Show options..
    echo '<div>&nbsp;'.__('Page').':'.$pageNav->getPageLinks().'&nbsp;</div>';

    ?>
    <p class="centered" id="actions">
        <input class="button" type="submit" name="remove-users" value="<?php echo __('Remove'); ?>" >
    </p>
<?php
}
?>
</form>
<?php
} ?>

<div style="display:none;" class="dialog" id="confirm-action">
    <h3><?php echo __('Please Confirm'); ?></h3>
    <a class="close" href=""><i class="icon-remove-circle"></i></a>
开发者ID:CarlosAvilesMx,项目名称:CarlosAviles.Mx,代码行数:31,代码来源:users.tmpl.php

示例3: sprintf

        echo Format::db_datetime($row['updated']);
        ?>
&nbsp;</td>
               </tr>
            <?php 
    }
    //end of while.
}
?>
    </tbody>
</table>
<?php 
if ($res && $num) {
    //Show options..
    echo sprintf('<div>&nbsp;' . __('Page') . ': %s &nbsp; <a class="no-pjax"
            href="users.php?a=export&qh=%s">' . __('Export') . '</a></div>', $pageNav->getPageLinks(), $qhash);
}
?>
</form>

<script type="text/javascript">
$(function() {
    $('input#basic-user-search').typeahead({
        source: function (typeahead, query) {
            $.ajax({
                url: "ajax.php/users/local?q="+query,
                dataType: 'json',
                success: function (data) {
                    typeahead.process(data);
                }
            });
开发者ID:dmiguel92,项目名称:osTicket-1.8,代码行数:31,代码来源:users.inc.php

示例4:

        $class = $class == 'row2' ? 'row1' : 'row2';
    }
    //end of while.
} else {
    //not tickets found!!
    ?>
 
            <tr class="<?php 
    echo $class;
    ?>
"><td colspan=7><strong>No se ha encontrado ningun Ticket.</strong></td></tr>
        <?php 
}
?>
     </table>
     <div class="pagination">
    <ul>
    <?php 
if ($num > 0 && $pageNav->getNumPages() > 1) {
    //if we actually had any tickets returned
    ?>
     <li>P&aacute;gina:<?php 
    echo $pageNav->getPageLinks();
    ?>
&nbsp;</li>
    <?php 
}
?>
    </ul>
    </div>
开发者ID:e-gob,项目名称:chilesinpapeleo-soporte,代码行数:30,代码来源:tickets.inc.php

示例5: sprintf

                    ?>
                </td>
                <td><?php echo $status; ?></td>
                <td><?php echo Format::db_date($row['created']); ?></td>
                <td><?php echo Format::db_datetime($row['updated']); ?>&nbsp;</td>
               </tr>
            <?php
            } //end of while.
        endif; ?>
    </tbody>
</table>
<?php
if($res && $num): //Show options..
    echo sprintf('<div>&nbsp;'.__('Page').': %s &nbsp; <a class="no-pjax"
            href="users.php?a=export&qh=%s">'.__('Export').'</a></div>',
            $pageNav->getPageLinks(),
            $qhash);
endif;
?>
</form>

<script type="text/javascript">
$(function() {
    $('input#basic-user-search').typeahead({
        source: function (typeahead, query) {
            $.ajax({
                url: "ajax.php/users/local?q="+query,
                dataType: 'json',
                success: function (data) {
                    typeahead.process(data);
                }
开发者ID:CarlosAvilesMx,项目名称:CarlosAviles.Mx,代码行数:31,代码来源:users.inc.php

示例6: sprintf

        echo Format::db_datetime($row['updated']);
        ?>
&nbsp;</td>
               </tr>
            <?php 
    }
    //end of while.
}
?>
    </tbody>
</table>
<?php 
if ($res && $num) {
    //Show options..
    echo sprintf('<div>&nbsp;Page: %s &nbsp; <a class="no-pjax"
            href="orgs.php?a=export&qh=%s">Export</a></div>', $pageNav->getPageLinks(), $qhash);
}
?>
</form>

<script type="text/javascript">
$(function() {
    $('input#basic-org-search').typeahead({
        source: function (typeahead, query) {
            $.ajax({
                url: "ajax.php/orgs/search?q="+query,
                dataType: 'json',
                success: function (data) {
                    typeahead.process(data);
                }
            });
开发者ID:ed00m,项目名称:osTicket-1.8,代码行数:31,代码来源:orgs.inc.php

示例7:

<?php 
//Inicio Billy 22/02/2016 Paginador de la auditoria//
if ($pageNav->getPage() - 1 <= 0) {
    $pagea = 1;
} else {
    $pagea = $pageNav->getPage() - 1;
}
if ($pageNav->getPage() + 1 >= $pageNav->getNumPages()) {
    $pages = $pageNav->getNumPages();
} else {
    $pages = $pageNav->getPage() + 1;
}
$primero = "auditoria.php?p=1";
$anterior = "auditoria.php?p={$pagea}";
$siguiente = "auditoria.php?p={$pages}";
$ultimo = "auditoria.php?p=" . $pageNav->getNumPages();
echo '  <div style="text-align:center;">
                <a href="' . $primero . '"><span class="glyphicon glyphicon-backward"></span></a>&nbsp;
                <a href="' . $anterior . '"><span class="glyphicon glyphicon-chevron-left"></span></a>&nbsp;
                ' . __('Page') . '' . $pageNav->getPageLinks() . '&nbsp;
                <a href="' . $siguiente . '"><span class="glyphicon glyphicon-chevron-right"></span></a>&nbsp;
                <a href="' . $ultimo . '"><span class="glyphicon glyphicon-forward"></span></a>&nbsp;</div>';
//Fin Billy 23/02/2016 paginador de la auditoria//
while ($row = $result->fetch_array()) {
}
include STAFFINC_DIR . 'footer.inc.php';
?>

<script type="text/javascript">
	
</script>
开发者ID:jmangarret,项目名称:ostickets,代码行数:31,代码来源:auditoria.php

示例8: sprintf

        echo Format::db_datetime($row['updated']);
        ?>
&nbsp;</td>
               </tr>
            <?php 
    }
    //end of while.
}
?>
    </tbody>
</table>
<?php 
if ($res && $num) {
    //Show options..
    echo sprintf('<div>&nbsp;%s: %s &nbsp; <a class="no-pjax"
            href="orgs.php?a=export&qh=%s">%s</a></div>', __('Page'), $pageNav->getPageLinks(), $qhash, __('Export'));
}
?>
</form>

<script type="text/javascript">
$(function() {
    $('input#basic-org-search').typeahead({
        source: function (typeahead, query) {
            $.ajax({
                url: "ajax.php/orgs/search?q="+query,
                dataType: 'json',
                success: function (data) {
                    typeahead.process(data);
                }
            });
开发者ID:dmiguel92,项目名称:osTicket-1.8,代码行数:31,代码来源:orgs.inc.php

示例9: if

            <tr class="<?=$class?>"><td colspan=8><b>Query returned 0 results.</b></td></tr>
        <?
        endif; ?>
       </table>
    </td></tr>
    <?
    if($num>0){ //if we actually had any tickets returned.
    ?>
        <tr><td style="padding-left:20px">
            <?if($canDelete || $canClose) { ?>
            Select:
                <a href="#" onclick="return select_all(document.forms['tickets'],true)">All</a>&nbsp;
                <a href="#" onclick="return reset_all(document.forms['tickets'])">None</a>&nbsp;
                <a href="#" onclick="return toogle_all(document.forms['tickets'],true)">Toggle</a>&nbsp;
            <?}?>
            page:<?=$pageNav->getPageLinks()?>
        </td></tr>
        <? if($canClose or $canDelete) { ?>
        <tr><td align="center"> <br>
            <?
            $status=$_REQUEST['status']?$_REQUEST['status']:$status;

            //If the user can close the ticket...mass reopen is allowed.
            //If they can delete tickets...they are allowed to close--reopen..etc.
            switch (strtolower($status)) {
                case 'closed': ?>
                    <input class="button" type="submit" name="reopen" value="Reopen"
                        onClick=' return confirm("Are you sure you want to reopen selected tickets?");'>
                    <?
                    break;
                case 'open':
开发者ID:hungnv0789,项目名称:vhtm,代码行数:31,代码来源:tickets.inc.php

示例10:

                }
                ?>
            <tr class="<?=$class?> " id="<?=$row['ticketID']?>">
                <td align="center" title="<?=$row['email']?>" nowrap>
                    <a class="Icon <?=strtolower($row['source'])?>Ticket" title="<?=$row['email']?>" href="view.php?id=<?=$row['ticketID']?>">
                        <?=$ticketID?></a></td>
                <td nowrap>&nbsp;<?=Format::db_date($row['created'])?></td>
                <td>&nbsp;<?=ucfirst($row['status'])?></td>
                <td>&nbsp;<a href="view.php?id=<?=$row['ticketID']?>"><?=$subject?></a>
                    &nbsp;<?=$row['attachments']?"<span class='Icon file'>&nbsp;</span>":''?></td>
                <td nowrap>&nbsp;<?=Format::truncate($dept,30)?></td>
                <td>&nbsp;<?=Format::truncate($row['email'],40)?></td>
            </tr>
            <?
            $class = ($class =='row2') ?'row1':'row2';
            } //end of while.
        else: //not tickets found!! ?> 
            <tr class="<?=$class?>"><td colspan=7><b>NO tickets found.</b></td></tr>
        <?
        endif; ?>
     </table>
    </td></tr>
    <tr><td>
    <?
    if($num>0 && $pageNav->getNumPages()>1){ //if we actually had any tickets returned?>
     <tr><td style="text-align:left;padding-left:20px">page:<?=$pageNav->getPageLinks()?>&nbsp;</td></tr>
    <?}?>
 </table>
</div>
<?
开发者ID:hungnv0789,项目名称:vhtm,代码行数:30,代码来源:tickets.inc.php

示例11: __

        $pagea = $pageNav->getPage() - 1;
    }
    if ($pageNav->getPage() + 1 >= $pageNav->getNumPages()) {
        $pages = $pageNav->getNumPages();
    } else {
        $pages = $pageNav->getPage() + 1;
    }
    $primero = "tickets.php?sort=" . $_GET["sort"] . "&order=" . $_GET["order"] . "&p=1&des=" . $_GET["des"] . "&has=" . $_GET["has"] . "&loc=" . $_GET["loc"];
    $anterior = "tickets.php?sort=" . $_GET["sort"] . "&order=" . $_GET["order"] . "&p={$pagea}&des=" . $_GET["des"] . "&has=" . $_GET["has"] . "&loc=" . $_GET["loc"];
    $siguiente = "tickets.php?sort=" . $_GET["sort"] . "&order=" . $_GET["order"] . "&p={$pages}&des=" . $_GET["des"] . "&has=" . $_GET["has"] . "&loc=" . $_GET["loc"];
    $ultimo = "tickets.php?sort=" . $_GET["sort"] . "&order=" . $_GET["order"] . "&p=" . $pageNav->getNumPages() . "&des=" . $_GET["des"] . "&has=" . $_GET["has"] . "&loc=" . $_GET["loc"];
    echo '  <div>
                &nbsp;' . __('Page') . ': 
                <a href="' . $primero . '">Primero</a>&nbsp;
                <a href="' . $anterior . '">Anterior</a>&nbsp;
                ' . $pageNav->getPageLinks() . '&nbsp;
                <a href="' . $siguiente . '">Siguiente</a>&nbsp;
                <a href="' . $ultimo . '">Ultimo</a>&nbsp;
            </div>';
}
?>

<div class="dialog" style="display:none;" id="advanced-search">
    <h3><?php 
echo __('Advanced Ticket Search');
?>
</h3>
    <a class="close" href=""><i class="icon-remove-circle"></i></a>
    <hr/>
    <form action="tickets.php" method="post" id="search" name="search">
        <input type="hidden" name="a" value="search">
开发者ID:jmangarret,项目名称:ostickets,代码行数:31,代码来源:tickets.inc3-02-2016.php


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