12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- {layout name="passport:layout" /}
- <div id="actionbar">
- <div class="fn-left button-group">
- <a href="javascript:;" url="{:url('passport.keyword/miniappText')}" class="button win"> <i class="iconfont icon-text_icon"></i>添加文字</a>
- <a href="javascript:;" url="{:url('passport.keyword/miniappImage')}" class="button win"> <i class="iconfont icon-pic"></i>添加图片</a>
- </div>
- </div>
- <table class="table">
- <thead><tr><th class="w90 fn-tac">选择</th><th class="w80">应答类型</th><th class="w220">关键字</th><th>回复内容</th><th class="w140">更新时间</th><th class="w160">操作</th></tr></thead>
- <tbody>
- {foreach $list as $rs}
- <tr>
- <td class="w90 fn-tac"><a href="javascript:;" class="button select" title="选择" data-id="{$rs.keyword}"><i class="iconfont icon-text_icon"></i>选择</a></td>
- <td>{switch $rs.type}{case image}<span class="badge bg-red">图片</span>{/case}
- {case link}<span class="badge bg-blue">链接</span>{/case}
- {case media}<span class="badge bg-green">图文</span>{/case}
- {default /}<span class="badge">文字</span>{/switch}</td>
- <td>{$rs.keyword}</td>
- <td>{if $rs.type == 'image'}{$rs.image}{elseif $rs.type == 'media'}{$rs.media_id}{else}{$rs.content}{/if}</td>
- <td>{$rs.update_time|date='Y-m-d H:i'}</td>
- <td class="button-group">
- <a href="javascript:;" url="{switch $rs.type}
- {case image }{:url('passport.keyword/image',['id' => $rs.id])}{/case}
- {case link }{:url('passport.keyword/link',['id' => $rs.id])}{/case}
- {case media }{:url('passport.keyword/media',['id' => $rs.id])}{/case}
- {default /}{:url('passport.keyword/text',['id' => $rs.id])}{/switch}" class="button button-blue win"><i class="iconfont icon-edit"></i>编辑</a>
- <a class="button isDel" url="{:url('passport.keyword/delete',['id' => $rs.id])}"><i class="iconfont icon-lajixiang"></i>删除</a>
- </td>
- </tr>
- {/foreach}
- </tbody>
- </table>
- {$list|raw}
- <script type="text/javascript">
- Do('base','layer',function () {
- $('.isDel').isDel();
- $(".win").win({reload:1,area:['650px','400px']});
- $('.select').click(function(){
- parent.$("#iframe").contents().find("#{$input}").val($(this).attr('data-id'));
- parent.layer.close(parent.layer.getFrameIndex(window.name));
- });
- })
- </script>
|