<div style="margin:3px;"> <b>Families:</b> <?php echo $clManager->getFamilyCount(); ?> </div> <div style="margin:3px;"> <b>Genera:</b> <?php echo $clManager->getGenusCount(); ?> </div> <div style="margin:3px;"> <b>Species:</b> <?php echo $clManager->getSpeciesCount(); ?> (species rank) </div> <div style="margin:3px;"> <b>Total Taxa:</b> <?php echo $clManager->getTaxaCount(); ?> (including subsp. and var.) </div> <?php $prevfam = ''; if ($showImages) { foreach ($taxaArray as $tid => $sppArr) { $family = $sppArr['family'];
$textrun->addText(htmlspecialchars('Notes: '), 'topicFont'); $textrun->addText(htmlspecialchars($notes), 'textFont'); $textrun->addTextBreak(1); } } $textrun = $section->addTextRun('linePara'); $textrun->addLine(array('weight' => 1, 'width' => 670, 'height' => 0)); $textrun = $section->addTextRun('defaultPara'); $textrun->addText(htmlspecialchars('Families: '), 'topicFont'); $textrun->addText(htmlspecialchars($clManager->getFamilyCount()), 'textFont'); $textrun->addTextBreak(1); $textrun->addText(htmlspecialchars('Genera: '), 'topicFont'); $textrun->addText(htmlspecialchars($clManager->getGenusCount()), 'textFont'); $textrun->addTextBreak(1); $textrun->addText(htmlspecialchars('Species: '), 'topicFont'); $textrun->addText(htmlspecialchars($clManager->getSpeciesCount() . ' (species rank)'), 'textFont'); $textrun->addTextBreak(1); $textrun->addText(htmlspecialchars('Total Taxa: '), 'topicFont'); $textrun->addText(htmlspecialchars($clManager->getTaxaCount() . ' (including subsp. and var.)'), 'textFont'); $textrun->addTextBreak(1); $prevfam = ''; if ($showImages) { $imageCnt = 0; $table = $section->addTable('imageTable'); foreach ($taxaArray as $tid => $sppArr) { $imageCnt++; $family = $sppArr['family']; $tu = array_key_exists('tnurl', $sppArr) ? $sppArr['tnurl'] : ''; $u = array_key_exists('url', $sppArr) ? $sppArr['url'] : ''; $imgSrc = $tu ? $tu : $u; if ($imageCnt % 4 == 1) {