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

precancellapianocuravisualizza.php

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

<B><? echo gettext ("Delete treatment plan");?></B>

<FORM METHOD="post" ACTION="cancellapianocuravisualizza.php">
<SELECT NAME="vocepianocura">
<?
   $esitou = pg_Exec($conn, "SELECT vocepianocura FROM pianocura where id = '$idpz' order by vocepianocura;");
   if (!$esitou) {
                 echo "Si &egrave; verificato un errore.\n";
                 exit;
                 } // Errore interrogazione database
   $numeu = pg_NumRows($esitou); //inizia l'output tabelare della query
   $z = 0;
   $cvb = 0;
   $arro = array();
   array_push ($arro, pg_Result($esitou, $z, "vocepianocura"));
   $z++;
   while ($z < $numeu) {
                                       if (pg_Result($esitou, $z, "vocepianocura")) {
                                                                                                                     if (pg_Result($esitou, $cvb, "vocepianocura") != pg_Result($esitou, $z, "vocepianocura")) {
                                                                                                                                                                                                                                                                                  array_push ($arro, pg_Result($esitou, $z, "vocepianocura"));
                                                                                                                                                                                                                                                                                 }
                                                                                                                     $cvb++;
                                                                                                                    }
                                       $z++;
                                      }
                                      $xx=0;
                                      while ($xx < sizeof ($arro)) {
                                                                                     $m = $xx +1;
                                                                                     echo "<OPTION VALUE=\"", $arro[$xx], "\">", $arro[$xx];
                                                                                     $xx++;
                                                                                    }
?></SELECT>

<?
echo "<INPUT TYPE=\"submit\" VALUE=\"";
echo gettext ("Show");
echo "\">";
?>

</FORM>

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

Generated by  Doxygen 1.6.0   Back to index