Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Lay-out problem


Jaapv

Recommended Posts

Posted

Code below is a custom form response page. The right-column and the footer somehow don't show. See it in action here: http://www.onderdelenbalie.nl/filter_mail.php

Can someone please help me to correct the problem?

 

Thx!

 

<?php

/*

$Id: shipping.php,v 1.22 2003/06/05 23:26:23 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

require('includes/application_top.php');

 

require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_FILTER);

 

$breadcrumb->add(NAvb script:history.go(-1)'><b>« Terug</b></a>");

}

 

if (strlen($contactpersoon) == 0 )

{

die("Geef een contactpersoon op.<br><br><br><a href='java script:history.go(-1)'><b>« Terug</b></a>");

}

 

if (strlen($vestigingsplaats) == 0 )

{

die("Geef een vestigingsplaats op.<br><br><br><a href='java script:history.go(-1)'><b>« Terug</b></a>");

}

 

if (strlen($telefoon) == 0 )

{

die("Geef een telefoonnummer op.<br><br><br><a href='java script:history.go(-1)'><b>« Terug</b></a>");

}

 

if (! ereg('[A-Za-z0-9_-]+\@[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+', $emailadres))

{

die("Geef een geldig e-mailadres op, volgens [email protected].<br><br><br><a href='java script:history.go(-1)'><b>« Terug</b></a>");

}

 

if (strlen($emailadres) == 0 )

{

die("Geef een geldig e-mailadres op, volgens [email protected].<br><br><br><a href='java script:history.go(-1)'><b>« Terug</b></a>");

}

 

//Sending Email to form owner

$pfw_header = "From: $emailadres\n"

. "Reply-To: $emailadres\n";

$pfw_subject = "Aanvraag filter via website";

$pfw_email_to = "[email protected]";

$pfw_message = "Visitor's IP: $pfw_ip\n"

. "artikelnummer_motoroliefilter: $artikelnummer_motoroliefilter\n"

. "aantal_motoroliefilter: $aantal_motoroliefilter\n"

. "artikelnummer_brandstoffilter: $artikelnummer_brandstoffilter\n"

. "aantal_brandstoffilter: $aantal_brandstoffilter\n"

. "artikelnummer_luchtfilter: $artikelnummer_luchtfilter\n"

. "aantal_luchtfilter: $aantal_luchtfilter\n"

. "artikelnummer_hudrauliekfilter: $artikelnummer_hudrauliekfilter\n"

. "aantal_hydrauliekfilter: $aantal_hydrauliekfilter\n"

. "artikelnummer_cabinefilter: $artikelnummer_cabinefilter\n"

. "aantal_cabinefilter: $aantal_cabinefilter\n"

. "artikelnummer_overigefilters: $artikelnummer_overigefilters\n"

. "aantal_overigefilters: $aantal_overigefilters\n"

. "aanvullende_tech_info: $aanvullende_tech_info\n"

. "soort_voertuig: $soort_voertuig\n"

. "merk_voertuig: $merk_voertuig\n"

. "type_voertuig: $type_voertuig\n"

. "serienummer_voertuig: $serienummer_voertuig\n"

. "bouwjaar_voertuig: $bouwjaar_voertuig\n"

. "merk_motor: $merk_motor\n"

. "type_motor: $type_motor\n"

. "brandstof_motor: $brandstof_motor\n"

. "opmerkingen: $opmerkingen\n"

. "bedrijfsnaam: $bedrijfsnaam\n"

. "contactpersoon: $contactpersoon\n"

. "vestigingsplaats: $vestigingsplaats\n"

. "telefoon: $telefoon\n"

. "emailadres: $emailadres\n"

. "contact: $contact\n";

@mail($pfw_email_to, $pfw_subject ,$pfw_message ,$pfw_header ) ;

 

//Sending auto respond Email to visitor

$pfw_header = "From: [email protected]\n"

. "Reply-To: [email protected]\n";

$pfw_subject = "Uw aanvraag bij Onderdelenbalie.nl";

$pfw_email_to = "$emailadres";

$pfw_message = "Beste $contactpersoon,\n"

. "\n"

. "We hebben uw aanvraag ontvangen en nemen binnen enkele werkdagen contact met u op met informatie over het betreffende filter.\n"

. "\n"

. "Met vriendelijke groet,\n"

. "\n"

. "Onderdelenbalie.nl";

@mail($pfw_email_to, $pfw_subject ,$pfw_message ,$pfw_header ) ;

 

echo("Dankuwel voor uw aanvraag. We nemen binnen enkele werkdagen contact met u op.");

?>

</td>

</tr>

</table></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">

<tr class="infoBoxContents">

<td><table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

<td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

</table></td>

<!-- body_text_eof //-->

<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="0">

<!-- right_navigation //-->

<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>

<!-- right_navigation_eof //-->

</table></td>

</tr>

</table>

<!-- body_eof //-->

 

<!-- footer //-->

<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>

<!-- footer_eof //-->

<br>

 

<script language=JavaScript>

<!--

 

//Disable right mouse click Script

//By Maximus ([email protected]) w/ mods by DynamicDrive

//For full source code, visit http://www.dynamicdrive.com

 

var message="© 2006 Onderdelenbalie.nl";

 

///////////////////////////////////

function clickIE4(){

if (event.button==2){

alert(message);

return false;

}

}

 

function clickNS4(e){

if (document.layers||document.getElementById&&!document.all){

if (e.which==2||e.which==3){

alert(message);

return false;

}

}

}

 

if (document.layers){

document.captureEvents(Event.MOUSEDOWN);

document.onmousedown=clickNS4;

}

else if (document.all&&!document.getElementById){

document.onmousedown=clickIE4;

}

 

document.oncontextmenu=new Function("alert(message);return false")

 

// -->

</script>

 

</body>

</html>

<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

"My name is Ass, Dumb Ass"

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...