$include_file = DIR_INCLUDES . 'column_left.php'; include(DIR_INCLUDES . 'include_once.php'); ?>
|
|
|
Product Specials |
$today = date(Y-m-d);
$spec=tep_db_query("select specials2.id, specials2.product_id, specials2.info, specials2.image, specials2.description from specials2 where specials2.active=1 and CURDATE() BETWEEN specials2.start AND specials2.end AND (site_id = '".WEBSITE_ID."' OR site_id = '0' OR site_id = '1') order by RAND() limit 0,8");
if(tep_db_num_rows($spec)){
$i=0;
$row = 0;
$rp_row = 0;
while ($row_special = tep_db_fetch_array($spec)) {
$row++;
$i++;
$spc_img="";
// if ((file_exists('/public_html/shared/specials/'.$row_special["image"]))&&(is_file('/public_html/shared/specials/'.$row_special["image"]))){
$price_info = tep_db_fetch_array(tep_db_query("select MIN(price) as min_price, MAX(price) as max_price from product where id IN (".$row_special['product_id'].")"));
print "";
//$p_image = 'http://www.streetpros.com/'.$row_special["image"];
$p_image = $burl . "/" . $row_special["image"];
$lp_image = DIR_SERVER_ROOT."/".$row_special["image"];
//print "";
list($width, $height, $type, $attr) = getimagesize($lp_image);
//print "";
if($height>$width){
$imgheight = 90;
$imgsz = 'height="'.$imgheight.'"';
}else{
$imgwidth = 90;
$imgsz = 'width="'.$imgwidth.'"';
}
//}else{
//$spc_img = HTTP_SERVER.DIR_CATALOG.'images/default_product_image.gif';
//$imgwidth = 100;
//$imgsz = 'width="'.$imgwidth.'" height="100"';
// }
//if (stristr($p_image,'default_product_image.gif')){
// $spc_img = HTTP_SERVER.DIR_CATALOG.'images/default_product_image.gif';
//}
$r++;
if ($r == 1){
?>
} ?>
"> border="0" style="max-height: 90px; max-width: 90px;"/> |
$=$price_info["min_price"]?> - $=$price_info["max_price"]?>
=substr($row_special["description"],0,100)?> |
if ($r == 2) {
?>
|
$r = 0;
} ?>
} elseif ($r == 1) { ?>
|
}
}
} ?>
|
|
|
|
|
|
|
New Products |
|
$sel1_special=tep_db_query("select * from product where active='1' order by date_added DESC, RAND() limit 0,4");
if(tep_db_num_rows($sel1_special)){
$i=0;
while($row_special1=tep_db_fetch_array($sel1_special))
{
$i++;
if ($i > 2) { break; };
$np_img="";
if ((file_exists(DIR_SERVER_ROOT.'/shared/'.$row_special1["supplier_id"].'/'.$row_special1["image"]))&&(is_file(DIR_SERVER_ROOT.'/shared/'.$row_special1["supplier_id"].'/'.$row_special1["image"]))){
//$np_img = HTTP_SERVER.DIR_CATALOG.'shared/'.$row_special1["supplier_id"].'/'.$row_special1["image"];
$np_img = $furl.'shared/'.$row_special1["supplier_id"].'/'.$row_special1["image"];
$npl_img = DIR_SERVER_ROOT.'shared/'.$row_special1["supplier_id"].'/'.$row_special1["image"];
print "";
list($width, $height, $type, $attr) = getimagesize($npl_img);
print "";
if($height>$width){
$imgheight = 90;
$imgsz = 'height="'.$imgheight.'"';
}else{
$imgwidth = 90;
$imgsz = 'width="'.$imgwidth.'"';
}
}else{
//$np_img = HTTP_SERVER.DIR_CATALOG.'images/default_product_image.gif';
$np_img = $furl.'images/default_product_image.gif';
$imgwidth = 90;
$imgsz = 'width="'.$imgwidth.'" height="90"';
}
if (stristr($p_image,'default_product_image.gif')){
//$np_img = HTTP_SERVER.DIR_CATALOG.'images/default_product_image.gif';
$np_img = $furl.'images/default_product_image.gif';
}
?>
|
if($i==1){ ?>
|
} ?>
}
}?>
|
|
|
|
|
|
|
|
|
Join Today |
|
|
|
We will send you Exclusive offers and latest releases for your vehicle! |
|
Manage Wishlist
Review all Orders
Up coming events
Forums
Special Deals
|
|
|
|
|
|
|
|
|
|
|
|
|