<?php

include_once '../config/symbini.php';
include_once $serverRoot . '/classes/OccurrenceChecklistManager.php';
header("Content-Type: text/html; charset=" . $charset);
$checklistManager = new OccurrenceChecklistManager();
$taxonFilter = array_key_exists("taxonfilter", $_REQUEST) && $_REQUEST["taxonfilter"] ? $_REQUEST["taxonfilter"] : 1;
$interface = array_key_exists("interface", $_REQUEST) && $_REQUEST["interface"] ? $_REQUEST["interface"] : "checklist";
$stArrCollJson = array_key_exists("jsoncollstarr", $_REQUEST) ? $_REQUEST["jsoncollstarr"] : '';
$stArrSearchJson = array_key_exists("starr", $_REQUEST) ? $_REQUEST["starr"] : '';
if ($stArrCollJson && $stArrSearchJson) {
    $stArrSearchJson = str_replace("%apos;", "'", $stArrSearchJson);
    $collStArr = json_decode($stArrCollJson, true);
    $searchStArr = json_decode($stArrSearchJson, true);
    $stArr = array_merge($searchStArr, $collStArr);
    $checklistManager->setSearchTermsArr($stArr);
}
//$taxonFilter = 1;
$dynClid = $checklistManager->buildSymbiotaChecklist($taxonFilter);
if ($interface == "key") {
    header("Location: ../ident/key.php?dynclid=" . $dynClid . "&taxon=All Species");
} else {
    header("Location: ../checklists/checklist.php?dynclid=" . $dynClid);
}
<?php

include_once '../config/symbini.php';
include_once $serverRoot . '/classes/OccurrenceChecklistManager.php';
header("Content-Type: text/html; charset=" . $charset);
$checklistManager = new OccurrenceChecklistManager();
$taxonFilter = array_key_exists("taxonfilter", $_REQUEST) && $_REQUEST["taxonfilter"] ? $_REQUEST["taxonfilter"] : 1;
$interface = array_key_exists("interface", $_REQUEST) && $_REQUEST["interface"] ? $_REQUEST["interface"] : "checklist";
//$taxonFilter = 1;
$dynClid = $checklistManager->buildSymbiotaChecklist($taxonFilter);
if ($interface == "key") {
    header("Location: ../ident/key.php?dynclid=" . $dynClid . "&taxon=All Species");
} else {
    header("Location: ../checklists/checklist.php?dynclid=" . $dynClid);
}
Beispiel #3
0
<?php

include_once '../config/symbini.php';
include_once $SERVER_ROOT . '/content/lang/collections/checklist.' . $LANG_TAG . '.php';
include_once $SERVER_ROOT . '/classes/OccurrenceChecklistManager.php';
$checklistManager = new OccurrenceChecklistManager();
$taxonFilter = array_key_exists("taxonfilter", $_REQUEST) ? $_REQUEST["taxonfilter"] : 0;
$stArrCollJson = array_key_exists("jsoncollstarr", $_REQUEST) ? $_REQUEST["jsoncollstarr"] : '';
$stArrSearchJson = array_key_exists("starr", $_REQUEST) ? $_REQUEST["starr"] : '';
if ($stArrCollJson && $stArrSearchJson) {
    $stArrSearchJson = str_replace("%apos;", "'", $stArrSearchJson);
    $collStArr = json_decode($stArrCollJson, true);
    $searchStArr = json_decode($stArrSearchJson, true);
    $stArr = array_merge($searchStArr, $collStArr);
    $checklistManager->setSearchTermsArr($stArr);
}
?>
<div>
	<div class='button' style='margin:10px;float:right;width:13px;height:13px;' title='<?php 
echo $LANG['DOWNLOAD_TITLE'];
?>
'>
		<a href='download/index.php?usecookies=false&starr=<?php 
echo $stArrSearchJson;
?>
&jsoncollstarr=<?php 
echo $stArrCollJson;
?>
&dltype=checklist&taxonFilterCode=<?php 
echo $taxonFilter;
?>
Beispiel #4
0
<?php

include_once '../config/symbini.php';
include_once $serverRoot . '/classes/OccurrenceChecklistManager.php';
$checklistManager = new OccurrenceChecklistManager();
$taxonFilter = array_key_exists("taxonfilter", $_REQUEST) ? $_REQUEST["taxonfilter"] : 0;
?>

	<div>
		<div class='button' style='margin:10px;float:right;width:13px;height:13px;' title='Download Checklist Data'>
			<a href='download/index.php?dltype=checklist&taxonFilterCode=<?php 
echo $taxonFilter;
?>
'>
				<img width="15px" src="../images/dl.png" />
			</a>
		</div>
		<?php 
if ($keyModIsActive === true || $keyModIsActive === 1) {
    ?>
			<div class='button' style='margin:10px;float:right;width:13px;height:13px;' title='Open in Interactive Key Interface'>
				<a href="checklistsymbiota.php?taxonfilter=<?php 
    echo $taxonFilter;
    ?>
&interface=key">
					<img width='15px' src='../images/key.png'/>
				</a>
			</div>
		<?php 
}
if ($floraModIsActive) {