예제 #1
0
파일: jail.php 프로젝트: nkiourt/amacs
        echo "document.all['last_date'].style.display = '';";
    }
    if ($resultrow['Lost2FollowUp'] == "3") {
        echo "document.all['NewClinic'].value = '" . $resultrow['NewClinic'] . "'; ";
        echo "document.all['newcli'].style.display = '';";
    }
    echo "document.all.Notes_lost.value='" . $resultrow['Notes'] . "';\n";
    echo "document.all['lost'].style.display = '';";
    echo "</script>";
}
if ($last_state == "2") {
    echo "<script>";
    echo "document.all.LastState.value='2';\n";
    echo "document.all['DeathDate_year'].value = '" . retyear($resultrow['DeathDate']) . "'; ";
    echo "document.all['DeathDate_month'].value = '" . retmonth($resultrow['DeathDate']) . "'; ";
    echo "document.all['DeathDate_day'].value = '" . retday($resultrow['DeathDate']) . "'; ";
    echo "document.all.Notes_death.value='" . $resultrow['Notes'] . "';\n";
    echo "document.all['death_extra'].style.display = '';";
    if (is_numeric($resultrow['Immediate'][0])) {
        echo "document.all.Immediate.value='" . $resultrow['Immediate'] . "';\n";
    } else {
        echo "document.all.Immediate.value='90';\n";
        echo "document.all.othercause1.value='" . $resultrow['Immediate'] . "';\n";
    }
    if (is_numeric($resultrow['Underlying'][0])) {
        echo "document.all.Underlying.value='" . $resultrow['Underlying'] . "';\n";
    } else {
        echo "document.all.Underlying.value='90';\n";
        echo "document.all.othercause6.value='" . $resultrow['Underlying'] . "';\n";
    }
    if (is_numeric($resultrow['Contributing1'][0]) && $resultrow['Contributing1'] != NULL) {
예제 #2
0
    echo "</script>";
}
if ($last_state == "2") {
    echo "<script>";
    echo "document.all.LastState.value='2';\n";
    if ($resultrow['DeathDate'] != "") {
        echo "document.all['DeathDate_year'].value = '" . retyear($resultrow['DeathDate']) . "'; ";
        echo "document.all['DeathDate_month'].value = '" . retmonth($resultrow['DeathDate']) . "'; ";
        echo "document.all['DeathDate_day'].value = '" . retday($resultrow['DeathDate']) . "'; ";
        echo "toggle_death_date('1');\n";
        echo "document.all['deathdatetype'].value = '1';\n";
    }
    if ($resultrow['DateDeathKnown'] != "") {
        echo "document.all['DateDeathKnown_year'].value = '" . retyear($resultrow['DateDeathKnown']) . "'; ";
        echo "document.all['DateDeathKnown_month'].value = '" . retmonth($resultrow['DateDeathKnown']) . "'; ";
        echo "document.all['DateDeathKnown_day'].value = '" . retday($resultrow['DateDeathKnown']) . "'; ";
        echo "toggle_death_date('0');\n";
        echo "document.all['deathdatetype'].value = '0';\n";
    }
    echo "document.all['Notes_death'].value='" . $resultrow['Notes'] . "';\n";
    echo "document.all['death_extra'].style.display = '';\n";
    list($info_combined, $trash, $icd10) = split("[ ]", $resultrow['Immediate']);
    list($level1, $level2) = split("[.]", $info_combined);
    echo "document.all.Immediate.value='" . $level1 . "';\n";
    if ($deaths_extra_icd10[$info_combined] != '') {
        echo "show_other('" . $level1 . "', 'immediate_2', 'immediate_other', 'othercause1');\n";
        echo "show_extra_icd10('" . $info_combined . "', 'immediate_other', 'othercause1');\n";
        echo "document.all.othercause1.value='" . $icd10 . "';\n";
    }
    if ($info_combined != $level1) {
        echo "show_other('" . $level1 . "', 'immediate_2', 'immediate_other', 'othercause1');\n";
예제 #3
0
    ?>
';
	document.all['TransfusionDate_day'].value = '<?php 
    echo retday($row['TransfusionDate']);
    ?>
';
//	document.all['FirstEntryAtClinic_year'].value = '<?php 
    echo retyear($row['FirstEntryAtClinic']);
    ?>
';
//	document.all['FirstEntryAtClinic_month'].value = '<?php 
    echo retmonth($row['FirstEntryAtClinic']);
    ?>
';
//	document.all['FirstEntryAtClinic_day'].value = '<?php 
    echo retday($row['FirstEntryAtClinic']);
    ?>
';	
<?php 
    print_stored_date('FirstVisit', $row);
    print_stored_date('EnrollDate', $row);
    //	print_stored_date('RecentWeightDate', $row);
    //	print_stored_date('RecentHeightDate', $row);
    print_stored_date('FirstPositiveSample', $row);
}
?>
}

document.body.onload = fill_data();
</SCRIPT>
예제 #4
0
function print_state_c($value, $table)
{
    if ($table[$value] == "1") {
        echo "document.all['" . $value . "1'].checked = true;\n";
    }
    if ($table[$value] == "2") {
        echo "document.all['" . $value . "2'].checked = true;\n";
    }
    echo "document.all['" . $value . "Date_year'].value = '" . retyear($table[$value . 'Date']) . "';\n";
    echo "document.all['" . $value . "Date_month'].value = '" . retmonth($table[$value . 'Date']) . "';\n";
    echo "document.all['" . $value . "Date_day'].value = '" . retday($table[$value . 'Date']) . "';\n";
}