WHEEL SIZE
$wheelsize
"; $i++; if ($i == 4) { echo "
"; } } echo "View All"; ?>
WHEEL FINISH
0) { if (in_array($finish_id,$finish_arr)) echo " checked"; } echo ">$finish
"; } echo "VIEW ALL"; ?>
0) { while(list($k,$v) = each($wheelsize_arr)) { $wheel_str .= "$v,"; $passvariables .= "wheelsize_arr[]=$v&"; } $wheel_str = substr($wheel_str,0,-1); $q .= " and pw.wheelsize_id in ($wheel_str)"; } if (count($finish_arr) > 0) { while(list($k,$v) = each($finish_arr)) { $finish_str .= "$v,"; $passvariables .= "finish_arr[]=$v&"; } $finish_str = substr($finish_str,0,-1); $q .= " and pf.finish_id in ($finish_str)"; } $q .= " group by p.product_id order by p.order_placement"; $results = mysql_query($q); while ($row = mysql_fetch_array($results)) { $product_name_arr[] = $row["product_name"]; $product_id_arr[] = $row["product_id"]; $clean_url_arr[] = $row["clean_url"]; } ?>
Home Wheels
Pages: "; if ($start >= 90) { $newstart = $start - 90; $nav.= "<< Previous"; } $pages = $amount / 18; $pages = ceil($pages); $current_page = $start / 18; $actual_current = $current_page + 1; $remainder = $current_page % 5; $start_page = $current_page - $remainder + 1; for ($i=$start_page;$i<$start_page+5;$i++) { $start_number = ($i-1) * 18; if ($start_number < $amount) { if ($i == $actual_current) $nav.= " $i "; else $nav.= " $i "; } } $check_start = $start_page * 18; if ($check_start+72 < $amount) { $newstart = $check_start + 72; $nav.= "Next >>"; } if ($pages > 1) { $nav .= " View All"; } if (!$viewall) echo $nav; $divisor = 18; if ($viewall) $divisor = 9999; ?>
var x$product_id = [ $image_str ]; "; } ?>
Home Wheels