Exemplo n.º 1
0
        echo CSaleDiscountConvert::$intConverted;
        ?>
, <?php 
        echo $maxMessage;
        ?>
, <?php 
        echo CSaleDiscountConvert::$intNextConvertPerStep;
        ?>
, '<?php 
        echo CSaleDiscountConvert::$strSessID;
        ?>
');
		</script><?php 
    } else {
        $strDetail = '';
        $arErrors = CSaleDiscountConvert::GetErrors();
        if (!empty($arErrors) && is_array($arErrors)) {
            $strDetail = str_replace('#COUNT#', $converted, GetMessage("SALE_DISC_CONVERT_RESULT")) . '<br><br>';
            $strDetail .= GetMessage('SALE_DISC_CONVERT_ERR') . '<br>';
            $strDetail .= '<ul>';
            foreach ($arErrors as &$arOneError) {
                $strDetail .= '<li>' . str_replace(array('#LINK#', '#NAME#', '#MESS#'), array('/bitrix/admin/sale_discount_edit.php?lang=' . LANGUAGE_ID . '&ID=' . $arOneError['ID'], htmlspecialcharsex($arOneError['NAME']), htmlspecialcharsex($arOneError['ERROR'])), GetMessage('SALE_DISC_CONVERT_ONE_ERROR')) . '</li>';
            }
            if (isset($arOneError)) {
                unset($arOneError);
            }
            $strDetail .= '</ul>';
            $strDetail .= GetMessage('SALE_DISC_CONVERT_ERROR_RESUME');
            $strDetail .= '<div id="cat_disc_convert_finish"></div>';
        } else {
            $strDetail = str_replace('#COUNT#', $converted, GetMessage("SALE_DISC_CONVERT_RESULT")) . '<div id="cat_disc_convert_finish"></div>';