<?php

### Konfiguration ###

# Bitte passen Sie die folgenden Werte an, bevor Sie das Script benutzen!

# An welche Adresse sollen die Mails gesendet werden?
$strEmpfaenger = 'nat.h@utanet.at';
#$strEmpfaenger = 'nikola.dela@gmail.com';

# Welche Adresse soll als Absender angegeben werden?
# (Manche Hoster lassen diese Angabe vor dem Versenden der Mail ueberschreiben)
$strFrom       = '"Kartenbestellung" <info@russianball.info>';

# Welchen Betreff sollen die Mails erhalten?
$strSubject    = 'Kartenbestellung';

# Zu welcher Seite soll als "Danke-Seite" weitergeleitet werden?
# Wichtig: Sie muessen hier eine gueltige HTTP-Adresse angeben!
$strReturnhtml = 'http://www.russianball.info/rus/danke.php';

# Welche(s) Zeichen soll(en) zwischen dem Feldnamen und dem angegebenen Wert stehen?
$strDelimiter  = ":\t";

### Ende Konfiguration ###

if($_POST)
{
 $strMailtext = "";

 while(list($strName,$value) = each($_POST))
 {
  if(is_array($value))
  {
   foreach($value as $value_array)
   {
    $strMailtext .= $strName.$strDelimiter.$value_array."\n";
   }
  }
  else
  {
   $strMailtext .= $strName.$strDelimiter.$value."\n";
  }
 }

 if(get_magic_quotes_gpc())
 {
  $strMailtext = stripslashes($strMailtext);
 }

$header="From: ".$strFrom. "\n";
$header.="Content-type: text/plain; charset=windows-1251";

 mail($strEmpfaenger, $strSubject, $strMailtext, $header)
 or die("Mail could not be sent.");

 header("Location: $strReturnhtml");
 exit;
}

?>
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Keywords" content="Russischer Ball, русский бал, Hofburg, Хофбург, Вена, russian ball, wien, vienna, Art Projects, Natalie Holzmueller, Наталия Хольцмюллер, Ball, Ballnacht">
<meta name="Description" content="Русский бал в Хофбурге">
<title>Русский Бал в Хофбурге</title>
<link rel="stylesheet" href="../css/styles.css" type="text/css" />
<link rel="stylesheet" href="../css/lightbox.css" type="text/css" media="screen" />
<link rel="icon" href="../images/fav.ico" type="image/x-icon" />
<script type="text/javascript" src="../js/slideshow.js"></script>

<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>

<style type="text/css">
<!--
.style1 {color: #FF0000}
.style3 {color: #FF9900}
.style4 {color: #65a0c8}
.style6 {color: #000066}
-->
</style>
</head>

<body bgcolor="#a90075" background="../images/bg_dark.gif" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" onload="initLightbox()">
<table border="0"  bordercolordark="#000000" bordercolorlight="#000000" bordercolor="#000000" cellspacing="0" cellpadding="0" align="center" height="100%">
		<tr><td colspan="10"><?php include("top.php"); ?></td></tr>
		<tr>
		<td width="240" valign="top"><?php include("menu.php"); ?></td>
		<td width="3" bgcolor="#d8b619">&nbsp;</td>
		<td width="627">
		
	<table border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF" id="ornament">
	<tr><td colspan="3"><?php include("header.php"); ?></td>
	</tr>
		     <tr>
          <td width="5"><img src="../images/blank.gif" width="5" /></td>
          <td height="32" width="620" class="menu">

			<ul id="menu">
				<li><a href="press.php">Пресс-релизы</a></li>
				
              <li><a href="sponsors.php">Приглашаем к партнерству</a></li>
			</ul>

		  </td>
		  <td width="5"><img src="../images/blank.gif" width="5" /></td>
        </tr>
	<tr valign="top">
    <td class="bodyText" colspan="3"><p class="pageName">Заказ билетов</p>

            <p align="justify" class="bodyText">Дорогие посетители!</p>
            <p align="justify" class="bodyText">Здесь вы можете заказать билеты 
              или просто оставить ваше сообщение.</p>
	        <p align="justify" class="bodyText">Мы свяжемся с вами сразу же после 
              вашего сообщения.</p>
		     <form action="<?php print $_SERVER['PHP_SELF']; ?>" method="post">
          <table width="580" border="0" cellspacing="0" cellpadding="4">
            <tr> 
              <td height="36" width="100"> 
                <p class="bodyText">ФИО:</p>

              </td>
              <td colspan="2" height="36"> 
                <input type="text" name="Name" size="50" maxlength="60" />
              </td>
            </tr>
            <tr> 
              <td height="36"> 
                  <p class="bodyText">Адрес:</p>
              </td>
              <td colspan="2"> 
                <textarea name="Address" cols="30" rows="5" style="height:60px"></textarea>
              </td>
            </tr>
            <tr> 
              <td height="36"> 
                <p class="bodyText"> Телефон:</p>
              </td>

              <td colspan="2" height="36"> 
                <input type="text" name="Phone" size="50" maxlength="60" />
              </td>
            </tr>
            <tr> 
              <td height="36"> 
                <p class="bodyText">E-mail:</p>
              </td>
                  <td colspan="2" height="36"> <input type="text" name="E-mail" size="50" maxlength="60" /></td>
            </tr>
            <tr> 
              <td height="36"> 
                <p class="bodyText">Количество</p>
				<p class="bodyText">билетов:</p>
              </td>
			  <td colspan="2" height="36"><input type="text" name="Number_of_tickets" size="10" maxlength="2" style="width:50px" /></td>
            </tr>
			<tr> 
              <td height="36">&nbsp;</td>
			  <td colspan="2" height="36"></td></tr>
			  <tr>
              <td height="36">
                  <p class="bodyText">Ваше</p>
				  <p class="bodyText">сообщение:</p>
  			  </td>
			  <td colspan="2">
              <textarea name="Comments" cols="30" rows="7" style="height:60px"></textarea>
			  </td>
            </tr>
			<tr>
              <td height="36">
  			  </td>
			  <td colspan="2"> 
                <input type="submit" value="Отправить!" />
			  </td>
            </tr>

          </table>

        </form>
		   
      <p align="right" class="bodyText">&nbsp;</p>
	   <p align="right" class="bodyText">&nbsp;</p>
	    <p align="right" class="bodyText">&nbsp;</p>
	
  </td>
  </tr>
	</table>



		</td>
  </tr>
  
<tr>
    <td colspan="7">
      <?php include("bottom.php"); ?>
    </td>
</tr>
</table>


</body>
</html>
