unset($_SESSION['error']); } $trial->writeCore(); $trial->writeDataNav(); echo "<div class=\"tab-content\">"; echo "<div class=\"tab-pane active\">"; if ($trial->getSubPage()) { $trial->writeSubDataNav(); echo "<div class=\"tab-content\">"; } $form = new HTMLForm('adddata.php', 'post'); if ($page == 'signpt') { echo "<div class=\"alert alert-success\">"; echo "<button type=\"button\" class=\"close\" data-dismiss=\"alert\">×</button>"; echo "<p>Don't forget to write the " . Config::get('idName') . " on your paper case record form. You may need to come back and check your data.</p>"; echo "<h4>The " . Config::get('idName') . " for this record is {$trial->getTrialID()}"; echo "</div>"; if ($complete = $trial->checkAllComplete()) { echo "<div class=\"alert alert-info\">"; echo "<button type=\"button\" class=\"close\" data-dismiss=\"alert\">×</button>"; echo "<p>The following pages are incomplete -</p>"; echo "<ul>"; foreach ($complete as $c) { echo "<li>{$c}</li>"; } echo "</ul>"; echo "</div>"; $form->addInput('hidden', 'incomplete', '1'); } if ($comment = $trial->record->get('comment')) { echo "<div class=\"alert alert-info\">";