示例#1
0
<?php

include_once '../config/symbini.php';
include_once $SERVER_ROOT . '/content/lang/collections/index.' . $LANG_TAG . '.php';
include_once $SERVER_ROOT . '/classes/OccurrenceManager.php';
header("Content-Type: text/html; charset=" . $CHARSET);
$catId = array_key_exists("catid", $_REQUEST) ? $_REQUEST["catid"] : 0;
if (!is_numeric($catId)) {
    $catId = 0;
}
if (!$catId && isset($DEFAULTCATID) && $DEFAULTCATID) {
    $catId = $DEFAULTCATID;
}
$collManager = new OccurrenceManager();
//$collManager->reset();
$collList = $collManager->getFullCollectionList($catId);
$specArr = isset($collList['spec']) ? $collList['spec'] : null;
$obsArr = isset($collList['obs']) ? $collList['obs'] : null;
$otherCatArr = $collManager->getOccurVoucherProjects();
?>

<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=<?php 
echo $CHARSET;
?>
">
		<title><?php 
echo $DEFAULT_TITLE . ' ' . $LANG['PAGE_TITLE'];
?>
</title>