Ejemplo n.º 1
0
         } else {
             // Just added this entry, continue to send an email.
             if (!isset($_SESSION['work']['submits']['phenotype'])) {
                 $_SESSION['work']['submits']['phenotype'] = array();
             }
             while (count($_SESSION['work']['submits']['phenotype']) >= 10) {
                 unset($_SESSION['work']['submits']['phenotype'][min(array_keys($_SESSION['work']['submits']['phenotype']))]);
             }
             $_SESSION['work']['submits']['phenotype'][$nID] = $nID;
             header('Location: ' . lovd_getInstallURL() . 'submit/finish/phenotype/' . $nID);
         }
         exit;
     }
 } else {
     // Default values.
     $_DATA->setDefaultValues();
 }
 $_T->printHeader();
 $_T->printTitle();
 if (GET) {
     print '      To create a new phenotype information entry, please fill out the form below.<BR>' . "\n" . '      <BR>' . "\n\n";
 }
 lovd_errorPrint();
 // Tooltip JS code.
 lovd_includeJS('inc-js-tooltip.php');
 lovd_includeJS('inc-js-custom_links.php');
 // Table.
 print '      <FORM action="' . CURRENT_PATH . '?create&amp;target=' . $_GET['target'] . '" method="post">' . "\n";
 // Array which will make up the form table.
 $aForm = array_merge($_DATA->getForm(), array(array('', '', 'print', '<INPUT type="submit" value="Create phenotype information entry">' . ($bSubmit ? '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<INPUT type="submit" value="Cancel" onclick="window.location.href=\'' . lovd_getInstallURL() . 'submit/individual/' . $_POST['individualid'] . '\'; return false;" style="border : 1px solid #FF4422;">' : ''))));
 lovd_viewForm($aForm);