<?php break; case 'getYearlyOverrideForm': if (isset($_GET['platformID'])) { $platformID = $_GET['platformID']; } else { $platformID = ''; } if (isset($_GET['publisherPlatformID'])) { $publisherPlatformID = $_GET['publisherPlatformID']; } $archiveInd = $_GET['archiveInd']; $year = $_GET['year']; $statsArray = array(); if ($publisherPlatformID) { $publisherPlatform = new PublisherPlatform(new NamedArguments(array('primaryKey' => $publisherPlatformID))); $publisher = new Publisher(new NamedArguments(array('primaryKey' => $publisherPlatform->publisherID))); $platform = new Platform(new NamedArguments(array('primaryKey' => $publisherPlatform->platformID))); $nameDisplay = $publisher->name . " / " . $platform->name; $statsArray = $publisherPlatform->getYearlyOverrides($archiveInd, $year); } else { $platform = new Platform(new NamedArguments(array('primaryKey' => $platformID))); $nameDisplay = $platform->name; $statsArray = $platform->getYearlyOverrides($archiveInd, $year); } $totalRows = count($statsArray); ?> <div id='div_overrideForm'> <table class="thickboxTable" style="background-image:url('images/tbtitle.gif');width:410px;"> <tr>
$platform = new Platform(new NamedArguments(array('primaryKey' => $_GET['platformID']))); if ($platform->reportDropDownInd == '1') { $reportDropDownInd = 'checked'; } else { $reportDropDownInd = ''; } echo "<input type='checkbox' id='chk_Platform_" . $platform->platformID . "' onclick='javascript:updatePlatformDropDown(" . $platform->platformID . ");' {$reportDropDownInd}>"; echo " <span class='PlatformText'>" . $platform->name . "</span>"; if ($platform->reportDisplayName) { echo " (<i>" . $platform->reportDisplayName . "</i>)"; } echo " <a href='ajax_forms.php?action=getReportDisplayForm&height=122&width=248&type=Platform&updateID=" . $platform->platformID . "&modal=true' class='thickbox'>edit report display name</a><br />"; break; case 'getPublisherReportDisplay': $publisherPlatformID = $_GET['publisherPlatformID']; $publisherPlatform = new PublisherPlatform(new NamedArguments(array('primaryKey' => $_GET['publisherPlatformID']))); $publisher = new Publisher(new NamedArguments(array('primaryKey' => $publisherPlatform->publisherID))); $result = mysqli_query($publisherPlatform->getDatabase(), "select distinct pp.publisherPlatformID, Publisher.name Publisher, pp.reportDisplayName reportPublisher, pp.reportDropDownInd from Publisher_Platform pp, Publisher where pp.publisherID = Publisher.publisherID and pp.publisherPlatformID = '" . $publisherPlatformID . "';"); if ($publisherPlatform->reportDropDownInd == '1') { $reportDropDownInd = 'checked'; } else { $reportDropDownInd = ''; } echo "<table><tr valign='top'><td><input type='checkbox' id='chk_Publisher_" . $publisherPlatform->publisherPlatformID . "' onclick='javascript:updatePublisherDropDown(" . $publisherPlatform->publisherPlatformID . ");' {$reportDropDownInd}></td>"; echo "<td>" . $publisher->name; if ($publisherPlatform->reportDisplayName) { echo " (<i>" . $publisherPlatform->reportDisplayName . "</i>)"; } echo " <a href='ajax_forms.php?action=getReportDisplayForm&height=122&width=248&type=Publisher&updateID=" . $publisherPlatform->publisherPlatformID . "&modal=true' class='thickbox'>edit report display name</a></td></tr></table>"; break; case 'getImportTable':
} catch (Exception $e) { echo $e->getMessage(); } break; case 'updatePublisherDisplay': $publisherPlatform = new PublisherPlatform(new NamedArguments(array('primaryKey' => $_GET['updateID']))); $publisherPlatform->reportDisplayName = $_GET['reportDisplayName']; try { $publisherPlatform->save(); echo _("Publisher Reporting Display Name has been updated"); } catch (Exception $e) { echo $e->getMessage(); } break; case 'updatePublisherDropDown': $publisherPlatform = new PublisherPlatform(new NamedArguments(array('primaryKey' => $_GET['publisherPlatformID']))); $publisherPlatform->reportDropDownInd = $_GET['dropDownInd']; try { $publisherPlatform->save(); echo _("Default display list has been updated"); } catch (Exception $e) { echo $e->getMessage(); } break; case 'submitUserData': if ($_GET['orgLoginID']) { $user = new User(new NamedArguments(array('primaryKey' => $_GET['orgLoginID']))); } else { $user = new User(); } $user->loginID = $_GET['loginID'];