示例#1
0
$pageNumber = array_key_exists("pagenumber", $_REQUEST) ? $_REQUEST["pagenumber"] : 0;
$proj = array_key_exists("proj", $_REQUEST) ? $_REQUEST["proj"] : "";
//Display option
$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;
$thesFilter = array_key_exists("thesfilter", $_REQUEST) ? $_REQUEST["thesfilter"] : 0;
//Search options
$taxonFilter = array_key_exists("taxonfilter", $_REQUEST) ? $_REQUEST["taxonfilter"] : "";
$searchCommon = array_key_exists("searchcommon", $_REQUEST) ? $_REQUEST["searchcommon"] : 0;
$searchSynonyms = array_key_exists("searchsynonyms", $_REQUEST) ? $_REQUEST["searchsynonyms"] : 0;
$editMode = array_key_exists("emode", $_REQUEST) ? $_REQUEST["emode"] : "";
$clManager = new SurveyManager($surveyId);
if ($proj) {
    $clManager->setProj($proj);
}
if ($thesFilter) {
    $clManager->setThesFilter($thesFilter);
}
if ($taxonFilter) {
    $clManager->setTaxonFilter($taxonFilter);
}
if ($searchCommon) {
    $clManager->setSearchCommon();
}
if ($searchSynonyms) {
    $clManager->setSearchSynonyms();
}
if ($showAuthors) {
    $clManager->setShowAuthors();