original_string: function render_pagelinks()
          {
          global $PHP_SELF;
              $pages        = $this->rs->LastPageNo();
              $linksperpage = $this->linksPerPage ? $this->linksPerPage : $pages;
              for($i=1; $i <= $pages; $i+=$linksperpage)
              {
                  if($this->rs->AbsolutePage() >= $i)
                  {
                      $start = $i;
                  }
              }
  			$numbers = '';
              $end = $start+$linksperpage-1;
  			$link = $this->id . "_next_page";
              if($end > $pages) $end = $pages;
  
  
  			if ($this->startLinks && $start > 1) {
  				$pos = $start - 1;
  				$numbers .= "<a href=$PHP_SELF?$link=$pos>$this->startLinks</a>  ";
              }
  
  			for($i=$start; $i <= $end; $i++) {
                  if ($this->rs->AbsolutePage() == $i)
                      $numbers .= "<font color=$this->linkSelectedColor><b>$i</b></font>  ";
                  else
                       $numbers .= "<a href=$PHP_SELF?$link=$i>$i</a>  ";
  
              }
  			if ($this->moreLinks && $end < $pages)
  				$numbers .= "<a href=$PHP_SELF?$link=$i>$this->moreLinks</a>  ";
              print $numbers . ' &nbsp; ';
          }
code: function render_pagelinks()
          {
          global $PHP_SELF;
              $pages        = $this->rs->LastPageNo();
              $linksperpage = $this->linksPerPage ? $this->linksPerPage : $pages;
              for($i=1; $i <= $pages; $i+=$linksperpage)
              {
                  if($this->rs->AbsolutePage() >= $i)
                  {
                      $start = $i;
                  }
              }
  			$numbers = '';
              $end = $start+$linksperpage-1;
  			$link = $this->id . "_next_page";
              if($end > $pages) $end = $pages;
  
  
  			if ($this->startLinks && $start > 1) {
  				$pos = $start - 1;
  				$numbers .= "<a href=$PHP_SELF?$link=$pos>$this->startLinks</a>  ";
              }
  
  			for($i=$start; $i <= $end; $i++) {
                  if ($this->rs->AbsolutePage() == $i)
                      $numbers .= "<font color=$this->linkSelectedColor><b>$i</b></font>  ";
                  else
                       $numbers .= "<a href=$PHP_SELF?$link=$i>$i</a>  ";
  
              }
  			if ($this->moreLinks && $end < $pages)
  				$numbers .= "<a href=$PHP_SELF?$link=$i>$this->moreLinks</a>  ";
              print $numbers . ' &nbsp; ';
          }
code_tokens: function render_pagelinks ( ) { global $ PHP_SELF ; $ pages = $ this -> rs -> LastPageNo ( ) ; $ linksperpage = $ this -> linksPerPage ? $ this -> linksPerPage : $ pages ; for ( $ i = 1 ; $ i <= $ pages ; $ i += $ linksperpage ) { if ( $ this -> rs -> AbsolutePage ( ) >= $ i ) { $ start = $ i ; } } $ numbers = '' ; $ end = $ start + $ linksperpage - 1 ; $ link = $ this -> id . "_next_page" ; if ( $ end > $ pages ) $ end = $ pages ; if ( $ this -> startLinks && $ start > 1 ) { $ pos = $ start - 1 ; $ numbers .= "<a href=$PHP_SELF?$link=$pos>$this->startLinks</a>  " ; } for ( $ i = $ start ; $ i <= $ end ; $ i ++ ) { if ( $ this -> rs -> AbsolutePage ( ) == $ i ) $ numbers .= "<font color=$this->linkSelectedColor><b>$i</b></font>  " ; else $ numbers .= "<a href=$PHP_SELF?$link=$i>$i</a>  " ; } if ( $ this -> moreLinks && $ end < $ pages ) $ numbers .= "<a href=$PHP_SELF?$link=$i>$this->moreLinks</a>  " ; print $ numbers . ' &nbsp; ' ; }
docstring: original code by "Pablo Costa" <pablo@cbsp.com.br>
docstring_tokens: original code by Pablo Costa <pablo