企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
### 标签可以嵌套 > IF条件判断 ~~~ {if $settings['login_type'] == 0 || $settings['mobile_status'] == 0} checked="checked" {/if} {if ACCOUNT_TYPE == ACCOUNT_TYPE_APP_NORMAL} <i class="wi wi-wxapp"></i> {else} <i class="wi wi-wechat"></i> {/if} ~~~ > PHP原生代码 ~~~ {php echo tpl_form_field_image('background_img', $settings['background_img'], '', array('global' => true));} ~~~ > LOOP循环 ~~~ {loop $list $uni} <tr> <td><input type="checkbox" name="accoundid[]" value="{$uni['uniacid']}"></td> <td>{$uni['name']}</td> <td>{$uni['group']['name']}</td> <td> {if $uni['groupdata']['isexpire'] == 1} <span class="label label-success">是</span> {else} <span class="label label-danger">否</span> {/if} </td> </tr> {/loop} ~~~ > LOOP嵌套循环 ~~~ {loop $list $uni} <tr> <td><input type="checkbox" name="accoundid[]" value="{$uni['uniacid']}"></td> <td>{$uni['name']}</td> <td>{$uni['group']['name']}</td> <td> {loop $uni['userdata'] $user} {if $user['role'] == 'manager'} <span class="label label-success" title="管理员">{$user['username']}</span> {else} <span class="label label-danger" title="操作员">{$user['username']}</span> {/if} {/loop} </td> </tr> {/loop} ~~~