<?php 
$ff=""; 
$mm=""; 
$hint="Accreditation<br><br/>"; 
$send="0"; 
if (isset ($_POST['post'])) { 
if ($_POST['nome']=="" || $_POST['email']=="") {$hint="Introduce your name and email address!<br><br>";$ff="";} 
else { 

$mail.= "Media:..........................: ".$_POST['soundlabs']."\n\n"; 
$mail.= "Applicant Name and Surname:.....: ".$_POST['nome']."\n"; 
$mail.= "Passport / ID Number............: ".$_POST['cognome']."\n"; 
$mail.= "ID Type.........................: ".$_POST['idtype']."\n"; 
$mail.= "Mobile Phone....................: ".$_POST['via']."\n"; 
$mail.= "E-mail:.........................: ".$_POST['email']."\n"; 
$mail.= "Type of Pass Requested..........: ".$_POST['pass']."\n";
$mail.= "Coverage Offered Pre-Festival...: ".$_POST['prefestival']."\n";
$mail.= "Coverage Offered Post-Festival..: ".$_POST['postfestival']."\n";



mail("press@soundlabs.it", "english accreditation from www.soundlabs.it", $mail, "From: ".$email); 
$send="1";
}}

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<link href="css/Basic.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>accreditation</title>

<style type="text/css">
body,td,th {
	color: #000000;
}
#newsletter
{
font-family:Verdana, Arial, Helvetica, sans-serif;
font-weight:bold;
font-size:12px;
}
body {
	background-color: #FFFFFF;
}
-->
</style></head>

<body>
<table width="100%" style="height:100%">
<tr>
<td align="center" valign="middle">
<div align="center">
  <? if ($send=="0")
          {
          ?>
</div>


<div align="center" id="newsletter">
<form name="accreditation" method="post" action="accreditation.php">
  <br />
<br />

<div id="newsletter">
<table width="373" border="0">
<tr>
  <td colspan="2" valign="top"><div align="center"><img src="../img/soundlabs-other/soundlabs-festival-logo.jpg" width="200" height="101" /><br />
  </div>
    <div align="center">
      <input type="hidden" name="post" value="1" />
      <?echo "<span class='".$ff."'>".$hint."</span>";?></div></td>
  </tr>
<tr>
  <td width="213"><label for="soundlabs">Media:</label></td>
  <td width="144"><input type="text" name="soundlabs" id="soundlabs" value="<?echo "".$soundlabs."";?>" /></td>
</tr>
<tr>
  <td><label for="nome">Applicant Name and Surname:</label></td>
  <td><input type="text" name="nome" id="nome" value="<? if ($nome==""){echo $ff;}?>" />  </td>
</tr>
<tr>
  <td><label for="idtype">ID Type: </label></td>
  <td><select name="idtype" id="idtype" value="<?echo "".$idtype."";?>">
    <option>ID</option>
    <option>Passport</option>
    <option>Driving Licence</option>
  </select></td>
</tr>
<tr>
  <td height="25"><label for="cognome">Passport / ID Number: </label></td>
  <td><input type="text" name="cognome" id="cognome" value="<?echo "".$cognome."";?>" />  </td>
</tr>
<tr>
<td><label for="provincia">E-mail:</label></td>
<td><input type="text" name="email" id="email" value="<? if ($email==""){echo $ff;}?>" /></td>
</tr>
<tr>
  <td><label for="via">Mobile Phone:</label></td>
  <td><input type="text" name="via" id="via" value="<?echo "".$via."";?>" />  </td>
</tr>
<tr>
<td><label for="telefonomobile">Type of Pass Requested: </label></td>
<td><select name="pass" id="pass" value="<?echo "".$pass."";?>">
  <option>Press Pass</option>
  <option>Photo Pass</option>
</select></td>
</tr>
<tr>
  <td><label for="email">Coverage Offered Pre-Festival:</label></td>
  <td><textarea name="prefestival" id="prefestival"><?echo "".$prefestival."";?></textarea>  </td>
</tr>
<tr>
<td>Coverage Offered Post-Festival:</td>
<td><textarea name="postfestival" id="postfestival"><?echo "".$postfestival."";?></textarea></td>
</tr>
<tr>
<td colspan="2"><div align="center">
  <input name="Input" type="submit" value="post " id="button" />
</div></td>
</tr>
</table>
</div>
</form> 
 

  <?
}
else{
?>
<table width="385" border="0">
    <tr>
      <td  align="center" valign="middle">
         <div> <strong>Your application for a free press pass accreditation has been received correctly. <br />
          <br />
          <br />
          </strong><img src="../img/soundlabs-other/soundlabs-festival-logo.jpg" width="200" height="101" /><br />
            <br /></div>
          </td>
      </tr>
	      
  </table>
  <?
}
?></td>
</tr>
</table>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-9982976-2");
pageTracker._trackPageview();
} catch(err) {}</script>
</body>
</html>
