Ejemplo n.º 1
0
	$logoHtml .='	<div style="margin-top:10px;">
					<input type="checkbox" name="LOGOTIP_del" value="Y" id="LOGOTIP_del" >
					<label for="LOGOTIP_del">'.GetMessage("CRM_PS_LOGOTIP_DEL").'</label>
					</div>';
}

$arResult['FIELDS']['tab_props'][] = array(
	'id' => 'LOGOTIP',
	'name' => GetMessage('CRM_PS_FIELD_LOGOTIP'),
	'type' => 'custom',
	'value' => $logoHtml
);
*/
$io = CBXVirtualIo::GetInstance();
$arPaySys['ACTION']['ACTION_FILE'] = $io->ExtractNameFromPath($arPaySys['ACTION']['ACTION_FILE'] ? $arPaySys['ACTION']['ACTION_FILE'] : 'bill');
$arResult['FIELDS']['tab_props'][] = array('id' => 'ACTION_FILE', 'name' => GetMessage("CRM_PS_FIELD_ACTION_FILE"), 'type' => 'list', 'items' => CCrmPaySystem::getActionsList(), 'value' => $arPaySys['ACTION']['ACTION_FILE']);
$arResult['FIELDS']['tab_props'][] = array('id' => 'DETAILS', 'name' => GetMessage("CRM_PS_ACT_PROPERTIES"), 'type' => 'section');
$arResult['ACTION_FILE'] = $arPaySys['ACTION']['ACTION_FILE'];
$arResult['PS_ACT_FIELDS'] = CCrmPaySystem::getPSCorrespondence($arPaySys['ACTION']['ACTION_FILE']);
$arResult['ACTION_FIELDS_LIST'] = implode(',', array_keys($arResult['PS_ACT_FIELDS']));
$arResult['SIMPLE_MODE'] = CCrmPaySystem::isFormSimple();
$arResult['USER_FIELDS'] = array();
$quoteUserFields = $GLOBALS['USER_FIELD_MANAGER']->GetUserFields(CCrmQuote::$sUFEntityID, 0, LANGUAGE_ID);
foreach ($quoteUserFields as $quoteUserFieldName => &$quoteUserField) {
    $arResult['USER_FIELDS']['quote'][$quoteUserFieldName] = $quoteUserField['EDIT_FORM_LABEL'];
}
unset($quoteUserField);
$arPaySys['ACTION']['PARAMS'] = unserialize($arPaySys['ACTION']['PARAMS']);
foreach ($arResult['PS_ACT_FIELDS'] as $idCorr => $arCorr) {
    if ($arCorr['TYPE'] == 'SELECT') {
        $arCorr['OPTIONS'] = $arCorr['VALUE'];