        <?php $data = $this->data; ?>
        <?= view("header.php",$data); ?>
            <?= view("home/aside.php",$data); ?>
            <div class="span9" id="content" style="width:100%;">
                <div style="width:100%;min-height:700px;">
                    <div style="width:60%;height:200px;_background:pink;margin:auto;margin-top:100px;">
                        <h1 style="text-align:center;">欢迎进入设备管理系统~</h1>
                        <div style="width:100%;text-align:center;margin-top:35px;">
                            <a href="#" onclick="showDevs()" style="text-align:center;font-size:20px;text-decoration:underline;">查看已有设备</a>
                        </div>
                    </div>
                </div>
            </div>
            <?= view("footer.php",$data); ?>

<script>
/*******************************************
 *     进入查看设备页面
 /******************************************/
function showDevs(){
    var host = window.location.host;
    var username = $.cookie('username');
    var token = $.cookie('token');
    if(username == undefined){
        username = "";
    }
    if(token == undefined){
        token = "";
    }
    window.location.href = "http://" + host + "/home/showDevs" + "?username=" + username + "&token=" + token ;
}

</script>
        
