include_once("includes/leftproductsnav.inc.php");
?>
|
$divwidth = 710;
$divheight = 180;
$productwidth = 150;
$maxW = ($productwidth-10);
$maxH = 100;
if ($showFlashSale) {
// show the Flash Sale box here
?>
FLASH SALE! 3 Products for 3 Hours - ends at Noon Today!
// get flash products
$across = 3;
$colct = 0;
unset($args);
$db->proc("GET_FLASH_SALE_SKUS");
$db->execproc();
if ($db->nf()==0) {
unset($args);
$db1->proc("GET_DEFAULT_FLASH_PRODUCTS");
$db1->execproc();
}
while ($db->next_record()) {
// settle the picture issue
$pic = substr($db->f("Pic"),1);
list($regPr,$minimum) = $cart->getprice($db->f("Prodnum"));
$price = sprintf("%.2f",$db->f("flashSale"));
$pic = substr($db->f("Pic"),1);
if (file_exists($pic)) {
list($w,$h) = getimagesize($pic);
if ($w > $maxW) {$h = intval(($maxW/$w)*$h);$w=$maxW;}
if ($h>$maxH) {$w = intval(($maxH/$h)*$w);$h = $maxH;}
}
else {
$pic = "graphics/blank.gif";
$w = $maxW;
$h = $maxH;
}
?>
">
" title = " echo $db->f("Name") ?>" />
"> echo trim($db->f("Name")) ?>
echo " $".$regPr." " ?>
$ echo $price ?>
">
|
if (++$colct < $across) {echo " | ";}
}
$prodct = $db->nf();
if ($prodct < 3) {
unset($args);
$db->proc("GET_DEFAULT_FLASH_PRODUCTS");
//select defaultFlash.*,prices.* from defaultFlash,prices where prices.Prodnum = defaultFlash.Prodnum and defaultFlash.flashSale != '0.00' limit 3
$db->execproc();
while ($prodct < 3) {
$db->next_record();
// settle the picture issue
$pic = substr($db->f("Pic"),1);
list($regPr,$minimum) = $cart->getprice($db->f("Prodnum"));
$price = sprintf("%.2f",$db->f("flashSalePrice"));
$pic = substr($db->f("Pic"),1);
if (file_exists($pic)) {
list($w,$h) = getimagesize($pic);
if ($w > $maxW) {$h = intval(($maxW/$w)*$h);$w=$maxW;}
if ($h>$maxH) {$w = intval(($maxH/$h)*$w);$h = $maxH;}
}
else {
$pic = "graphics/blank.gif";
$w = $maxW;
$h = $maxH;
}
?>
">
" title = " echo $db->f("Name") ?>" />
"> echo trim($db->f("Name")) ?>
echo " $".$regPr." " ?>
$ echo $price ?>
">
|
if (++$colct < $across) {echo " | ";}
$prodct++;
}
}
?>
// show Featured Products carousel
$lastmargin = "0";
include_once("includes/carousel-featured.inc.php");
}
else {
// show the rotating photos box here
?>
// show Featured Products carousel
$lastmargin = "0";
include_once("includes/carousel-featured.inc.php");
// show Specials carousel
$lastmargin = "20";
include_once("includes/carousel-onsale.inc.php");
}
?>
|
|
|