123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159 |
- {extend name="index_layout"/}
- {block name="main"}
- {notempty name="default_pass"}
- <div class="alert alert-danger-light">
- 安全提示:超级管理员默认密码未修改,建议马上修改。
- </div>
- {/notempty}
- {if $Think.config.app_debug}
- <div class="alert alert-danger-light">
- 安全提示:当前网站【调试模式】开启中,强烈建议在正式部署后关闭调试模式
- </div>
- {/if}
- {if $Think.config.app_trace}
- <div class="alert alert-danger-light">
- 安全提示:当前网站【Trace调试】开启中,强烈建议在正式部署后关闭Trace调试
- </div>
- {/if}
- <div class="alert alert-success-light">
- <div id="nowTime"></div>
- </div>
- <div class="layui-row layui-col-space10 panel_box">
- <div class="panel layui-col-xs12 layui-col-sm6 layui-col-md4 layui-col-lg3">
- <a href="https://www.kancloud.cn/ken678/yzncms/352683" target="_blank">
- <div class="panel_icon yzn-bg-blue">
- <i class="layui-icon layui-icon-read layui-anim"></i>
- </div>
- <div class="panel_word">
- <span>文档</span>
- <cite>使用手册</cite>
- </div>
- </a>
- </div>
- <div class="panel layui-col-xs12 layui-col-sm6 layui-col-md4 layui-col-lg3">
- <a href="https://gitee.com/ken678/YZNCMS" target="_blank">
- <div class="panel_icon yzn-bg-orange">
- <i class="layui-icon layui-icon-fonts-code layui-anim"></i>
- </div>
- <div class="panel_word">
- <span>代码</span>
- <cite>下载链接</cite>
- </div>
- </a>
- </div>
- <div class="panel layui-col-xs12 layui-col-sm6 layui-col-md4 layui-col-lg3">
- <a href="http://blog.yzncms.com" target="_blank">
- <div class="panel_icon yzn-bg-green">
- <i class="layui-icon layui-icon-survey layui-anim"></i>
- </div>
- <div class="panel_word">
- <span>博客</span>
- <cite>技术分享</cite>
- </div>
- </a>
- </div>
- <div class="panel layui-col-xs12 layui-col-sm6 layui-col-md4 layui-col-lg3">
- <a href="javascript:;">
- <div class="panel_icon yzn-bg-purple">
- <i class="layui-icon layui-icon-log layui-anim"></i>
- </div>
- <div class="panel_word">
- <span class="loginTime">
- <?php if($userInfo['last_login_time'] > 0) { echo $userInfo['last_login_time'];} else { echo '--';}?></span>
- <cite>上次登录时间</cite>
- </div>
- </a>
- </div>
- </div>
- <div class="layui-row layui-col-space10">
- <div class="layui-col-lg12 layui-col-md12">
- <div class="layui-card">
- <div class="layui-card-header" style="border-bottom: 1px solid #eee;">版本信息</div>
- <div class="layui-card-body">
- <table class="layui-table magt0" lay-even>
- <colgroup>
- <col width="10%">
- <col width="40%">
- <col width="10%">
- <col width="40%">
- </colgroup>
- <tbody>
- <tr>
- <td>当前版本</td>
- <td class="version">yzncms v{$Think.config.version.yzncms_version}</td>
- <td>ThinkPHP版本</td>
- <td class="version">{$Think.VERSION}</td>
- </tr>
- <tr>
- <td>PHP 版本</td>
- <td>{$sys_info.phpv}</td>
- <td>数据库版本</td>
- <td>{$sys_info.mysql_version}</td>
- </tr>
- <tr>
- <td>服务器域名/IP</td>
- <td>{$sys_info.domain} [ {$sys_info.ip} ]</td>
- <td>服务器环境</td>
- <td class="server">{$sys_info.web_server}</td>
- </tr>
- <tr>
- <td>服务器时间</td>
- <td>{$sys_info.time}</td>
- <td>剩余空间</td>
- <td>{$sys_info.remaining_space}</td>
- </tr>
- <tr>
- <td>最大上传限制</td>
- <td>{$sys_info.fileupload}</td>
- <td>最大占用内存</td>
- <td>{$sys_info.memory_limit}</td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- </div>
- {/block}
- {block name="script"}
- <script type="text/javascript">
- //获取系统时间
- var newDate = '';
- getLangDate();
- //值小于10时,在前面补0
- function dateFilter(date) {
- if (date < 10) { return "0" + date; }
- return date;
- }
-
- function getLangDate() {
- var dateObj = new Date(); //表示当前系统时间的Date对象
- var year = dateObj.getFullYear(); //当前系统时间的完整年份值
- var month = dateObj.getMonth() + 1; //当前系统时间的月份值
- var date = dateObj.getDate(); //当前系统时间的月份中的日
- var day = dateObj.getDay(); //当前系统时间中的星期值
- var weeks = ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"];
- var week = weeks[day]; //根据星期值,从数组中获取对应的星期字符串
- var hour = dateObj.getHours(); //当前系统时间的小时值
- var minute = dateObj.getMinutes(); //当前系统时间的分钟值
- var second = dateObj.getSeconds(); //当前系统时间的秒钟值
- var timeValue = "" + ((hour >= 12) ? (hour >= 18) ? "晚上" : "下午" : "上午"); //当前时间属于上午、晚上还是下午
- newDate = dateFilter(year) + "年" + dateFilter(month) + "月" + dateFilter(date) + "日 " + " " + dateFilter(hour) + ":" + dateFilter(minute) + ":" + dateFilter(second);
- document.getElementById("nowTime").innerHTML = "亲爱的{$userInfo.username}," + timeValue + "好! 欢迎使用YznCMS v{$Think.config.version.yzncms_version},当前时间为: " + newDate + " " + week;
- setTimeout("getLangDate()", 1000);
- }
-
- layui.use(['jquery'], function() {
- var $ = layui.jquery;
- //icon动画
- $(".panel a").hover(function() {
- $(this).find(".layui-anim").addClass("layui-anim-scaleSpring");
- }, function() {
- $(this).find(".layui-anim").removeClass("layui-anim-scaleSpring");
- })
- $(".panel a").click(function() {
- parent.addTab($(this));
- })
- })
- </script>
- {/block}
|