index.html 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. {layout name="layout" /}
  2. <div id="actionbar">
  3. <a href="{:url('fastshop/Banner/add',['group' => $group])}" class="button button-blue"> <i class="iconfont icon-add_icon"></i>增加</a>
  4. </div>
  5. <table class="table">
  6. <thead>
  7. <tr>
  8. <th class="w40 fn-tac"><input type="checkbox" onclick="CheckAll(this)"></th>
  9. <th class="w60 fn-tac">排序</th>
  10. <th class="w90 fn-tac">编辑</th>
  11. <th class="w150 fn-tac">内容</th>
  12. <th>链接地址</th>
  13. <th class="w140">更新时间</th>
  14. <th class="w90 fn-tac">操作</th>
  15. </tr>
  16. </thead>
  17. <tbody>
  18. {foreach $lists as $vo}
  19. <tr>
  20. <td class="fn-tac"><input name="sub" type="checkbox" value="{$vo.id}"></td>
  21. <td class="fn-tac"><input name="sort" class="fn-tac w40 input input-mini" type="text" value="{$vo['sort']}" id="{$vo.id}" /></td>
  22. <td><a class="button" href="{:url('fastshop/banner/edit',['id'=>$vo.id])}" title="编辑"><i class="iconfont icon-edit"></i>编辑</a></td>
  23. <td class="fn-tac"><img src="{$vo.picture}" style="max-width:130px;" /></td>
  24. <td>{$vo.link|dehtml}</td>
  25. <td>{$vo.update_time|date='Y-m-d H:i'}</td>
  26. <td>
  27. <a class="button isDel" url="{:url('fastshop/banner/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('fastshop/banner/sort')}");
  38. })
  39. </script>