项目

一般

简介

main.html

王 慧, 2018-05-28 11:37

 
1
<!DOCTYPE html>
2
<html>
3
<head>
4
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
5
<meta http-equiv="Content-Language" content="zh-cn" />
6
<title></title>
7
<link href="css/omdev.css" title="style" rel="stylesheet" type="text/css" />
8
<script src="js/jquery-1.6.3.min.js"></script>
9
</head>
10
<body>
11
<div id="hd">
12
  <div class="logo">
13
     <img class=logoimg src="img/LOGO.png">
14
  </div>
15
  <div class="logotxt">?????????ͻ??????ϵͳ</div>
16
  <div class="logonav" style=";">
17
    <ul>
18
      <li><a href="A3-status.asp" target="content">??ҳ</a></li>
19
      <li><a href="pwd.html" target="content">?޸?????</a></li>
20
      <li><a href="javascript:void(0)" onclick="Logout();">??ȫ?˳?</a></li>
21
    </ul>
22
  </div>
23
</div>
24
<div id="bd">
25
  <div id="side">
26
        <a href="A3-status.asp" id="navhome" target="content" class="list_p">?? ҳ</a>
27
        <ul class="list_1">
28
            <li><a href="C2.asp?subsys=1" target="content">?е???</a></li>
29
            <li><a href="C2.asp?subsys=2" target="content">?????</a></li>
30
            <li><a href="C2.asp?subsys=3" target="content">UPS ???</a></li>
31
            <li><a href="C2.asp?subsys=4" target="content">??ؼ??</a></li>
32
            <li><a href="C2.asp?subsys=5" target="content">?¶?ʪ??</a></li>
33
            <li><a href="C2.asp?subsys=6" target="content">©ˮ???</a></li>
34
            <li><a href="C2.asp?subsys=7" target="content">?յ????</a></li>
35
            <li><a href="C2.asp?subsys=8" target="content">???ܿյ?</a></li>
36
            <li><a href="C2.asp?subsys=9" target="content">???????</a></li>
37
            <li><a href="C2.asp?subsys=10" target="content">??????</a></li>
38
            <li><a href="C2.asp?subsys=11" target="content">?Ŵ??Ž?</a></li>
39
            <li><a href="C2.asp?subsys=12" target="content">ȫ????Ƶ</a></li>
40
            <li><a href="B1.html" target="content">?߼?????</a></li>
41
        </ul>
42
        <p class="list_p">??????־</p>
43
        <ul class="list_1">
44
            <li><a href="B2-t.html" target="content">??????¼</a></li>
45
            <li><a href="B2.html" target="content">??????ѯ</a></li>
46
                        <li><a href="B3.asp" target='content'>??ʪ?ȼ?¼??ѯ</a></li>
47
        </ul>
48
                <div id="config">
49
        <p class="list_p">????ѡ??</p>
50
        <ul class="list_1">
51
            <li><a href="C0-1.asp" target="content">AI/DI?豸</a></li>
52
            <li><a href="C0-3.asp" target="content">232?豸</a></li>
53
            <li><a href="C0-4.asp" target="content">485?豸</a></li>
54
            <li><a href="C0-6.asp" target="content">?????豸</a></li>
55
                    <a href="omdev.html" target="_blank">?豸????</a>
56
        </ul>
57
                </div>
58
            <p class="list_p">??????ʾ</p>
59
            <ul class="list_1">
60
                <li><a href="omdev-help.html" target="content">?????ο?</a></li>
61
            <li><a href="omdev-jxhelp.html" target="content">???߰???</a></li>
62
        </ul>
63
        <br>
64
  </div>
65
  <div id="main">
66
      <iframe id="content" name="content" src="A3-status.asp" frameborder="0"  style="width: 100%;background: #F3F3F3; height:100%">
67
      </iframe>
68
  </div>
69
</div>
70
<div id="ft">
71
  <address class="copyright">??Ȩ???? &copy; &nbsp;<a href="http://www.omara.cn/">OMARA.cn </a>&nbsp;</address>
72
</div>
73

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