示例#1
0
include_once '../config/symbini.php';
include_once $serverRoot . '/classes/ChecklistManager.php';
header("Content-Type: text/html; charset=" . $charset);
$clid = $_REQUEST['clid'];
$thesFilter = array_key_exists("thesfilter", $_REQUEST) ? $_REQUEST["thesfilter"] : 0;
$taxonFilter = array_key_exists("taxonfilter", $_REQUEST) ? $_REQUEST["taxonfilter"] : "";
$clManager = new ChecklistManager();
$clManager->setClValue($clid);
if ($thesFilter) {
    $clManager->setThesFilter($thesFilter);
}
if ($taxonFilter) {
    $clManager->setTaxonFilter($taxonFilter);
}
$coordArr = $clManager->getCoordinates(0);
$swBound;
$neBound;
if ($coordArr) {
    $swBound = $coordArr['sw'];
    $neBound = $coordArr['ne'];
    unset($coordArr['sw']);
    unset($coordArr['ne']);
}
?>
<html>
<head>
	<title><?php 
echo $defaultTitle;
?>
 - Checklist Coordinate Map</title>
示例#2
0
											<input type="submit" name="submitadd" value="Add Species to List"/>
											<hr />
										</div>
										<div style="text-align:center;">
											<a href="tools/checklistloader.php?clid=<?php 
            echo $clid . '&pid=' . $pid;
            ?>
">Batch Upload Spreadsheet</a>
										</div>
									</fieldset>
								</form>
							</div>
							<?php 
        }
        if (!$showImages) {
            if ($coordArr = $clManager->getCoordinates(0, true)) {
                ?>
								<div style="text-align:center;padding:10px">
									<a href="checklistmap.php?clid=<?php 
                echo $clid . '&thesfilter=' . $thesFilter . '&taxonfilter=' . $taxonFilter;
                ?>
" target="_blank">
										<img src="http://maps.google.com/maps/api/staticmap?size=170x170&maptype=terrain&sensor=false&markers=size:tiny|<?php 
                echo implode('|', $coordArr);
                ?>
" style="border:0px;" />
									</a>
								</div>
								<?php 
            }
        }