项目

一般

简介

main.html

界面有点删减 - 黄 虹琳, 2017-05-26 14:57

 
1
<!DOCTYPE html>
2
<html>
3
<head lang="en">
4
    <meta charset="GB2312">
5
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
6
    <title></title>
7
    <link href="css/style.css" title="style" rel="stylesheet" type="text/css" />
8
    <script src="js/jquery-1.6.3.min.js"></script>
9
        <style>
10
            html,body{height:100%;}
11
        </style>
12
</head>
13
<body style="background: #F3F3F3">
14
<div class="logo">
15
    <div style="float: left; width: 250px;height: 100px;background: #2A303E;position: relative">
16
        <img src="img/LOGO.png" style="width: 90%;text-align: center;margin-left: 15px;margin-top: 25px;">
17
    </div>
18
    <div class="logotxt">?????????ͻ??????ϵͳ</div>
19

    
20
    <div class="logonav" style=";">
21
        <ul>
22
           <li><a href="A3-status.asp" target="content">??ҳ</a></li>
23
                   <li><a href="pwd.html" target="content">?޸?????</a></li>
24
                   <li><a href="javascript:void(0)" onClick="Logout();">??ȫ?˳?</a></li>
25
        </ul>
26
    </div>
27
</div>
28
    <div class="zuo">
29
        <a href="A3-status.asp" id="navpa" target="content">?? ҳ</a>
30
        <ul class="list_1">
31
            <li><a href="C2.asp?subsys=1" target="content">?е???</a></li>
32
            <li><a href="C2.asp?subsys=2" target="content">?????</a></li>
33
            <li><a href="C2.asp?subsys=3" target="content">UPS ???</a></li>
34
            <li><a href="C2.asp?subsys=5" target="content">?¶?ʪ??</a></li>
35
            <li><a href="C2.asp?subsys=6" target="content">©ˮ???</a></li>
36
            <li><a href="C2.asp?subsys=8" target="content">???ܿյ?</a></li>
37
            <li><a href="B1.html" target="content">?߼?????</a></li>
38
        </ul>
39
        <p class="list1_p list_p">??????־</p>
40
        <ul class="list_1">
41
            <li><a href="B2-t.html" target="content">??????¼</a></li>
42
            <li><a href="B2.html" target="content">??????ѯ</a></li>
43
        </ul>
44
                <div id="config">
45
        <p class="list1_p list_p">????ѡ??</p>
46
        <ul class="list_1">
47
            <li><a href="C0-1.asp" target="content">???????豸</a></li>
48
            <li><a href="C0-3.asp" target="content">232?豸</a></li>
49
            <li><a href="C0-4.asp" target="content">485?豸</a></li>
50
            <li><a href="C0-6.asp" target="content">?????豸</a></li>
51
                        <li><a href="omdev.html" target="_blank">?豸????</a></li>
52
        </ul>
53
                <p class="list1_p list_p">??????ʾ</p>
54
                 <a href="omdev-help.html" target="content">?????ο?</a>
55
         <a href="omdev-jxhelp.html" target="content">???߰???</a>
56
        </div>
57
    </div>
58

    
59
<div class="you">
60
   <iframe id="content" name="content" src="A3-status.asp" frameborder="0"  style="width: 100%;background: #F3F3F3;;min-height:668px;height: auto;">
61
   </iframe>
62
</div>
63

    
64
<script>
65
window.onbeforeunload=function(){
66
    var snote="??ǰλ??: ?????????ͻ??????ϵͳ";
67
        if(document.all){
68
                if(event.clientY<0) return snote;
69
        }else return snote;
70
}        
71
$(".list_1 li a").click(function(){
72
    $(".list_1 li a").removeClass("zuoA");
73
    $(this).addClass("zuoA");
74
});
75
function parseState(istate){
76
    if(istate==0) return "????";
77
    else   if(istate==1) return "?澯";
78
    else   if(istate==2) return "????";
79
    else return "??Ч";
80
}
81
$(function(){
82
    var h=$(window).height();
83
    var w=$(window).width();
84
    $(".zuo").css("height",h-115);
85
    $(".you").css("height",h-135);
86
    $(".you").css("width",w-310);
87
})
88
function getCookie(c_name) {
89
  if (document.cookie.length > 0) {
90
    c_start = document.cookie.indexOf(c_name + "=")
91
    if (c_start != -1) {
92
      c_start = c_start + c_name.length + 1
93
      c_end = document.cookie.indexOf(";", c_start)
94
      if (c_end == -1) c_end = document.cookie.length
95
      return unescape(document.cookie.substring(c_start, c_end))
96
    }
97
  }
98
  return ""
99
}
100
function setCookie(c_name, value, expiredays) {
101
  var exdate = new Date()
102
  exdate.setDate(exdate.getDate() + expiredays)
103
  document.cookie = c_name + "=" + escape(value) +
104
    ((expiredays == null) ? "" : ";expires=" + exdate.toGMTString())
105
}
106
function checkCookie() {
107
  var user = getCookie('user');
108
  if (user == null || user == "") {
109
    Logout();
110
  }
111
  else {
112
    var isadmin = user.indexOf("|OK1") >= 0;
113
        if (isadmin == false) $("#config").hide(); 
114
  }
115
}
116
function Logout() {
117
  setCookie('user', '');
118
  window.top.location.replace("index.html");
119
}
120
window.onload = new function() {
121
  checkCookie();
122
}
123
</script>
124
</body>
125
</html>