元素模板为您解答:
<!-- {foreach from=$payment_list item=payment} --> <label for="pay{$payment.pay_id}" class="ii-pay-choose-btn on"><input type="radio" id="pay{$payment.pay_id}" name="payment" value="{$payment.pay_id}" isCod="{$payment.is_cod}" onclick="selectPayment(this)" {if $cod_disabled and $payment.is_cod eq "1"}disabled="true"{/if}>{$payment.pay_name}</label> <!-- {/foreach}