$limit ? $limit : $numrows); $listtotal = floor($total / $displaycolumns); if($total % $displaycolumns != 0) $listtotal++; $colwidth = (100/ $displaycolumns) -1; $count = 0; $column = 1; $authorquery = $authorquery. " ORDER BY "._PENNAMEFIELD." LIMIT $offset,$limit"; $result2 = dbquery($authorquery); $output .= "
".($displaycolumns ? "
" : ""); while($author = dbassoc($result2)) { $count++; if(empty($author['stories'])) $author['stories'] = 0; // For bridges site that may not have author prefs set. $output .= (isset($authorlink) ? $authorlink : "".stripslashes($author['penname'])." [".$author['stories']."]
\n"; if( $count >= $listtotal && $column != $displaycolumns) { $output .= "
"; if($total % $displaycolumns == $column) $listtotal--; $column++; $count = 0; } } $output .= "
".($displaycolumns ? "
" : "")."
 
"; if ($numrows > $limit) { $pagelink = $pagelink ? $pagelink : "authors.php?action=viewlist&".($let ? "let={$let}&" : ""); $output .= build_pagelinks($pagelink, $numrows, $offset, $displaycolumns); } ?>