direction == "ltr") { $fpImgUrl= getImagePath('nav_first.gif'); $ppImgUrl= getImagePath('nav_prev.gif'); $npImgUrl= getImagePath('nav_next.gif'); $lpImgUrl= getImagePath('nav_last.gif'); } else { $fpImgUrl= getImagePath('nav_last.gif'); $ppImgUrl= getImagePath('nav_next.gif'); $npImgUrl= getImagePath('nav_prev.gif'); $lpImgUrl= getImagePath('nav_first.gif'); } $firstPage = $navigator["allIds"][0]; $lastPage = $navigator["allIds"][$navcount-1]; #-- 'first' and 'previous button cell --- if ($navpage > 0) { $fpContent = ''; $fpContent .=''. $fpAltText .''; $fpContent .=''; $prevPage = $navigator["allIds"][$navpage-1]; $ppContent = ''; $ppContent .=''. $ppAltText .''; $ppContent .=''; $pClass='borderright'; } else { $fpContent=' '; $ppContent=' '; $pClass=''; } #-- 'page numbers' cell --- $mpContent=sprintf(_("%d of %d"), $navpage+1, $navcount); #-- 'next' and 'last' button cell --- if ($navpage < $navcount-1) { $nextPage = $navigator["allIds"][$navpage+1]; $npContent =''; $npContent .=''. $npAltText .''; $npContent .=''; $lpContent =''; $lpContent .=''. $lpAltText .''; $lpContent .=''; $nClass='borderleft'; } else { $npContent=' '; $lpContent=' '; $nClass=''; } ?> border="0" cellspacing="0" cellpadding="0" class="modnavbox">