I couldnt find the one too many divs
I sorted the tables I think
The coding is below
<?php
/*
$Id$
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2010 osCommerce
Released under the GNU General Public License
*/
if ($messageStack->size('header') > 0) {
echo '<div class="grid_24">' . $messageStack->output('header') . '</div>';
}
?>
<div id="header" class="grid_24">
<div id="roundedone">All Prices Include VAT</div><div id="image"><img src="images/logonine.png" alt="Irh Media" title="Irh Media" /></div><div id="roundedtwo">Call us today 01268 420854 or click on the green live chat button below on the right hand side</div>
<br />
<?php echo tep_draw_form('search', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get') . tep_draw_hidden_field('search_in_description','1') . tep_draw_input_field('keywords', '', 'size="10" maxlength="30" style="width: ' . (BOX_WIDTH+150) . 'px"') . ' ' . tep_hide_session_id() .'<input type="submit" name="Submit" value="Search our Website"> ' . '</form>'; ?>
<div id="headerShortcuts">
<?php
echo tep_draw_button(HEADER_TITLE_CART_CONTENTS . ($cart->count_contents() > 0 ? ' (' . $cart->count_contents() . ')' : ''), 'cart', tep_href_link(FILENAME_SHOPPING_CART)) .
tep_draw_button(HEADER_TITLE_CHECKOUT, 'triangle-1-e', tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL')) .
tep_draw_button(HEADER_TITLE_MY_ACCOUNT, 'person', tep_href_link(FILENAME_ACCOUNT, '', 'SSL'));
if (tep_session_is_registered('customer_id')) {
echo tep_draw_button(HEADER_TITLE_LOGOFF, null, tep_href_link(FILENAME_LOGOFF, '', 'SSL'));
}
?>
</div>
<table width="75%" border="0" cellpadding="10">
<td align="left">
</td>
<td align="center">
</td>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<br>
<tr class="header">
<td valign="middle" rowspan="2"><?php //echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce') . '</a>'; ?></td>
<td align="right" valign="middle" bgcolor="#99D9EA">
</td>
</tr>
</table>
<script type="text/javascript">
$("#headerShortcuts").buttonset();
</script>
</div>
<div class="spotlightmenu grid_24">
<ul>
<li><a href="http://www.irhmedia.co.uk"><span>Home</span></a></li>
<li><a href="http://www.irhmedia.co.uk/products_new.php"><span>New Products</span></a></li>
<li><a href="http://www.irhmedia.co.uk/faq.php"><span>FAQ's</span></a></li>
<li><a href="http://www.irhmedia.co.uk/shipping.php"><span>Shipping</span></a></li>
<li><a href="http://www.irhmedia.co.uk/privacy.php"><span>Privacy</span></a></li>
<li><a href="http://www.irhmedia.co.uk/conditions.php"><span>Terms and Conditions</span></a></li>
<li><a href="http://www.irhmedia.co.uk/contact_us.php"><span>Contact Us</span></a></li>
<li><a href="http://www.irhmedia.co.uk/testimonials.php"><span>Testimonials</span></a></li>
<li><a href="http://www.irhmedia.co.uk/login.php"><span>Login/Register</span></a></li>
<li><a href="http://www.irhmedia.co.uk/gift_vouchers.php"><span>Gift Vouchers</span></a></li>
</ul>
</div>
<div class="grid_24 ui-widget infoBoxContainer">
<div class="ui-widget-header ui-corner-top ui-corner-bottom infoBoxHeading">
<?php echo ' ' . $breadcrumb->trail(' » '); ?></div>
</div>
<?php
if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) {
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr class="headerError">
<td class="headerError"><?php echo htmlspecialchars(stripslashes(urldecode($HTTP_GET_VARS['error_message']))); ?></td>
</tr>
</table>
<?php
}
if (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) {
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr class="headerInfo">
<td class="headerInfo"><?php echo htmlspecialchars(stripslashes(urldecode($HTTP_GET_VARS['info_message']))); ?></td>
</tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr class="headerNavigation" valign="middle" align="left">
<?php
$info_box_contents = array();
$info_box_contents[] = array('form' => tep_draw_form('advanced_search', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get'),
'align' => 'center',
'text' => BOX_SEARCH_TEXT . tep_draw_hidden_field('search_in_description','1') . tep_draw_hidden_field('inc_subcat', '1', true) . tep_draw_input_field('keywords','','size="10" maxlength="30" class="searchForm" style="width: ' . (BOX_WIDTH-10) . 'px"') .' '. tep_draw_pull_down_menu('categories_id', tep_get_categories(array(array('id' => '', 'text' => TEXT_ALL_CATEGORIES)))) . tep_hide_session_id() .' '. tep_image_submit('go.jpg', IMAGE_BUTTON_SEARCH));
new infoBox($info_box_contents);
?>
</td>
</tr>
</table>
<?php
if ( (!strstr($_SERVER['PHP_SELF'],'checkout.php')) and (!strstr($_SERVER['PHP_SELF'],'create_account.php')) and (!strstr($_SERVER['PHP_SELF'],'shopping_cart.php')) and (!strstr($_SERVER['PHP_SELF'],'advanced_search.php')) and !tep_session_is_registered('customer_id') ) {
?>
<table align="center" border="0" width="100%" cellspacing="0" cellpadding="1">
<tr>
<td align="center" class="headerNavigation">
</td>
</tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="infoBoxContents" valign="middle" colspan="0">
<?php echo tep_draw_form('advanced_search', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get"') ?>
</td>
</tr>
</table>
<table border="0" width="50%" cellspacing="0" cellpadding="1" align="center">
<tr>
<td class="infoBoxContents" valign="middle" colspan="3"> </td>
<td class="infoBoxContents" valign="middle" colspan="3"><?php echo tep_draw_hidden_field('search_in_description','1') . tep_draw_input_field('keywords', '', 'size="10" maxlength="30" style="width: ' . (BOX_WIDTH+100) . 'px"') ?></td>
<td class="infoBoxContents" valign="top" colspan="3"> </td>
<td class="infoBoxContents" valign="middle" colspan="3"><?php echo BOX_ADVSEARCH_CAT ?></td>
<td class="infoBoxContents" valign="middle" colspan="3"><?php echo tep_draw_pull_down_menu('categories_id', tep_get_categories(array(array('id' => '', 'text' => BOX_ADVSEARCH_ALLCAT)))) ?></td>
<td class="infoBoxContents" valign="top" colspan="3"> </td>
<td class="infoBoxContents" valign="middle" colspan="3"><center><?php echo tep_image_submit('button_search.gif', BOX_HEADING_ADVSEARCH); ?></center></td>
</tr>
</table>
<?php } ?>
<?php
//
// END advanced search header script insertion
}
?>