Color-octet quarkonia production. II.