buff logo

In The Buff Sponsors

Back to Index

roles)||in_array('authenticated user',$user->roles)) { $result = db_query('SELECT {users}.uid, name, picture FROM {users} LEFT JOIN {users_roles} ON {users}.uid = {users_roles}.uid WHERE {users_roles}.rid = 5 ORDER BY name'); $outputnamesonly="

"; $output="
"; $countnum=0; $startnum=$_GET['startnum']; if($startnum<1){$startnum=1;} $col1=0; while ($record = db_fetch_object($result)) { $outputnamesonly.=""; $col2++; if ($col2==4){$col2=0;$outputnamesonly.="";} $countnum++; if (($countnum>=$startnum) and ($countnum<$startnum+40)) { if (file_exists($record->picture)) { $output.= ""; } else { $output.= ""; } $col1++; if ($col1==3){$col1=0;$output.="";} } } if ($col1==0){$output.="";} if ($col1==1){$output.="";} if ($col1==2){$output.="";} if ($col2==0){$outputnamesonly.="";} if ($col2==1){$outputnamesonly.="";} if ($col2==2){$outputnamesonly.="";} $output.="
".l($record->name,"user/".$record->uid)."

".l($record->name,"user/".$record->uid)."

".l($record->name,"user/".$record->uid)."
            

"; $outputnamesonly.="
"; if ($startnum==1) { $output.='Next'; } else { $output.='Previous '; $output.='Next'; } $output="Showing photos $startnum to ".($startnum+39)." of ".$countnum." in total.
".$output; echo $outputnamesonly; ?> Please remember to feel free to message ideas and suggestions to admin / admin2 for the website etc.

Click here to read more - if you want to be a part of ITB, sign up it is free to sign up and chat on line