Logo Search packages:      
Sourcecode: odontolinux version File versions  Download package

pianocuraristampa.php

<? require("testa.php");?>

<TABLE Border="0">
<TR>
 <TD colspan="7">
  <HR noshade size="2">
 </TD>
</TR>

<TR>
  <TH><? echo gettext ("Date");?></TH>
  <TH><? echo gettext ("Treatment");?></TH>
  <TH><? echo gettext ("Tooth");?></TH>
  <TH><? echo gettext ("Q.");?></TH>
  <TH><? echo gettext ("Charge/U");?></TH>
  <TH><? echo gettext ("Total charge");?></TH>
  <TH><? echo gettext ("Treatment plan ID");?></TH>
</TR>
<TR>
 <TD colspan="7">
  <HR noshade size="2">
 </TD>
</TR>


<?PHP
                       $esito = pg_Exec($conn, "SELECT * FROM pianocura where id LIKE '$idpz';");
                       if (!$esito) {
                                     echo "Si &egrave; verificato un errore.\n";
                                     exit;
                                     } // Errore interrogazione database
   $nume = pg_NumRows($esito); //inizia l'output tabelare della query
   $i = 0;
   while ($i < $nume) {
                       echo "<TR><TD>";
                       echo pg_Result($esito, $i, data);
                       echo "</TD><TD><FONT COLOR=\"#0000FF\">";
                       echo pg_Result($esito, $i, "prestazione");
                       echo "</FONT></TD><TD>";
                       echo pg_Result($esito, $i, "posizione");
                       echo "</TD><TD>";
                       echo pg_Result($esito, $i, "quantita");
                       echo "</TD><TD>";
                       echo pg_Result($esito, $i, "prezzounitario");
                       echo "</TD><TD>";
                       echo pg_Result($esito, $i, "prezzomoltiplicato");
                       echo "</TD><TD><FONT COLOR=\"#FF0000\"><a href=\"ristampapianocura.php?pianocuraid=";
                       echo pg_Result($esito, $i, "idpc");
                       echo "\">",pg_Result($esito, $i, "idpc"),"</a></FONT></TD></TR>";
                       $i++;
                      }
   pg_FreeResult($esito); //liberazione memoria
?>

<TR>
 <TD colspan="7">
  <HR noshade size="2">
 </TD>
</TR>


</TABLE><P><P>

<P>
<a href="index.php"><? echo gettext ("Back to main menu");?></a>

<? include("piede.php");?>

Generated by  Doxygen 1.6.0   Back to index