" style="clear:both;margin-top:10px;"> <h3><?php echo $family; ?> </h3> </div> <?php $prevfam = $family; } ?> <div> <?php echo "<div style='float:left;text-align:center;width:210px;height:" . ($showCommon ? "260" : "240") . "px;'>"; $imgSrc = array_key_exists('tnurl', $sppArr) && $sppArr["tnurl"] ? $sppArr["tnurl"] : $sppArr["url"]; echo "<div class='tnimg' style='" . ($imgSrc ? "" : "border:1px solid black;") . "'>"; $spUrl = "../taxa/index.php?taxauthid=1&taxon={$tid}&cl=" . $clManager->getClid(); if ($imgSrc) { $imgSrc = (array_key_exists("imageDomain", $GLOBALS) && substr($imgSrc, 0, 4) != "http" ? $GLOBALS["imageDomain"] : "") . $imgSrc; echo "<img src='" . $imgSrc . "' style='height:100%;' />"; } else { echo "<div style='margin-top:50px;'><b>Image<br/>not yet<br/>available</b></div>"; } echo "</div>"; echo "<div><b>" . $sppArr["sciname"] . "</b></div>"; echo "</div>\n"; ?> </div> <?php } } else { foreach ($taxaArray as $tid => $sppArr) {
if ($showAuthors) { $clManager->setShowAuthors(); } if ($showCommon) { $clManager->setShowCommon(); } if ($showImages) { $clManager->setShowImages(); } if ($showVouchers) { $clManager->setShowVouchers(); } if ($showAlphaTaxa) { $clManager->setShowAlphaTaxa(); } $clid = $clManager->getClid(); $pid = $clManager->getPid(); $isEditor = false; if ($isAdmin || array_key_exists("ClAdmin", $userRights) && in_array($clid, $userRights["ClAdmin"])) { $isEditor = true; } $taxaArray = array(); if ($clValue || $dynClid) { $taxaArray = $clManager->getTaxaList($pageNumber, 0); } $phpWord = new \PhpOffice\PhpWord\PhpWord(); $phpWord->addParagraphStyle('defaultPara', array('align' => 'left', 'lineHeight' => 1.0, 'spaceBefore' => 0, 'spaceAfter' => 0, 'keepNext' => true)); $phpWord->addFontStyle('titleFont', array('bold' => true, 'size' => 20, 'name' => 'Arial')); $phpWord->addFontStyle('topicFont', array('bold' => true, 'size' => 12, 'name' => 'Arial')); $phpWord->addFontStyle('textFont', array('size' => 12, 'name' => 'Arial')); $phpWord->addParagraphStyle('linePara', array('align' => 'left', 'lineHeight' => 1.0, 'spaceBefore' => 0, 'spaceAfter' => 0, 'keepNext' => true));