_configCurrentPage($page); $this->_setRecordByPage($recordByPage); if ($language == "default"): $this->msg_initialPage = "Página Inicial"; $this->msg_finalPage = "Página Final"; $this->msg_previousPage = "Anterior"; $this->msg_nextPage = "Próxima"; $this->msg_next10Results = "Próximas 10 páginas"; $this->msg_previous10Results = "10 Páginas anteriores"; $this->msg_page = "Ir para Página"; $this->msg_of = "De"; $this->msg_to = "a"; else: $this->msg_initialPage = "Initial Page"; $this->msg_finalPage = "Final Page"; $this->msg_previousPage = "Previous"; $this->msg_nextPage = "Next"; $this->msg_next10Results = "Next 10 Pages"; $this->msg_previous10Results = "Previous 10 Pages"; $this->msg_page = "Go to Page"; $this->msg_of = ""; $this->msg_to = "to"; endif; } /** * Setting current page * @access private */ function _configCurrentPage($page) { if (empty($page)): $this->currentPage = 1; else: $this->currentPage = $page; endif; } /** * Setting the records listed in each page * @access private */ function _setRecordByPage($recordByPage) { $this->recordByPage = $recordByPage; } /** * Setting the total number of records retrieved * @access public */ function setTotalRecords($totalRecords) { $this->totalRecords = $totalRecords; $this->PagesFound = ceil($this->totalRecords / $this->recordByPage); } /** * Defining the additional parameters that may be necessary on the search and will be passed between pages with the GET method * @access public */ function setGetVars($getsVars){ $this->getsVars = $getsVars; } /** * Outputs the total number of records * @access public */ function getTotalRecords() { return $this->totalRecords; } /** * Outputs the total number of pages * @access public */ function getPagesFound() { return $this->PagesFound; } /** * Outputs the Navigation links * @access public */ function getNavigation() { $result = ""; $previous = $this->currentPage - 1; $next = $this->currentPage + 1; if ($this->getsVars ==""): if ($this->PagesFound>1): if ($this->currentPage!=1): $result .= "msg_initialPage."';return true\" onMouseOut=\"window.status='';return true\"><<     "; endif; if ($this->currentPage>1):$result .= "msg_previousPage."';return true\" onMouseOut=\"window.status='';return true\">".$this->msg_previousPage."  "; endif; if (($this->currentPage < $this->PagesFound) && ($this->PagesFound >= 1)): $result .= " msg_nextPage."';return true\" onMouseOut=\"window.status='';return true\">".$this->msg_nextPage.""; endif; if (($this->PagesFound>1)&&($this->currentPage!=$this->PagesFound)): $result .= "    msg_finalPage."';return true\" onMouseOut=\"window.status='';return true\"> >>"; endif; endif; else: if ($this->currentPage!=1): $result = "msg_initialPage."';return true\" onMouseOut=\"window.status='';return true\"><<     "; endif; if ($this->currentPage>1): $result .= "msg_previousPage."';return true\" onMouseOut=\"window.status='';return true\">".$this->msg_previousPage."  "; endif; if (($this->currentPage<$this->PagesFound) && ($this->PagesFound>=1)): $result .= "msg_nextPage."';return true\" onMouseOut=\"window.status='';return true\">".$this->msg_nextPage.""; endif; if (($this->PagesFound>1)&&($this->currentPage!=$this->PagesFound)): $result .= "    msg_finalPage."';return true\" onMouseOut=\"window.status='';return true\"> >>"; endif; endif; return $result; } /** * Outputs Navigation records list based in current page * @access public */ function getCurrentPages($params=array()){ extract($params); $totalRecordsControl = $this->totalRecords; if (($totalRecordsControl%$this->recordByPage!=0)): while($totalRecordsControl%$this->recordByPage!=0): $totalRecordsControl++; endWhile; endif; $ultimo = $this->currentPage; if ($ultimo <= 6): $begin = 1; $pageInicial = ($this->currentPage - $ultimo); $end = $begin+9; else: $pageInicial = ($this->currentPage - $ultimo); $pageInicial = $begin = ($this->currentPage-5)+1; // $begin = $end - $begin; $begin = $begin<=0 ? 1 : $begin; //echo $begin; $end = $begin+9; //echo $end- $begin; endif; $num = $this->PagesFound; if ($end>$num): $end = $num; endif; for ($a = $begin; $a <= $end ; $a++): if ($a!=$this->currentPage): if ($this->getsVars ==""): $result .= " msg_page.": $a';return true\" title='".$this->msg_page.": $a' onMouseOut=\"window.status='';return true\">$a "; else: $result .= " msg_page.": $a';return true\" title='".$this->msg_page.": $a' onMouseOut=\"window.status='';return true\">$a "; endif; else: $result .= " [$a] "; endif; endfor; return $result; } /** * Outputs the records list based in current page * @access public */ function getListCurrentRecords() { $regFinal = $this->recordByPage * $this->currentPage; $regInicial = $regFinal - $this->recordByPage; if ($regInicial == 0): $regInicial++; endif; if ($this->currentPage == $this->PagesFound): $regFinal = $this->totalRecords; endif; if ($this->currentPage > 1): $regInicial++; endif; $result = $this->msg_of." $regInicial ".$this->msg_to." $regFinal"; return $result; } /** * Outputs the links for browsing from 1 to 10, 11 to 20, 21 to 30, and so forth * @access public */ function getNavigationGroupLinks(){ if (($this->currentPage <= 10) && ($this->PagesFound >= 1)): $end = 11; else: $last = substr($this->currentPage,-1); $first = substr($this->currentPage,0,1); if ($last != 0): $aux1 = $first + 1; $aux1 = $aux1."0"; $aux1 = ($aux1 - $this->currentPage)+1; $end = $this->currentPage + $aux1; else: $end = $this->currentPage + 1; endif; $begin = $end - 20; endif; if ( !(($this->currentPage>= 1)&&($this->currentPage<=10)) ): $result = "msg_previous10Results."';return true\" onMouseOut=\"window.status='';return true\">".$this->msg_previous10Results."      "; endif; if ($end <= $this->PagesFound): $result .= " msg_next10Results."';return true\" onMouseOut=\"window.status='';return true\">".$this->msg_next10Results.""; endif; return $result; } } ?> New York Web Design | New York iPhone & iPad Application Design | Web Development New York | New York Web Designers | New York Android Application Development - DimensionsXtreme
DimensionsXtreme
 
 

Services

  • Graphic Design
  • Web Design
  • Web Development
  • Mobile App Design & Development

Take a look! Gaze through our portfolio to see what we've accomplished so far.

Portfolio

Testimonials

I just wanted to thank you guys once again on the wonderful job you've done on my website. Everybody who sees it falls in love with it!