本文整理汇总了PHP中allparam函数的典型用法代码示例。如果您正苦于以下问题:PHP allparam函数的具体用法?PHP allparam怎么用?PHP allparam使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了allparam函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: allparam
<tr>
<td width="40"><img src="images/first.gif" width="37" height="15" onClick="location.href=\'';
echo allparam();
echo '1\'"/></td>
<td width="45"><img src="images/back.gif" width="43" height="15" onClick="location.href=\'';
echo allparam();
echo '';
echo $pageno - 1;
echo '\'" /></td>
<td width="45"><img src="images/next.gif" width="43" height="15" onClick="location.href=\'';
echo allparam();
echo '';
echo $pageno + 1;
echo '\'"/></td>
<td width="40"><img src="images/last.gif" width="37" height="15" onClick="location.href=\'';
echo allparam();
echo '';
echo $pagenum;
echo '\'" /></td>
<td width="100"><div align="center"><span class="STYLE1">转到第
';
$posts = $_POST;
$gets = $_GET;
$result = array_merge($posts, $gets);
foreach ($result as $key => $value) {
echo ' <input type="hidden" name="';
echo $key;
echo '" value="';
echo $value;
echo '" />
示例2: splitpage
function splitpage($pagenum, $pagesize, $pageno)
{
$qnum = 5;
$hnum = 5;
$qpageno = $pageno - $qnum > 0 ? $pageno - $qnum : 1;
$hpageno = $pageno + $hnum <= $pagenum ? $pageno + $hnum : $pagenum;
echo ' <div id="pagelist">
<ul>
<li>';
if ($pageno > 1) {
echo '<a href="';
echo allparam();
echo '1">';
}
echo '首页';
if ($pageno > 1) {
echo '</a>';
}
echo '</li>
<li>';
if ($pageno > 1) {
echo '<a href="';
echo allparam();
echo '';
echo $pageno - 1;
echo '">';
}
echo '上页';
if ($pageno > 1) {
echo '</a>';
}
echo '</li>
';
for ($i = $qpageno; $i <= $hpageno; $i++) {
echo ' <li ';
if ($pageno == $i) {
echo 'class="current"';
}
echo '><a href="';
echo allparam();
echo '';
echo $i;
echo '">';
echo $i;
echo '</a></li>
';
}
echo ' <li>';
if ($pageno < $pagenum) {
echo '<a href="';
echo allparam();
echo '';
echo $pageno + 1;
echo '">';
}
echo '下页';
if ($pageno < $pagenum) {
echo '</a>';
}
echo '</li>
<li>';
if ($pageno < $pagenum) {
echo '<a href="';
echo allparam();
echo '';
echo $pagenum;
echo '">';
}
echo '尾页';
if ($pageno < $pagenum) {
echo '</a>';
}
echo '</li>
<li class="pageinfo">';
echo $pageno . "/" . $pagenum;
echo '</li>
</ul>
<form action="" method="post">
';
$posts = $_POST;
$gets = $_GET;
$result = array_merge($posts, $gets);
foreach ($result as $key => $value) {
echo ' <input type="hidden" name="';
echo $key;
echo '" value="';
echo $value;
echo '" />
';
}
echo ' <input name="pageno" size="6" type="text"> <input name="go" type="submit" value="Go"> ';
echo "每页:" . $pagesize . "条";
echo '</form>
</div>
';
}