'toscane.html', 'nom'=>'La Toscane'), array('lien'=>'castiglion.html', 'nom'=>'Castiglion Fiorentino', 'sub'=>array('Le Palio dei Rioni'=>'palio.html', 'Photos'=>'photos/fr_castiglion.html'))); new_menu('La région', $machin); echo('

'); $machin = array( array('lien'=>'tetto.html', 'nom'=>'A louer'), array('lien'=>'contact.php', 'nom'=>'Réserver'), array('lien'=>'photos/fr_casa.html', 'nom'=>'Photographies', 'sub'=>array('La maison'=>'photos/fr_casa.html', 'Castiglion Fiorentino'=>'photos/fr_castiglion.html')), array('lien'=>'friend.php', 'nom'=>'Pour vos amis...'), array('lien'=>'cartes.html', 'nom'=>'Cartes', 'sub'=>array('Italie'=>'c_italie.html', 'La Toscane'=>'c_toscane.html')) ); new_menu('Le terratetto', $machin); } function new_menu($titre, $liens, $fin=0) { global $path_to_include; echo(" "); foreach($liens as $lien) { $lnk = $lien['lien']; $nom = $lien['nom']; $premiere = substr($nom, 0, 1); $reste = substr($nom, 1, strlen($nom)); echo(" "); if(isset($lien['sub'])) { echo(" "); } } if($fin == 1) { echo(" "); } echo("
  $titre
$premiere$reste
"); foreach($lien['sub'] as $nam=>$lin) { $un = substr($nam, 0, 1); $otr = substr($nam, 1, strlen($nam)); echo(" $un$otr
"); } echo("
 
"); } function new_encadre($titre, $contenu) { global $path_to_include; $titre = htmlentities($titre); $titre = str_replace(' ', ' ', $titre); $contenu = htmlentities($contenu); $contenu = str_replace('<', '<', $contenu); $contenu = str_replace('>', '>', $contenu); $contenu = str_replace('&#', '&#', $contenu); $contenu = str_replace('&nbsp;', ' ', $contenu); $contenu = str_replace('&quot;', '"', $contenu); // Evite l'interprétation des paramètres des balises HTML $contenu = str_replace('"', '"', $contenu); echo("
 $titre   
  $contenu  

"); } //.titresrub { margin:1px; padding:1px; font-family: Arial, Helvetica, sans-serif; font-size: 9pt; color: #003366; background-color: #FFFFFF; font-weight: bold; background-repeat: no-repeat; background-position: center; } function new_paragraphe($titre, $contenu) { global $path_to_include; $titre = htmlentities($titre); $titre = str_replace(' ', ' ', $titre); $contenu = htmlentities($contenu); $contenu = str_replace('<', '<', $contenu); $contenu = str_replace('>', '>', $contenu); $contenu = str_replace('&#', '&#', $contenu); $contenu = str_replace('&nbsp;', ' ', $contenu); $contenu = str_replace('&quot;', '"', $contenu); // Evite l'interprétation des paramètres des balises HTML $contenu = str_replace('"', '"', $contenu); echo("
 $titre   
$contenu


"); } ?> Contact


\n"; if($htmlemail) { $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; $body = "E-mail de $email <$name>. Message : $message"; } else { $body = "E-mail de $email <$name>. Message : $message."; } $thesubject = "$sitetitle - $subject"; if(mail($emaddress, $thesubject, $body, $headers)) { echo "

Your e-mail was sent successfully. Thank you for the message " . $name . "."; } else { echo "Sorry, $name, an error occured. Please try again.

Subject:

Your name:

Mail address:

Message:


Contact form © Matthew Dingley 2002"; } } if ((!$emailcorrect||!$email||!$message||!$subject||!$name)&&!(!$email&&!$message&&!$subject&&!$name)) { echo "An error occured:
"; echo "
    "; if (!$emailcorrect) { echo "
  • Your mail address is not valid."; } if (!$email||!$message||!$subject||!$name) { echo "
  • You forgot a field."; } echo "
Please correct this (these) error(s) and resubmit the form."; echo ""; echo "
"; echo "Subject:

"; echo "Your name:

"; echo "Mail address:

"; echo "Message:
"; echo "
"; echo "
Contact form © Matthew Dingley 2002"; } if(!$email&&!$message&&!$subject&&!$name) { echo "Pour nous contacter, veuillez remplir le formulaire ci-dessous :


"; echo "
"; echo "Subject:

"; echo "Your name:

"; echo "Mail address:

"; echo "Message:
"; echo "
"; echo "
Contact form © Matthew Dingley 2002"; } ?>