示例#1
0
     } else {
         echo "\n(none found)<br /><br /><a href='ajax_forms.php?action=getSushiForm&sushiServiceID=&platformID=" . $platformID . "&height=530&width=518&modal=true' class='thickbox'>Add SUSHI Connection</a><br />";
     }
     echo "<br /><br /><img src='images/help.gif' style='float:left;'>&nbsp;&nbsp;";
     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 = '&nbsp;(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']));