Truck Candy toll
free
866-670-0055
623-933-2197
toll
free
Click to verify BBB accreditation and to see a BBB report.
2 Month Return Policy

'; } while (!feof($dataFile)) { $aGetLine = fgets($dataFile); if (isset($aGetLine) && !empty($aGetLine)) { $aLineData = $oParseXML->xml_array($aGetLine); } else { continue; } if (isset($aLineData['VEHICLE'])) { if (!isset($processingVehicles)) { $processingVehicles = true; $j=-1; echo " "; $processingVehicles = false; } } if (isset($aLineData['LINEITEM'])) { $aData['LINEITEM'] = $aLineData['LINEITEM']; } if (isset($aLineData['GROUP'])) { $aData['GROUP'] = $aLineData['GROUP']; continue; } if (isset($testGroupID) && isset($aData['GROUP']['GROUPID']) && $aData['GROUP']['GROUPID'] != $testGroupID) { continue; } if (isset($testYear) && ((strval($aData['LINEITEM']['BEGINYEAR'])!= 0) && (strval($aData['LINEITEM']['BEGINYEAR']) > strval($testYear)) || ((strval($aData['LINEITEM']['ENDYEAR'])!= 0) && strval($aData['LINEITEM']['ENDYEAR']) < strval($testYear)))) { continue; } if (isset($testMake) && !empty($aData['LINEITEM']['MAKE']) && ($aData['LINEITEM']['MAKE'] != $testMake)) { continue; } if (isset($testModel) && !empty($aData['LINEITEM']['MODEL']) && ($aData['LINEITEM']['MODEL'] != $testModel)) { continue; } if (isset($_GET['fragment']) && (!empty($aData['LINEITEM']['FRAGMENT'])) && ($aData['LINEITEM']['FRAGMENT'] != $_GET['fragment'])) { continue; } if (isset($aData['GROUP']['SHOWGROUPNAME']) && $aData['GROUP']['SHOWGROUPNAME'] != 0) { $aData['GROUP']['SHOWGROUPNAME']--; echo " "; } echo " "."\n"; echo " "."\n"; } fclose($dataFile); echo "
Select Year, Make, and Model to see applications for your vehicle.
"; echo $aData['GROUP']['GROUPNAME']; echo "
"; echo isset($aData['LINEITEM']['BASENUMBER']) ? $aData['LINEITEM']['BASENUMBER']: ""; echo " "; echo (isset($aData['LINEITEM']['TITLE']) ? "" . $aData['LINEITEM']['TITLE'] . "
": ""); echo ($aData['LINEITEM']['BEGINYEAR'] == $aData['LINEITEM']['ENDYEAR'] ? $aData['LINEITEM']['BEGINYEAR'] : substr($aData['LINEITEM']['BEGINYEAR'],2) . "-" . substr($aData['LINEITEM']['ENDYEAR'],2)) . " "; echo $aData['LINEITEM']['MAKE']. " " ; echo $aData['LINEITEM']['MODEL']; echo (isset($aData['LINEITEM']['SUBMODEL']) ? " " . $aData['LINEITEM']['SUBMODEL']: ""); echo (isset($aData['LINEITEM']['EXTDESC']) ? "
" . $aData['LINEITEM']['EXTDESC'] : ""); echo "
"; echo (isset($aData['LINEITEM']['UNAVAILABLE']) ? '' . $aData['LINEITEM']['UNAVAILABLE'] . '': ""); if (isset($aData['LINEITEM']['BASENUMBER']) && isset($aData['LINEITEM']['ITEMTABLE'])) { echo '
'."\n"; echo (isset($aData['LINEITEM']['PRICE']) ? "$" . $aData['LINEITEM']['PRICE'] . "
": "")."\n"; echo ' '."\n"; echo ' '."\n"; echo ' '."\n"; echo ' '."\n"; echo ' ' . "\n"; echo ' '."\n"; if (isset($aData['LINEITEM']['SHIPDATE']) && !empty($aData['LINEITEM']['SHIPDATE'])) { echo '
Ships By: ' . $aData['LINEITEM']['SHIPDATE']; } else if (isset($aData['LINEITEM']['SHIPDELAY']) && !empty($aData['LINEITEM']['SHIPDELAY'])) { $shipDate = getDate(time()+60*60*24*($aData['LINEITEM']['SHIPDELAY'])); switch ($shipDate['wday']) { case 0: { $shipDate = getDate(time()+60*60*24*($aData['LINEITEM']['SHIPDELAY'] + 1)); break; } case 6: { $shipDate = getDate(time()+60*60*24*($aData['LINEITEM']['SHIPDELAY'] + 2)); break; } default: { break; } } echo '
Ships By: ' . str_pad($shipDate['mon'],2,"0",STR_PAD_LEFT) . '/' . str_pad($shipDate['mday'],2,"0",STR_PAD_LEFT) . '/' . substr($shipDate['year'],2,2); } if (isset($aData['LINEITEM']['MAPMSG'])) { echo "
" . htmlspecialchars_decode($aData['LINEITEM']['MAPMSG'])."\n"; } echo '
'."\n"; } echo "
"; } else { echo 'No Data File. Please call 866-670-0055 and tell us about this problem.'; } ?>