<%--
  Created by IntelliJ IDEA.
  User: HuaJunD
  Date: 2018/10/11
  Time: 14:19
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport"
          content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <title>终端辅助</title>
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="stylesheet" href="${ctx}/css/plugin/bootstrap/bootstrap.min.css">
    <link rel="stylesheet" href="${ctx}/css/plugin/jquery/jquery-ui.css">
    <link rel="stylesheet" href="${ctx}/css/plugin/datatimepicker/bootstrap-datetimepicker.css">
    <link rel="stylesheet" href="${ctx}/css/plugin/metroStyle/metroStyle.css">
    <link rel="stylesheet" href="${ctx}/css/basic.css">
    <style type="text/css">
        body, html, #allmap {
            width: 100%;
            height: 100%;
            overflow: hidden;
            margin: 0;
            font-family: "微软雅黑";
            background-color: #F9F9F9 !important;
        }

        .dg-sub b.red {

            border-bottom: solid 1px #98af9f;
            font-weight: bold;
        }

        .dg-sub b {
            padding: 2px 5px;
            color: #666;
            font-weight: normal;
        }

        .left-menu {
            top: 5px;
            left: 5px;
        }

        #tj {
            min-height: 550px;
        }

        @media screen and (min-width: 1000px) and (max-width: 1400px) and (max-height: 500px) {
            #tj {
                min-height: 500px;
            }
        }

        .nav > li > a {
            padding: 3px 15px;
        }

        .middlediv {
            background: #FFFFFF;
            float: left;
            width: 83.5%;
            position: absolute;
            left: 245px;
        }

        .middleleft {
            border: 1px solid rgb(0, 106, 106);
            margin-bottom: 1px;
            margin-top: 1px;
            float: left;
            width: 220px;
        }

        .imgarrow {
            float: left;
            margin-left: 0px;
            margin-top: 1px;
        }

        .mainright {
            float: left;
            margin-left: 1px;
            width: 300px;
        }
        .btn{
            padding: 0px 5px;
        }
    </style>
</head>
<body class="pd5">
<div class="form-group  mr10  " style="margin-bottom: 3px">
    <button type="button" id="pingtel"
            class="btn themeBGColor  ml5 f12">前置Ping和Telnet
    </button>
    <button type="button" id="lbgl"
            class="btn themeBGColor  ml5 f12">录波管理
    </button>
    <button type="button" id="sntp"
            class="btn themeBGColor  ml5 f12">sntp对时文件的上传
    </button>
    <button type="button" id="restoration"
            class="btn themeBGColor  ml5 f12">复位装置
    </button>
    <button type="button" id="syslog"
            class="btn themeBGColor  ml5 f12">系统日志
    </button>
    <button type="button" id="dataadd"
            class="btn themeBGColor  ml5 f12">数据补招
    </button>
    <button type="button" id="devicestate"
            class="btn themeBGColor  ml5 f12">装置状态
    </button>
    <button type="button" id="wifi"
            class="btn themeBGColor  ml5 f12">无线信号
    </button>
    <iframe  id="main_right" scrolling="no"
            name="mainright" frameborder="0" style="width: 100%"></iframe>
</div>

<input type="hidden" id="lineIndex" name="lineIndex">
<input type="hidden" id="lineName" name="lineName">
<input type="hidden" id="middlesrc" name="middlesrc">
<%--Common Modal --%>
<script src="${ctx}/js/plugin/jquery/jquery.min.js"></script>
<script src="${ctx}/js/plugin/bootstrap/bootstrap.min.js"></script>
<script src="${ctx}/js/plugin/layui/layer.js"></script>
<script src="${ctx}/js/plugin/jquery/jquery.contextMenu.js"></script>
<script src="${ctx}/js/plugin/jquery/jquery.cleverTabs.js"></script>
<script src="${ctx}/js/plugin/ztree/jquery.ztree.core.js"></script>
<script src="${ctx}/js/plugin/bootstrap/bootstrap-datetimepicker.js"></script>
<script src="${ctx}/js/plugin/bootstrap/bootstrap-datetimepicker.zh-CN.js"></script>
<script src="${ctx}/jspJS/utils/timeControl.js"></script>
<script src="${ctx}/jspJS/utils/judgeAjaxStatus.js"></script>
<script type="text/javascript">
    var lineIndex;
    var devtype = '';
    devtype = parent.detype();
    lineIndex = parent.linIndex();
    $('#myTab').find('li').click(function () {
        var index = $(this).index();
        (index) ? $('#right-arr').hide() : $('#right-arr').show();
    });


    $(document).ready(function (){
        var picHeight=$(window).height()-30;
        $("#main_right").css("height",picHeight);

        var treeHeight=$(window).height()-30;
        $("#tree").css("min-height",treeHeight);

        $.ajax({
            type: "POST",
            url: "/pqs9900/dic/getDicName",
            data: {devtype:devtype},
            success: function (data) {
                if(data.indexOf("_CLD") > 0){
                    document.getElementById("pingtel").style.display = "none"
                    document.getElementById("main_right").src = "lbgl";
                    $("#middlesrc").val('lbgl');
                }else {
                    document.getElementById("pingtel").style = "block"
                    document.getElementById("main_right").src = "pingtel";
                    $("#middlesrc").val('pingtel');
                }
            }
        })


    })

    //前置ping和Telnet
    $('#pingtel').click(function() {
        document.getElementById("main_right").src = "pingtel";
        $("#middlesrc").val('pingtel');
    })
    //录波管理
    $('#lbgl').click(function() {
        document.getElementById("main_right").src = "lbgl";
        $("#middlesrc").val('lbgl');
    })
    //sntp对时文件的上传
    $('#sntp').click(function() {
        document.getElementById("main_right").src = "sntp";
        $("#middlesrc").val('sntp');
    })
    //复位装置
    $('#restoration').click(function() {
        document.getElementById("main_right").src = "restoration";
        $("#middlesrc").val('restoration');
    })
    //系统日志
    $('#syslog').click(function() {
        document.getElementById("main_right").src = "syslog";
        $("#middlesrc").val('syslog');
    })
    //数据补招
    $('#dataadd').click(function() {
        document.getElementById("main_right").src = "dataadd";
        $("#middlesrc").val('dataadd');
    })
    //装置状态
    $('#devicestate').click(function() {
        document.getElementById("main_right").src = "devicestate";
        $("#middlesrc").val('devicestate');
    })
    //wifi无线信号
    $('#wifi').click(function() {
        document.getElementById("main_right").src = "wifi";
        $("#middlesrc").val('wifi');
    })
    function deviceNa() {
        return parent.deviceDeatil();
    }
</script>
</body>
</html>
