include_once 'authors.inc'; include_once 'menu.inc'; require_login(); // argument provided? if (isset($_GET['author_id'])) { $id = $_GET['author_id']; } else { output_header(_('No author-id specified')); echo _('There was an error: No author-id was specified.') . ' '; echo _('If you believe this to be the result of perfectly legitimate actions taken by you, please '); echo '<a href="whatever">' . _('report it to us') . "</a>.\n"; echo _('You may return to <a href="listing.php">the authors-listing</a>.'); exit; } $result = mysql_query("SELECT * FROM authors WHERE author_id={$id};"); $last_name = mysql_result($result, 0, "last_name"); $other_names = mysql_result($result, 0, "other_names"); $birth = format_date_from_sqlset($result, 0, 'b'); $decease = format_date_from_sqlset($result, 0, 'd'); // Start outputting output_header(_('Author') . ': ' . $last_name . ($other_names != '' ? ", {$other_names}" : '')); echo_menu(); echo '<h1 align="center">' . _('Author') . '</h1>'; echo_author($last_name, $other_names, $birth, $decease, $id); if (user_is_authors_db_manager()) { ?> <BR/> <?php } echo_menu(); // vim: sw=4 ts=4 expandtab
$message = @$_GET['message']; if (isset($message)) { echo '<center>' . html_safe($message) . '</center><br />'; } $sortUtility = new SortUtility('authors_listing'); prepare_search(); echo_search_form(); ?> <h2 align="center"><?php echo get_search_title(); ?> </h2> <?php $can_edit = user_is_PM() || user_is_authors_db_manager(); $result = search(); $browseUtility = new BrowseUtility($result); // "Displaying entries x-y of z" echo '<p align="center">' . $browseUtility->getDisplayingString() . '</p>'; // "Previous" and/or "Next" links? $prev_next_links = ''; if ($browseUtility->isPreviousBrowseAvailable()) { $prev_next_links = "<a href='listing.php?{$query}" . $browseUtility->getPreviousBrowseQueryString() . "'><- " . _('Previous') . '</a> '; } if ($browseUtility->isNextBrowseAvailable()) { $prev_next_links .= "<a href='listing.php?{$query}" . $browseUtility->getNextBrowseQueryString() . "'>" . _('Next') . ' -></a>'; } if ($prev_next_links != '') { echo "<p align='center'>{$prev_next_links}</p>"; }
echo html_safe($name); ?> <a href='<?php echo $code_url; ?> /tools/authors/bioxml.php?bio_id=<?php echo $id; ?> '><img src='<?php echo $code_url; ?> /graphics/xml.gif' border='0' width='36' height='14' style='vertical-align:middle'></a> </h2> <?php if (user_is_PM() || user_is_authors_db_manager()) { echo _('To include this biography into the project comments of a project, insert the following snippet into the project comments:'); echo " <b>[biography={$id}]</b>"; } ?> <br /><br /> <table align="center" border="1"> <tr><td> <?php echo html_safe($bio); ?> </td></tr> </table> <?php echo_menu(); // vim: sw=4 ts=4 expandtab