示例#1
0
         $reportDropDownInd = 'checked';
     } else {
         $reportDropDownInd = '';
     }
     echo "<input type='checkbox' id='chk_Platform_" . $platform->platformID . "' onclick='javascript:updatePlatformDropDown(" . $platform->platformID . ");' {$reportDropDownInd}>";
     echo "&nbsp;&nbsp;&nbsp;&nbsp;<span class='PlatformText'>" . $platform->name . "</span>";
     if ($platform->reportDisplayName) {
         echo "&nbsp;&nbsp;(<i>" . $platform->reportDisplayName . "</i>)";
     }
     echo "&nbsp;&nbsp;<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 "&nbsp;&nbsp;(<i>" . $publisherPlatform->reportDisplayName . "</i>)";
     }
     echo "&nbsp;&nbsp;<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;