file_array_data.html 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <include file="public@header"/>
  2. </head>
  3. <body>
  4. <div class="wrap js-check-wrap">
  5. <ul class="nav nav-tabs">
  6. <li class="active"><a>所有数据</a></li>
  7. <li><a href="{:url('theme/fileArrayDataEdit',['tab'=>$tab,'var'=>$var,'file_id'=>$file_id,'widget'=>$widget])}">添加数据</a>
  8. </li>
  9. </ul>
  10. <form method="post" class="js-ajax-form margin-top-20">
  11. <table class="table table-hover table-bordered table-list">
  12. <thead>
  13. <tr>
  14. <foreach name="array_item" item="vo">
  15. <th>{$vo.title}</th>
  16. </foreach>
  17. <th width="120">{:lang('ACTIONS')}</th>
  18. </tr>
  19. </thead>
  20. <tbody>
  21. <foreach name="array_items" item="item" key="itemKey">
  22. <tr>
  23. <foreach name="array_item" item="vo">
  24. <td>{$item[$key]|default=''}</td>
  25. </foreach>
  26. <td>
  27. <a href="{:url('theme/fileArrayDataEdit',['tab'=>$tab,'var'=>$var,'file_id'=>$file_id,'widget'=>$widget,'item_index'=>$itemKey])}">编辑</a>
  28. <a href="{:url('theme/fileArrayDataDelete',['tab'=>$tab,'var'=>$var,'file_id'=>$file_id,'widget'=>$widget,'item_index'=>$itemKey])}"
  29. class="js-ajax-delete">删除</a>
  30. </td>
  31. </tr>
  32. </foreach>
  33. </tbody>
  34. </table>
  35. </form>
  36. </div>
  37. <script src="__STATIC__/js/admin.js"></script>
  38. <script>
  39. function confirm() {
  40. return true;
  41. }
  42. </script>
  43. </body>
  44. </html>