本文整理汇总了PHP中next_page函数的典型用法代码示例。如果您正苦于以下问题:PHP next_page函数的具体用法?PHP next_page怎么用?PHP next_page使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了next_page函数的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: prev_page
<td><?php
echo $auth_code->name;
?>
</td>
<td><a href="edit.php?id=<?php
echo $auth_code->id;
?>
"><img src="/images/admin/button_edit.jpg" alt="Edit" id="edit_button" /></a></td>
<td><a href="delete.php?id=<?php
echo $auth_code->id;
?>
" class="confirm"><img src="/images/admin/button_delete.jpg" alt="Delete" id="delete_button" /></a></td>
</tr>
<?php
}
?>
</table>
</div>
<div id="prevnext">
<?php
echo prev_page($auth_codes, '<img src="/images/admin/button_previous.jpg" alt="previous" id="button_previous" />');
?>
<?php
echo next_page($auth_codes, '<img src="/images/admin/button_next.jpg" alt="next" id="button_next" />');
?>
</div>
<?
include('../inc/footer.php');
?>
示例2: printf
//test of zenpage searches
if ($numpages > 0 && ZP_PAGES_ENABLED) {
$number_to_show = 5;
$c = 0;
?>
<hr />
<h3><?php
printf(gettext('Pages (%s)'), $numpages);
?>
<small><?php
printZDSearchShowMoreLink("pages", $number_to_show);
?>
</small></h3>
<ul class="searchresults">
<?php
while (next_page()) {
$c++;
?>
<li<?php
printZDToggleClass('pages', $c, $number_to_show);
?>
>
<h4><?php
printPageURL();
?>
</h4>
<p class="zenpageexcerpt"><?php
echo shortenContent(getBare(getPageContent()), 80, getOption("zenpage_textshorten_indicator"));
?>
</p>
</li>
示例3: tlink
<li class="share-li" data-ttip="Share this on Linkedin"><a href="#" onclick="openwindow(\'https://www.linkedin.com/shareArticle?mini=true&url=' . $item->link . '&title=' . $item->name . '&summary=&source=\', 500, 500, \'yes\');"></a></li>
<li class="share-rss" data-ttip="RSS Feed"><a href="' . tlink('plugin/rss2.xml', 'store=' . $item->ID) . '"></a></li>
</ul>
<input type="text" value="' . $item->link . '" onclick="$(this).select();" />
</div>
</div>
</article>';
}
if (($pp = prev_page()) || next_page()) {
echo '<div class="pagination">';
echo $pp ? '<span><a href="' . $pp . '" class="btn">← Prev</a></span>' : '<span class="btn" style="opacity: 0.2;">← Prev</span>';
echo ($np = next_page()) ? '<span><a href="' . $np . '" class="btn">Next →</a></span>' : '<span class="btn" style="opacity: 0.2;">Next →</span>';
echo '<span>Page ' . page() . ' / ' . pages() . '</span>';
echo '</div>';
}
} else {
echo '<div style="text-align:center;">Sorry, no stores/brands yet :(</div>';
}
?>
</div>
<div class="right">
<?php
show_widgets('right');
?>
示例4: prev_page
?>
');">删除图片</a></li>
</ul>
</div>
</div>
<?php
}
}
?>
<div class="clear"></div>
</div><!-- #x-photo -->
<div id="navigation">
<?php
prev_page($paged, $qpage['pages'], 'list.php');
next_page($paged, $qpage['pages'], 'list.php');
?>
<div class="clear"></div>
</div>
<div class="x-shadow l-shadow"></div>
<div class="x-shadow r-shadow"></div>
</div><!-- #content -->
<?php
/*
* @ $_GET['SCRIPT_LOAD'] => the script you want to load!
*/
require_once ABSPATH . 'includes/template/footer.php';
示例5: setOption
if (function_exists('printGoogleMap')) {
?>
<div class="section"><?php
setOption('gmap_width', 550, false);
printGoogleMap();
?>
</div><?php
}
?>
<?php
if ($_zp_page == 1) {
//test of zenpage searches
if ($numpages > 0) {
$zpc = 0;
while ($zpc < $zpmin_zpsearchcount && next_page()) {
$zpc++;
$c++;
?>
<div class="news-truncate">
<h2><?php
printPageTitlelink();
?>
</h2>
<p><?php
echo html_encodeTagged(shortenContent(strip_tags(getPageContent()), 200, getOption("zenpage_textshorten_indicator")));
?>
</p>
</div>
<?php
}
示例6: foreach
<tr>
<th>Name</th>
</tr>
<?php foreach ($files[$pg] as $f) {?>
<tr>
<td><a href="<?=$f['path']?>" target="_blank"><?=$f['name']?></a></td>
<td><a href="#"><img src="/images/admin/button_copy.jpg" alt="Copy Path" class="copy_button" /></a></td>
<td><a href="delete.php?id=<?=$f['id']?>"><img src="/images/admin/button_delete.jpg" alt="Delete" class="delete_button confirm" /></a></td>
</tr>
<? } ?>
</table>
</div>
<div id="prevnext">
<?=prev_page($files, '<img src="/images/admin/button_previous.jpg" alt="previous" id="button_previous" />')?>
<?=next_page($files, '<img src="/images/admin/button_next.jpg" alt="next" id="button_next" />')?>
</div>
<script type="text/javascript" src="/inc/zeroclipboard/ZeroClipboard.js"></script>
<script type="text/javascript" charset="utf-8">
$(function() {
ZeroClipboard.setMoviePath( '/inc/zeroclipboard/ZeroClipboard.swf' );
var clip = new ZeroClipboard.Client();
clip.setHandCursor( true );
clip.addEventListener( 'onComplete', function ( client, text ) {
alert('The path for this file has been copied to your clipboard.');
});
$('.copy_button').mouseover( function() {
clip.setText( $(this).closest('td').prev().find('a').attr('href') );
if (clip.div) {
clip.receiveEvent('mouseout', null);
示例7: prev_page
<!--<a class="p-like" href="#">LIKE</a>-->
</div>
</div><!-- #photo-<?php
echo $photo->uid;
?>
-->
<?php
}
}
?>
<div class="clear"></div>
</div><!-- #x-photo -->
<div id="navigation">
<?php
prev_page($paged, $qpage['pages']);
next_page($paged, $qpage['pages']);
?>
<div class="clear"></div>
</div>
<div class="x-shadow l-shadow"></div>
<div class="x-shadow r-shadow"></div>
</div><!-- #content -->
<?php
/*
* @ $_GET['SCRIPT_LOAD'] => the script you want to load!
*/
require_once ABSPATH . 'includes/template/footer.php';