$total-1?$total:$nowpage+1;
//最后一页
$lastpage = $total;
$pdiv = '
';
//输出内容
echo $arr[$nowpage-1];
//不分页则不显示分页列表
if( $total <=1) $pdiv = '';
//输出分页列表
echo $pdiv;
}
?>
原文地址:http://blog.chinaunix.net/uid-21334635-id-1827743.html