$entry[fname] $entry[lname]"; return $contentvar; } function extAuthors($extAuthorsString) { if($extAuthorsString == null) return; $extAuthorsString = trim($extAuthorsString); if($extAuthorsString == null || $extAuthorsString == "") return null; preg_match_all("%((\!|\@)([0-9A-Za-z\ ]*)(\@|\!))%", $extAuthorsString, $answer, PREG_PATTERN_ORDER); for($i = 0; $i < count($answer[3]); $i++) { if(trim($answer[2][$i] == "@")) { $contentvar .= localAuthors($answer[3][$i]); } else { $contentvar .= trim($answer[3][$i]); } if($i == (count($answer[3]) - 1)) $contentvar .= "."; else $contentvar .= ", "; } return $contentvar; } $query = "SELECT * FROM papers ORDER BY year"; $result = mysql_query($query); for ($i = 0; $i < mysql_num_rows($result); $i++) { $entry = mysql_fetch_array($result); if(strpos($entry[localGroups], "!".$groupID."!") === false) { ; } else { $content .= "
"; $content .= localAuthors($entry[localAuthors]); $content .= extAuthors($entry[extAuthors]); $content .= " |
$entry[title] |
$entry[journal], $entry[year], $entry[status]. |
download |
No Download Available |
"; } } return $content; ?>