index.html 974 B

12345678910111213141516171819202122232425262728293031
  1. {extend name="layout" /}
  2. {block name="page-header"}{/block}
  3. {block name="content"}
  4. {notempty name="default_pass"}
  5. <div class="alert alert-danger alert-dismissable">
  6. <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
  7. <h3 class="font-w300 push-15">安全提示</h3>
  8. <p>超级管理员默认密码未修改,建议马上 <a class="alert-link link-effect" href="{:url('user/index/edit', ['id' => 1])}">修改</a>。</p>
  9. </div>
  10. {/notempty}
  11. {// 后台首页钩子}
  12. <div class="row">
  13. {:hook('admin_index')}
  14. </div>
  15. {/block}
  16. {block name="script"}
  17. <script>
  18. $(document).ready(function () {
  19. $.ajax({
  20. url: '{:url("checkUpdate")}',
  21. type: 'GET'
  22. }).done(function(data) {
  23. $('#product-auth').html(data.auth);
  24. $('#product-update').html($('#product-update').text() + ' ' + data.update);
  25. });
  26. });
  27. </script>
  28. {/block}