">










letter'>"; echo ""; echo ""; echo ""; echo ""; echo "
 
"; echo "$thema

"; echo "We zijn bezig om voor dit thema materiaal aan te maken. Dit kun je hier binnenkort vinden.
 
"; } if ($bestaat == '1') { if ($optie == '1') { $sql = "SELECT * FROM onderdelen WHERE thema = '$thema' ORDER BY thema"; $resultaat = mysql_query($sql); } if ($optie == '2') { $sql = "SELECT * FROM onderdelen WHERE thema = '$thema' AND onderdeel='$onderdeel' ORDER BY onderdeel"; $resultaat = mysql_query($sql); } while($record=mysql_fetch_object($resultaat)) { $omschrijving = str_replace("\n","
",$record->omschrijving); echo ""; echo ""; echo ""; echo ""; echo "
 
"; echo "$record->activiteit

$omschrijving"; if ($omschrijving != "") { echo "

"; } $sql2 = "SELECT * FROM documenten WHERE id2 = '$record->id' AND type='Afbeelding'"; $resultaat2 = mysql_query($sql2); while($record2=mysql_fetch_object($resultaat2)) { echo " "; $bestaat = 1; } if ($bestaat == '1') { echo "

"; } $nummer = 1; $sql2 = "SELECT * FROM documenten WHERE id2 = '$record->id' AND type='Word'"; $resultaat2 = mysql_query($sql2); while($record2=mysql_fetch_object($resultaat2)) { echo "Word document $nummer
"; $nummer++; $bestaat = 2; } if ($bestaat == '2') { echo "
"; } $nummer = 1; $sql2 = "SELECT * FROM documenten WHERE id2 = '$record->id' AND type= 'PDF'"; $resultaat2 = mysql_query($sql2); while($record2=mysql_fetch_object($resultaat2)) { echo "PDF document $nummer
"; $nummer++; } echo "
 
"; $nummer2++; if ($nummer2 > $plaatjes) { $nummer2 = 1; } } } ?>