示例#1
0
<?php

include_once '../config/symbini.php';
include_once $SERVER_ROOT . '/classes/ChecklistManager.php';
header("Content-Type: text/html; charset=" . $CHARSET);
$pid = array_key_exists("pid", $_REQUEST) ? $_REQUEST["pid"] : 0;
$clManager = new ChecklistManager();
$clManager->setProj($pid);
?>
<html>
<head>
	<title><?php 
echo $DEFAULT_TITLE;
?>
 Species Lists</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" />
	<script type="text/javascript">
		<?php 
include_once $SERVER_ROOT . '/config/googleanalytics.php';
?>
	</script>
</head>

<body>
$thesFilter = array_key_exists("thesfilter", $_REQUEST) ? $_REQUEST["thesfilter"] : 0;
$taxonFilter = array_key_exists("taxonfilter", $_REQUEST) ? $_REQUEST["taxonfilter"] : "";
$showAuthors = array_key_exists("showauthors", $_REQUEST) ? $_REQUEST["showauthors"] : 0;
$showCommon = array_key_exists("showcommon", $_REQUEST) ? $_REQUEST["showcommon"] : 0;
$showImages = array_key_exists("showimages", $_REQUEST) ? $_REQUEST["showimages"] : 0;
$showVouchers = array_key_exists("showvouchers", $_REQUEST) ? $_REQUEST["showvouchers"] : 0;
$searchCommon = array_key_exists("searchcommon", $_REQUEST) ? $_REQUEST["searchcommon"] : 0;
$searchSynonyms = array_key_exists("searchsynonyms", $_REQUEST) ? $_REQUEST["searchsynonyms"] : 0;
$clManager = new ChecklistManager();
if ($clValue) {
    $clManager->setClValue($clValue);
} elseif ($dynClid) {
    $clManager->setDynClid($dynClid);
}
if ($proj) {
    $clManager->setProj($proj);
}
if ($thesFilter) {
    $clManager->setThesFilter($thesFilter);
}
if ($taxonFilter) {
    $clManager->setTaxonFilter($taxonFilter);
}
if ($searchCommon) {
    $showCommon = 1;
    $clManager->setSearchCommon();
}
if ($searchSynonyms) {
    $clManager->setSearchSynonyms();
}
if ($showAuthors) {
示例#3
0
<?php

include_once '../config/symbini.php';
include_once $SERVER_ROOT . '/classes/ChecklistManager.php';
header("Content-Type: text/html; charset=" . $CHARSET);
$projValue = $_REQUEST['proj'];
$target = array_key_exists('target', $_REQUEST) ? $_REQUEST['target'] : 'checklists';
$clManager = new ChecklistManager();
if (!$projValue && isset($DEFAULT_PROJ_ID)) {
    $projValue = $DEFAULT_PROJ_ID;
}
$clManager->setProj($projValue);
?>
<html>
	<head>
		<title><?php 
echo $DEFAULT_TITLE;
?>
 - Species Checklists</title>
		<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
		<script type="text/javascript" src="//maps.googleapis.com/maps/api/js?sensor=false">
		</script>
		<script type="text/javascript">
		    var map;
		    var points = new Array();
		    var infoWins = new Array();
		  	
		    function initialize(){
		    	var dmLatLng = new google.maps.LatLng(41.0, -95.0);
		    	var dmOptions = {
					zoom: 3,
    $clArray = $clManager->getClMetaData();
}
$showDetails = 0;
/*if($clValue && $clArray["defaultSettings"]){
	$defaultArr = json_decode($clArray["defaultSettings"], true);
	$showDetails = $defaultArr["ddetails"];
	if($action != "Rebuild List"){
		$showCommon = $defaultArr["dcommon"];
		$showImages = $defaultArr["dimages"]; 
		$showVouchers = $defaultArr["dvouchers"];
		$showAuthors = $defaultArr["dauthors"];
		$showAlphaTaxa = $defaultArr["dalpha"];
	}
}*/
if ($pid) {
    $clManager->setProj($pid);
} elseif (array_key_exists("proj", $_REQUEST)) {
    $pid = $clManager->setProj($_REQUEST['proj']);
}
if ($thesFilter) {
    $clManager->setThesFilter($thesFilter);
}
if ($taxonFilter) {
    $clManager->setTaxonFilter($taxonFilter);
}
if ($searchCommon) {
    $showCommon = 1;
    $clManager->setSearchCommon();
}
if ($searchSynonyms) {
    $clManager->setSearchSynonyms();