/ -> getpdb.php
1 <?php
2 require("include.php");
3
4 // register variables
5 $pdbid=$HTTP_POST_VARS["pdbid"];
6
7 globalize_vars($post_vars, $HTTP_POST_VARS,$DBNAME,$DB_DESNAME,$system_settings);
8 printheader($httptitle);
9 if ($pdbid)
10 {
11 $string="http://www.rcsb.org/pdb/cgi/export.cgi/$pdbid.pdb?format=PDB&pdbId=$pdbid&compression=None";
12 echo "<meta http-equiv='refresh' content='1;url=$string'>";
13 }
14
15 ?>
16 <form method='post' id='pdbform' enctype='multipart/form-data' action='<?php echo $PHP_SELF?>?<?=SID?>'>
17 <?php
18
19 echo "<center><h3> This will download pdb files to your local machine<br></center></h3>";
20 echo "<table border=0 align='center'>\n";
21 echo "<tr><th>PDBID:</th><td></td>\n";
22 echo "<td><input type='text' name='pdbid' value='$pdbid' size=60>";
23 echo "<td colspan=7 align='center'><input type='submit' name='submit' value='$value'>\n";
24 echo "<input type='submit' name='submit' value='Cancel'></td></tr>\n";
25 echo "</table></form>\n";
26
27 ?>
28 <center><a href="#" onClick="MyWindow2=window.open('http://www.rcsb.org/pdb/searchlite.html','MyWindow2','toolbar=yes,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,width=600,height=300'); return false;">
29 Click here</a> to open another window to browse the rcsb database<br><p>
30 <a href="javascript:window.close();">Close Window</a></center>
31