<!--#include virtual="/include/data.inc"-->
<html>
<head>
<title>网络电子眼</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel='stylesheet' href='/include/standard.css' type='text/css'>
<script language='javascript' src='/include/public.js' ></script>
<script language='javascript' src='/include/tabstrip.js'></script>
<link rel='stylesheet' type='text/css' href='/include/tabstrip.css'>
<%on error resume next
username=trim(request("user"))
pwd=trim(request("passwd"))
set obj=server.createobject("awsnmsch.awsnmse")
val=obj.CheckUser(username,pwd)
set obj=nothing


'sql="select * from tblman where manname='"&username&"' and password='"&pwd&"'"
'set rs=server.createobject("adodb.recordset")
'rs.open sql,conn,3,1,1
alertstr=""
session("login")=""
'if rs.eof then
if val="NO" then
   alertstr="登录失败!请重试!"
   %>
<script language="javascript">
  alert("登录失败!请重试!");
  window.open("/login.asp","mainwin2","scrollbars=yes,status=yes,resizable=yes,left=0,top=0");
  window.close();
  
</script>
<%else
  session("login")=userName
%>
<base TARGET="mainFrame">
<style type="text/css">
	#topFrame 
	{
		BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; BORDER-RIGHT: 0px; BORDER-TOP: 0px;HEIGHT:60;
		LEFT: 0px; POSITION: absolute; TOP:1px; WIDTH: 100%;
	}
	#mainFrame
	{
		BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; BORDER-RIGHT: 0px; BORDER-TOP: 0px; HEIGHT: 100%;
		LEFT: 0px; POSITION: absolute;TOP:60PX;WIDTH: 100%;Z-INDEX: 999;
	}
　　
</style>
<script language="javascript">
window.onload=fixSize;
window.onresize=fixSize;

function fixSize(){
imgarea.style.top=0;
outerDiv.style.top=60;
outerDiv.style.height=document.body.clientHeight-60;
self.moveTo(0,0);
self.resizeTo(screen.availWidth,screen.availHeight);

}
</script>
</head>
<body bgcolor="buttonface" text="#000000" leftmargin=0 topmargin=0 marginwidth=0 marginheight=0  scroll="no">
<Div id="imgarea">
	<iframe ID="topFrame" name="topFrame" src="/login/top.asp" style="background-color:transparent" scrolling="no" frameborder="0"></iframe>
</Div>  

<Div id="outerDiv"　>
<iframe id="mainFrame" name="mainFrame" src="/login/main.asp" style="background-color:transparent" scrolling="no" frameborder="0"></iframe> 
</Div>
</body>
</html>
<%
'rs.close
'set rs=nothing
end if

'//是否在线、报警设置
set obj=server.createobject("awsnmsch.awsnmse")
val=obj.IsRun()
val1=obj.IsAlarm()
if Ucase(val)="YES" then 
   alarm_str="系统运行正常"
   if Ucase(val1)="YES" then
      alarm_str=alarm_str&",有报警"
   end if
else
   alarm_str="系统未启动"
end if
set obj=nothing

%>
<script language="javascript">
window.status="<%=alarm_str%>";
</script>
