$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': $pageStart = $_GET['pageStart']; $numberOfRecords = 20;