Fork自 纵之格 / ShopXO
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
<!-- 是否包含尾部 开始 --> <div class="am-form-group"> <label>是否含尾部</label> <div>
{{foreach :MyConst('common_is_text_list') as $v}}
<label class="am-radio-inline am-margin-right-sm">
<input type="radio" name="is_footer" value="{{$v.id}}" {{if isset($data['is_footer']) and $data['is_footer'] eq $v['id']}}checked="checked"{{else /}}{{if !isset($data['is_footer']) and isset($v['checked']) and $v['checked'] eq true}}checked="checked"{{/if}}{{/if}} data-am-ucheck /> {{$v.name}} </label> {{/foreach}} </div> </div> <!-- 是否包含尾部 结束 -->