<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-type" content="text/html; charset=utf-8">
	<title>BIM - contatti</title>
	<link rel="icon" href="favicon.png" type="image/png" />
	<link rel="stylesheet" href="cicle/stylesheet.css" type="text/css" charset="utf-8"></link>
	<link rel="stylesheet" href="css/master.css" type="text/css" charset="utf-8"></link>
	
	<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-13237759-2']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
</head>
<body id="index" onload="">
<div class="sphere contatti"></div>
	<div class="centered">
		
		<a href="index.html"><div id="logobim"></div></a>
		<a href="http://www.myti.it" target="_blank"><div id="logomyti"></div></a>
		<div style="clear:both"></div>
		<ul id="menu">
			<li><a href="index.html">home</a></li>
			<li>|</li>
			<li><a href="bim.html">la suite</a></li>
			<li>|</li>
			<li>
				<a href="bimvision.html">moduli</a>
					<ul> <!-- PRIMO SOTTOMENU -->
					 <li><a href="bimvision.html">bimVision</a></li>
					 <li><a href="bimreader.html">bimReader</a></li>
					 <li><a href="bimpublisher.html">bimPublisher</a></li>
					 <li><a href="bimweb.html">bimWeb</a></li>
					 <li><a href="bimdesign.html">bimDesign</a></li>
					</ul> <!-- FINE PRIMO SOTTOMENU -->
			</li>
			<li>|</li>
			<li><a href="analytic.html">analytic applications</a></li>
			<li>|</li>
			<li><a href="download.html#doc">documentazione</a></li>
			<li>|</li>
			<li><a href="download.html">download</a></li>
			<li>|</li>
			<li><a href="contatti.php">contatti</a></li>
		</ul>
	
		<div class="title contatti">


		</div>
	
	   <div class="sub contents testo">
	
	
	<div class="contact-messages content">
        <?php 
	  if(isset($_POST['submitted'])) {
		
		if($_POST['sp_catcher'] != '') {
		$spamError = true;
	}	

		if($_POST['name'] == '') {
		$nameError = 'Hai dimenticato di inserire il tuo nome.';
	}
	
	if($_POST['email'] == '') {
		$emailError = 'Hai dimenticato di inserire tuo indirizzo email.';
	} else if (!eregi("^[A-Z0-9._%-]+@[A-Z0-9._%-]+\.[A-Z]{2,4}$", $_POST['email'])) {
		$emailError = "Inserire un'indirizzo email valido.";
	}
	
	if($_POST['message'] == '') {
		$messageError = 'Hai dimenticato di inserire un messaggio.';
	}

	if(!isset($spamError) && !isset($nameError) && !isset($emailError) && !isset($messageError)) {
		$mailTo = $_POST['mailTo'];
		$subject = $_POST['subject'];
		$name = $_POST['name'];
		$email = $_POST['email'];
		$message = $_POST['message'];
		$headers = 'From: ' . $email . "\r\n" . 'Reply-To: ' . $mailTo . "\r\n" . 'X-Mailer: PHP/' . phpversion();
		$ret = mail($mailTo, $subject, $message, $headers);
		?>
        <div class="box success" style="text-align:center; color:#639a49;">Grazie! Messaggio inviato con successo!</div>
        <?php
	}else{
		?>
        <div class="box error">
          <ul class="no-margin">
            <?php if(isset($nameError)) echo '<li class="">'.$nameError.'</li>'; ?>
            <?php if(isset($emailError)) echo '<li class="">'.$emailError.'</li>'; ?>
            <?php if(isset($messageError)) echo '<li class="">'.$messageError.'</li>'; ?>
          </ul>
        </div>
        <?php
		}
}else{
	?>
        <p style="text-align:center; color:#639a49;">Per qualsiasi informazione non esitare a contattarci.</p>
        
       
        <?php
	}
?>
</div>
<hr/>

			<div style="border:0px solid blue;float:right;position:absolute;left:500px;">
			
			Myti s.r.l.<br>

			Via Orzinuovi, 20 <br>
			25125 Brescia<br>
			Tel: 030 35.34.823<br>
			Fax: 030 51.09.322 <br>
			<a href="mailto:info@myti.it" title="email">info@myti.it</a>
			  
			</div>  



        <div style="border:0px solid red; width:418px;height:290px;">

			  
			  <form action="contatti.php" method="post" id="sendEmail" class="horizontal">
                <!-- ================= put your email address here ================ -->
                <input type="hidden" id="mailTo" name="mailTo" value="a.mombelli@myti.it" />
                <!-- ======== you will receive messages with this subject ========= -->
                <input type="hidden" id="subject" name="subject" value="Contatto dal sito BIM" />
                <!-- ============================================================== -->
                <input type="hidden" name="submitted" value="1" />
                <div class="field">
                  <label for="name">Nome</label>
                  <input name="name" id="name" value="<?= $_POST['name']; ?>" type="text"/>
                </div>
                <div class="field">
                  <label for="mail">Email</label>
                  <input name="email" id="mail" value="<?= $_POST['email']; ?>" type="text"/>
                </div>
                <div class="field">
                  <label for="message">Messaggio</label>
                  <textarea name="message" id="message" cols="30" rows="5"><?= $_POST['message']; ?>
</textarea>
                </div>
                <div class="submit-row">
                  <button id="submit" type="submit" class="button" title="Send"><span>Invia il tuo messaggio </span></button>
                  <div id="spam_catcher">
                    <input type="text" value="" name="sp_catcher"/>
                  </div>
                </div>
              </form>
			 </div>
            </div>
			
			
			
			
			
	<div style="margin-top:10px;"></div>
	<div class="footer">	
			<table class="test" border="0" >
				<tr>
					<th height="211" scope="col">			
						<div id="footer" style="border:0px solid red; color:#fff; width:205px; text-align:left; margin-left:25px;">
							<p><strong>home</strong><br>
							 <img src="images/space.png" width="1" height="1"border="0"><a href="informazione.html"> governa l'informazione<br>
							</a><img src="images/space.png" width="6" height="1"border="0"><a href="fast.html">muoviti FAST<br>
							</a><a href="fidati.html"><img src="images/space.png" width="6" height="1" border="0">fidati dei tuoi dati<br>
							</a><a href="obiettivi.html"><img src="images/space.png" width="6" height="1" border="0">visualizza i tuoi obiettivi</a></p>
					  </div>
					</th>
					<th scope="col">
						<div id="footer" style="border:0px solid red; color:#fff; width:205px;text-align:left;margin-left:25px;">
							<p><strong>moduli della suite<br>
							</strong><a href="bimvision.html"><img src="images/space.png" width="6" height="1" border="0">bimVision<br>
							</a><a href="bimreader.html"><img src="images/space.png" width="6" height="1" border="0">bimReader<br>
						    </a><a href="bimpublisher.html"><img src="images/space.png" width="6" height="1" border="0">bimPublisher<br>
						    </a><a href="bimweb.html"><img src="images/space.png" width="6" height="1" border="0">bimWeb<br>
						    </a><a href="bimdesign.html"><img src="images/space.png" width="6" height="1" border="0">bimDesign</a></p>
							
					  </div>
					</th>
					<th scope="col">
						<div id="footer" style="border0:px solid red; color:#fff; width:205px; text-align:left;margin-left:25px;">
						  <p><strong>myti analytic applications<br></strong>
					      <a href="analytic.html"><img src="images/space.png" width="6" height="1" border="0">indici di bilancio</a></p>
							<p></p>
							<p><strong>download e supporto<br>
							</strong><a href="download.html#doc"><img src="images/space.png" width="6" height="1" border="0">documentazione<br>
							</a><a href="download.html"><img src="images/space.png" width="6" height="1" border="0">download<br>
							</a><a href="contatti.php"><img src="images/space.png" width="6" height="1" border="0">contatti</a></p>
					  </div>
					</th>
					<th scope="col">
						<div id="footer" style="border:0px solid red; color:#fff; width:205px; text-align:left;margin-left:25px; border-left:1px solid #fff;padding-left: 60px;margin-left: 0px;">
							<p><strong>about us </strong></p>
							<p>BIM e' un prodotto:<br>
						    &copy <a style="text-decoration:underline " href="hyyp://www.myti.it"> MyTi s.r.l<br>
						    </a>Via Orzinuovi, 20<br>
						    25100 Brescia<br>
						    P.iva 02866670983</p>
					  </div>
					</th>
				</tr>
			</table>
		</div>
			
			
	
</body>
</html>