'toscane.html', 'nom'=>'Tuscany'), array('lien'=>'castiglion.html', 'nom'=>'Castiglion Fiorentino', 'sub'=>array('The Palio dei Rioni'=>'palio.html', 'Pictures'=>'../photos/en_castiglion.html'))); new_menu('The region', $machin); echo('

'); $machin = array( array('lien'=>'tetto.html', 'nom'=>'To rent'), array('lien'=>'contact.php', 'nom'=>'Book a stay'), array('lien'=>'../photos/en_casa.html', 'nom'=>'Pictures', 'sub'=>array('The terratetto'=>'../photos/en_casa.html', 'Castiglion Fiorentino'=>'../photos/en_castiglion.html')), array('lien'=>'friend.php', 'nom'=>'Tell a friend...'), array('lien'=>'cartes.html', 'nom'=>'Maps', 'sub'=>array('Italy'=>'c_italie.html', 'Tuscany'=>'c_toscane.html')) ); new_menu('The 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


"); } ?> Tell a friend about terratettofiorentino.com



Your email was sent successfully."; } else { new_encadre('Error...',"

Sorry, $name, your e-mail was not sent successfully. Please try again.

"); new_paragraphe('Tell a friend',"

\n Your name:

\n Your e-mail:

\n Your friend's name:

\n Your friend's email:

\n Your message:
\n
\n
Contact form © Matthew Dingley 2002

"); } } if ((!$email||!$name||!$sendname||!$sendemail)&&!(!$email&&!$subject&&!$name&&!$sendname&&!$sendemail)) { new_encadre("You have forgotten to fill in a detail", "

Please correct the error(s) and resubmit the form.

"); echo ""; new_paragraphe('Tell a friend',"

\n Your name:

\n Your e-mail:

\n Your friend's name:

\n Your friend's e-mail:

\n Your message:
\n
\n
Contact form © Matthew Dingley 2002

"); } if(!$email&&!$name&&!$sendname&&!$sendemail) { new_encadre('Instructions', "

Just fill in your details and your friend's details and an e-mail will be sent to them, telling them about this site.

"); new_paragraphe('Tell a friend',"

\n Your name:

\n Your e-mail:

\n Your friend's name:

\n Your friend's e-mail:

\n Your message:
\n
\n
Contact form © Matthew Dingley 2002

"); } ?>