예제 #1
0
    } else {
        // Load current values.
        $_POST = array_merge($_POST, $zData);
    }
    $_T->printHeader();
    $_T->printTitle();
    if (!lovd_error()) {
        print '      To edit this transcript, please complete the form below and press "Edit" at the bottom of the form.<BR>' . "\n" . '      <BR>' . "\n\n";
    }
    lovd_errorPrint();
    // Tooltip JS code.
    lovd_includeJS('inc-js-tooltip.php');
    // Table.
    print '      <FORM action="' . CURRENT_PATH . '?' . ACTION . '" method="post">' . "\n";
    // Array which will make up the form table.
    $aForm = array_merge($_DATA->getForm(), array(array('', '', 'submit', 'Edit transcript information entry')));
    lovd_viewForm($aForm);
    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);