echo "</tr>\n";
$num_rows = mysql_num_rows($result);
if ($num_rows == 0) {
    echo "</table><p> &nbsp; Δεν υπάρχουν καταχωρημένα στοιχεία!</p>";
} else {
    for ($j = 0; $j < $num_rows; $j++) {
        $i = 0;
        $resultrow = mysql_fetch_assoc($result);
        echo "<tr>\n";
        echo "<td align=center> <img src='./images/b_edit.png' ";
        echo "onclick='location.href=\"hbv_add_dosage.php?code=" . $_GET['code'] . "&Medicine=" . $resultrow['Medicine'] . "&start=" . $resultrow['StartDate'] . "&end=" . $resultrow['EndDate'] . "&link_id=" . $resultrow['link_id'] . "\";' style='cursor:pointer;'>";
        echo "<td align=center> <img src='./images/b_edit.png' ";
        echo "onclick='location.href=\"hbv_edit_dosage.php?code=" . $_GET['code'] . "&Medicine=" . $resultrow['Medicine'] . "&start=" . $resultrow['StartDate'] . "&end=" . $resultrow['EndDate'] . "&link_id=" . $resultrow['link_id'] . "\";' style='cursor:pointer;'>";
        echo "<td class=result>" . $resultrow['Medicine'] . "</td>";
        echo "<td class=result>";
        echo show_dec($resultrow['Dosage1']) . " " . $resultrow['Dosage1Type'];
        if ($resultrow['Dosage1'] != "") {
            echo " ~ ";
        } else {
            echo " - ";
        }
        switch ($resultrow['Dosage2Type']) {
            case '1':
                echo "1 φορά την εβδομάδα";
                break;
            case '2':
                echo "2 φορές την εβδομάδα";
                break;
            case '3':
                echo "3 φορές την εβδομάδα";
                break;
Exemple #2
0
     if ($resultrow['Result'] == -1) {
         echo "<td class=result>Μη Ανιχνεύσιμο</td>";
     } else {
         echo "<td class=result>Ανιχνεύσιμο</td>";
     }
 } else {
     if ($resultrow['Result'] == -1) {
         echo "<td class=result>Αρνητικό</td>";
     } else {
         echo "<td class=result>Θετικό</td>";
     }
 }
 echo "<td class=result align=center>&nbsp;" . $resultrow['Operator'] . " ";
 //."</td>";
 //echo "<td class=result>".
 echo show_dec($resultrow['Value']) . "</td>";
 if ($resultrow['Units'] == 1) {
     echo "<td class=result>copies/ml</td>";
 } elseif ($resultrow['Units'] == 2) {
     echo "<td class=result>Eq/ml</td>";
 } elseif ($resultrow['Units'] == 3) {
     echo "<td class=result>Pg/ml</td>";
 } elseif ($resultrow['Units'] == 4) {
     echo "<td class=result>Meg/ml</td>";
 } elseif ($resultrow['Units'] == 5) {
     echo "<td class=result>IU/ml</td>";
 } else {
     echo "<td class=result>" . $resultrow['Units'] . "</td>";
 }
 echo "<td class=result>" . $resultrow['Method'] . "</td>";
 echo "</tr>\n";