echo "<br /><br /><img src='images/help.gif' style='float:left;'> "; echo "Visit the <a href='http://www.niso.org/workrooms/sushi/registry_server/' target='_blank'>SUSHI Server Registry</a> for information about adding your provider."; break; case 'getStatsTable': $publisherPlatformID = $_GET['publisherPlatformID']; $platformID = $_GET['platformID']; $year = $_GET['year']; $archiveInd = $_GET['archiveInd']; $resourceType = $_GET['resourceType']; $monthArray = array(); if ($publisherPlatformID) { $publisherPlatform = new PublisherPlatform(new NamedArguments(array('primaryKey' => $publisherPlatformID))); $monthArray = $publisherPlatform->getAvailableMonths($resourceType, $archiveInd, $year); } else { $platform = new Platform(new NamedArguments(array('primaryKey' => $platformID))); $monthArray = $platform->getAvailableMonths($resourceType, $archiveInd, $year); } foreach ($monthArray as $month) { if ($month['archiveInd'] == "1") { $archive = ' (archive)'; } else { $archive = ''; } echo "<label for='month' class='month'><b>" . numberToMonth($month['month']) . " " . $month['year'] . "</b> " . $archive . "</label>"; echo "<label for='deleteStats' class='deleteStats'><a href=\"javascript:deleteMonth('" . $month['month'] . "','" . $month['year'] . "','" . $month['archiveInd'] . "', '" . $publisherPlatformID . "', '" . $platformID . "')\">delete entire month</a></label>"; //monthly ouliers if ($publisherPlatformID) { $outlierCount = count($publisherPlatform->getMonthlyOutliers($month['resourceType'], $month['archiveInd'], $month['year'], $month['month'])); } else { $outlierCount = count($platform->getMonthlyOutliers($month['resourceType'], $month['archiveInd'], $month['year'], $month['month'])); }