<%@ Page Language="C#" StylesheetTheme="AdminSkin" AutoEventWireup="true" CodeBehind="ManagerRight.aspx.cs"
    Inherits="Web.Admin.ManagerRight" %>

<!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 runat="server">
    <title>网站后台管理--碧秀分类程序</title>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <link href="Style/gray/admin.css" type="text/css" rel="stylesheet" />
    <script src="/js/admin.js" type="text/javascript"></script>
    <script type="text/javascript">
        var week = ["日", "一", "二", "三", "四", "五", "六"];
        function getDatetime() {
            var d = new Date();
            var datestr = d.getFullYear() + "/" + (d.getMonth() + 1) + "/" + d.getDate() + " " + d.getHours() + ":" + d.getMinutes() + ":" + d.getSeconds() + " 星期" + week[d.getDay()];
            return datestr;
        }
        function getCheckResult(r) {
            if (r != null && r == true) {
                return "支持";
            }
            else {
                return "不支持";
            }
        }
    </script>
</head>
<body class="ContentArea">
    <div>
        <form id="Form1" runat="server">
            <div class="formdiv" style="width: 100%;">
                <div class="formdiv-title">
                    <h4><span>网站信息 </span></h4>
                </div>
                <div class="formdiv-content">
                    <table style="width: 100%;" border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td class="formdiv-fieldname">
                                <label>.Net框架:</label></td>
                            <td><%=Environment.Version.ToString() %></td>
                        </tr>
                        <tr>
                            <td class="formdiv-fieldname">
                                <label>操作系统: </label>
                            </td>
                            <td><%=Environment.OSVersion.ToString() %> </td>
                        </tr>

                        <tr>
                            <td class="formdiv-fieldname">
                                <label>IIS环境:</label></td>
                            <td><%=Request.ServerVariables["SERVER_SOFTWARE"]%></td>
                        </tr>
                        <tr>
                            <td class="formdiv-fieldname">
                                <label>脚本超时设置:</label></td>
                            <td><%=Server.ScriptTimeout.ToString()%></td>
                        </tr>
                        <tr>
                            <td class="formdiv-fieldname">
                                <label>服务器域名:</label></td>
                            <td><%=Request.ServerVariables["SERVER_NAME"]%></td>
                        </tr>
                        <tr>
                            <td class="formdiv-fieldname">
                                <label>服务器时间:</label></td>
                            <td><%=DateTime.Now.ToString()%></td>
                        </tr>
                        <tr>
                            <td class="formdiv-fieldname">
                                <label>IP:</label></td>
                            <td><%=Request.ServerVariables["LOCAL_ADDR"]%></td>
                        </tr>
                        <tr>
                            <td class="formdiv-fieldname">&nbsp;</td>
                            <td>&nbsp;</td>
                        </tr>
                    </table>
                </div>
            </div>
            <div class="formdiv" style="width: 100%;">
                <div class="formdiv-title">
                    <h4><span>客户端信息 </span></h4>
                </div>
                <div class="formdiv-content">
                    <table style="width: 100%;" border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td class="formdiv-fieldname">
                                <label>客户端IP:</label></td>
                            <td><%=Request.UserHostAddress%> </td>
                        </tr>
                        <tr>
                            <td class="formdiv-fieldname">当前浏览器:</td>
                            <td><%=Request.Browser.Browser+Request.Browser.Version%></td>
                        </tr>
                        <tr>
                            <td class="formdiv-fieldname">本地时间:</td>
                            <td>
                                <span id="SpanDatetime"></span>
                                <script type="text/javascript">
                                    setInterval(function () {
                                        document.getElementById("SpanDatetime").innerHTML = getDatetime();
                                    }, 1000);
                                </script>
                            </td>
                        </tr>
                        <tr>
                            <td class="formdiv-fieldname">
                                <label>Javascript: </label>
                            </td>
                            <td><%=Request.Browser.JavaScript?"支持":"不支持" %></td>
                        </tr>
                        <tr>
                            <td class="formdiv-fieldname">Cookie支持:</td>
                            <td><%=Request.Browser.Cookies?"支持":"不支持" %></td>
                        </tr>
                        <tr>
                            <td class="formdiv-fieldname">ActiveX控件:</td>
                            <td><%=Request.Browser.ActiveXControls?"支持":"不支持" %></td>
                        </tr>
                        <tr>
                            <td class="formdiv-fieldname">Canvas:</td>
                            <td>
                                <script type="text/javascript">
                                    document.write(getCheckResult(html5test.checkCanvas()));
                                </script>
                            </td>
                        </tr>
                        <tr>
                            <td class="formdiv-fieldname">Audio:</td>
                            <td>
                                <script type="text/javascript">
                                    document.write(getCheckResult(html5test.checkAudio()));
                                </script>
                            </td>
                        </tr>
                        <tr>
                            <td class="formdiv-fieldname">Video:</td>
                            <td>
                                <script type="text/javascript">
                                    document.write(getCheckResult(html5test.checkVideo()));
                                </script>
                            </td>
                        </tr>
                        <tr>
                            <td class="formdiv-fieldname">Geolocation:</td>
                            <td>
                                <script type="text/javascript">
                                    document.write(getCheckResult(html5test.checkGeolocation()));
                                </script>
                            </td>
                        </tr>
                        <tr>
                            <td class="formdiv-fieldname">CrossDocument:</td>
                            <td>
                                <script type="text/javascript">
                                    document.write(getCheckResult(html5test.checkCrossDocument()));
                                </script>
                            </td>
                        </tr>
                        <tr>
                            <td class="formdiv-fieldname">XMLHttpRequest2:</td>
                            <td>
                                <script type="text/javascript">
                                    document.write(getCheckResult(html5test.checkXMLHttpRequest2()));
                                </script>
                            </td>
                        </tr>
                        <tr>
                            <td class="formdiv-fieldname">WebSocket:</td>
                            <td>
                                <script type="text/javascript">
                                    document.write(getCheckResult(html5test.checkWebSocket()));
                                </script>
                            </td>
                        </tr>
                        <tr>
                            <td class="formdiv-fieldname">WebWorker:</td>
                            <td>
                                <script type="text/javascript">
                                    document.write(getCheckResult(html5test.checkWebWorker()));
                                </script>
                            </td>
                        </tr>
                        <tr>
                            <td class="formdiv-fieldname">WebStorage:</td>
                            <td>
                                <script type="text/javascript">
                                    document.write(getCheckResult(html5test.checkWebStorage()));
                                </script>
                            </td>
                        </tr>
                        <tr>
                            <td class="formdiv-fieldname">ApplicationCache:</td>
                            <td>
                                <script type="text/javascript">
                                    document.write(getCheckResult(html5test.checkApplicationCache()));
                                </script>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
            <script type="text/javascript">
  
            </script>
        </form>
    </div>
</body>
</html>
