index.html 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. {extend name='main'}
  2. {block name="content"}
  3. <div class="think-box-shadow table-block">
  4. <table class="layui-table margin-top-15" lay-skin="line">
  5. {notempty name='modules'}
  6. <thead>
  7. <tr>
  8. <th class='text-left nowrap'>模块名称</th>
  9. <th class='text-left nowrap'>模块描述</th>
  10. <th class='text-left nowrap'>当前版本</th>
  11. <th></th>
  12. </tr>
  13. </thead>
  14. {/notempty}
  15. <tbody>
  16. {foreach $modules as $key=>$vo}
  17. <tr>
  18. <td class='text-left nowrap'>{$vo.name}</td>
  19. <td class='text-left nowrap'>{$vo.content}</td>
  20. <td class='text-left nowrap'>
  21. <div class="inline-block pointer" data-title="查看模块版本" data-modal="{:url('change')}?name={$vo.name}">
  22. {if isset($vo.local)} {$vo.local.version}
  23. {if $vo.version > $vo.local.version}
  24. <span class="color-red margin-left-5">{$vo.version}</span>
  25. {else}
  26. <span class="color-desc margin-left-5">{$vo.type_desc}</span>
  27. {/if}
  28. {else}<span class="color-desc margin-left-5">{$vo.type_desc}</span>{/if}
  29. </div>
  30. </td>
  31. <td class="text-left">
  32. {if $vo.type_code eq 1} <a class="layui-btn layui-btn-xs" data-action="{:url('install')}" data-value="name#{$vo.name}">安 装</a>{/if}
  33. {if $vo.type_code eq 2} <a class="layui-btn layui-btn-xs" data-action="{:url('install')}" data-value="name#{$vo.name}">更 新</a>{/if}
  34. </td>
  35. </tr>
  36. {/foreach}
  37. </tbody>
  38. </table>
  39. {empty name='modules'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
  40. </div>
  41. {/block}