The site has moved. Please update your bookmarks.

If you are not redirected, click here to access the PDSP IMS site.




pdspView(); $this->numCols = 12; } // override this if you have a different column setup function printAverageRow($kiTotal, $kiNum) { //print("printing average row: ".$kiTotal.", ".$kiNum."
"); $colorTD = ""; if ($kiNum > 0) { print("".$colorTD." "); if ($kiNum == 1) { print("colspan=\"".$this->numCols."\"> "); } else { $ave = sprintf("%.2f", ($kiTotal/$kiNum)); print("colspan=5>Average".$colorTD." colspan=1>". $ave."".$colorTD." colspan=6> "); } print("\n"); } else { print("".$colorTD." "); print("colspan=\"".$this->numCols."\"> "); } } // override for more (or less) columns function printHeaderRow() { print("ID". "Receptor/Aliases". "UniGene". "Test Ligand Name/Aliases". "Test Ligand Image". "NCI". "Ki (nM)". "PubChem". "Hot Ligand/Aliases". "Species". "Source". "Reference"); } // this is the other method you want to override for pdspImg! function printRow($queryRow) { $this->printKiKey($queryRow); $this->printRecAlias($queryRow); $this->printHGS($queryRow); $this->printTestAlias($queryRow); $this->printTestImage($queryRow); //$this->printRecAlias($queryRow); $this->printNCI($queryRow); $this->printKi($queryRow); $this->printPCC($queryRow); $this->printPCS($queryRow); $this->printHotAlias($queryRow); $this->printSpecies($queryRow); $this->printSource($queryRow); $this->printReference($queryRow); } function printTestImage($queryRow) { print($this->td); if (!strcmp(trim($queryRow['tstImgFile']), "") == 0) { // $imageString = "".$tstName.""; $imageString = "\"".$queryRow['thisAliasString']."\""; } else { $imageString = "N/A"; } print($imageString); print(""); } } ?>