Пример #1
0
        $displayName = $spDisplay;
        if ($taxonRank == 180) {
            $displayName = '<i>' . $displayName . '</i> spp. ';
        }
        if ($taxonRank > 140) {
            $parentLink = "index.php?taxon=" . $taxonManager->getParentTid() . "&cl=" . $taxonManager->getClid() . "&proj=" . $projValue . "&taxauthid=" . $taxAuthId;
            $displayName .= ' <a href="' . $parentLink . '">';
            $displayName .= '<img border="0" height="10px" src="../images/toparent.png" title="Go to Parent" />';
            $displayName .= '</a>';
        }
        echo "<div style='font-size:16px;margin-top:15px;margin-left:10px;font-weight:bold;'>{$displayName}</div>\n";
        if ($taxonRank > 140) {
            echo "<div id='family' style='margin-top:3px;margin-left:20px;'><b>Family:</b> " . $taxonManager->getFamily() . "</div>\n";
        }
        if ($projValue) {
            echo "<div style='margin-top:3px;margin-left:20px;'><b>Project:</b> " . $taxonManager->getProjName() . "</div>\n";
        }
        ?>
			</td>
			<td>
				<?php 
        if ($isEditor) {
            ?>
					<div style='float:right;'>
						<a href="admin/tpeditor.php?tid=<?php 
            echo $taxonManager->getTid();
            ?>
" title="Edit Taxon Data">
							<img style='border:0px;' src='../images/edit.png'/>
						</a>
					</div>