$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)); $phpWord->addParagraphStyle('familyPara', array('align' => 'left', 'lineHeight' => 1.0, 'spaceBefore' => 225, 'spaceAfter' => 75, 'keepNext' => true)); $phpWord->addFontStyle('familyFont', array('bold' => true, 'size' => 16, 'name' => 'Arial')); $phpWord->addParagraphStyle('scinamePara', array('align' => 'left', 'lineHeight' => 1.0, 'indent' => 0.3125, 'spaceBefore' => 0, 'spaceAfter' => 45, 'keepNext' => true)); $phpWord->addFontStyle('scientificnameFont', array('bold' => true, 'italic' => true, 'size' => 12, 'name' => 'Arial')); $phpWord->addParagraphStyle('notesvouchersPara', array('align' => 'left', 'lineHeight' => 1.0, 'indent' => 0.78125, 'spaceBefore' => 0, 'spaceAfter' => 45)); $phpWord->addParagraphStyle('imagePara', array('align' => 'center', 'lineHeight' => 1.0, 'spaceBefore' => 0, 'spaceAfter' => 0)); $tableStyle = array('width' => 100); $colRowStyle = array('cantSplit' => true, 'exactHeight' => 3750); $phpWord->addTableStyle('imageTable', $tableStyle, $colRowStyle); $imageCellStyle = array('valign' => 'center', 'width' => 2475, 'borderSize' => 15, 'borderColor' => '808080'); $blankCellStyle = array('valign' => 'center', 'width' => 2475, 'borderSize' => 15, 'borderColor' => '000000'); $section = $phpWord->addSection(array('pageSizeW' => 12240, 'pageSizeH' => 15840, 'marginLeft' => 1080, 'marginRight' => 1080, 'marginTop' => 1080, 'marginBottom' => 1080, 'headerHeight' => 0, 'footerHeight' => 0)); $title = str_replace('"', '"', $clManager->getClName()); $title = str_replace(''', "'", $title); $textrun = $section->addTextRun('defaultPara'); $textrun->addLink('http://' . $_SERVER['HTTP_HOST'] . $clientRoot . '/checklists/checklist.php?cl=' . $clValue . "&proj=" . $pid . "&dynclid=" . $dynClid, htmlspecialchars($title), 'titleFont'); $textrun->addTextBreak(1); if ($clValue) { if ($clArray['type'] == 'rarespp') { $locality = str_replace('"', '"', $clArray["locality"]); $locality = str_replace(''', "'", $locality); $textrun->addText(htmlspecialchars('Sensitive species checklist for: '), 'topicFont'); $textrun->addText(htmlspecialchars($locality), 'textFont'); $textrun->addTextBreak(1); } $authors = str_replace('"', '"', $clArray["authors"]); $authors = str_replace(''', "'", $authors); $textrun->addText(htmlspecialchars('Authors: '), 'topicFont');
$clArray = $clManager->getClMetaData(); $taxaArray = $clManager->getTaxaList(0, 99999); } ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset; ?> "/> <title><?php echo $defaultTitle; ?> Research Checklist: <?php echo $clManager->getClName(); ?> print friendly</title> <link href="../css/base.css?<?php echo $CSS_VERSION; ?> " type="text/css" rel="stylesheet" /> <link href="../css/main.css?<?php echo $CSS_VERSION; ?> " type="text/css" rel="stylesheet" /> </head> <body> <!-- This is inner text! --> <div id='innertext'> <?php
$taxaArray = array(); if ($clValue || $dynClid) { $taxaArray = $clManager->getTaxaList($pageNumber, $printMode ? 0 : 500); } ?> <html> <head> <meta charset="<?php echo $CHARSET; ?> "> <title><?php echo $DEFAULT_TITLE; ?> Research Checklist: <?php echo $clManager->getClName(); ?> </title> <link href="../css/base.css?<?php echo $CSS_VERSION; ?> " type="text/css" rel="stylesheet" /> <link href="../css/main.css?<?php echo $CSS_VERSION; ?> " type="text/css" rel="stylesheet" /> <link type="text/css" href="../css/jquery-ui.css" rel="stylesheet" /> <script type="text/javascript" src="../js/jquery.js"></script> <script type="text/javascript" src="../js/jquery-ui.js"></script> <script type="text/javascript"> <?php