Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Why the width is different then other pages


Guest

Recommended Posts

http://neoledsign.com/products_new.php

 

anyone can help me to fix it ?

 

 

 

<?php

/*

$Id: products_new.php,v 1.27 2003/06/09 22:35:33 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_PRODUCTS_NEW);

 

$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_PRODUCTS_NEW));

?>

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">

<html <?php echo HTML_PARAMS; ?>>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">

<title><?php echo TITLE; ?></title>

<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">

<link rel="stylesheet" type="text/css" href="stylesheet.css">

<style type="text/css">

<!--

.style1 {

color: #333333;

font-weight: bold;

}

-->

</style>

</head>

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">

<!-- header //-->

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

<tr>

<td align="center"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="765" height="150" align="middle">

<param name="movie" value="header.swf">

<param name="quality" value="high">

<embed src="header.swf" width="765" height="150" align="middle" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash"></embed>

</object></td>

</tr>

</table>

<div align="center">

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

<!-- header_eof //-->

<script language="javascript"><!--

function popupWindow(url) {

window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,res

izable=yes,copyhistory=no,width=290,height=290,screenX=290,screenY=290,top=150,le

ft=150');

}

//--></script>

 

<!-- body //-->

 

<!-- Start code -->

</div>

<tr><td valign="top">

<table border="0" align="center" cellpadding="0" cellspacing="0">

<tr><td width="234" valign="top">

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

</td>

<td width="1">

<td width="529" valign="top">

<table border="0" cellspacing="0" cellpadding="0" width="529" style="border:solid 1px #BFBFBF; background-color:#FFFFFF;">

<tr><td width="527">

 

<table border="0" cellspacing="0" cellpadding="0" width="527" align="center">

<tr>

<td class="bg2" width="527" height="43">    <span class="style1">PRODUCTS</span></td>

</tr>

<tr><td height="1"></td></tr>

</table>

<table border="0" cellspacing="0" cellpadding="0" width="525" align="center">

<?php

$products_new_array = array();

$products_new_query_raw = "select p.products_id, pd.products_name, p.products_image, p.products_price, p.products_tax_class_id, p.products_date_added, m.manufacturers_name from " . TABLE_PRODUCTS . " p left join " . TABLE_MANUFACTURERS . " m on (p.manufacturers_id = m.manufacturers_id), " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' order by p.products_date_added DESC, pd.products_name";

$products_new_split = new splitPageResults($products_new_query_raw, MAX_DISPLAY_PRODUCTS_NEW);

if (($products_new_split->number_of_rows > 0) && ((PREV_NEXT_BAR_LOCATION == '1') || (PREV_NEXT_BAR_LOCATION == '3'))) {

?>

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

<tr>

<td class="smallText"><?php echo $products_new_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS_NEW); ?></td>

<td align="right" class="smallText"><?php echo TEXT_RESULT_PAGE . ' ' . $products_new_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></td>

</tr>

</table>

<?php

}

?>

<?php

if ($products_new_split->number_of_rows > 0) {

$products_new_query = tep_db_query($products_new_split->sql_query);

$row = 0;

$col = 0;

while ($products_new = tep_db_fetch_array($products_new_query)) {

if ($new_price = tep_get_products_special_price($products_new['products_id'])) {

$products_price = '<span>' . $currencies->display_price($new_price, tep_get_tax_rate($products_new['products_tax_class_id'])) . '</span> <del class="delp">' . $currencies->display_price($products_new['products_price'], tep_get_tax_rate($products_new['products_tax_class_id'])) . '</del>';

} else {

$products_price = $currencies->display_price($products_new['products_price'], tep_get_tax_rate($products_new['products_tax_class_id']));

}

$product_query=tep_db_query("select products_description from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . (int)$products_new['products_id'] . "' and language_id = '" . (int)$languages_id . "'");

$product = tep_db_fetch_array($product_query);

$pn = $product['products_description'];

 

if (($col==0) && ($row!=0)) echo '</td></tr>

<tr><td height="1" colspan="3"></td></tr>

';

if ($col==0) echo '<tr><td width="262" valign="top" class="bd">';

?>

 

<!-- Product info -->

<table border="0" cellspacing="0" cellpadding="0" width="230" align="center">

<tr><td height="16" colspan="3"></td></tr>

<tr><td height="22" valign="top" colspan="3"><a class="ml2" href="<?=tep_href_link('product_info.php?products_id='.$products_new['products_id'])?>"><?=$products_new['products_name']?></a></td></tr>

<tr><td width="115" valign="top" align="center"><a href="<?=tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_new['products_id'])?>"><?=tep_image(DIR_WS_IMAGES . $products_new['products_image'], $products_new['products_name'],SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT)?></a><br style="line-height:1px;"><br style="line-height:6px;"><span class="tx3"><?=$products_price?></span></td>

<td width="11"></td>

<td width="104" valign="bottom">

<table border="0" cellspacing="0" cellpadding="0">

<tr><td height="8"></td></tr>

<tr><td><?=preg_replace('/\s\S*$/i', '', substr($pn, 0, 50))?>...</td></tr>

<tr><td height="18"></td></tr>

<tr><td><a href="<?=tep_href_link('product_info.php?products_id='.$products_new['products_id'])?>"><?=tep_image_button("button_details.gif");?></a><br style="line-height:1px;"><br style="line-height:2px;"><a href="<?= tep_href_link("products_new.php","action=buy_now&products_id=".$products_new['products_id'])?>"><?=tep_image_button("button_add_to_cart1.gif");?></a></td></tr>

</table>

</td></tr>

<tr><td height="18" colspan="3"></td></tr>

</table>

<?

 

if ($col==1) {

echo '';

$row++;

$col=0;

} else {

echo ' </td>

<td width="1"><img src="images/spacer.gif" alt="" width="1"></td>

<td width="262" valign="top" class="bd">';

$col++;

}

 

}

 

if ($col==1) echo '</td></tr>'

 

?>

</table>

 

<?

} else {

?>

<table border="0" width="527" cellspacing="0" cellpadding="2">

<tr>

<td colspan="2" class="main"><?php echo TEXT_NO_NEW_PRODUCTS; ?></td>

</tr>

<tr>

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

</tr>

</table>

<?php

}

 

 

?>

 

<!-- body_eof //-->

 

<!-- End code -->

</td></tr>

</table>

</td></tr>

</table>

</td></tr>

 

<div align="center">

<!-- footer //-->

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

<!-- footer_eof //-->

 

</div>

</body>

</html>

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

Link to comment
Share on other sites

I don't see a problem on the site but usually a width difference is due to an image, or group of images, that are wider than the others.

 

Please don't post files unless someone asks.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...