Ejemplo n.º 1
0
				<?php 
    }
    ?>
			<?php 
}
?>
		</select>
		<?php 
echo $hiddenPolicyFields;
?>
	</td>
</tr>
<?php 
$tabControl->BeginNextTab();
if ($details) {
    foreach ($details->getListPayments() as $paymentOption => $paymentDescription) {
        if (!is_array($siteSettings["MAPS"]["PAYMENT"])) {
            $siteSettings["MAPS"]["PAYMENT"] = array();
        }
        ?>
		<tr>
			<td width="40%"><?php 
        echo $paymentDescription;
        ?>
:</td>
			<td width="60%"><?php 
        echo Helper::makeSelectorFromPaySystems("EBAY_SETTINGS[MAPS][PAYMENT][" . $paymentOption . "]", $siteSettings["MAPS"]["PAYMENT"][$paymentOption], $siteSettings["PERSON_TYPE"]);
        ?>
</td>
		</tr>
	<?php 
Ejemplo n.º 2
0
        public function getHtml()
        {
            global $APPLICATION, $stepClassesList;
            if (empty($this->ebaySettings[$this->siteId]["PERSON_TYPE"])) {
                return self::getLampHtml(false) . Loc::getMessage('SALE_EBAY_W_STEP_PAY_LINK_BEFORE', array('#A1#' => '<a href="' . $APPLICATION->GetCurPageParam('lang=' . LANGUAGE_ID . '&STEP=' . $stepClassesList['StepPersonType']) . '">', '#A2#' => '</a>'));
            }
            $result = '';
            $details = new \Bitrix\Sale\TradingPlatform\Ebay\Api\Details($this->siteId);
            if ($details) {
                foreach ($details->getListPayments() as $paymentOption => $paymentDescription) {
                    $result .= '
					<tr>
						<td>' . Loc::getMessage('SALE_EBAY_W_STEP_PAY_LINK_SITE', array('#PAYMENT_DESCRIPTION#' => $paymentDescription)) . ':</td>
						<td>' . Helper::makeSelectorFromPaySystems("EBAY_SETTINGS[MAPS][PAYMENT][" . $paymentOption . "]", !empty($this->ebaySettings[$this->siteId]["MAPS"]["PAYMENT"][$paymentOption]) ? $this->ebaySettings[$this->siteId]["MAPS"]["PAYMENT"][$paymentOption] : "", $this->ebaySettings[$this->siteId]["PERSON_TYPE"]) . '
						</td>
					</tr>';
                }
                $result = '<table>' . $result . '</table>' . '<br><br><hr><br>' . Loc::getMessage('SALE_EBAY_W_STEP_PAY_LINK_DESCR') . '.';
            }
            return $result;
        }