$totalNumOfPage) $endPage = $totalNumOfPage;
 
 //NEXT,PREV 존재 여부
 $isNext = false;
 $isPrev = false;
 
 if($currentBlock < $totalNumOfBlock) $isNext = true;
 if($currentBlock > 1)      $isPrev = true;
 
 if($totalNumOfBlock == 1){
  $isNext = false;
  $isPrev = false;
 }   
 
 if($isPrev){
  $goPrevPage = $startPage-$pagePerBlock; // 11page
  echo "[PREV]";  
 } 
 for($i=$startPage;$i<=$endPage;$i++){
  echo "[".$i."]";
 }
 if($isNext){
  $goNextPage = $startPage+$pagePerBlock; // 11page
  echo "[NEXT]";
 }  
}

handlePage($totalRecord,$recordPerPage,$pagePerBlock,$currentPage);

?> 
2008/12/26 15:59 2008/12/26 15:59

트랙백 주소 :: http://thinkit.or.kr/programming/trackback/8

댓글을 달아 주세요