searchProductByBrand($_GET['by-brand']); } else { $productArr = $product->getProducts(); } $count = $productArr['count'][0]; $countPerColumn = ceil($count/2); $columnCount = 0; $columnAmount = 1; $index = 0; ?>

Welcome Cigar Aficionados


Cigar List              "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "ALL"); foreach($alphabet as $key => $letter) { print "" . $letter . ""; } ?>

No results found for letter " . $_GET['by-brand'] . ".
"; } $brindex = 0; foreach($productArr as $brand => $arr) { //The next 3 lines put a space above the Brand if ($brindex != 0) { print "
"; } if($brand == 'count') { continue; } print "
" . $brand . "
"; /* print "
" . $brand . "
"; */ $brindex++; $columnCount++; ?> $productObj) { if ($columnCount >= $countPerColumn && $columnAmount < 2) { ?>
number_of_reviews; ?>
model?>">   brand)?>-name)) { print str_replace(" ", '-', $productObj->name) . "-";}?>model)?>/cigar/reviews/"> name) + 1 + strlen( $productObj->model); if($length > 37) { print substr($productObj->name . " " . $productObj->model, 0, 35) . ".."; //NJS - print review colors and text - Daga, is this really inefficient? if ($reviewCount > 0) { print " (" . $reviewCount . " review"; if ($reviewCount != 1) { print "s"; } print ")"; } else { print " (" . $reviewCount . " reviews)"; } } else { print $productObj->name . " " . $productObj->model; // NJS - print review colors and text - Daga, is this really inefficient? if ($reviewCount > 0) { print " (" . $reviewCount . " review"; if ($reviewCount != 1) { print "s"; } print ")"; } else { print " (" . $reviewCount . " reviews)"; } } ?>