index.html 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <div id="actionbar">
  2. <a href="{:url('popupshop/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="w40 fn-tac"><input type="checkbox" onclick="CheckAll(this)"></th>
  8. <th class="w60 fn-tac">排序</th>
  9. <th class="w100 fn-tac">内容</th>
  10. <th class="w120">标题</th>
  11. <th>链接地址</th>
  12. <th class="w140">更新时间</th>
  13. <th class="w160 fn-tac">操作</th>
  14. </tr>
  15. </thead>
  16. <tbody>
  17. {foreach $lists as $vo}
  18. <tr>
  19. <td class="fn-tac"><input name="sub" type="checkbox" value="{$vo.id}"></td>
  20. <td class="fn-tac"><input name="sort" class="fn-tac w40 input input-mini" type="text" value="{$vo['sort']}" id="{$vo.id}" /></td>
  21. <td class="fn-tac"><img src="{$vo.picture}" class="w80" onclick="linkImg(this)"/></td>
  22. <td>{$vo.title}</td>
  23. <td>{$vo.link|dehtml}</td>
  24. <td>{$vo.update_time|date='Y-m-d H:i'}</td>
  25. <td class="fn-tac">
  26. <a class="button" href="{:url('popupshop/adwords/edit',['id'=>$vo.id])}" title="编辑"><i class="iconfont icon-edit"></i>编辑</a>
  27. <a class="button isDel" url="{:url('popupshop/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('popupshop/adwords/sort')}");
  38. })
  39. </script>