public static function SetLocationZIP($location, $arZipList) { global $DB; if (is_array($arZipList)) { CSaleLocation::ClearLocationZIP($location); $arInsert = array("LOCATION_ID" => "'" . $DB->ForSql($location) . "'", "ZIP" => ''); foreach ($arZipList as $ZIP) { if (strlen($ZIP) > 0) { $arInsert["ZIP"] = "'" . $DB->ForSql($ZIP) . "'"; $DB->Insert('b_sale_location_zip', $arInsert); } } } return; }
public static function SetLocationZIP($location, $arZipList) { global $DB; if (is_array($arZipList)) { CSaleLocation::ClearLocationZIP($location); $arInsert = array("LOCATION_ID" => "'" . $DB->ForSql($location) . "'", "ZIP" => ''); foreach ($arZipList as $ZIP) { if (strlen($ZIP) > 0) { self::AddLocationZIP($location, $ZIP); } } } return; }