Guest User

Untitled

a guest
Jun 29th, 2010
210
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $pages = contributors();
  2. $current_page = $pages['current_page'];
  3. $total_pages = $pages['total_pages'];
  4.  
  5. for ($i = 1; $i <= $total_pages; $i++)
  6. {
  7.     if ($i != $current_page)
  8.         echo '<span class="page">' . $i . '</span>';
  9.     else
  10.         echo '<span class="page current">' . $i . '</span>';
  11. }
RAW Paste Data