index.html 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <div id="actionbar">
  2. <a href="{:url('adwords/add',['group' => $group])}" class="button button-blue"> <i class="iconfont icon-add_icon"></i>增加</a>
  3. </div>
  4. <table class="table">
  5. <thead>
  6. <tr>
  7. <th class="w60 fn-tac">排序</th>
  8. <th class="w90 fn-tac">内容</th>
  9. <th>链接地址</th>
  10. <th class="w200">打开方式</th>
  11. <th class="w140">更新时间</th>
  12. <th class="w160 fn-tac">操作</th>
  13. </tr>
  14. </thead>
  15. <tbody>
  16. {foreach $lists as $vo}
  17. <tr>
  18. <td class="fn-tac"><input name="sort" class="fn-tac w40 input input-mini" type="text" value="{$vo['sort']}" id="{$vo.id}" /></td>
  19. <td class="fn-tac"><a href="{:url('adwords/edit',['id'=>$vo.id])}"><img src="{$vo.picture}" style="max-width:80px;" /></a></td>
  20. <td>【<span class="blue">{$vo.title}</span>】{$vo.link|dehtml}</td>
  21. <td>
  22. {if $vo.open_type =='navigate'}保留并跳转到新页面{elseif $vo.open_type =='redirect'}关闭并跳转到新页面{else}关闭并跳转Tab页面{/if}
  23. </td>
  24. <td>{$vo.update_time|date='Y-m-d H:i'}</td>
  25. <td class="button-group fn-tac">
  26. <a class="button" href="{:url('adwords/edit',array('id'=>$vo.id))}" title="编辑"><i class="iconfont icon-edit"></i>编辑</a>
  27. <a class="button isDel" url="{:url('adwords/delete',array('id'=>$vo.id))}" href="javascript:;" title="删除"><i class="iconfont icon-lajixiang"></i>删除</a>
  28. </td>
  29. </tr>
  30. {/foreach}
  31. </tbody>
  32. </table>
  33. {$lists|raw}
  34. <script type="text/javascript">
  35. Do('base', 'layer', function () {
  36. $('.isDel').isDel();
  37. sort("{:url('adwords/sort')}");
  38. })
  39. </script>