<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>

<head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Pragma" content="No-cache" />
    <meta http-equiv="Cache-Control" content="no-cache, must-revalidate" />
    <meta http-equiv="Expires" content="-1" />
    <meta name="viewport"
        content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
    <script type="text/javascript" charset="utf-8" src="jquery-2.0.3.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="jquery.validate.js"></script>

    <script type="text/javascript" charset="utf-8" src="popView.js"></script>
    <script type="text/javascript" charset="utf-8" src="mobileUtil.js"></script>

    <link rel="stylesheet" type="text/css" href="style_mobile.css" media="all" />

    <style>
        .borderbot {
            border-bottom: 1px solid #e1ece6;
        }
    </style>

    <script>
        top != self && (top.location = self.location);


        $(function () {
            GetXML();
            InitPage();
            // startTimeout();
        })

        function InitPage() {
            InitForm();
        }

        function GetXML() {

            {
                var software = '<%ejGet(sysVersion)%>';
                var buildTime = '<%ejGet(cmsBuildTimestamp)%>';
                var uptime = '<%ejGetOther(sysInfo, uptimeString)%>';
                var time = '<%ejGetOther(sysInfo, dateTime)%>';
                var lanAddr = '<%ejGetOther(sysInfo, lanAddr)%>';
                var cfeVersion = '<%ejGet(cfeVersion)%>';
                var WirelessDriverVersion ='<%ejGetWlVar(wlVersion)%>';

                if ((time = new Date(time)) != "Invalid Date") {
                    var dt = time.getTime() - new Date().getTime();
                    var f = function () {
                        var d = new Date(new Date().getTime() + dt);
                        $("#SystemTime").html(dateFormat("YYYY/mm/dd HH:MM:SS", d));
                    };
                    f(), setInterval(f, 1e3);
                }

                $("#FirmwareVersion").html(software);
                $("#BuildTime").html(buildTime);
                $("#Uptime").html(uptime);
                $("#LanIPAddress").html(lanAddr);
                $("#cfeVersion").html(cfeVersion);
                $("#WirelessDriverVersion").html(WirelessDriverVersion);
            }

            $(".main").show();
        }

        function SubmitPage() {
            SetXML()
        }

        function SetXML() {

        }

        function InitForm() {

        }

    </script>
</head>

<body>
    <div id="header"></div>
    <div id="menu">
        <div id="BackToHome">
            <div id="BackToHomeButton" onclick="javascript:window.location.href='/MobileHome.html'">
                <div></div>
            </div>
            <div id="SettingTitle" class="vertical-middle">Device Info</div>
        </div>
    </div>
    <div id="content">
        <form action="" id="System_form">
            <div id="main" class="main" style="display:none;">
                <div id="PageDesc"></div>
                <div class="module" style="padding-bottom: 40px;">

                    <div class="module" name="DeviceSet_div">
                        <!-- <div class="tr_div borderbot">
                            <div class="th_div">Device Name</div>
                            <div class="td_div" id="DeviceName"">Loading...</div>
                        </div> -->
                        <div class=" tr_div borderbot">
                            <div class="th_div" style="width: fit-content;white-space: nowrap;padding-right: 10px;">Software Version</div>
                            <div class="td_div" id="FirmwareVersion" style="white-space: normal;text-align: right;">Loading...</div>
                        </div>
                        <div class="tr_div borderbot">
                            <div class="th_div">Build Timestamp</div>
                            <div class="td_div" id="BuildTime">Loading...</div>
                        </div>
                        <div class="tr_div borderbot">
                            <div class="th_div">CFE Version</div>
                            <div class="td_div" id="cfeVersion">Loading...</div>
                        </div>
                        <div class="tr_div borderbot">
                            <div class="th_div">Wireless Driver Version</div>
                            <div class="td_div" id="WirelessDriverVersion">Loading...</div>
                        </div>
                        <div class="tr_div borderbot">
                            <div class="th_div">Uptime</div>
                            <div class="td_div" id="Uptime">Loading...</div>
                        </div>
                    </div>

                    <div class="module" name="SystemTime_div">
                        <div class="tr_div borderbot">
                            <div class="th_div">System Time</div>
                            <div class="td_div" id="SystemTime">Loading...</div>
                        </div>
                    </div>

                    <div class="module">
                        <div class="tr_div borderbot">
                            <div class="th_div">LAN IP</div>
                            <div class="td_div" id="LanIPAddress">Loading...</div>
                        </div>
                        <!-- <div class="tr_div borderbot">
                                <div class="th_div">LAN MAC</div>
                                <div class="td_div" id="LanMacAddress">Loading...</div>
                            </div> -->
                    </div>

                    <div class="module" name="Wan_div" style="display: none;">
                        <div class="tr_div borderbot">
                            <div class="th_div">WAN 上网方式</div>
                            <div class="td_div" id="Type">Loading...</div>
                        </div>
                        <div class="tr_div borderbot">
                            <div class="th_div">WAN IP</div>
                            <div class="td_div" id="IPAddress">Loading...</div>
                        </div>
                        <div class="tr_div borderbot">
                            <div class="th_div">WAN MAC</div>
                            <div class="td_div" id="WanMacAddress">Loading...</div>
                        </div>
                        <div class="tr_div borderbot">
                            <div class="th_div">默认网关</div>
                            <div class="td_div" id="Gateway">Loading...</div>
                        </div>
                        <div class="tr_div borderbot">
                            <div class="th_div">DNS 服务器</div>
                            <div class="td_div" id="DNS">Loading...</div>
                        </div>
                    </div>



                </div>

            </div>
        </form>
    </div>
    <div id="footer"></div>
    <div id="selectAlert" class="black_overlay" style="display: none;"></div>
    <div id="popalert" class="black_overlay" style="display: none;"></div>
    <div id="DetectRouterConnection" style="display: none;"></div>
</body>

</html>