index.html 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. {extend name='admin@main'}
  2. {block name="content"}
  3. <div class="think-box-shadow">
  4. <table class="layui-table margin-top-10" lay-skin="line">
  5. {notempty name='list'}
  6. <thead>
  7. <tr>
  8. <th class='text-left nowrap'>系統類型</th>
  9. <th class='text-left nowrap'>版本號</th>
  10. <th class="text-center">狀態</th>
  11. <th class="text-center">時間</th>
  12. <th class="text-center">操作</th>
  13. </tr>
  14. </thead>
  15. {/notempty}
  16. <tbody>
  17. {foreach $list as $key=>$vo}
  18. <tr>
  19. <td class='text-left nowrap'>
  20. {if $vo.type == 1} 安卓 {else} IOS {/if}
  21. </td>
  22. <td class='text-left nowrap'>
  23. {$vo.title|default=''}
  24. </td>
  25. <td class='text-center nowrap'>
  26. {eq name='vo.status' value='0'}<span class="layui-badge">已禁用</span>{else}<span class="layui-badge layui-bg-green">使用中</span>{/eq}<br>
  27. </td>
  28. <td class='text-center nowrap'>{$vo.create_at|format_datetime}</td>
  29. <td class='text-center nowrap'>
  30. {if auth("store/versions/edit")}
  31. <a data-title="編輯版本" class="layui-btn layui-btn-sm" data-modal='{:url("edit")}?id={$vo.id}'>編 輯</a>
  32. {/if}
  33. </td>
  34. </tr>
  35. {/foreach}
  36. </tbody>
  37. </table>
  38. {empty name='list'}<span class="notdata">沒有記錄哦</span>{else}{$pagehtml|raw|default=''}{/empty}
  39. </div>
  40. {/block}