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

cancellapianocuravisualizza.php

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

<DIV ALIGN="center">

<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) {
                                    if (!($i % 2)) {
                                                               echo "<TR bgcolor=\"#C0C0C0\"><TD>";
                                                              } else {
                                                                           echo "<TR bgcolor=\"#ffffff\"><TD>";
                                                                          }
                               echo pg_Result($esito, $i, data);
                               echo "</TD><TD><FONT COLOR=\"#FF0000\">";
                               echo pg_Result($esito, $i, "prestazione");
                               echo "</FONT></TD><TD>";
                               echo pg_Result($esito, $i, "posizione");
                               echo "</TD><TD ALIGN=CENTER>";
                               echo pg_Result($esito, $i, "quantita");
                               echo "</TD><TD ALIGN=\"RIGHT\">";
                               echo number_format(pg_Result($esito, $i, "prezzounitario"));
                               echo "</TD><TD ALIGN=\"RIGHT\">";
                               echo number_format(pg_Result($esito, $i, "prezzomoltiplicato"));
                               echo "</TD><TD ALIGN = \"CENTER\"><FONT COLOR=\"#FF0000\"><a href=\"cancellapianocurainserimento.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>

<TR>
 <TD colspan="7" ALIGN="CENTER">
<? echo gettext ("Click on the ID of the entry you want to delete.");?>
 </TD>
</TR>

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


</TABLE><P>


<P>
<a href="index.php">Ritorna al mený principale</a>

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

Generated by  Doxygen 1.6.0   Back to index