<?
$erg = db_query('SELECT * FROM `ic1_warenkorb`WHERE sid = "'.session_id().'"');
while ($row = db_fetch_assoc($erg) ) {
$paketname = $row['paket'];
$geschmack0 = $row['geschmack0'];
$geschmack1 = $row['geschmack1'];
$geschmack2 = $row['geschmack2'];
$typ0 = $row['typ0'];
$typ1 = $row['typ1'];
$typ2 = $row['typ2'];
$preis = $row['preis'];
$menge = $row['menge'];
if ($geschmack0 == '0')
{
$geschmack0 = '';
} else {
$geschmack0 = $geschmack0.',';
}
if ($geschmack1 == '0')
{
$geschmack1 = '';
} else {
$geschmack1 = $geschmack1.',';
}
if ($geschmack2 == '0')
{
$geschmack2 = '';
} else {
$geschmack2 = $geschmack2.',';
}
if ($typ0 == '0')
{
$typ0 = '';
} else {
$typ0 = $typ0.',';
}
if ($typ1 == '0')
{
$typ1 = '';
} else {
$typ1 = $typ1.',';
}
if ($typ2 == '0')
{
$typ2 = '';
} else {
$typ2 = $typ2.',';
}
$eigenschaften = $geschmack0.' '.$geschmack1.' '.$geschmack2.' '.$typ0.' '.$typ1.' '.$typ2;
$preissumme = $preis*$menge.' €';
echo '
<tr>
<td width="500">
<b>'.$paketname.'</b><br>
<font size="2"><i>'.$eigenschaften.'</i></font>
</td>
<td width="190">
<p align="center">'.$preis.'</p>
</td>
<td width="125">
<p align="center">'.$menge.'</p>
</td>
<td width="70">
<p align="center">'.$preissumme.'</p>
</td>
<td width="73">
<p align="center">müll</p>
</td>
</tr>';
}
echo '
<tr>
<td width="690" colspan="2" height="16">
<p align="center" style="line-height:100%; margin-top:0; margin-bottom:0;"> </p>
</td>
<td width="125" height="16">
<p align="left" style="line-height:100%; margin-top:0; margin-bottom:0;">Summe:</p>
</td>
<td width="70" height="16">
<p align="center" style="line-height:100%; margin-top:0; margin-bottom:0;">'.$summe.'</p>
</td>
<td width="73" height="16">
<p align="center" style="line-height:100%; margin-top:0; margin-bottom:0;"> </p>
</td>
</tr>
<tr>
<td width="690" height="15" colspan="2">
<p align="center" style="line-height:100%; margin-top:0; margin-bottom:0;"> </p>
</td>
<td width="125" height="15">
<p align="left" style="line-height:100%; margin-top:0; margin-bottom:0;"><font size="1">inkl. 7% Mwst.</font></p>
</td>
<td width="70" height="15">
<p align="center" style="line-height:100%; margin-top:0; margin-bottom:0;">'.$mwst.'</p>
</td>
<td width="73" height="15">
<p align="center" style="line-height:100%; margin-top:0; margin-bottom:0;"> </p>
</td>
</tr>
</table></center>';
?>