Nicht mehr ganz neu hier
Hab ein Problem undzwar habe ich hier eine HTML Email, in der ich eine IF Abfrage haben möchte, aber iwie bekomm ich die verknüpfung nicht korrekt hin. evtl kann mir ja hier jemand helfen: ich makiere die betreffende Stelle FETT:
Okay das mit dem Fett hat nicht geklappt.. die stelle ist im unteren Mittelfeld.
HTML:
<?php
// mehrere Empfänger
$empfaenger = $_SESSION['Email'] . ', '; // beachten Sie das Komma
$empfaenger .= 'Email.de';
/*$empfaenger .= 'Email.de';*/
// Betreff
$betreff = 'Bestellung eines Gameservers bei Clanplace.de';
// Nachricht
$nachricht = '
<html>
<head>
<title>Geburtstags-Erinnerungen für August</title>
<style type="text/css"><!--
html {
margin: 0;
padding: 0;
}
body {
color: #E0E0E0;
font-size: 12px;
margin: 0;
padding: 0;
font-family: Verdana;
}
th {
font-weight: normal;
font-size: 12px;
}
td {
font-weight: normal;
font-size: 12px;
margin: 0;
padding: 0;
padding-left: 10px;
}
.min {
padding: 0px;
}
tr {
}
//-->
</style>
</head>
<body>
<table width="704px" style="background: #262626; padding: 0; margin-top: -10;">
<tr>
<td colspan="2" style="height: 92px; background: url(top_header_rep.jpg)repeat-x; text-align: right;"><img src="logo.jpg" /></td>
</tr>
<tr>
<td colspan="2" style="padding-top: 10px; width: 100%; height: 15px;"><h2>Bestellbestätigung</h2></td>
</tr>
<tr>
<td colspan="2">
Hallo Vorname Nachname,<br />
<br />
vielen Dank für deine Bestellung eines Gameservers.<br />
Wir werden sie schnellstmöglich bearbeiten.<br />
<br />
Mit freundlichen Grüßen,<br />
Dein Team<br />
</td>
</tr>
<tr>
<td colspan="2" style="text-align: left;">
<br />
<hr style="" />
<br />
</td>
</tr>
<tr>
<td colspan="2" style="background: #262626; width: 100px;">
<div style="padding-bottom: 5px;"><h5 style="padding-left: 0px;">Personendaten</h5></div>
<div class="text" style="width: 491px; background: #2f2f2f; height: 20px; color: #e0e0e0;">
<div style="float: left; width: 260px; padding-top: 2px;">Anrede</div>
<div style="float: left; width: 221px; padding-top: 2px;">'.$_SESSION['Anrede'].'</div>
</div>
<div class="text" style="width: 491px; background: #1d1d1d; height: 20px; color: #e0e0e0;">
<div style="float: left; width: 260px; padding-top: 2px;">Vorname</div>
<div style="float: left; width: 221px; padding-top: 2px;">'.$_SESSION['Vorname'].'</div>
</div>
<div class="text" style="width: 491px; background: #2f2f2f; height: 20px; color: #e0e0e0;">
<div style="float: left; width: 260px; padding-top: 2px;">Nachname</div>
<div style="float: left; width: 221px; padding-top: 2px;">'.$_SESSION['Nachname'].'</div>
</div>
<div class="text" style="width: 491px; background: #1d1d1d; height: 20px; color: #e0e0e0;">
<div style="float: left; width: 260px; padding-top: 2px;">E-Mail</div>
<div style="float: left; width: 221px; padding-top: 2px;">'.$_SESSION['Email'].'</div>
</div>
<div class="text" style="width: 491px; background: #2f2f2f; height: 20px; color: #e0e0e0;">
<div style="float: left; width: 260px; padding-top: 2px;">Telefon</div>
<div style="float: left; width: 221px; padding-top: 2px;">'.$_SESSION['Telefon'].'</div>
</div>
<div class="text" style="width: 491px; background: #1d1d1d; height: 20px; color: #e0e0e0;">
<div style="float: left; width: 260px; padding-top: 2px;">Straße / Hausnummer</div>
<div style="float: left; width: 221px; padding-top: 2px;">'.$_SESSION['Strasse'].' '.$_SESSION['Hn'].'</div>
</div>
<div class="text" style="width: 491px; background: #2f2f2f; height: 20px; color: #e0e0e0;">
<div style="float: left; width: 260px; padding-top: 2px;">PLZ / Ort</div>
<div style="float: left; width: 221px; padding-top: 2px;">'.$_SESSION['PLZ'].' '.$_SESSION['Ort'].'</div>
</div>
<br style="clear: left;" />
<div style="padding-bottom: 5px;"><h5 style="padding-left: 0px;">Zahlungsdaten</h5></div>
<div class="text" style="width: 491px; background: #2f2f2f; height: 20px; color: #e0e0e0;">
<div style="float: left; width: 260px; padding-top: 2px;">Zahlungsmethode</div>
<div style="float: left; width: 221px; padding-top: 2px;">
'.
if($_SESSION['Zahlungsart'] == 'Bankeinzug') {
echo $_SESSION['Zahlungsart'];
}
else if($_SESSION['Zahlungsart'] == 'PayPal') {
echo $_SESSION['Zahlungsart'];
}
else if ($_SESSION['Zahlungsart'] == 'Ueberweisung') {
echo 'Überweisung';
}
.'
</div>
'.
if($_SESSION['Zahlungsart'] == 'Bankeinzug') {
<div class="text" style="width: 491px; background: #2f2f2f; height: 20px; color: #e0e0e0;">
<div style="float: left; width: 260px; padding-top: 4px;">Kontonummer</div>
<div style="float: left; width: 221px; padding-top: 4px;">'; '.$_SESSION['Kto'].'
</div></div>';
<div class="text" style="width: 491px; background: #1d1d1d; height: 20px; color: #e0e0e0;">
<div style="float: left; width: 260px; padding-top: 4px;">Bankleitzahl</div>
<div style="float: left; width: 221px; padding-top: 4px;">'; '.$_SESSION['BLZ'].'
</div></div>';
<div class="text" style="width: 491px; background: #2f2f2f; height: 20px; color: #e0e0e0;">
<div style="float: left; width: 260px; padding-top: 4px;">Kreditinstitut</div>
<div style="float: left; width: 221px; padding-top: 4px;">';'.$_SESSION['Bank'].'
</div></div>';
}
elseif($_SESSION['Zahlungsart'] == 'PayPal') {
<div class="text" style="width: 491px; background: #2f2f2f; height: 20px; color: #e0e0e0;">
<div style="float: left; width: 260px; padding-top: 4px;">PayPal E-Mail</div>
<div style="float: left; width: 221px; padding-top: 4px;">';'.$_SESSION['PayPal'].'
</div></div>';
}
</div>
<br style="clear: left;" />
<div style="padding-bottom: 5px;"><h5 style="padding-left: 0px;">Produktoptionen</h5></div>
<div class="text" style="width: 491px; background: #2f2f2f; height: 20px; color: #e0e0e0;">
<div style="float: left; width: 260px; padding-top: 2px;">Spieleranzahl</div>
<div style="float: left; width: 160px; padding-top: 2px;">'.$_SESSION['Slots'].'</div>
<div style="float: left; width: 54px; text-align: right; padding-top: 2px;">''.$Endpreis_Slots_rund.' '; .' €</div>
</div>
<div class="text" style="width: 491px; background: #1d1d1d; height: 20px; color: #e0e0e0;">
<div style="float: left; width: 260px; padding-top: 2px;">Serverart</div>
<div style="float: left; width: 160px; padding-top: 2px;">'.$_SESSION['serverart'].'</div>
<div style="float: left; width: 54px; text-align: right; padding-top: 2px;"> </div>
</div>
<div class="text" style="width: 491px; background: #2f2f2f; height: 20px; color: #e0e0e0;">
<div style="float: left; width: 260px; padding-top: 2px;">Unser Banner auf eurer Seite</div>
<div style="float: left; width: 160px; padding-top: 2px;">'.$_SESSION['Banner'].'</div>
<div style="float: left; width: 54px; text-align: right; padding-top: 2px;">''- '.$Preis_banner;.' €</div>
</div>
<div class="text" style="width: 491px; background: #1d1d1d; height: 20px; color: #e0e0e0;">
<div style="float: left; width: 260px; padding-top: 2px;">Clanplace.de im Servernamen</div>
<div style="float: left; width: 160px; padding-top: 2px;">'.$_SESSION['cp-de'].'</div>
<div style="float: left; width: 54px; text-align: right; padding-top: 2px;">'.'-'.$Preis_cpde;.' €</div>
</div>
<div class="text" style="width: 491px; background: #2f2f2f; height: 20px; color: #e0e0e0;">
<div style="float: left; width: 260px; padding-top: 2px;">Vertragslaufzeit</div>
<div style="float: left; width: 160px; padding-top: 2px;">'.$_SESSION['Laufzeit'].'</div>
<div style="float: left; width: 54px; text-align: right; padding-top: 2px;"> </div>
</div>
<br style="clear: left;" />
<div style="padding-bottom: 5px;"><h5 style="padding-left: 0px;">Spielwahl</h5></div>
<div class="text" style="width: 491px; background: #2f2f2f; height: 20px; color: #e0e0e0;">
<div style="float: left; width: 260px; padding-top: 2px;">'.$_SESSION['Spiel-wahl'].'</div>
<div style="float: left; width: 160px; padding-top: 2px;"> </div>
<div style="float: left; width: 54px; text-align: right; padding-top: 2px;"> </div>
</div>
<br style="clear: left;" />
<div style="padding-bottom: 5px;"><h5 style="padding-left: 0px;">Gesamtbetrag</h5></div>
<div class="text" style="width: 491px; background: #2f2f2f; height: 20px; color: #e0e0e0;">
<div style="float: left; width: 260px; padding-top: 2px;">Monatlich</div>
<div style="float: left; width: 160px; padding-top: 2px;"> </div>
<div style="float: left; width: 54px; text-align: right; padding-top: 2px;">'.$Preis_proMonat_rund.' €</div>
</div>
<div class="text" style="width: 491px; background: #1d1d1d; height: 20px; color: #e0e0e0;">
<div style="float: left; width: 260px; padding-top: 2px;">Einmalige Einrichtungsgebühr</div>
<div style="float: left; width: 160px; padding-top: 2px;"> </div>
<div style="float: left; width: 54px; text-align: right; padding-top: 2px;">'.$einrichtung.' €</div>
</div>
<div class="text" style="width: 491px; background: #2f2f2f; height: 20px; color: #e0e0e0;">
<div style="float: left; width: 260px; padding-top: 2px;"><b>Gesamt</b></div>
<div style="float: left; width: 160px; padding-top: 2px;"> </div>
<div style="float: left; width: 54px; text-align: right; padding-top: 2px;"><b>'.$Preis_gesamt.' €</b></div>
</div>
</td>
</tr>
<tr><td> </td></tr>
</table>
</body>
</html>
';
Zuletzt bearbeitet: