No Description
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.

index.html 6.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. {extend name="index_layout"/}
  2. {block name="main"}
  3. {notempty name="default_pass"}
  4. <div class="alert alert-danger-light">
  5. 安全提示:超级管理员默认密码未修改,建议马上修改。
  6. </div>
  7. {/notempty}
  8. {if $Think.config.app_debug}
  9. <div class="alert alert-danger-light">
  10. 安全提示:当前网站【调试模式】开启中,强烈建议在正式部署后关闭调试模式
  11. </div>
  12. {/if}
  13. {if $Think.config.app_trace}
  14. <div class="alert alert-danger-light">
  15. 安全提示:当前网站【Trace调试】开启中,强烈建议在正式部署后关闭Trace调试
  16. </div>
  17. {/if}
  18. <div class="alert alert-success-light">
  19. <div id="nowTime"></div>
  20. </div>
  21. <div class="layui-row layui-col-space10 panel_box">
  22. <div class="panel layui-col-xs12 layui-col-sm6 layui-col-md4 layui-col-lg3">
  23. <a href="https://www.kancloud.cn/ken678/yzncms/352683" target="_blank">
  24. <div class="panel_icon yzn-bg-blue">
  25. <i class="layui-icon layui-icon-read layui-anim"></i>
  26. </div>
  27. <div class="panel_word">
  28. <span>文档</span>
  29. <cite>使用手册</cite>
  30. </div>
  31. </a>
  32. </div>
  33. <div class="panel layui-col-xs12 layui-col-sm6 layui-col-md4 layui-col-lg3">
  34. <a href="https://gitee.com/ken678/YZNCMS" target="_blank">
  35. <div class="panel_icon yzn-bg-orange">
  36. <i class="layui-icon layui-icon-fonts-code layui-anim"></i>
  37. </div>
  38. <div class="panel_word">
  39. <span>代码</span>
  40. <cite>下载链接</cite>
  41. </div>
  42. </a>
  43. </div>
  44. <div class="panel layui-col-xs12 layui-col-sm6 layui-col-md4 layui-col-lg3">
  45. <a href="http://blog.yzncms.com" target="_blank">
  46. <div class="panel_icon yzn-bg-green">
  47. <i class="layui-icon layui-icon-survey layui-anim"></i>
  48. </div>
  49. <div class="panel_word">
  50. <span>博客</span>
  51. <cite>技术分享</cite>
  52. </div>
  53. </a>
  54. </div>
  55. <div class="panel layui-col-xs12 layui-col-sm6 layui-col-md4 layui-col-lg3">
  56. <a href="javascript:;">
  57. <div class="panel_icon yzn-bg-purple">
  58. <i class="layui-icon layui-icon-log layui-anim"></i>
  59. </div>
  60. <div class="panel_word">
  61. <span class="loginTime">
  62. <?php if($userInfo['last_login_time'] > 0) { echo $userInfo['last_login_time'];} else { echo '--';}?></span>
  63. <cite>上次登录时间</cite>
  64. </div>
  65. </a>
  66. </div>
  67. </div>
  68. <div class="layui-row layui-col-space10">
  69. <div class="layui-col-lg12 layui-col-md12">
  70. <div class="layui-card">
  71. <div class="layui-card-header" style="border-bottom: 1px solid #eee;">版本信息</div>
  72. <div class="layui-card-body">
  73. <table class="layui-table magt0" lay-even>
  74. <colgroup>
  75. <col width="10%">
  76. <col width="40%">
  77. <col width="10%">
  78. <col width="40%">
  79. </colgroup>
  80. <tbody>
  81. <tr>
  82. <td>当前版本</td>
  83. <td class="version">yzncms v{$Think.config.version.yzncms_version}</td>
  84. <td>ThinkPHP版本</td>
  85. <td class="version">{$Think.VERSION}</td>
  86. </tr>
  87. <tr>
  88. <td>PHP 版本</td>
  89. <td>{$sys_info.phpv}</td>
  90. <td>数据库版本</td>
  91. <td>{$sys_info.mysql_version}</td>
  92. </tr>
  93. <tr>
  94. <td>服务器域名/IP</td>
  95. <td>{$sys_info.domain} [ {$sys_info.ip} ]</td>
  96. <td>服务器环境</td>
  97. <td class="server">{$sys_info.web_server}</td>
  98. </tr>
  99. <tr>
  100. <td>服务器时间</td>
  101. <td>{$sys_info.time}</td>
  102. <td>剩余空间</td>
  103. <td>{$sys_info.remaining_space}</td>
  104. </tr>
  105. <tr>
  106. <td>最大上传限制</td>
  107. <td>{$sys_info.fileupload}</td>
  108. <td>最大占用内存</td>
  109. <td>{$sys_info.memory_limit}</td>
  110. </tr>
  111. </tbody>
  112. </table>
  113. </div>
  114. </div>
  115. </div>
  116. </div>
  117. {/block}
  118. {block name="script"}
  119. <script type="text/javascript">
  120. //获取系统时间
  121. var newDate = '';
  122. getLangDate();
  123. //值小于10时,在前面补0
  124. function dateFilter(date) {
  125. if (date < 10) { return "0" + date; }
  126. return date;
  127. }
  128. function getLangDate() {
  129. var dateObj = new Date(); //表示当前系统时间的Date对象
  130. var year = dateObj.getFullYear(); //当前系统时间的完整年份值
  131. var month = dateObj.getMonth() + 1; //当前系统时间的月份值
  132. var date = dateObj.getDate(); //当前系统时间的月份中的日
  133. var day = dateObj.getDay(); //当前系统时间中的星期值
  134. var weeks = ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"];
  135. var week = weeks[day]; //根据星期值,从数组中获取对应的星期字符串
  136. var hour = dateObj.getHours(); //当前系统时间的小时值
  137. var minute = dateObj.getMinutes(); //当前系统时间的分钟值
  138. var second = dateObj.getSeconds(); //当前系统时间的秒钟值
  139. var timeValue = "" + ((hour >= 12) ? (hour >= 18) ? "晚上" : "下午" : "上午"); //当前时间属于上午、晚上还是下午
  140. newDate = dateFilter(year) + "年" + dateFilter(month) + "月" + dateFilter(date) + "日 " + " " + dateFilter(hour) + ":" + dateFilter(minute) + ":" + dateFilter(second);
  141. document.getElementById("nowTime").innerHTML = "亲爱的{$userInfo.username}," + timeValue + "好! 欢迎使用YznCMS v{$Think.config.version.yzncms_version},当前时间为: " + newDate + " " + week;
  142. setTimeout("getLangDate()", 1000);
  143. }
  144. layui.use(['jquery'], function() {
  145. var $ = layui.jquery;
  146. //icon动画
  147. $(".panel a").hover(function() {
  148. $(this).find(".layui-anim").addClass("layui-anim-scaleSpring");
  149. }, function() {
  150. $(this).find(".layui-anim").removeClass("layui-anim-scaleSpring");
  151. })
  152. $(".panel a").click(function() {
  153. parent.addTab($(this));
  154. })
  155. })
  156. </script>
  157. {/block}