Location: PHPKode > projects > MyPHPBib > bib_pubmed_import.php
<?php

require_once ('login/user.inc.php');
//$user->MembersOnly(); // this will check if user can access page, and bounce them if not
include ('phpbib/phpbib.inc.php');

?><?php include ('header.inc.php'); ?>
<!--<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>
    </title>
  </head> -->
  <body>
    <?php include ('top.inc.php'); ?>
    <?php

	$user->MembersOnly();

    if ( ereg ( "MSIE" , $_SERVER['HTTP_USER_AGENT'] ))
    {
	    echo "<script language=\"JavaScript1.2\">\n";
    }
    else
    {
		echo "<script language=\"JavaScript1.2\" type=\"application/x-javascript\">\n";
    }
    ?>
    function validatePubMedForm(form) { var str = form.PMID.value; var re = /^[0-9]*$/; if (form.PMID.value == "") { alert("Please enter a PubMed number."); form.PMID.focus(); return false; } if (re.test(str)) { return true; } alert("\"" + str + "\" is not a number."); form.PMID.select(); form.PMID.focus(); return false; }  
    </script>
    
    <div id="content">
      <p>
        To fetch a publication from PubMed enter the PubMed identifier below.
      </p>
      <form name="form1" method="get" action="bib_pubmed_import_action.php" onsubmit="return validatePubMedForm(this)">
        <label class="myForm">PubMed ID:</label> 
	<input class="myForm" name="PMID" type="text" id="PMID" size="10" /> 
<input 
class="myForm" type="submit" name="Submit" value="Go" />
      </form>
    </div>
    <?php include ('footer.inc.php'); ?>
  </body>
</html>

Return current item: MyPHPBib