<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/12/11/011
 * Time: 19:37
 */
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>BIT System 后台管理平台</title>
    <link href="<?= STATIC_URL?>/static/cp/bootstrap/css/bootstrap.css" rel="stylesheet" type="text/css" />
    <link href="<?= STATIC_URL?>/static/cp/css/base.css" rel="stylesheet" type="text/css" />
    <link href="<?= STATIC_URL?>/static/cp/css/admin.css" rel="stylesheet" type="text/css" />
    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
    <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <script src="<?= STATIC_URL?>/static/cp/js/jquery-1.7.2.min.js"></script>
    <script src="<?= STATIC_URL?>/static/cp/bootstrap/js/bootstrap.js"></script>
    <script src="<?= STATIC_URL?>/static/cp/js/admin.js"></script>
</head>
<body id="main">
<div class="main-nav"> <span>欢迎使用BIT System 后台管理平台</span></div>
<div class="main-content">
    <div class="form-or-table">
        <table id="list-table" class="table table-striped table-bordered">
            <tbody>
            <tr>
                <th width="120px">PHP版本：</th>
                <td><?= PHP_VERSION ?></td>
            </tr>
            <tr>
                <th>操作系统名称：</th>
                <td><?= PHP_OS ?></td>
            </tr>
            <tr>
                <th>操作系统构架：</th>
                <td>amd64</td>
            </tr>
            <tr>
                <th>操作系统版本：</th>
                <td><?= php_uname('r') ?></td>
            </tr>
            <tr>
                <th>SERVER信息：</th>
                <td><?= $_SERVER['SERVER_SOFTWARE'] ?> </td>
            </tr>
<!--            <tr>
                <th>SERVLET版本：</th>
                <td>${servletVersion}</td>
            </tr>-->
            <tr>
                <th>当前版本：</th>
                <td>3.1</td>
            </tr>
            <tr>
                <th>技术支持：</th>
                <td>jacobm@qq.com</td>
            </tr>
            <tr style="display: none;">
                <th>数据库版本：</th>
                <td id="db_version"></td>
            </tr>
            </tbody>
        </table>
    </div>
</div>
<script>
$(function () {
    $.get('/cp/common/get-common-info', {}, function (json) {
        $('#db_version').text(json.db_version);
    }, 'json');
});
</script>
</body>
</html>

