예제 #1
0
include_once '../../config/symbini.php';
include_once $serverRoot . '/classes/CollectionProfileManager.php';
header("Content-Type: text/html; charset=" . $charset);
ini_set('max_execution_time', 1200);
//1200 seconds = 20 minutes
$catId = array_key_exists("catid", $_REQUEST) ? $_REQUEST["catid"] : 0;
if (!$catId && isset($DEFAULTCATID) && $DEFAULTCATID) {
    $catId = $DEFAULTCATID;
}
$collId = array_key_exists("collid", $_REQUEST) ? $_REQUEST["collid"] : 0;
$totalCnt = array_key_exists("totalcnt", $_REQUEST) ? $_REQUEST["totalcnt"] : 0;
$collManager = new CollectionProfileManager();
$orderArr = array();
if ($collId) {
    $orderArr = $collManager->getOrderStatsDataArr($collId);
    ksort($orderArr, SORT_STRING | SORT_FLAG_CASE);
}
?>
<html>
	<head>
		<meta name="keywords" content="Natural history collections yearly statistics" />
		<title><?php 
echo $defaultTitle;
?>
 Order Distribution</title>
		<link rel="stylesheet" href="../../css/base.css?<?php 
echo $CSS_VERSION;
?>
" type="text/css" />
		<link rel="stylesheet" href="../../css/main.css?<?php