fastadmin详情页展示图片

<div class="form-group col-xs-12 col-sm-12">
    <label class="control-label col-xs-12 col-sm-2">{:__('Images')}:</label>
    <div class="col-xs-12 col-sm-8" style="margin-top:7px;">
        <ul class="row list-inline faupload-preview" id="p-images" data-listidx="0">
            {if condition="$row.images"}
            {foreach name=":explode(',',$row.images)" item="img"}
            <li class="col-xs-3">
                <a href="{:cdnurl($img,true)}" data-url="{:cdnurl($img,true)}" target="_blank" class="thumbnail">
                    <img src="{:cdnurl($img,true)}" onerror="this.src='/nVG76keHGu.php/ajax/icon?suffix=jpg';this.onerror=null;" class="img-responsive">
                </a>
            </li>
            {/foreach}
            {else /}
            无
            {/if}
        </ul>
    </div>
</div>

 


关注公众号,了解更多it技术(it问答网

发表评论

电子邮件地址不会被公开。