示例#1
0
文件: dataentry.php 项目: uhtoff/eCRF
    exit;
}
$trial->writeHead();
echo "<body>";
echo "<div id=\"wrap\">";
$trial->writeNavBar();
echo '<div class="container well">';
if (isset($_SESSION['error']) && $_SESSION['error']) {
    echo "<div class=\"alert alert-error\">";
    echo "<button type=\"button\" class=\"close\" data-dismiss=\"alert\">&times;</button>";
    echo "{$_SESSION['error']}";
    echo "</div>";
    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\">&times;</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\">";