print '</FORM>' . "\n\n"; $_T->printFooter(); exit; } if (PATH_COUNT == 2 && ctype_digit($_PE[1]) && ACTION == 'delete') { // URL: /transcripts/00001?delete // Drop specific entry. $nID = sprintf('%08d', $_PE[1]); define('PAGE_TITLE', 'Delete transcript information entry #' . $nID); define('LOG_EVENT', 'TranscriptDelete'); // Load appropriate user level for this transcript. lovd_isAuthorized('transcript', $nID); // This call will make database queries if necessary. lovd_requireAUTH(LEVEL_CURATOR); require ROOT_PATH . 'class/object_transcripts.php'; $_DATA = new LOVD_Transcript(); $zData = $_DATA->loadEntry($nID); require ROOT_PATH . 'inc-lib-form.php'; if (!empty($_POST)) { lovd_errorClean(); // Mandatory fields. if (empty($_POST['password'])) { lovd_errorAdd('password', 'Please fill in the \'Enter your password for authorization\' field.'); } // User had to enter his/her password for authorization. if ($_POST['password'] && !lovd_verifyPassword($_POST['password'], $_AUTH['password'])) { lovd_errorAdd('password', 'Please enter your correct password for authorization.'); } if (!lovd_error()) { // Query text. // This also deletes the entries in variants.
$aNavigation[$_PE[0] . '/' . $sID . '?sortCurators'] = array('', 'Sort/hide curator names', 1); } $aNavigation[$_PE[0] . '/' . $sID . '?empty'] = array('menu_empty.png', 'Empty this gene database', (bool) $zData['variants']); $aNavigation[$_PE[0] . '/' . $sID . '/graphs'] = array('menu_graphs.png', 'View graphs about this gene database', 1); $aNavigation[$_PE[0] . '/' . $sID . '/columns'] = array('menu_columns.png', 'View enabled variant columns', 1); $aNavigation[$_PE[0] . '/' . $sID . '/columns?order'] = array('menu_columns.png', 'Re-order enabled variant columns', 1); $aNavigation['columns/VariantOnTranscript'] = array('menu_columns.png', 'View all available variant columns', 1); $aNavigation['download/all/gene/' . $sID] = array('menu_save.png', 'Download all this gene\'s data', 1); $aNavigation['javascript:lovd_openWindow(\'' . lovd_getInstallURL() . 'scripts/refseq_parser.php?step=1&symbol=' . $sID . '\', \'refseq_parser\', 900, 500);'] = array('menu_scripts.png', 'Create human-readable refseq file', $zData['refseq_UD'] && count($zData['transcripts'])); } lovd_showJGNavigation($aNavigation, 'Genes'); $_GET['search_geneid'] = '="' . $sID . '"'; print '<BR><BR>' . "\n\n"; $_T->printTitle('Active transcripts', 'H4'); require ROOT_PATH . 'class/object_transcripts.php'; $_DATA = new LOVD_Transcript(); $_DATA->setSortDefault('variants'); $_DATA->viewList('Transcripts_for_G_VE', 'geneid', true, true); // Disclaimer. if ($zData['disclaimer']) { print '<BR>' . "\n\n" . ' <TABLE border="0" cellpadding="0" cellspacing="1" width="950" class="data">' . "\n" . ' <TR>' . "\n" . ' <TH class="S15">Copyright & disclaimer</TH></TR>' . "\n" . ' <TR class="S11">' . "\n" . ' <TD>' . $zData['disclaimer_text_'] . '</TD></TR></TABLE><BR>' . "\n\n"; } lovd_printGeneFooter(); $_T->printFooter(); exit; } if (PATH_COUNT == 1 && ACTION == 'create') { // URL: /genes?create // Create a new entry. define('PAGE_TITLE', 'Create a new gene information entry'); define('LOG_EVENT', 'GeneCreate');