Пример #1
0
    echo " <b>Taxon Profile Editor</b>";
    echo "</div>";
}
?>
	<div id="innertext">
		<?php 
if ($tEditor->getTid()) {
    if ($editable) {
        //If submitted tid does not equal accepted tid, state that user will be redirected to accepted
        if ($tEditor->getSubmittedTid()) {
            echo "<div style='font-size:16px;margin-top:5px;margin-left:10px;font-weight:bold;'>Redirected from: <i>" . $tEditor->getSubmittedSciName() . "</i></div>";
        }
        //Display Scientific Name and Family
        echo "<div style='font-size:16px;margin-top:15px;margin-left:10px;'><a href='../index.php?taxon=" . $tEditor->getTid() . "' style='color:#990000;text-decoration:none;'><b><i>" . $tEditor->getSciName() . "</i></b></a> " . $tEditor->getAuthor();
        //Display Parent link
        if ($tEditor->getRankId() > 140) {
            echo "&nbsp;<a href='tpeditor.php?tid=" . $tEditor->getParentTid() . "'><img border='0' height='10px' src='../../images/toparent.png' title='Go to Parent' /></a>";
        }
        echo "</div>\n";
        //Display Family
        echo "<div id='family' style='margin-left:20px;margin-top:0.25em;'><b>Family:</b> " . $tEditor->getFamily() . "</div>\n";
        if ($statusStr) {
            echo '<h3 style="color:' . (stripos($statusStr, 'error') !== false ? 'red' : 'green') . ';">' . $statusStr . '<h3>';
        }
        ?>
				<div id="tabs" style="margin:10px;">
					<ul>
						<li><a href="#commontab"><span>Synonyms / Vernaculars</span></a></li>
				        <li><a href="tpimageeditor.php?tid=<?php 
        echo $tEditor->getTid() . '&lang=' . $lang;
        ?>