示例#1
0
<?php

include_once '../../config/symbini.php';
include_once $SERVER_ROOT . '/classes/TaxonomyEditorManager.php';
header("Content-Type: text/html; charset=" . $CHARSET);
if (!$SYMB_UID) {
    header('Location: ' . $CLIENT_ROOT . '/profile/index.php?refurl=../taxa/admin/taxonomyloader.php?' . $_SERVER['QUERY_STRING']);
}
$tid = array_key_exists("tid", $_REQUEST) ? $_REQUEST["tid"] : "";
$status = "";
$loaderObj = new TaxonomyEditorManager();
$isEditor = false;
if ($IS_ADMIN || array_key_exists("Taxonomy", $USER_RIGHTS)) {
    $isEditor = true;
}
if ($isEditor) {
    if (array_key_exists('sciname', $_POST)) {
        $status = $loaderObj->loadNewName($_POST);
        if (is_int($status)) {
            header("Location: taxonomyeditor.php?tid=" . $status);
        }
    }
}
?>
<html>
<head>
	<title><?php 
echo $DEFAULT_TITLE;
?>
 Taxon Loader: </title>
	<meta http-equiv="Content-Type" content="text/html; charset=<?php 
示例#2
0
<?php

include_once '../../config/symbini.php';
include_once $SERVER_ROOT . '/classes/TaxonomyEditorManager.php';
header("Content-Type: text/html; charset=" . $CHARSET);
if (!$SYMB_UID) {
    header('Location: ' . $CLIENT_ROOT . '/profile/index.php?refurl=../taxa/admin/taxonomyeditor.php?' . $_SERVER['QUERY_STRING']);
}
$submitAction = array_key_exists('submitaction', $_REQUEST) ? $_REQUEST['submitaction'] : '';
$tabIndex = array_key_exists('tabindex', $_REQUEST) ? $_REQUEST['tabindex'] : 0;
$tid = $_REQUEST["tid"];
$taxAuthId = array_key_exists('taxauthid', $_REQUEST) ? $_REQUEST["taxauthid"] : 1;
$taxonEditorObj = new TaxonomyEditorManager();
$taxonEditorObj->setTid($tid);
$taxonEditorObj->setTaxAuthId($taxAuthId);
$editable = false;
if ($IS_ADMIN || array_key_exists("Taxonomy", $USER_RIGHTS)) {
    $editable = true;
}
$statusStr = '';
if ($editable) {
    if (array_key_exists("taxonedits", $_POST)) {
        $statusStr = $taxonEditorObj->submitTaxonEdits($_POST);
    } elseif ($submitAction == 'updatetaxstatus') {
        $statusStr = $taxonEditorObj->submitTaxStatusEdits($_POST['parenttid'], $_POST['tidaccepted']);
    } elseif (array_key_exists("synonymedits", $_REQUEST)) {
        $statusStr = $taxonEditorObj->submitSynonymEdits($_POST['tidsyn'], $tid, $_POST['unacceptabilityreason'], $_POST['notes'], $_POST['sortsequence']);
    } elseif ($submitAction == 'linktoaccepted') {
        $deleteOther = array_key_exists("deleteother", $_REQUEST) ? true : false;
        $statusStr = $taxonEditorObj->submitAddAcceptedLink($_REQUEST["tidaccepted"], $deleteOther);
    } elseif (array_key_exists('deltidaccepted', $_REQUEST)) {
<?php

include_once '../../config/symbini.php';
include_once $serverRoot . '/classes/TaxonomyEditorManager.php';
$tid = $_REQUEST["tid"];
$genusStr = array_key_exists('genusstr', $_REQUEST) ? $_REQUEST["genusstr"] : '';
$taxonEditorObj = new TaxonomyEditorManager();
$taxonEditorObj->setTid($tid);
$verifyArr = $taxonEditorObj->verifyDeleteTaxon();
?>
<script language=javascript>

$(document).ready(function() {

	$("#remaptvalue").autocomplete({ 
			source: "rpc/gettaxasuggest.php",  
			minLength: 2
		}
	);
});

function submitRemapTaxonForm(f){
	taxonValue = f.remaptvalue.value;
	if(taxonValue == ""){
		alert("Target taxon does not appear to be null. Please submit a taxon to remap the resources");
		return false;
	}
	var xmlHttp=GetXmlHttpObject();
	if(xmlHttp==null){
  		alert ("Your browser does not support AJAX!");
  		return;