Subversion-Projekte lars-tiefland.php_share

Revision

Blame | Letzte Änderung | Log anzeigen | RSS feed

<?php
        if (!isset($_GET['to'])) {
                $_GET['to'] = "7e7971cb5b2e1a4ddb0b85732fc55440";
        }
?>
<!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" />
<title>Kontakt- Formular</title>
<script type="text/JavaScript">
<!--
window.status = "<?= $_GET['to'] ?>";
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
      } else if (test!='R') { num = parseFloat(val);
        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
  } if (errors) alert('The following error(s) occurred:\n'+errors);
  document.MM_returnValue = (errors == '');
}
//-->
</script>
</head>
<style> 
.pflicht { font-size:12px; } 
.textform {
        FONT: 11px Arial, Helvetica, sans-serif; COLOR: #FFFFFF; BACKGROUND-COLOR: #999966
}
INPUT {
        FONT: 10px Verdana, Geneva, Arial, Helvetica, sans-serif; COLOR: #656565
}
BODY {
        PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px 0px 0px 0px; PADDING-TOP: 0px
}
.text {
        FONT: 11px/15px Verdana, Geneva, Arial, Helvetica, sans-serif; COLOR: #656565
}

.textformoblig {
        FONT: 11px Arial, Helvetica, sans-serif; COLOR: #000000; BACKGROUND-COLOR: #c4c4a6
}
</style>

<body bgcolor="#ffffff" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

        <form name="Kontakt" action="mail.php" method="post">
        <input type=hidden name="_to" value="<?= $_GET['to'] ?>">
        <input type=hidden name="_subject" value="<?= $_GET['to'] ?>">
        <input type="hidden" name="_from" value="<?= $_GET['to'] ?>">
        <input type="hidden" name="_target" value="danke.htm">
        <table border="0" cellspacing="0" cellpadding="5" width="350" align="center">
          <tr align="center" bgcolor="#339966">
            <td width="340" bgcolor="#FFFFFF">
              <table width="342" border="0" cellspacing="1" cellpadding="1">
            <tr>
              <td width="54"><img height="1" alt="" src="images/spacer.gif"  width="1" border="0" /></td>
              <td width="8"><img height="1" alt=""  src="images/spacer.gif"  width="8" border="0" /></td>
              <td width="101" class="textform" style="WIDTH: 101px">&nbsp;Firma/Einrichtung * </td>
              <td width="166" align="right" class="textform" style="WIDTH: 164px">(max. 31 Zeichen)&nbsp;&nbsp;</td>
            </tr>
            <tr>
              <td><img height="1" alt="" src="images/spacer.gif" width="1" border="0" /></td>
              <td><img height="1" alt="" src="images/spacer.gif" width="1" border="0" /></td>
              <td colspan="2">
                <input name="Firma" type="text" class="input" id="Firma" style="WIDTH: 265px" size="30" maxlength="31" />
              </td>
            </tr>
            <tr>
              <td colspan="4"><img height="11" alt="" src="images/spacer.gif" width="1" border="0" /></td>
            </tr>
            <tr>
              <td class="textform" style="WIDTH: 54px">&nbsp;Anrede</td>
              <td><img height="1" alt="" src="images/spacer.gif" width="8" border="0" /></td>
              <td class="textform" style="WIDTH: 101px"> &nbsp;Name/ Vorname * </td>
              <td class="textform" style="WIDTH: 164px" align="right"> (max. 31 Zeichen)&nbsp;&nbsp;</td>
            </tr>
            <tr>
              <td class="text" style="WIDTH: 54px">
                <select name="Anrede" class="text" id="Anrede" 
                  style="WIDTH: 54px">
                  <option value="1">Herr</option>
                  <option value="2">Frau</option>
                </select>
              </td>
              <td><img height="1" alt=""  src="images/spacer.gif" width="1" border="0" /></td>
              <td style="WIDTH: 265px" colspan="2">
                <input name="Name" type="text" class="input" id="Name" style="WIDTH: 265px"  size="30" maxlength="31" />
              </td>
            </tr>
            <tr>
              <td colspan="4"><img height="11" alt="" src="images/spacer.gif" width="1" border="0" /></td>
            </tr>
            <tr>
              <td style="WIDTH: 54px">&nbsp;</td>
              <td><img height="1" alt="" src="images/spacer.gif" width="8" border="0" /></td>
              <td class="textform" style="WIDTH: 101px"> &nbsp;PLZ / Ort              </td>
              <td class="textform" style="WIDTH: 164px" align="right">(max. 31 Zeichen)&nbsp;&nbsp;</td>
            </tr>
            <tr>
              <td class="text" style="WIDTH: 54px">&nbsp;</td>
              <td><img height="1" alt=""  src="images/spacer.gif" width="1" border="0" /></td>
              <td style="WIDTH: 265px" colspan="2">
                <input name="PLZOrt" type="text" class="input" id="PLZOrt" style="WIDTH: 265px" size="30" maxlength="31" />
              </td>
            </tr>
            <tr>
              <td colspan="4"><img height="11" alt="" src="images/spacer.gif" width="1" border="0" /></td>
            </tr>
            <tr>
              <td><img height="1" alt="" src="images/spacer.gif" width="1" border="0" /></td>
              <td><img height="1" alt=""  src="images/spacer.gif" 
                  width="8" border="0" /></td>
              <td class="textformoblig" style="WIDTH: 101px">&nbsp;Email*              </td>
              <td class="textformoblig" style="WIDTH: 164px" align="right"> (max. 100 Zeichen)&nbsp;&nbsp;</td>
            </tr>
            <tr>
              <td><img height="1" alt="" src="images/spacer.gif" width="1" border="0" /></td>
              <td><img height="1" alt="" src="images/spacer.gif" width="1" border="0" /></td>
              <td colspan="2">
                <input name="email2" type="text" class="input" id="email2" style="WIDTH: 265px" size="30" maxlength="100" />
              </td>
            </tr>
            <tr>
              <td colspan="4"><img height="11" alt="" src="images/spacer.gif" width="1" border="0" /></td>
            </tr>
            <tr>
              <td><img height="1" alt="" src="images/spacer.gif" width="1" border="0" /></td>
              <td><img height="1" alt=""  src="images/spacer.gif" 
                  width="8" border="0" /></td>
              <td class="textformoblig" style="WIDTH: 101px">&nbsp;Bemerkungen </td>
              <td class="textformoblig" style="WIDTH: 164px" align="right"> (max. 100 Zeichen)&nbsp;&nbsp;</td>
            </tr>
            <tr>
              <td><img height="1" alt="" src="images/spacer.gif" width="1" border="0" /></td>
              <td><img height="1" alt="" src="images/spacer.gif" width="1" border="0" /></td>
              <td colspan="2">
                <textarea name="Bemerkungen" cols="40"  rows="5" class="input" id="Bemerkungen" style="WIDTH: 267px"></textarea>
              </td>
            </tr>
            <tr>
              <td colspan="4"><img height="11" alt="" src="images/spacer.gif" width="1" border="0" /></td>
            </tr>
            <tr>
              <td><img height="1" alt="" src="images/spacer.gif" width="1" border="0" /></td>
              <td><img height="1" alt=""  src="images/spacer.gif" 
                  width="8" border="0" /></td>
              <td class="textformoblig" style="WIDTH: 101px">Empf&auml;nger</td>
              <td class="textformoblig" style="WIDTH: 164px" align="right">&nbsp;&nbsp;</td>
            </tr>
            <tr>
              <td colspan="4"><img align="absbottom" src="./mailimage.php?email=<?= $_GET['to'] ?>&font=5&fsize=10&bgcolor=255,255,255&fontcolor=0,0,0&fromimage=0" border="0"></td>
            </tr>
            <tr>
              <td colspan="4">
                <div align="center">
                  <input type="submit" name="_Abschicken" value="Abschicken" onclick="MM_validateForm('Name','','R','email2','','NisEmail');return document.MM_returnValue" />
                  <input type="reset" name="Zur&uuml;cksetzen" value="Zur&uuml;cksetzen" />
                </div>
              </td>
            </tr>
          </table>
            </td>
      </tr>
  </table>
</form>
</body>
</html>