Esempio n. 1
0
}
?>

<?php 
if (!isset($_GET['code']) || $_GET['code'] == "") {
    Print_PatientCode_form("hcv_antiiikes.php");
    die;
} else {
    check_patient($_GET['code']);
    check_hcv_coinfection($_GET['code']);
}
?>

<FORM id="antiiikes_form" name="antiiikes_form" action="hcv_antiiikes_insert.php" method="GET" onsubmit="return check_data();">
<?php 
show_patient_data($_GET['code']);
?>
<a href="hcv_show_antiiikes_data.php?code=<?php 
echo $_GET['code'];
?>
">
Προβολή Καταχωρημένων Θεραπειών
</a>
<?php 
echo "<input type=hidden name='code' value='" . $_GET['code'] . "' />";
?>
<P> Συμπληρώστε όλα τα φάρμακα που έχει λάβει ο ασθενής
</P>

<TABLE width=1050>
<TR>
Esempio n. 2
0
<?php 
PrintMenu();
?>

<P>&nbsp;</P>
<P>&nbsp;</P>

<?php 
$dbconnection = cohortdb_connect($cohort_db_server, $cohort_db_username, $cohort_db_password);
$db_selected = mysql_select_db($cohort_db_name, $dbconnection);
if (!$db_selected) {
    die('Can\'t use ' . $cohort_db_name . ' : ' . mysql_error());
}
$patient_code = $_GET['code'];
check_patient($patient_code);
show_patient_data($patient_code);
//    Load Reasons for discontinuation (Antiretrovial Treatment) and Medicines (Antiretrovial Treatment)
$medicine_query = "SELECT ID,Name,Category FROM medicines";
$results = execute_query($medicine_query);
$num = mysql_num_rows($results);
for ($i = 0; $i < $num; $i++) {
    $row = mysql_fetch_assoc($results);
    $medicine_array[$i]['id'] = $row['ID'];
    $medicine_array[$i]['name'] = $row['Name'];
    $medicine_array[$i]['category'] = $row['Category'];
}
$reasons_query = "SELECT * FROM antiretro_reasons";
$results = execute_query($reasons_query);
$num = mysql_num_rows($results);
for ($i = 0; $i < $num; $i++) {
    $row = mysql_fetch_assoc($results);