473,395 Members | 1,658 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Orphan table, td and tr tags

Good Day to everyone.

A few pages on my site are not displaying properly and I believe the tables in the template are at fault. I have looked at the pages with Firebug and searched the files with Notepad++, but my amateur eyes are not seeing which tags are mismatched (improperly nested, closed out of order etc.).

I am including the code for the files below.

checkout payment:

Expand|Select|Wrap|Line Numbers
  1. <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <html <?php echo HTML_PARAMS; ?>>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
  5. <title><?php echo TITLE; ?></title>
  6. <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
  7. <link rel="stylesheet" type="text/css" href="stylesheet.css">
  8. <script language="javascript"><!--
  9. var selected;
  10.  
  11. function selectRowEffect(object, buttonSelect) {
  12.   if (!selected) {
  13.     if (document.getElementById) {
  14.       selected = document.getElementById('defaultSelected');
  15.     } else {
  16.       selected = document.all['defaultSelected'];
  17.     }
  18.   }
  19.  
  20.   if (selected) selected.className = 'moduleRow';
  21.   object.className = 'moduleRowSelected';
  22.   selected = object;
  23.  
  24. // one button is not an array
  25.   if (document.checkout_payment.payment[0]) {
  26.     document.checkout_payment.payment[buttonSelect].checked=true;
  27.   } else {
  28.     document.checkout_payment.payment.checked=true;
  29.   }
  30. }
  31.  
  32. function rowOverEffect(object) {
  33.   if (object.className == 'moduleRow') object.className = 'moduleRowOver';
  34. }
  35.  
  36. function rowOutEffect(object) {
  37.   if (object.className == 'moduleRowOver') object.className = 'moduleRow';
  38. }
  39. //--></script>
  40. <?php echo $payment_modules->javascript_validation(); ?>
  41. </head>
  42. <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
  43. <!-- header //-->
  44. <?php require(DIR_WS_INCLUDES . 'header.php'); ?>
  45. <!-- header_eof //-->
  46.  
  47. <!-- body //-->
  48. <table border="0" width="100%" cellspacing="3" cellpadding="3">
  49.   <tr>
  50.     <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
  51. <!-- left_navigation //-->
  52. <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
  53. <!-- left_navigation_eof //-->
  54.     </table></td>
  55. <!-- body_text //-->
  56.     <td width="100%" valign="top"><?php echo tep_draw_form('checkout_payment', tep_href_link(FILENAME_CHECKOUT_CONFIRMATION, '', 'SSL'), 'post', 'onsubmit="return check_form();"'); ?><table border="0" width="100%" cellspacing="0" cellpadding="0">
  57.       <tr>
  58.         <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
  59.           <tr>
  60.             <td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
  61.             <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_payment.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
  62.           </tr>
  63.         </table></td>
  64.       </tr>
  65.       <tr>
  66.         <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  67.       </tr>
  68. <?php
  69.   if (isset($HTTP_GET_VARS['payment_error']) && is_object(${$HTTP_GET_VARS['payment_error']}) && ($error = ${$HTTP_GET_VARS['payment_error']}->get_error())) {
  70. ?>
  71.       <tr>
  72.         <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
  73.           <tr>
  74.             <td class="main"><b><?php echo tep_output_string_protected($error['title']); ?></b></td>
  75.           </tr>
  76.         </table></td>
  77.       </tr>
  78.       <tr>
  79.         <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBoxNotice">
  80.           <tr class="infoBoxNoticeContents">
  81.             <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
  82.               <tr>
  83.                 <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
  84.                 <td class="main" width="100%" valign="top"><?php echo tep_output_string_protected($error['error']); ?></td>
  85.                 <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
  86.               </tr>
  87.             </table></td>
  88.           </tr>
  89.         </table></td>
  90.       </tr>
  91.       <tr>
  92.         <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  93.       </tr>
  94. <?php
  95.   }
  96. ?>
  97.       <tr>
  98.         <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
  99.           <tr>
  100.             <td class="main"><b><?php echo TABLE_HEADING_BILLING_ADDRESS; ?></b></td>
  101.           </tr>
  102.         </table></td>
  103.       </tr>
  104.       <tr>
  105.         <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
  106.           <tr class="infoBoxContents">
  107.             <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
  108.               <tr>
  109.                 <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> 
  110.                 <td class="main" width="50%" valign="top"><?php echo TEXT_SELECTED_BILLING_DESTINATION; ?><br><br><?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, '', 'SSL') . '">' . tep_image_button('button_change_address.gif', IMAGE_BUTTON_CHANGE_ADDRESS) . '</a>'; ?></td>
  111.                 <td align="right" width="50%" valign="top"><table border="0" cellspacing="0" cellpadding="2">
  112.                   <tr>
  113.                     <td class="main" align="center" valign="top"><b><?php echo TITLE_BILLING_ADDRESS; ?></b><br><?php echo tep_image(DIR_WS_IMAGES . 'arrow_south_east.gif'); ?></td>
  114.                     <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> 
  115.                     <td class="main" valign="top"><?php echo tep_address_label($customer_id, $billto, true, ' ', '<br>'); ?></td>
  116.                     <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> 
  117.                   </tr>
  118.                 </table></td>
  119.               </tr>
  120.             </table></td>
  121.           </tr>
  122.         </table></td>
  123.       </tr>
  124.       <tr>
  125.         <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  126.       </tr>
  127.       <tr>
  128.         <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
  129.           <tr>
  130.             <td class="main"><b><?php echo TABLE_HEADING_PAYMENT_METHOD; ?></b></td>
  131.           </tr>
  132.         </table></td>
  133.       </tr>
  134.       <tr>
  135.         <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
  136.           <tr class="infoBoxContents">
  137.             <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
  138. <?php
  139.   $selection = $payment_modules->selection();
  140.  
  141.   if (sizeof($selection) > 1) {
  142. ?>
  143.               <tr>
  144.                 <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
  145.                 <td class="main" width="50%" valign="top"><?php echo TEXT_SELECT_PAYMENT_METHOD; ?></td>
  146.                 <td class="main" width="50%" valign="top" align="right"><b><?php echo TITLE_PLEASE_SELECT; ?></b><br><?php echo tep_image(DIR_WS_IMAGES . 'arrow_east_south.gif'); ?></td>
  147.                 <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
  148.               </tr>
  149. <?php
  150.   } else {
  151. ?>
  152.               <tr>
  153.                 <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
  154.                 <td class="main" width="100%" colspan="2"><?php echo TEXT_ENTER_PAYMENT_INFORMATION; ?></td>
  155.                 <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
  156.               </tr>
  157. <?php
  158.   }
  159.  
  160.   $radio_buttons = 0;
  161.   for ($i=0, $n=sizeof($selection); $i<$n; $i++) {
  162. ?>
  163.               <tr>
  164.                 <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
  165.                 <td colspan="2"><table border="0" width="100%" cellspacing="0" cellpadding="2">
  166. <?php
  167.     if ( ($selection[$i]['id'] == $payment) || ($n == 1) ) {
  168.       echo '                  <tr id="defaultSelected" class="moduleRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, ' . $radio_buttons . ')">' . "\n";
  169.     } else {
  170.       echo '                  <tr class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, ' . $radio_buttons . ')">' . "\n";
  171.     }
  172. ?>
  173.                     <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
  174.                     <td class="main" colspan="3"><b><?php echo $selection[$i]['module']; ?></b></td>
  175.                     <td class="main" align="right">
  176. <?php
  177.     if (sizeof($selection) > 1) {
  178.       echo tep_draw_radio_field('payment', $selection[$i]['id'], ($selection[$i]['id'] == $payment));
  179.     } else {
  180.       echo tep_draw_hidden_field('payment', $selection[$i]['id']);
  181.     }
  182. ?>
  183.                     </td>
  184.                     <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
  185.                   </tr>
  186. <?php
  187.     if (isset($selection[$i]['error'])) {
  188. ?>
  189.                   <tr>
  190.                     <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
  191.                     <td class="main" colspan="4"><?php echo $selection[$i]['error']; ?></td>
  192.                     <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
  193.                   </tr>
  194. <?php
  195.     } elseif (isset($selection[$i]['fields']) && is_array($selection[$i]['fields'])) {
  196. ?>
  197.                   <tr>
  198.                     <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
  199.                     <td colspan="4"><table border="0" cellspacing="0" cellpadding="2">
  200. <?php
  201.       for ($j=0, $n2=sizeof($selection[$i]['fields']); $j<$n2; $j++) {
  202. ?>
  203.                       <tr>
  204.                         <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
  205.                         <td class="main"><?php echo $selection[$i]['fields'][$j]['title']; ?></td>
  206.                         <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
  207.                         <td class="main"><?php echo $selection[$i]['fields'][$j]['field']; ?></td>
  208.                         <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
  209.                       </tr>
  210. <?php
  211.       }
  212. ?>
  213.                     </table></td>
  214.                     <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
  215.                   </tr>
  216. <?php
  217.     }
  218. ?>
  219.                 </table></td>
  220.                 <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
  221.               </tr>
  222. <?php
  223.     $radio_buttons++;
  224.   }
  225. ?>
  226.             </table></td>
  227.           </tr>
  228.         </table></td>
  229.       </tr>
  230. <?php
  231. // {{ buySAFE Module
  232.   if (is_array($buysafe_result) && $buysafe_result['IsBuySafeEnabled'] == 'true')
  233.   {
  234.     $buysafe_module->draw_payment_page();
  235.   }
  236. // }}
  237. ?>      
  238.       <tr>
  239.         <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  240.       </tr>
  241.       <tr>
  242.         <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
  243.           <tr>
  244.             <td class="main"><b><?php echo TABLE_HEADING_COMMENTS; ?></b></td>
  245.           </tr>
  246.         </table></td>
  247.       </tr>
  248.       <tr>
  249.         <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
  250.           <tr class="infoBoxContents">
  251.             <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
  252.               <tr>
  253.                 <td><?php echo tep_draw_textarea_field('comments', 'soft', '60', '5', $comments); ?></td>
  254.               </tr>
  255.             </table></td>
  256.           </tr>
  257.         </table></td>
  258.       </tr>
  259.       <tr>
  260.         <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  261.       </tr>
  262.  
  263.      <?php
  264. /* kgt - discount coupons */
  265.     if( MODULE_ORDER_TOTAL_DISCOUNT_COUPON_STATUS == 'true' ) {
  266. ?>
  267.       <tr>
  268.         <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
  269.           <tr>
  270.             <td class="main"><b><?php echo TABLE_HEADING_COUPON; ?></b></td>
  271.           </tr>
  272.         </table></td>
  273.       </tr>
  274.       <tr>
  275.         <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
  276.           <tr class="infoBoxContents">
  277.             <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
  278.               <tr>
  279.                 <td class="main"><?php echo ENTRY_DISCOUNT_COUPON.' '.tep_draw_input_field('coupon', '', 'size="32"'); ?></td>
  280.               </tr>
  281.             </table></td>
  282.           </tr>
  283.         </table></td>
  284.       </tr>
  285.       <tr>
  286.         <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  287.       </tr>
  288. <?php
  289.     }
  290. /* end kgt - discount coupons */
  291. ?> 
  292.  
  293.       <tr>
  294.         <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
  295.           <tr class="infoBoxContents">
  296.             <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
  297.               <tr>
  298.                 <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
  299.                 <td class="main"><b><?php echo TITLE_CONTINUE_CHECKOUT_PROCEDURE . '</b><br>' . TEXT_CONTINUE_CHECKOUT_PROCEDURE; ?></td>
  300.                 <td class="main" align="right"><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td>
  301.                 <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
  302.               </tr>
  303.             </table></td>
  304.           </tr>
  305.         </table></td>
  306.       </tr>
  307.       <tr>
  308.         <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  309.       </tr>
  310.       <tr>
  311.         <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
  312.           <tr>
  313.             <td width="25%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
  314.               <tr>
  315.                 <td width="50%" align="right"><?php echo tep_draw_separator('pixel_silver.gif', '1', '5'); ?></td>
  316.                 <td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
  317.               </tr>
  318.             </table></td>
  319.             <td width="25%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
  320.               <tr>
  321.                 <td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
  322.                 <td><?php echo tep_image(DIR_WS_IMAGES . 'checkout_bullet.gif'); ?></td>
  323.                 <td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
  324.               </tr>
  325.             </table></td>
  326.             <td width="25%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
  327.             <td width="25%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
  328.               <tr>
  329.                 <td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
  330.                 <td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '1', '5'); ?></td>
  331.               </tr>
  332.             </table></td>
  333.           </tr>
  334.           <tr>
  335.             <td align="center" width="25%" class="checkoutBarFrom"><?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '" class="checkoutBarFrom">' . CHECKOUT_BAR_DELIVERY . '</a>'; ?></td>
  336.             <td align="center" width="25%" class="checkoutBarCurrent"><?php echo CHECKOUT_BAR_PAYMENT; ?></td>
  337.             <td align="center" width="25%" class="checkoutBarTo"><?php echo CHECKOUT_BAR_CONFIRMATION; ?></td>
  338.             <td align="center" width="25%" class="checkoutBarTo"><?php echo CHECKOUT_BAR_FINISHED; ?></td>
  339.           </tr>
  340.         </table></td>
  341.       </tr>
  342.     </table></form></td>
  343. <!-- body_text_eof //-->
  344.     <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
  345. <!-- right_navigation //-->
  346. <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>
  347. <!-- right_navigation_eof //-->
  348.     </table></td>
  349.   </tr>
  350. </table>
  351. <!-- body_eof //-->
  352.  
  353. <!-- footer //-->
  354. <?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
  355. <!-- footer_eof //-->
  356. <br>
  357. </body>
  358. </html>
  359. <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
  360.  
checkout confirmation:

Expand|Select|Wrap|Line Numbers
  1. <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <html <?php echo HTML_PARAMS; ?>>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
  5. <title><?php echo TITLE; ?></title>
  6. <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
  7. <link rel="stylesheet" type="text/css" href="stylesheet.css">
  8. </head>
  9. <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
  10. <!-- header //-->
  11. <?php require(DIR_WS_INCLUDES . 'header.php'); ?>
  12. <!-- header_eof //-->
  13.  
  14. <!-- body //-->
  15. <table border="0" width="100%" cellspacing="3" cellpadding="3">
  16.   <tr>
  17.     <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
  18. <!-- left_navigation //-->
  19. <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
  20. <!-- left_navigation_eof //-->
  21.     </table></td>
  22. <!-- body_text //-->
  23.     <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">
  24.       <tr>
  25.         <td>
  26. <?php
  27.   if (isset($$payment->form_action_url)) {
  28.     $form_action_url = $$payment->form_action_url;
  29.   } else {
  30.     $form_action_url = tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL');
  31.   }
  32.  
  33.   echo tep_draw_form('checkout_confirmation', $form_action_url, 'post');
  34. ?>
  35.         <table border="0" width="100%" cellspacing="0" cellpadding="0">
  36.           <tr>
  37.             <td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
  38.             <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_confirmation.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
  39.           </tr>
  40.         </table></td>
  41.       </tr>
  42.       <tr>
  43.         <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  44.       </tr>
  45.       <tr>
  46.         <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
  47.           <tr class="infoBoxContents">
  48. <?php
  49.   if ($sendto != false) {
  50. ?>
  51.             <td width="30%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
  52.               <tr>
  53.                 <td class="main"><?php echo '<b>' . HEADING_DELIVERY_ADDRESS . '</b> <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING_ADDRESS, '', 'SSL') . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td>
  54.               </tr>
  55.               <tr>
  56.                 <td class="main"><?php echo tep_address_format($order->delivery['format_id'], $order->delivery, 1, ' ', '<br>'); ?></td>
  57.               </tr>
  58. <?php
  59.     if ($order->info['shipping_method']) {
  60. ?>
  61.               <tr>
  62.                 <td class="main"><?php echo '<b>' . HEADING_SHIPPING_METHOD . '</b> <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td>
  63.               </tr>
  64.               <tr>
  65.                 <td class="main"><?php echo $order->info['shipping_method']; ?></td>
  66.               </tr>
  67. <?php
  68.     }
  69. ?>
  70.             </table></td>
  71. <?php
  72.   }
  73. ?>
  74.             <td width="<?php echo (($sendto != false) ? '70%' : '100%'); ?>" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">
  75.               <tr>
  76.                 <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
  77. <?php
  78.   if (sizeof($order->info['tax_groups']) > 1) {
  79. ?>
  80.                   <tr>
  81.                     <td class="main" colspan="2"><?php echo '<b>' . HEADING_PRODUCTS . '</b> <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td>
  82.                     <td class="smallText" align="right"><b><?php echo HEADING_TAX; ?></b></td>
  83.                     <td class="smallText" align="right"><b><?php echo HEADING_TOTAL; ?></b></td>
  84.                   </tr>
  85. <?php
  86.   } else {
  87. ?>
  88.                   <tr>
  89.                     <td class="main" colspan="3"><?php echo '<b>' . HEADING_PRODUCTS . '</b> <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td>
  90.                   </tr>
  91. <?php
  92.   }
  93.  
  94.   for ($i=0, $n=sizeof($order->products); $i<$n; $i++) {
  95.     echo '          <tr>' . "\n" .
  96.          '            <td class="main" align="right" valign="top" width="30">' . $order->products[$i]['qty'] . '&nbsp;x</td>' . "\n" .
  97.          '            <td class="main" valign="top">' . $order->products[$i]['name'];
  98.  
  99.     if (STOCK_CHECK == 'true') {
  100.       echo tep_check_stock($order->products[$i]['id'], $order->products[$i]['qty']);
  101.     }
  102.  
  103.     if ( (isset($order->products[$i]['attributes'])) && (sizeof($order->products[$i]['attributes']) > 0) ) {
  104.       for ($j=0, $n2=sizeof($order->products[$i]['attributes']); $j<$n2; $j++) {
  105.         echo '<br><nobr><small>&nbsp;<i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value'] . '</i></small></nobr>';
  106.       }
  107.     }
  108.  
  109.     echo '</td>' . "\n";
  110.  
  111.     if (sizeof($order->info['tax_groups']) > 1) echo '            <td class="main" valign="top" align="right">' . tep_display_tax_value($order->products[$i]['tax']) . '%</td>' . "\n";
  112.  
  113.     echo '            <td class="main" align="right" valign="top">' . $currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']) . '</td>' . "\n" .
  114.          '          </tr>' . "\n";
  115.   }
  116. ?>
  117.                 </table></td>
  118.               </tr>
  119.             </table></td>
  120.           </tr>
  121.         </table></td>
  122.       </tr>
  123.       <tr>
  124.         <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  125.       </tr>
  126.       <tr>
  127.         <td class="main"><b><?php echo HEADING_BILLING_INFORMATION; ?></b></td>
  128.       </tr>
  129.       <tr>
  130.         <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  131.       </tr>
  132.       <tr>
  133.         <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
  134.           <tr class="infoBoxContents">
  135.             <td width="30%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
  136.               <tr>
  137.                 <td class="main"><?php echo '<b>' . HEADING_BILLING_ADDRESS . '</b> <a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, '', 'SSL') . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td>
  138.               </tr>
  139.               <tr>
  140.                 <td class="main"><?php echo tep_address_format($order->billing['format_id'], $order->billing, 1, ' ', '<br>'); ?></td>
  141.               </tr>
  142.               <tr>
  143.                 <td class="main"><?php echo '<b>' . HEADING_PAYMENT_METHOD . '</b> <a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL') . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td>
  144.               </tr>
  145.               <tr>
  146.                 <td class="main"><?php echo $order->info['payment_method']; ?></td>
  147.               </tr>
  148.             </table></td>
  149.             <td width="70%" valign="top" align="right"><table border="0" cellspacing="0" cellpadding="2">
  150. <?php
  151.   if (MODULE_ORDER_TOTAL_INSTALLED) {
  152.     echo $order_total_modules->output();
  153.   }
  154. ?>
  155.             </table>
  156. <?php
  157. // {{ buySAFE Module
  158.     if (is_array($buysafe_result) && $buysafe_result['IsBuySafeEnabled'] == 'true')
  159.     {
  160. ?>
  161.             <table width="100%" border="0" cellspacing="0" cellpadding="2">
  162.               <tr>
  163.                 <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  164.               </tr>
  165.               <tr>
  166.                 <td class="main"><a href="<?php echo $buysafe_result['CartDetailsUrl']; ?>" target="_blank" style="text-decoration:underline"><?php echo $buysafe_result['CartDetailsDisplayText']; ?></a></td>
  167.               </tr>
  168.             </table>
  169. <?php
  170.     } // end if (is_array($buysafe_result))
  171. // }}
  172. ?>            
  173.             </td>
  174.           </tr>
  175.         </table></td>
  176.       </tr>
  177. <?php
  178.   if (is_array($payment_modules->modules)) {
  179.     if ($confirmation = $payment_modules->confirmation()) {
  180. ?>
  181.       <tr>
  182.         <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  183.       </tr>
  184.       <tr>
  185.         <td class="main"><b><?php echo HEADING_PAYMENT_INFORMATION; ?></b></td>
  186.       </tr>
  187.       <tr>
  188.         <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  189.       </tr>
  190.       <tr>
  191.         <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
  192.           <tr class="infoBoxContents">
  193.             <td><table border="0" cellspacing="0" cellpadding="2">
  194.               <tr>
  195.                 <td class="main" colspan="4"><?php echo $confirmation['title']; ?></td>
  196.               </tr>
  197. <?php
  198.       for ($i=0, $n=sizeof($confirmation['fields']); $i<$n; $i++) {
  199. ?>
  200.               <tr>
  201.                 <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
  202.                 <td class="main"><?php echo $confirmation['fields'][$i]['title']; ?></td>
  203.                 <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
  204.                 <td class="main"><?php echo $confirmation['fields'][$i]['field']; ?></td>
  205.               </tr>
  206. <?php
  207.       }
  208. ?>
  209.             </table></td>
  210.           </tr>
  211.         </table></td>
  212.       </tr>
  213. <?php
  214.     }
  215.   }
  216. ?>
  217.       <tr>
  218.         <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  219.       </tr>
  220. <?php
  221.   if (tep_not_null($order->info['comments'])) {
  222. ?>
  223.       <tr>
  224.         <td class="main"><?php echo '<b>' . HEADING_ORDER_COMMENTS . '</b> <a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL') . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td>
  225.       </tr>
  226.       <tr>
  227.         <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  228.       </tr>
  229.       <tr>
  230.         <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
  231.           <tr class="infoBoxContents">
  232.             <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
  233.               <tr>
  234.                 <td class="main"><?php echo nl2br(tep_output_string_protected($order->info['comments'])) . tep_draw_hidden_field('comments', $order->info['comments']); ?></td>
  235.               </tr>
  236.             </table></td>
  237.           </tr>
  238.         </table></td>
  239.       </tr>
  240.       <tr>
  241.         <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  242.       </tr>
  243. <?php
  244.   }
  245. ?>
  246.       <tr>
  247.         <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
  248.           <tr>
  249.             <td align="right" class="main">
  250. <?php
  251.   if (is_array($payment_modules->modules)) {
  252.     echo $payment_modules->process_button();
  253.   }
  254.  
  255.   echo tep_image_submit('button_confirm_order.gif', IMAGE_BUTTON_CONFIRM_ORDER) . "\n";
  256. ?>
  257.             </td>
  258.           </tr>
  259.         </table></td>
  260.       </tr>
  261.       <tr>
  262.         <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  263.       </tr>
  264.       <tr>
  265.         <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
  266.           <tr>
  267.             <td width="25%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
  268.               <tr>
  269.                 <td width="50%" align="right"><?php echo tep_draw_separator('pixel_silver.gif', '1', '5'); ?></td>
  270.                 <td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
  271.               </tr>
  272.             </table></td>
  273.             <td width="25%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
  274.             <td width="25%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
  275.               <tr>
  276.                 <td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
  277.                 <td><?php echo tep_image(DIR_WS_IMAGES . 'checkout_bullet.gif'); ?></td>
  278.                 <td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
  279.               </tr>
  280.             </table></td>
  281.             <td width="25%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
  282.               <tr>
  283.                 <td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
  284.                 <td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '1', '5'); ?></td>
  285.               </tr>
  286.             </table></td>
  287.           </tr>
  288.           <tr>
  289.             <td align="center" width="25%" class="checkoutBarFrom"><?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '" class="checkoutBarFrom">' . CHECKOUT_BAR_DELIVERY . '</a>'; ?></td>
  290.             <td align="center" width="25%" class="checkoutBarFrom"><?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL') . '" class="checkoutBarFrom">' . CHECKOUT_BAR_PAYMENT . '</a>'; ?></td>
  291.             <td align="center" width="25%" class="checkoutBarCurrent"><?php echo CHECKOUT_BAR_CONFIRMATION; ?></td>
  292.             <td align="center" width="25%" class="checkoutBarTo"><?php echo CHECKOUT_BAR_FINISHED; ?></td>
  293.           </tr>
  294.         </table></td>
  295.       </tr>
  296.     </table></form></td>
  297. <!-- body_text_eof //-->
  298.     <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
  299. <!-- right_navigation //-->
  300. <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>
  301. <!-- right_navigation_eof //-->
  302.     </table></td>
  303.   </tr>
  304. </table>
  305. <!-- body_eof //-->
  306.  
  307. <!-- footer //-->
  308. <?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
  309. <!-- footer_eof //-->
  310. <br>
  311. </body>
  312. </html>
  313. <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
  314.  
logoff:

Expand|Select|Wrap|Line Numbers
  1. <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <html <?php echo HTML_PARAMS; ?>>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
  5. <title><?php echo TITLE; ?></title>
  6. <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
  7. <link rel="stylesheet" type="text/css" href="stylesheet.css">
  8. </head>
  9. <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
  10. <!-- header //-->
  11. <?php require(DIR_WS_INCLUDES . 'header.php'); ?>
  12. <!-- header_eof //-->
  13.  
  14. <!-- body //-->
  15. <table border="0" width="100%" cellspacing="3" cellpadding="3">
  16.   <tr>
  17.     <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
  18. <!-- left_navigation //-->
  19. <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
  20. <!-- left_navigation_eof //-->
  21.     </table></td>
  22. <!-- body_text //-->
  23.     <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">
  24.       <tr>
  25.         <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
  26.           <tr>
  27.             <td><?php echo tep_image(DIR_WS_IMAGES . 'table_background_man_on_board.gif', HEADING_TITLE); ?></td>
  28.             <td valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
  29.               <tr>
  30.                 <td class="pageHeading" align="center"><?php echo HEADING_TITLE; ?></td>
  31.               </tr>
  32.               <tr>
  33.                 <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  34.               </tr>
  35.               <tr>
  36.                 <td class="main"><?php echo TEXT_MAIN; ?></td>
  37.               </tr>
  38.             </table></td>
  39.           </tr>
  40.         </table></td>
  41.       </tr>
  42.       <tr>
  43.         <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  44.       </tr>
  45.       <tr>
  46.         <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
  47.           <tr class="infoBoxContents">
  48.             <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
  49.               <tr>
  50.                 <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
  51.                 <td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td>
  52.                 <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
  53.               </tr>
  54.             </table></td>
  55.           </tr>
  56.         </table></td>
  57.       </tr>
  58.     </table></td>
  59. <!-- body_text_eof //-->
  60.     <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
  61. <!-- right_navigation //-->
  62. <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>
  63. <!-- right_navigation_eof //-->
  64.     </table></td>
  65.   </tr>
  66. </table>
  67. <!-- body_eof //-->
  68.  
  69. <!-- footer //-->
  70. <?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
  71. <!-- footer_eof //-->
  72. <br>
  73. </body>
  74. </html>
  75. <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
  76.  
I would appreciate being pointed in the right direction. Which tables should I look at to find the problem?

I have attached images of the pages that are not being displayed properly (and 1 of the shipping page that is displayed perfectly).

Thanks in advance to anyone who can offer advice.

Tanja.
Attached Images
File Type: jpg checkout confirmation.jpg (15.4 KB, 219 views)
File Type: jpg checkout payment.jpg (14.6 KB, 198 views)
File Type: jpg checkout shipping.jpg (17.8 KB, 348 views)
File Type: jpg logoff.jpg (8.9 KB, 307 views)
Jun 21 '10 #1
1 2670
drhowarddrfine
7,435 Expert 4TB
The problem may lie with your doctype. It is case sensitive after the PUBLIC keyword but I don't recall if PUBLIC itself is. In any case, the full correct line should be:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
Jun 21 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Joe Conlin | last post by:
I am truncating data from an SQL database and have a script that populates a cell. The problem that I have is I have HTML tags in my database so if the data gets truncated in the middle of a tag,...
7
by: Jasper Bryant-Greene | last post by:
I have three tables: `photos`, `tags` and `tags_photos`. The `photos` table contains a unique ID and a bunch of other stuff, the `tags` table contains a unique ID and a tag name, and the...
6
by: t.nicolson | last post by:
Hi there. I'm basically trying to expand a form within a table dynamically. To this end i've declared a placeholder within my table which i want to fill out using a javascript. eg. <div...
9
by: developer | last post by:
Does anyone know what is the way IE treats span tags(<span>) and table tags(<tr>, <td>)? Should the <span> tag be encolsed in tds and trs if it placed with other elements that are in a table? Can...
1
by: developer | last post by:
Does anyone know what is the way IE treats span tags(<span>) and table tags(<tr>, <td>)? Should the <span> tag be encolsed in tds and trs if it placed with other elements that are in a table? Can...
5
by: Ken Dopierala Jr. | last post by:
Hi, This is just a query about what people use most. Up until today I've been using <asp:Table> tags to build my tables. We just outsourced our HTML design to a local guy and when I got it back...
4
by: Todd Miller | last post by:
I have built a wep application that allows the the user to send off a fax of the page they are viewing. Here is the code behind the button. Dim myOLApp As New Outlook.Application Dim myOLItem...
1
by: WonderWoman | last post by:
I'm creating several labels and radiobuttonlists in VB.net code behind using an asp.net placeholder tag. When the web form displays the radio buttons are below the labels. Looking at the...
9
by: Jamie | last post by:
Maybe I am mis-understanding the function of the W3C Markup validation Service at validator.w3.org, but shouldn't it pick up errors like below? You can cut & paste this straight into the...
0
by: soms | last post by:
Hi all I. Consider the following XML file: "sample.xml" <!-- Start sample xml--> <?xml version="1.0" standalone="yes"?> <NewDataSet> <My_x0001_Table xmlns="myNameSpace1">
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.