1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
|
<? require("testa.php");?>
<B><? echo gettext ("These are last invoices for this patient. Please click on the ID of the invoice you want tomodify.");?></B>
<P>
<TABLE Border="0">
<TR>
<TD colspan="6">
<HR noshade size="2">
</TD>
</TR>
<TR>
<TH><? echo gettext ("Date");?></TH>
<TH><? echo gettext ("Treatment");?></TH>
<TH><? echo gettext ("Q.");?></TH>
<TH><? echo gettext ("Charge/U");?></TH>
<TH><? echo gettext ("Total charge");?></TH>
<TH><? echo gettext ("Invoice ID");?></TH>
</TR>
<TR>
<TD colspan="6">
<HR noshade size="2">
</TD>
</TR>
<?PHP
$esito = pg_Exec($conn, "SELECT * FROM fattura where id = '$idpz' order by data;");
if (!$esito) {
echo "Si è verificato un errore.\n";
exit;
} // Errore interrogazione database
$nume = pg_NumRows($esito); //inizia l'output tabelare della query
$i = 0;
while ($i < $nume) {
if (!($i % 2)) {
echo "<TR bgcolor=\"#C0C0C0\"><TD>";
} else {
echo "<TR bgcolor=\"#ffffff\"><TD>";
}
echo "<U>";
echo pg_Result($esito, $i, "data");
echo "</U></TD><TD> <B><FONT COLOR=\"#ff0000\">";
echo pg_Result($esito, $i, "prestazione");
echo "</I></TD><TD><FONT COLOR=\"#0000FF\"><CENTER>";
echo pg_Result($esito, $i, "quantita");
echo "</CENTER></FONT></TD><TD ALIGN=\"RIGHT\">";
echo number_format(pg_Result($esito, $i, "prezzounitario"),2);
echo "</TD><TD ALIGN=\"RIGHT\">";
echo number_format(pg_Result($esito, $i, "prezzomoltiplicato"),2);
echo "</TD><TD ALIGN=\"CENTER\"><a href=\"modificafatturainserimento.php?idvocefattura3=";
echo pg_Result($esito, $i, "idvocefattura");
echo "\">",pg_Result($esito, $i, "idfattura"),"</a></TD></TR>";
$i++;
} // Estrazione delle righe dell'interrogazione
pg_FreeResult($esito);
?>
<TR>
<TD colspan="6">
<HR noshade size="2">
</TD>
</TR>
</TABLE>
<? include("piede.php");?>
|