"<?php 
    if (IntVal($arRegionList["ID"]) == IntVal($str_REGION_ID)) {
        echo " selected";
    }
    ?>
><?php 
    echo htmlspecialcharsEx($arRegionList["NAME_ORIG"]);
    ?>
</option><?php 
}
?>
			</select>
		</td>
	</tr>
	<?php 
$arRegion = CSaleLocation::GetRegionByID($str_REGION_ID);
$str_REGION_NAME = htmlspecialcharsEx($arRegion["NAME"]);
$str_REGION_SHORT_NAME = htmlspecialcharsEx($arRegion["SHORT_NAME"]);
?>
	<tr class="adm-detail-required-field">
		<td>
			<?php 
echo GetMessage("SALE_FULL_NAME");
?>
:
		</td>
		<td>
			<input type="text" name="REGION_NAME" value="<?php 
echo $str_REGION_NAME;
?>
" size="30">
Esempio n. 2
0
            unset($arCountry['SHORT_NAME']);
            $countLang = count($arSysLangs);
            for ($i = 0; $i < $countLang; $i++) {
                $arLngCountry = CSaleLocation::GetCountryLangByID($ID, $arSysLangs[$i]);
                $arCountry['COUNTRY_NAME_' . $arSysLangs[$i]] = $arLngCountry['NAME'];
                $arCountry['COUNTRY_SHORT_NAME_' . $arSysLangs[$i]] = $arLngCountry['SHORT_NAME_'];
            }
            $arReturn['COUNTRY'] = $arCountry;
            $arRegions = CCrmLocations::getRegionsNames($ID);
            $arReturn['COUNTRY']['REGIONS'] = array();
            foreach ($arRegions as $id => $region) {
                $arReturn['COUNTRY']['REGIONS'][] = array($id, $region);
            }
            break;
        case 'get_region_params':
            $arRegion = CSaleLocation::GetRegionByID($ID);
            $arRegion['REGION_NAME'] = $arRegion['NAME'];
            $arRegion['REGION_SHORT_NAME'] = $arRegion['SHORT_NAME'];
            unset($arRegion['NAME']);
            unset($arRegion['SHORT_NAME']);
            $countLang = count($arSysLangs);
            for ($i = 0; $i < $countLang; $i++) {
                $arLngCountry = CSaleLocation::GetRegionLangByID($ID, $arSysLangs[$i]);
                $arRegion['REGION_NAME_' . $arSysLangs[$i]] = $arLngCountry['NAME'];
                $arRegion['REGION_SHORT_NAME_' . $arSysLangs[$i]] = $arLngCountry['SHORT_NAME_'];
            }
            $arReturn['REGION'] = $arRegion;
            break;
    }
} else {
    $arReturn['ERROR'][] = GetMessage('CRM_LOC_EDT_ERROR_ACCESS_DENIED');