<!--分页开始 -->
<div class='text-center'>
<ul class='pagination'>
<li><a>每页显示:<?php echo $pagesize;?>条 共<?php echo $totalpage;?>页 当前第<?php echo $currpage;?>页, 共<?php echo $total;?>条记录 </a></li>
<li><a>
<select name='page' size='1' id="page" onchange='javascript:submit()' class="form-control" >
<?php
for($i=1;$i<=$totalpage;$i++)
{
?>
<option value="<?php echo $i; ?>" <?php if ($currpage==$i) echo "selected"; ?>> 第<?php echo $i;?>页</option>
<?php }?>
</select> </a></li>
<li><?php if($currpage==1){?>
<a >首页</a> </li></li><li><a >上页</a></li>
<?php } else {?>
<li><a href="<?php echo $filename;?>&page=1">首页</a></li><li><a href="<?php echo $filename;?>&page=<?php echo ($currpage-1);?>">上一页</a></li>
<?php }
if($currpage==$totalpage)
{?>
<li><a >下页</a></li></li><li><a >尾页</a></li>
<?php }else{?>
<li> <a href="<?php echo $filename;?>&page=<?php echo ($currpage+1);?>">下一页</a></li><li><a href="<?php echo $filename;?>&page=<?php echo $totalpage;?>">尾页</a></li>
<?php }?>
</ul>
</div>
</section>
<!--分页END -->
<!--底部结束 -->