0) ORDER BY $tbl_lezioni.progressivo"; //echo $criteri; $result = mysql_query($criteri, $db); if ($myrow = mysql_fetch_array($result)) { echo "

"; echo ""; do { // echo ""; // $lezione = ""; $lezione = ""; // echo $myrow["id"]; // $test = ""; $test = ""; if ($riga == true) { echo "$lezione$test"; $riga = false; } else { echo "$lezione$test"; $riga = true; } } while ($myrow = mysql_fetch_array($result)); // echo ""; if (fine_abilita($validato)) { $test_fine = fine($validato); if ($test_fine != 0) { echo ""; echo ""; } else echo ""; echo ""; } echo "

Lezione
Scarica LezioneEsegui Test
".$myrow["nome"]."
".$myrow["nome"]."


Modulo Concluso
"; echo "

Torna

"; } else { echo "

Non é abilitato a questo corso!



"; echo "

Torna

"; } } else { echo "

Test preliminare


"; $criteri2 = "SELECT $tbl_domande.idtest, $tbl_domande.domanda, $tbl_domande.id "; $criteri2 .= "FROM $tbl_domande WHERE ($tbl_domande.idtest = $inizio)"; //echo $criteri2; $result2 = mysql_query($criteri2, $db); if ($myrow2 = mysql_fetch_array($result2)) { echo "
"; echo ""; $n = 1; do { echo ""; $criteri3 = "SELECT * FROM $tbl_risposte WHERE (iddomanda = $myrow2[id]) AND (visibile = '$s_vero') "; //echo $criteri3; $result3 = mysql_query($criteri3, $db); if ($myrow3 = mysql_fetch_array($result3)) { do { if ($riga == true) { echo ""; $riga = false; } else { echo ""; $riga = true; } }while ($myrow3= mysql_fetch_array($result3)); } $n++; }while ($myrow2 = mysql_fetch_array($result2)); echo ""; //echo "
$n) $myrow2[domanda]
$myrow3[risposta]
$myrow3[risposta]
"; echo "Consegna in bianco"; echo " "; } else { echo "

Nessun record trovato!



"; echo "

Torna

"; } } } else { echo "

Non é abilitato a questo corso!



"; //echo "

Torna ai corsi

"; echo "

Torna

"; } ?>