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


PHP next_page函数代码示例

本文整理汇总了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'); 
?>
开发者ID:TheOddLinguist,项目名称:toolbox,代码行数:31,代码来源:index.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>
开发者ID:jmruas,项目名称:zenphoto,代码行数:31,代码来源:search.php

示例3: tlink

<li class="share-li" data-ttip="Share this on Linkedin"><a href="#" onclick="openwindow(\'https://www.linkedin.com/shareArticle?mini=true&amp;url=' . $item->link . '&amp;title=' . $item->name . '&amp;summary=&amp;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');
?>
开发者ID:hzhou9,项目名称:coupon_deal,代码行数:31,代码来源:stores.php

示例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';
开发者ID:Git-Host,项目名称:gdxkc-code,代码行数:31,代码来源:list.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 
        }
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:31,代码来源:search.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);
开发者ID:TheOddLinguist,项目名称:toolbox,代码行数:31,代码来源:index.php

示例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';
开发者ID:Git-Host,项目名称:gdxkc-code,代码行数:31,代码来源:index.php


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