• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP getNextPageURL函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中getNextPageURL函数的典型用法代码示例。如果您正苦于以下问题:PHP getNextPageURL函数的具体用法?PHP getNextPageURL怎么用?PHP getNextPageURL使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



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

示例1: printPageListWithNav

				</a>
			<?php 
        }
        ?>
			</li>
			<?php 
    }
    ?>
		</ul>
	</div>
	<?php 
}
?>

	<?php 
if (getPrevPageURL() || getNextPageURL()) {
    printPageListWithNav('« ' . gettext('Prev'), gettext('Next') . ' »', false, 'true', 'page-nav', '', true, '5');
}
?>

	<?php 
if (function_exists('printGoogleMap')) {
    ?>
			<div class="gmap">
		<?php 
    setOption('gmap_width', 600, false);
    printGoogleMap();
    ?>
			</div>
	<?php 
}
开发者ID:kokyandrei,项目名称:Unsupported,代码行数:31,代码来源:album.php


示例2: printLinkHTML

} else {
    $link = "#";
}
echo "<li><a href=\"{$link}\" title=\"Previous Page\">&laquo;</a></li>\n";
for ($i = 1; $i <= $totalPages; $i++) {
    echo $i == $currentPage ? '<li class="current">' : '<li>';
    if ($i < 10) {
        $page = '0' . $i;
    } else {
        $page = $i;
    }
    printLinkHTML(getPageNumURL($i), $page, "Page {$page}");
    echo "</li>\n";
}
if (hasNextPage()) {
    $link = getNextPageURL();
} else {
    $link = "#";
}
echo "<li><a href=\"{$link}\" title=\"Next Page\">&raquo;</a></li>";
?>
		</ul>
	</div>

	<div id="albumList">
<?php 
$albumsPerPage = getOption('albums_per_page');
$count = 1;
while (next_album() && $count <= $albumsPerPage) {
    ?>
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:30,代码来源:index.php


示例3: getPageNavList

/**
 * returns a page nav list.
 *
 * @param bool $_oneImagePage set to true if there is only one image page as, for instance, in flash themes
 * @param int $navlen Number of navigation links to show (0 for all pages). Works best if the number is odd.
 * @param bool $firstlast Add links to the first and last pages of you gallery
 * @param int $current the current page
 * @param int $total total number of pages
 *
 */
function getPageNavList($_oneImagePage, $navlen, $firstlast, $current, $total)
{
    $result = array();
    if (hasPrevPage()) {
        $result['prev'] = getPrevPageURL();
    } else {
        $result['prev'] = NULL;
    }
    if ($firstlast) {
        $result[1] = getPageNumURL(1, $total);
    }
    if ($navlen == 0) {
        $navlen = $total;
    }
    $extralinks = 2;
    if ($firstlast) {
        $extralinks = $extralinks + 2;
    }
    $len = floor(($navlen - $extralinks) / 2);
    $j = max(round($extralinks / 2), min($current - $len - (2 - round($extralinks / 2)), $total - $navlen + $extralinks - 1));
    $ilim = min($total, max($navlen - round($extralinks / 2), $current + floor($len)));
    $k1 = round(($j - 2) / 2) + 1;
    $k2 = $total - round(($total - $ilim) / 2);
    for ($i = $j; $i <= $ilim; $i++) {
        $result[$i] = getPageNumURL($i, $total);
    }
    if ($firstlast) {
        $result[$total] = getPageNumURL($total, $total);
    }
    if (hasNextPage()) {
        $result['next'] = getNextPageURL();
    } else {
        $result['next'] = NULL;
    }
    return $result;
}
开发者ID:IliyanGochev,项目名称:zenphoto,代码行数:46,代码来源:template-functions.php


示例4: htmlspecialchars

    ?>
<a href="<?php 
    echo htmlspecialchars(getPrevPageURL());
    ?>
">Prev</a><?php 
} else {
    ?>
<span>Prev</span><?php 
}
?>
</li>
					<li><?php 
if (hasNextPage()) {
    ?>
<a href="<?php 
    echo htmlspecialchars(getNextPageURL());
    ?>
">Next</a><?php 
} else {
    ?>
<span>Next</span><?php 
}
?>
</li>
				</ul>	
			</div>
			<div id="content" class="c">
				<div id="leftbox">
					<ul class="list c">
<?php 
while (next_album()) {
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:31,代码来源:index.php


示例5: getNextPageURL

    ?>
					</div>
				</div>
				<?php 
}
?>
			</div>
			<?php 
if ($zpmas_infscroll) {
    ?>
			<div id="page_nav">
				<?php 
    if (getNextPageURL()) {
        ?>
<a href="<?php 
        echo getNextPageURL();
        ?>
">Next Page</a> <?php 
    }
    ?>
			</div>
			<?php 
} else {
    if (hasPrevPage() || hasNextPage()) {
        ?>
			<div id="pagination">
				<?php 
        printPageListWithNav("« " . gettext("prev"), gettext("next") . " »");
        ?>
			</div>
			<?php 
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:31,代码来源:album.php


示例6: html_encode

				<a href="<?php 
            echo html_encode(getPrevPageURL());
            ?>
" accesskey="x">&laquo; <?php 
            echo gettext('prev page');
            ?>
</a>
				<?php 
        }
        if (hasNextPage()) {
            if (hasPrevPage()) {
                echo '&nbsp;';
            }
            ?>
				<a href="<?php 
            echo html_encode(getNextPageURL());
            ?>
" accesskey="x"><?php 
            echo gettext('next page');
            ?>
 &raquo;</a>
			<?php 
        }
        echo '</p>';
        echo "<em class=\"count\">" . sprintf(gettext('Total matches for <em>%1$s</em>: %2$u'), getSearchWords(), $results);
    } else {
        echo "<p>" . gettext('Sorry, no matches found. Try refining your search.') . "</p>";
    }
}
?>
	</div>
开发者ID:hatone,项目名称:zenphoto-1.4.1.4,代码行数:31,代码来源:search.php


示例7: getPrevPageURL

   <div id="fullplate-navigation">
   	<ul>
   <?php 
if (hasPrevPage()) {
    echo "\t\t" . '<li id="previous"><a href="' . getPrevPageURL() . '" title="Previous Image"><img src="' . $_zp_themeroot . '/images/arrow_left.png" width="16" height="16" alt="left ' . 'arrow" /></a></li>' . "\n";
} else {
    echo "\t\t" . '<li>&nbsp;</li>' . "\n";
}
if (in_context(ZP_IMAGE)) {
    echo "\t\t" . '<li><a href="' . getFullImageURL() . '" title="Full Size Image"><img src="' . $_zp_themeroot . '/images/arrow_out.png" width="16" height="16" alt="arrows ' . 'pointing out" /></a></li>' . "\n";
} else {
    echo "\t\t" . '<li>&nbsp;</li>' . "\n";
}
if (hasNextPage()) {
    echo "\t\t" . '<li id="next"><a href="' . getNextPageURL() . '" title="Next Image"><img src="' . $_zp_themeroot . '/images/arrow_right.png" width="16" height="16" alt="right ' . 'arrow" /></a></li>' . "\n";
} else {
    echo "\t\t" . '<li>&nbsp;</li>' . "\n";
}
?>
   	</ul>
   </div>

	<div id="foot">
		<div id="logo">
			<?php 
printZenphotoLink();
?>
		</div>

		<div id="info">
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:30,代码来源:index.php


示例8: printNextPageLink

/**
 * Prints the URL of the next page.
 *
 * @param string $text text for the URL
 * @param string $title Text for the HTML title
 * @param string $class Text for the HTML class
 * @param string $id Text for the HTML id
 */
function printNextPageLink($text, $title = NULL, $class = NULL, $id = NULL)
{
    if (hasNextPage()) {
        printLink(getNextPageURL(), $text, $title, $class, $id);
    } else {
        echo "<span class=\"disabledlink\">{$text}</span>";
    }
}
开发者ID:hatone,项目名称:zenphoto-1.4.1.4,代码行数:16,代码来源:template-functions.php


示例9: printNavigation

 static function printNavigation($prevtext, $nexttext, $oneImagePage = false, $navlen = 7, $firstlast = true)
 {
     $total = getTotalPages($oneImagePage);
     $current = getCurrentPage();
     if ($total < 2) {
         $class .= ' disabled_nav';
     }
     if ($navlen == 0) {
         $navlen = $total;
     }
     $extralinks = 2;
     if ($firstlast) {
         $extralinks += 2;
     }
     $len = floor(($navlen - $extralinks) / 2);
     $j = max(round($extralinks / 2), min($current - $len - (2 - round($extralinks / 2)), $total - $navlen + $extralinks - 1));
     $ilim = min($total, max($navlen - round($extralinks / 2), $current + floor($len)));
     $k1 = round(($j - 2) / 2) + 1;
     $k2 = $total - round(($total - $ilim) / 2);
     if ($firstlast) {
         echo '<div class="nav-cell ' . ($current == 1 ? 'current' : 'first') . '">';
         echo "<span class='valign'>";
         printLink(getPageURL(1, $total), 1, "Page 1");
         echo "</span></div>\n";
         if ($j > 2) {
             echo '<div class="nav-cell">';
             echo "<span class='valign'>";
             printLink(getPageURL($k1, $total), $j - 1 > 2 ? '...' : $k1, "Page {$k1}");
             echo "</span></div>\n";
         }
     }
     for ($i = $j; $i <= $ilim; $i++) {
         echo '<div class="nav-cell' . ($i == $current ? " current" : "") . '">';
         echo "<span class='valign'>";
         printLink(getPageURL($i, $total), $i, "Page {$i}" . ($i == $current ? ' ' . gettext("(Current Page)") : ""));
         echo "</span></div>\n";
     }
     if ($i < $total) {
         echo '<div class="nav-cell">';
         echo "<span class='valign'>";
         printLink(getPageURL($k2, $total), $total - $i > 1 ? '...' : $k2, "Page {$k2}");
         echo "</span></div>\n";
     }
     if ($firstlast && $i <= $total) {
         echo '<div class="nav-cell last">';
         echo "<span class='valign'>";
         printLink(getPageURL($total, $total), $total, "Page {$total}");
         echo "</span></div>\n";
     }
     $prevNextLinks = array();
     $prevNextLinks['prev'] = ThemeUtil::getLink(getPrevPageURL(), $prevtext) . "\n";
     $prevNextLinks['next'] = ThemeUtil::getLink(getNextPageURL(), $nexttext) . "\n";
     return $prevNextLinks;
 }
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:54,代码来源:AlbumUtil.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP getNextPrev函数代码示例发布时间:2022-05-15
下一篇:
PHP getNextImageURL函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap