sven: Daten in Formmail

Beitrag lesen

in der datei condpopup.htm werden die sachen doch angezeigt! schau dir diese datei mal genauer an!

Habe sie mir angeschaut ist nur eine Function sprich steht ja da das window.open und er öffnet mir da ja nur ein Fenster mit den AGB´s aber der Befehl showItems() der zeigt die bestellten Artikel an wie kann ich das jetzt denn nutzen um das in eine Mail anhand von datei oder schon geschrieben in der Mail anzeigen lassen, also muss man doch denke ich die bestellten artikel übergeben in das formmail sonst weiß das formmail ja net was es alles abschicken soll, nur wie du siehst steht da ne menge? Hast ne Idee?

<SCRIPT LANGUAGE="JavaScript">

function showItems() {         var tablerowcolor = '#F0F0F0';

totprice = 0;         totvat = 0;         document.writeln('<TABLE class="basket" width=100% BORDER=0 CELLPADDING="2">');         document.writeln('<TR BGCOLOR="#C0C0C0"><TD class="basket"><b>'+parent.Loc_Article+'</b></TD><TD class="basket" align="right"><b>'+parent.Loc_Quantity+'</b></TD><TD class="basket" align="right"><b>'+parent.Loc_PriceEach+'</b></TD><td class="basket" align="right"><b>'+parent.Loc_PriceTotal+'</b></td></TR>');         document.writeln('<TR BGCOLOR="F8F8F8"><TD class="basket" colspan="4"><HR></TD></TR>');

for (var i = 1; i < parent.theBasket.length; i++)         {                 with(parent.theBasket[i])                 {                         theitem=Item;                         thequantity =Quantity;                         itemtotal = 0;

if ((parseFloat(Price2)>0) && (parseInt(Quantity) >= parseInt(Quantity2)))                                 theprice=Price2                         else                                 if ((parseFloat(Price1)>0) && (parseInt(Quantity) >= parseInt(Quantity1)))                                         theprice=Price1                                 else                                         theprice = Price;

itemtotal = (eval(theprice*thequantity));                         temptotal = itemtotal * 100;                         totprice = totprice + itemtotal;

thisvat = (parseFloat(itemtotal*productvatrate)) / (parseFloat(productvatrate)+parseFloat(100));                         thisvat = parseFloat(parent.alterError(thisvat));                         totvat = totvat + thisvat;

if(Attribut1=='') A1=''; else A1=', '+Attribut1;                         if(Attribut2=='') A2=''; else A2=', '+Attribut2;                         if(Attribut3=='') A3=''; else A3=', '+Attribut3;

itemlist=i;

hilf="";                         if (Textin != "") hilf="<BR> "+Textin;                         document.write('<tr BGCOLOR="'+tablerowcolor+'"> <td class="basket">'+theitem+A1+A2+A3+hilf+'</td>');                         document.writeln('<td class="basket" align=right>'+thequantity+'</td><td class="basket" align=right>'+parent.alterError(theprice)+'</td><td class="basket" align=right>'+parent.alterError(itemtotal)+'</td></tr>');                         document.writeln('<INPUT TYPE="hidden" NAME="Artikel'+itemlist+'" VALUE="'+theitem+A1+A2+A3+" "+Textin+'" SIZE="40">');                         document.writeln('<INPUT TYPE="hidden" NAME="Menge'+itemlist+'" VALUE="'+thequantity+'" SIZE="40">');                         document.writeln('<INPUT TYPE="hidden" NAME="Einzelpreis'+itemlist+'" VALUE="'+theprice+'" SIZE="40">');

document.writeln('<INPUT TYPE="hidden" NAME="Gesamtpreis'+itemlist+'" VALUE="'+parent.alterError(itemtotal)+'" SIZE="40">');

if (tablerowcolor == '#F0F0F0')                                 tablerowcolor = "#F8F8F8";                         else                                 tablerowcolor = "#F0F0F0";                 }         }

var postage=0;         postage=parseFloat(parent.myshipmentvalue);         var discount=0;

if ((totprice>=0)&(0 != 0))                 discount=0;

if((totprice>=0)&(0!=0))                 discount=0;

var discountamount=totprice*discount/100;         var discountprice=totprice-discountamount;

if ((discountprice>=1000)&(1000!=0)&(postage>5))                 postage=5;

if ((discountprice>=2000)&(2000!=0)&(postage>0))                 postage=0;

document.writeln('<TR BGCOLOR="F8F8F8"><TD class="basket" colspan="4"><HR></TD></TR>');         document.writeln('<INPUT TYPE="hidden" NAME="pid" VALUE="'+parent.pid+'">');         var finalprice=discountprice+postage;

document.writeln('<TR BGCOLOR="#C0C0C0"><td class="basket" colspan=3><b>'+parent.Loc_Total+'</b></td><td class="basket" align=right><b>EUR '+parent.alterError(totprice)+'</b></td></tr>');

if (discount>0)                 document.writeln('<TR BGCOLOR="#C0C0C0"><td class="basket"><b>'+parent.Loc_Discount+'</b></td><td class="basket" align=right colspan=2><b>'+parent.alterError(discount)+" %"+'</b></td><td class="basket" align=right><b>EUR '+parent.alterError(discountamount)+'</b></td></tr>');

document.writeln('<TR BGCOLOR="#C0C0C0"><td class="basket" colspan=3><b>'+parent.Loc_Postage+ '</b> ('+parent.myshipmenttext+')</td><td class="basket" align=right><b>EUR '+parent.alterError(postage)+'</b></td></tr>');

document.writeln('<TR BGCOLOR="#C0C0C0"><TD class="basket" colspan="5"></TD></TR>');

document.writeln('<TR BGCOLOR="#C0C0C0"><td class="basket" colspan=3><b>Endpreis</b> (Zahlung per '+parent.mypaymentvalue+')</td><td class="basket" align=right><b>EUR '+parent.alterError(finalprice)+'</b></td></tr>');

document.writeln('<INPUT TYPE="hidden" NAME="Warenwert" VALUE="'+parent.alterError(totprice)+'" SIZE="40">');

if (discount>0)         document.writeln('<INPUT TYPE="hidden" NAME="Rabatt" VALUE="'+parent.alterError(discountamount)+'" SIZE="40">');

document.writeln('<INPUT TYPE="hidden" NAME="Versandart" VALUE="'+parent.myshipmenttext+'" SIZE="40">');

document.writeln('<INPUT TYPE="hidden" NAME="Versandkosten" VALUE="'+parent.alterError(postage)+'" SIZE="40">');

document.writeln('<INPUT TYPE="hidden" NAME="Zahlungsart" VALUE="'+parent.mypaymentvalue+'" SIZE="40">');

document.writeln('<INPUT TYPE="hidden" NAME="Rechnungsbetrag" VALUE="'+parent.alterError(finalprice)+'" SIZE="40">');

document.writeln('</TABLE>'); }

</SCRIPT>

Gruss

Sven