$textrun->addLink('http://' . $_SERVER['HTTP_HOST'] . $clientRoot . '/taxa/index.php?taxauthid=1&taxon=' . $family . '&cl=' . $clid, htmlspecialchars('[' . $family . ']'), 'textFont'); $prevfam = $family; } } } else { $cell = $table->addCell(null, $blankCellStyle); $textrun = $cell->addTextRun('imagePara'); $textrun->addText(htmlspecialchars('Image'), 'topicFont'); $textrun->addTextBreak(1); $textrun->addText(htmlspecialchars('not yet'), 'topicFont'); $textrun->addTextBreak(1); $textrun->addText(htmlspecialchars('available'), 'topicFont'); } } } else { $voucherArr = $clManager->getVoucherArr(); foreach ($taxaArray as $tid => $sppArr) { if (!$showAlphaTaxa) { $family = $sppArr['family']; if ($family != $prevfam) { $textrun = $section->addTextRun('familyPara'); $textrun->addLink('http://' . $_SERVER['HTTP_HOST'] . $clientRoot . '/taxa/index.php?taxauthid=1&taxon=' . $family . '&cl=' . $clid, htmlspecialchars($family), 'familyFont'); $prevfam = $family; } } $textrun = $section->addTextRun('scinamePara'); $textrun->addLink('http://' . $_SERVER['HTTP_HOST'] . $clientRoot . '/taxa/index.php?taxauthid=1&taxon=' . $tid . '&cl=' . $clid, htmlspecialchars($sppArr['sciname']), 'scientificnameFont'); if (array_key_exists("author", $sppArr)) { $sciAuthor = str_replace('"', '"', $sppArr["author"]); $sciAuthor = str_replace(''', "'", $sciAuthor); $textrun->addText(htmlspecialchars(' ' . $sciAuthor), 'textFont');