Tach zusammen.
Habe da ein kleines Problem.
habe hier eine html seite:
Mus stückeln da die nachricht zu lang ist.
Habe da ein kleines Problem.
habe hier eine html seite:
PHP-Code:
<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript" SRC="shop.js"></SCRIPT>
<LINK REL="stylesheet" TYPE="text/css" HREF="../main.css">
<SCRIPT LANGUAGE="JavaScript" type="text/javascript">
<!--
function check(checkbox, senden) {
if(checkbox.checked==true){
senden.disabled = false;
}
else {
senden.disabled = true;
}
}
var win=null;
function NewWindow(mypage,myname,w,h,pos,infocus){
if(pos=="random"){myleft=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;mytop=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/2:100;}
else if((pos!='center' && pos!="random") || pos==null){myleft=0;mytop=20}
settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no";win=window.open(mypage,myname,settings);
win.focus();}
//-->
</SCRIPT>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TOPMARGIN="0" BOTTOMMARGIN="0" LEFTMARGIN="0" RIGHTMARGIN="0" MARGINWIDTH="0" MARGINHEIGHT="0">
<CENTER>
<BR>
<b>Kontrolieren Sie nocheinmal Ihre Bstellung, und Füllen Sie das Unten stehende Formular aus.
<FORM action="bestell.php" method="post" name="agb"><input type="hidden" name="PHPSESSID" METHOD="POST" ENCTYPE="text/plain">
<CENTER>
<TABLE BORDER="0" CELLSPACING="1" CELLPADDING="12" bordercolor="black">
<TR>
<TD VALIGN="TOP"><font face="verdana" size="2"><b>Anzahl</TD>
<TD VALIGN="TOP"><font face="verdana" size="2"><b>Artikel</TD>
<TD VALIGN="TOP"><font face="verdana" size="2"><b>Art.Nr.</TD>
<TD VALIGN="TOP"><font face="verdana" size="2"><b>Einzelpreis</TD>
<TD VALIGN="TOP"><font face="verdana" size="2"><b>Gesamtpreis</TD><TR>
<SCRIPT LANGUAGE="JavaScript" type="text/javascript">
<!--
var gesamtpreis=0;
for (i in items) {
if (items[i][3] > 0) {
document.write('<TR><TD><center><font face="verdana" size="2"><b>' +items[i][3]+ '</TD>\n');
document.write('<TD><font face="verdana" size="2"><b>' +items[i][0]+ '</TD>\n');
document.write('<TD><font face="verdana" size="2"><b>' +items[i][1]+ '</TD>\n');
document.write('<TD ALIGN="Right"><font face="verdana" size="2"><b>' +items[i][2]+ ' €</TD>\n');
document.write('<TD ALIGN="Right"><font face="verdana" size="2"><b>' +rechnen()+ ' €</TD></TR>\n');
}
}
document.write('<TR><TD ALIGN="Right" COLSPAN=4><font face="verdana" size="2"><b>Gesamtsumme</TD><TD ALIGN="Right"><font face="verdana" size="2"><b>' +gesamt()+ ' €</TD>');
document.write('</TR></TABLE>');
for (i in items) {
if (items[i][3] > 0) {
document.write('<INPUT TYPE="HIDDEN" NAME="order' +i+ '" VALUE="' +items[i][3]+ '">');
document.write('<INPUT TYPE="HIDDEN" NAME="order' +i+ '" VALUE="' +items[i][0]+ '">');
document.write('<INPUT TYPE="HIDDEN" NAME="order' +i+ '" VALUE="' +items[i][1]+ '">');
document.write('<INPUT TYPE="HIDDEN" NAME="order' +i+ '" VALUE="' +items[i][2]+ '">');
document.write('<INPUT TYPE="HIDDEN" NAME="order' +i+ '" VALUE="' +rechnen()+ ' €">');
}
}
//-->
</SCRIPT>
<br>
<table witdh=100%>
<tr>
<td><p><b>Name :</td>
<td><br></td>
<td><input type="text" name="name" size="40"></td>
</tr>
<tr>
<tr>
<td><p><b>Straße :</td>
<td><br></td>
<td><input type="text" name="straße" size="40"></td>
</tr>
<tr>
<td><p><b>Plz :</td>
<td><br></td>
<td><input type="text" name="plz" size="40"></td>
</tr>
<tr>
<td><p><b>Ort :</td>
<td><br></td>
<td><input type="text" name="ort" size="40"></td>
</tr>
<tr>
<td><p><b>Tel :</td>
<td><br></td>
<td><input type="text" name="tel" size="40"></td>
</tr>
<td><p><b>E-Mail :</td>
<td><br></td>
<td><input type="text" name="mail" size="40"></td>
</tr>
<tr>
<td><p><b>Ihre Nachricht :</td>
<td><br></td>
<td><textarea name="nachricht" rows="5" cols="30"></textarea></td>
</tr>
<tr>
<td colspan=2><br></td>
<td><input type="checkbox" name="agb_check" onClick="check(this, document.agb.senden)"> Ich habe die <a href="javascript:NewWindow('../navigation/agb.html','popup','500','435','center','front');"><b>AGB's</b></a> gelesen, und akzeptiere diese.<br><br><center><input type="submit" value="Bestellung Absenden" name="senden" disabled> <input type="reset" value="Daten löschen"></center></td>
</tr>
</table>
</FORM>
</BODY>
</HTML>
Mus stückeln da die nachricht zu lang ist.
Kommentar