<P> </P> <P> </P> <?php if (isset($_GET['error'])) { echo "<center><table><tr><td class='errormsg'>" . $_GET['error'] . "</td></tr></table></center><br>"; } ?> <?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'] . "' />";
PrintMenu(); ?> <P> </P> <P> </P> <P> </P> <?php //form_data2table($_GET); $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()); } check_patient($_GET['PatientCode']); check_hcv_coinfection($_GET['PatientCode']); $sql = "INSERT INTO `hcv_lab` VALUES ('" . $_GET['PatientCode'] . "', '" . join_date($_GET, 'ExamDate') . "', '" . $_GET['ALT'] . "', '" . $_GET['AST'] . "', '" . $_GET['gammaGT'] . "')"; $what_happened = execute_query($sql); if ($what_happened == 1) { echo "<P>Τα δεδομένα καταχωρήθηκαν με επιτυχία!</P>"; // echo "<p><a href='orologikes.php?code=".$_GET['PatientCode']."'>Κάντε click εδώ για να καταχωρήσετε και άλλη εξέταση</a></p>"; // echo "<p><a href='antiretro.php?code=".$_GET['PatientCode']."'>Κάντε click εδώ για να καταχωρήσετε αντιρετροϊκές θεραπείες</a></p>"; } else { echo "<P>{$what_happened}</P>"; echo mysql_error(); } echo "<p><a href='hcv_lab.php?code=" . $_GET['PatientCode'] . "'>Καντε click εδώ για να καταχωρήσετε κι άλλη εξέταση</a></p>"; mysql_close($dbconnection); ?> </BODY></HTML>