zoukankan      html  css  js  c++  java
  • dedecms的if标签、foreach标签

    1.if标签

    (1)下拉列表

     <select name="prize_type[]" class="type J-prize-type" id="prize_type[]">
          <option value="">请选择</option>
          <option value="1" <{if $val.prize_type eq 1}>selected="selected"<{/if}> >实物奖品</option>
          <option value="2" <{if $val.prize_type eq 2}>selected="selected"<{/if}> >虚拟奖品</option>
     </select>

    (2)但选按钮

    <input type="radio" name="limit_type" value="total" <{if $turntable.limit_type eq 'total'}>checked<{/if}> >
    活动期间,每个手机号可抽奖
    <input type="text" id="total_count" value="<{if $turntable.limit_type eq 'total'}><{$turntable.limit_num}><{/if}>" />次<br> <input type="radio" name="limit_type" value="everyday" <{if $turntable.limit_type eq 'everyday'}>checked<{/if}> >
    活动期间,每个手机号每天可抽奖
    <input type="text" id="everyday_count" value="<{if $turntable.limit_type eq 'everyday'}><{$turntable.limit_num}><{/if}>" />

    2.foreach标签

                    <{foreach from=$log_list item=list}>
                    <tr >
                        <td><{$list.log_id}></td>
                    </tr>
                    <{/foreach}>
  • 相关阅读:
    react-redux: counter
    react table dropdown
    react pagination
    react privateRoute
    分布式爬虫(2)
    CentOS安装Python3.x
    spark复习笔记(3):使用spark实现单词统计
    《快学scala》读书笔记(2)
    《快学scala》读书笔记(1)
    spark复习笔记(2)
  • 原文地址:https://www.cnblogs.com/xiaobiaomei/p/7798666.html
Copyright © 2011-2022 走看看