</option> <?php } ?> </select> </span> <span name="report-filter-value-control-TYPE_ID" class="report-filter-vcc"> <select class="reports-filter-select-small" name="value"> <option value=""><?php echo GetMessage('CRM_REPORT_INCLUDE_ALL'); ?> </option> <?php if ($arResult['REPORT_OWNER_ID'] === 'crm_activity') { $arResult['enumValues']['TYPE_ID'] = CCrmActivityType::PrepareFilterItems(); } else { $arResult['enumValues']['TYPE_ID'] = CCrmStatus::GetStatusList('DEAL_TYPE'); } ?> <?php foreach ($arResult['enumValues']['TYPE_ID'] as $key => $val) { ?> <option value="<?php echo htmlspecialcharsbx($key); ?> "><?php echo htmlspecialcharsbx($val); ?> </option> <?php
<?php } ?> </select> </div> <div class="filter-field filter-field-type chfilter-field-DEAL_OWNER.TYPE_ID" callback="RTFilter_chooseBoolean"> <label for="%ID%" class="filter-field-title">%TITLE% "%COMPARE%"</label> <select id="%ID%" name="%NAME%" class="filter-dropdown" caller="true"> <option value=""><?php echo GetMessage('CRM_REPORT_INCLUDE_ALL'); ?> </option> <?php if ($arResult['REPORT_OWNER_ID'] === 'crm_activity') { $arTypes = CCrmActivityType::PrepareFilterItems(); } else { $arTypes = CCrmStatus::GetStatusList('DEAL_TYPE'); } ?> <?php foreach ($arTypes as $key => $val) { ?> <option value="<?php echo htmlspecialcharsbx($key); ?> "><?php echo htmlspecialcharsbx($val); ?> </option> <?php