国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.8KB

  1. <footer class="bg-success">
  2. <div class="copyright py-5">
  3. <p class="text-center">
  4. <?php echo $cfg_powerby; ?> <?php echo $cfg_beian;?> Powered by <a href="https://www.dedebiz.com" title="DedeBIZ内容管理系统-国内流行的内容管理系统多端全媒体解决方案" target="_blank">DedeBIZ<?php echo $cfg_version; ?></a>
  5. </p>
  6. </div>
  7. </footer>
  8. <div class="scroll-top">
  9. <button onclick="gotop()" id="btnScrollTop" title="返回顶部">
  10. <i class="fa fa-chevron-up"></i>
  11. </button>
  12. </div>
  13. <script src="<?php echo $cfg_cmsurl; ?>/static/web/js/popper.min.js"></script>
  14. <script src="<?php echo $cfg_cmsurl; ?>/static/web/js/bootstrap.bundle.min.js"></script>
  15. <script src="<?php echo $cfg_cmsurl; ?>/static/web/js/style.js"></script>
  16. <script async src="<?php echo $cfg_cmsurl; ?>/apps/statistics.php?url_type=0"></script>
  17. <script>
  18. //校验是否登录
  19. function CheckLogin() {
  20. $.get("<?php echo $cfg_cmsurl; ?>/user/ajax_loginsta.php?format=json",function(data) {
  21. let result = JSON.parse(data);
  22. if (result.code === 200) {
  23. $("#_login").html(`
  24. 欢迎,${result.data.username}
  25. <a class="ml-2" href="<?php echo $cfg_cmsurl; ?>/user/">[会员中心]</a>
  26. <a class="ml-2" href="<?php echo $cfg_cmsurl; ?>/user/index_do.php?fmdo=login&dopost=exit">[退出]</a>
  27. `);
  28. $("#iptUsername").val(result.data.username);
  29. $("#iptUsername").attr("disabled", "disabled");
  30. $(".areaValidate").hide();
  31. } else {
  32. $(".areaValidate").show();
  33. }
  34. });
  35. }
  36. //页面加载触发
  37. $(document).ready(function () {
  38. CheckLogin();
  39. });
  40. </script>