sorry it was the template main_page.php that I have changed.
Code as follows
/**
* prepares and displays header output
*
*/
if (CUSTOMERS_APPROVAL_AUTHORIZATION == 1 && CUSTOMERS_AUTHORIZATION_HEADER_OFF == 'true' and ($_SESSION['customers_authorization'] != 0 or $_SESSION['customer_id'] == '')) {
$flag_disable_header = true;
}
require($template->get_template_dir('tpl_header.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_header.php');
?>
<div id="head_bottom">
<?php
$id=$_GET['id'];
if(isset($id) && $id!='')
{
if($id==7)
{
$fp="images/banners/banner_2.jpg";
}
else if($id==8)
{
$fp="images/banners/banner_1.jpg";
}
else if($id==13)
{
$fp="";
}
else
{
$fp="images/banners/banner_default.jpg";
}
}
else
{
$fp="images/banners/banner_default.jpg";
}
echo '<div style="width:695px;float:left;">';
?>
<img src="<?php echo HTTP_SERVER.DIR_WS_CATALOG.$fp; ?>" width="695px" height="276px">
<?php
/*if($_GET['cPath'])
{
if(file_exists(DIR_FS_CATALOG.$fp)){
?><?php
}else{
?><img src="<?php echo HTTP_SERVER.DIR_WS_CATALOG.$fpd; ?>" width="695px" height="276px"><?php
}
}else{
?><img src="<?php echo HTTP_SERVER.DIR_WS_CATALOG.$fpd; ?>" width="695px" height="276px"><?php
}*/
?>
</div>
<div id="head_bottom_right" style="float:left;">
<script type="text/javascript">
//
// +----------------------------------------------------------------------+
// |zen-cart Open Source E-commerce |
// +----------------------------------------------------------------------+
// | Copyright (c) 2003 The zen-cart developers |
// | |
// | http://www.zen-cart.com/index.php |
// | |
// | Portions Copyright (c) 2003 osCommerce |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.0 of the GPL license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available through the world-wide-web at the following url: |
// | http://www.zen-cart.com/license/2_0.txt. |
// | If you did not receive a copy of the zen-cart license and are unable |
// | to obtain it through the world-wide-web, please send a note to |
// | [email protected] so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
// $Id: general.js 1105 2005-04-04 22:05:35Z birdbrain $
//
function check_form_model() {
var valid=true;
var error_field;
var keyword = document.forms['tinyadvanced_search'].keyword.value;
if ( (keyword == '') || (keyword.length < 1)) {
alert("Please Enter Model Number. If you are not sure, please fill the enquiry form that follows.");
valid = false;
}
if(valid==false)
{
window.location="enquiry.html";
}
return valid;
}
//-->
</script>
<?php echo zen_draw_form('tinyadvanced_search', zen_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get', 'onsubmit="return check_form_model();"') . zen_hide_session_id(); ?>
<?php echo zen_draw_hidden_field('main_page', FILENAME_ADVANCED_SEARCH_RESULT);
echo zen_draw_hidden_field('source', "fp");
echo '<div id="sidesearch">';
echo 'Select the make of your fridge from the dropdown box,
then enter the model number. If the make is not listed
please <a href="'.zen_href_link("enquiry", zen_get_all_get_params('action')).'">click here</a> for more information.';
echo '</div>';
echo '<div id="box_left">';
echo zen_draw_pull_down_menu('manufacturers_id', zen_get_manufacturers(array(array('id' => '', 'text' => "Select Make"))), $sData['manufacturers_id'],'style="width:203px;"');
echo "</div>";
echo '<div id="box_right">';
echo zen_draw_input_field('keyword', $sData['keyword'],
'onfocus="RemoveFormatString(this, \'' . 'Enter Model' . '\')" style="width:200px;" ');
echo '</div>';
?>
<div id="help">
<div style="float:left;"> <a href="<?php echo zen_href_link("enquiry", zen_get_all_get_params('action')); ?>"><img src="images/help.jpg"></a></div><div id="getprice">
<input type="image" src="images/getprice.jpg" alt="Submit" />
<!--<a href="javascript:document.forms['tinyadvanced_search'].submit();"><img src="images/getprice.jpg"></a> -->
</div>
</div>
</form>
</div>
</div>
<div style="clear:both;font-size:0px;height:1px;"></div>
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="contentMainWrapper">
<tr>
<?php
if (COLUMN_LEFT_STATUS == 0 || (CUSTOMERS_APPROVAL == '1' and $_SESSION['customer_id'] == '') || (CUSTOMERS_APPROVAL_AUTHORIZATION == 1 && CUSTOMERS_AUTHORIZATION_COLUMN_LEFT_OFF == 'true' and ($_SESSION['customers_authorization'] != 0 or $_SESSION['customer_id'] == ''))) {
// global disable of column_left
$flag_disable_left = true;
}
//if (!isset($flag_disable_left) || !$flag_disable_left) {
?>
<!--<td id="navColumnOne" class="columnLeft" style="width: <?php echo COLUMN_WIDTH_LEFT; ?>">-->
<?php
/**
* prepares and displays left column sideboxes
*
*/
?>
<!--<div id="navColumnOneWrapper" style="width: <?php echo BOX_WIDTH_LEFT; ?>"><?php require(DIR_WS_MODULES . zen_get_module_directory('column_left.php')); ?></div></td>-->
<?php
//}
?>
<td valign="top">
<div class="container">
<!-- bof breadcrumb -->
<?php if (DEFINE_BREADCRUMB_STATUS == '1' || (DEFINE_BREADCRUMB_STATUS == '2' && !$this_is_home_page) ) { ?>
<!--<div id="navBreadCrumb"><?php echo $breadcrumb->trail(BREAD_CRUMBS_SEPARATOR); ?></div>-->
<?php } ?>
<!-- eof breadcrumb -->
<?php
if (SHOW_BANNERS_GROUP_SET3 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET3)) {
if ($banner->RecordCount() > 0) {
?>
<div id="bannerThree" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
<?php
}
}
?>
<!-- bof upload alerts -->
<?php if ($messageStack->size('upload') > 0) echo $messageStack->output('upload'); ?>
<!-- eof upload alerts -->
<?php
/**
* prepares and displays center column
*
*/
require($body_code); ?>
<?php
if (SHOW_BANNERS_GROUP_SET4 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET4)) {
if ($banner->RecordCount() > 0) {
?>
<div id="bannerFour" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
<?php
}
}
?></div></td>
<?php
//if (COLUMN_RIGHT_STATUS == 0 || (CUSTOMERS_APPROVAL == '1' and $_SESSION['customer_id'] == '') || (CUSTOMERS_APPROVAL_AUTHORIZATION == 1 && CUSTOMERS_AUTHORIZATION_COLUMN_RIGHT_OFF == 'true' && $_SESSION['customers_authorization'] != 0)) {
if (COLUMN_RIGHT_STATUS == 0 || (CUSTOMERS_APPROVAL == '1' and $_SESSION['customer_id'] == '') || (CUSTOMERS_APPROVAL_AUTHORIZATION == 1 && CUSTOMERS_AUTHORIZATION_COLUMN_RIGHT_OFF == 'true' and ($_SESSION['customers_authorization'] != 0 or $_SESSION['customer_id'] == ''))) {
// global disable of column_right
$flag_disable_right = true;
}
if (!isset($flag_disable_right) || !$flag_disable_right) {
?>
<td id="navColumnTwo" class="columnRight" style="width:272px;">
<?php
/**
* prepares and displays right column sideboxes
*
*/
?>
<div id="navColumnTwoWrapper" style="width:272px;">
<div style="width: 150px" id="shopping" class="rightBoxContainer">
<h3 id="shoppingHeading" class="rightBoxHeading">Shopping Cart</h3>
<div class="sideBoxContent" id="shoppingContent">
<a class="uz_cart" href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"> <span><?php echo $_SESSION['cart']->count_contents(); ?> items</span> now in your cart</a>
</div></div><div class="rightBoxContainer_bottom"> </div>
<?php require(DIR_WS_MODULES . zen_get_module_directory('column_right.php')); ?>
</div></td>
<?php
}
?>
</tr>
</table>
<?php
/**
* prepares and displays footer output
*
*/
if (CUSTOMERS_APPROVAL_AUTHORIZATION == 1 && CUSTOMERS_AUTHORIZATION_FOOTER_OFF == 'true' and ($_SESSION['customers_authorization'] != 0 or $_SESSION['customer_id'] == '')) {
$flag_disable_footer = true;
}
require($template->get_template_dir('tpl_footer.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_footer.php');
?>
</div>
<div id="uz_footer_container">
<div id="uz_footer">