Lines Matching refs:pdbid
50 list($cmd,$pdbid) = $query;
51 $pdbid = urlencode($pdbid);
55 $filename = $this->imgCache->GetMediaPath($pdbid);
56 if ($this->rcsb->DownloadImage($pdbid,$filename)!==false)
57 $renderer->doc.= $this->getImageHtml($pdbid,$cmd).NL;
63 $summaryXML = $this->getSummaryXML($pdbid);
65 $renderer->doc.= $this->getTextHtml($pdbid,$cmd,$summaryXML);
71 $filename = $this->imgCache->GetMediaPath($pdbid);
72 if ($this->rcsb->DownloadImage($pdbid,$filename)!==false)
73 $imageHtml = $this->getImageHtml($pdbid,"small").NL;
79 $summaryXML = $this->getSummaryXML($pdbid);
81 $textHtml = $this->getTextHtml($pdbid,"long",$summaryXML);
96 $renderer->doc .= $this->rcsb->ExplorerLink($pdbid);
100 $summaryXML = $this->getSummaryXML($pdbid);
105 $summaryXML = $this->getSummaryXML($pdbid);
110 $renderer->doc.=$pdbid." was not found.";
141 function getImageHtml($pdbid,$type){ argument
142 $pdbid = $this->rcsb->PDBformat($pdbid);
143 if ($pdbid===false) return NULL;
144 $url = $this->imgCache->GetMediaLink($pdbid);
146 $html = '<a href="'.$this->rcsb->ExplorerURL($pdbid).'"><div class="pdb_image'.$w.'">';
147 $html.= '<img src="'.$url.'" alt="PDB image" title="'.$pdbid.'" width="'.$w.'"/>';
155 function getTextHtml($pdbid,$type,$summaryXML){ argument
162 $html ='<div class="pdb_plugin"><a href="'.$this->rcsb->ExplorerURL($pdbid).'">';