//去后台拿代码。前台的不对
 {assign name="zd" value='["country_mccs","skuId","name","type","days","capacity","highFlowSize","limitFlowSpeed","hotspotSupport","planType","accelerationSupport","desc"]' /}
    <table id="table" class="table " width="100%">
        {volist name=":json_decode($zd)" id="v"}
        <tr><td width="16.66666667%" align="right"><span style="padding-right: 15px;">{:__(ucwords($v))}:</span></td><td>
            {if(strstr(__(ucwords($v)." ".$row[$v]),ucwords($v)))}
                {$row[$v]|htmlentities}
            {else}
                {:__(ucwords($v)." ".$row[$v])}
            {/if}
            </td></tr>
        {/volist}
    </table>
    

快捷键:zhanshibiaoge

源:

sublime_text格式

<snippet>
    <content><![CDATA[
   //去后台拿代码。前台的不对
 {assign name="zd" value='["country_mccs","skuId","name","type","days","capacity","highFlowSize","limitFlowSpeed","hotspotSupport","planType","accelerationSupport","desc"]' /}
    <table id="table" class="table " width="100%">
        {volist name=":json_decode(\$zd)" id="v"}
        <tr><td width="16.66666667%" align="right"><span style="padding-right: 15px;">{:__(ucwords(\$v))}:</span></td><td>
            {if(strstr(__(ucwords(\$v)." ".\$row[\$v]),ucwords(\$v)))}
                {\$row[\$v]|htmlentities}
            {else}
                {:__(ucwords(\$v)." ".\$row[\$v])}
            {/if}
            </td></tr>
        {/volist}
    </table>
    
]]></content>
   <tabTrigger>zhanshibiaoge(编辑页展示内容详情,输入框转展示表格)</tabTrigger>
   <scope></scope>
</snippet>
点赞(0)

评论列表 共有 0 条评论

暂无评论
立即
投稿
发表
评论
返回
顶部