#i","",$contents);
$te=$contents;
fclose ($handle);
}
if ($add)
{
$fd = fopen("adressen.txt", "w");
$cont=preg_replace ("#
#i","",$list);
fwrite($fd, $cont);
fclose($fd);
$te=$list;
if ($bez)
{
$li1[]=$bez;
$li2[]=$meng;
$li3[]=$einzel;
$li4[]=$meng*$einzel;
}
}
if ($fertig)
{
echo "\n";
echo "
\n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " |
\n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " |
\n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " |
\n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " |
\n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " |
\n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " |
\n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " |
\n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " |
\n"; echo nl2br($empf); echo " | \n"; echo "\n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | ||
\n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | |||
\n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | |||
\n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | |||
\n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " |
\n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " |
\n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " |
\n"; echo " | $rechn | \n"; echo "\n"; echo " | \n"; echo " | \n"; echo " | \n";
echo " $datum \n";
echo " | \n";
echo " |
\n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " |
\n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | |
\n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " |
\n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " |
\n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " |
\n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " |
".nl2br($li1[$i])." | \n"; echo " \n";
echo " $li2[$i] \n";
echo " | \n";
echo " \n";
echo " x \n";
echo " | \n";
echo " \n";
echo " ".number_format($li3[$i],2)." \n";
echo " | \n";
echo " \n";
echo " ".number_format($li4[$i],2)." \n";
echo " | \n";
echo " ||
\n"; echo " | ||||||
Porto | \n"; echo "\n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | \n";
echo " ".number_format($porto,2)." \n";
echo " | \n";
echo "
\n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | \n";
echo " _______________ \n";
echo " | \n";
echo "
\n"; echo " | \n"; echo " | \n"; echo " | \n"; $ic=count($li1); $ic=$ic-1; for ($i = 0; $i <= $ic; $i++) { $all=$all+$li4[$i]; } $all=$all+$porto; $mwst=$all/100*16; echo " | Summe: | \n"; echo " \n";
echo " ".number_format($all,2)." \n";
echo " | \n";
echo " |
\n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | +MwSt. 16% | \n"; echo " \n";
echo " ".number_format($mwst,2)." \n";
echo " | \n";
echo " |
\n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " |
\n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | Endbetrag: | \n"; echo "\n";
echo " ".number_format($all+$mwst,2)." \n";
echo " | ";
echo " |
\n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " | \n";
echo " ============== \n";
echo " | \n";
echo " ||
\n"; echo " | \n"; echo " | \n"; echo " | \n"; echo " |