This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
nms-oam/gloam/WebRoot/login.html
fangshunjian 788b321414 1、修改程序启动读取配置文件,修改node_table表信息
2、添加数据收集脚本,程序启动时主动下发监测脚本,同时修改监测配置文件seq_id
3、修改进程shell命令
2018-12-21 16:55:02 +06:00

151 lines
4.7 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<!-- start: Meta -->
<meta charset="utf-8">
<title>OAM user login</title>
<meta name="description" content="登录页面">
<meta name="author" content="Dennis Ji">
<meta name="keyword" content="Metro, Metro UI, Dashboard, Bootstrap, Admin, Template, Theme, Responsive, Fluid, Retina">
<!-- end: Meta -->
<!-- start: Mobile Specific -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- end: Mobile Specific -->
<!-- start: CSS -->
<link id="bootstrap-style" href="/css/bootstrap.min.css" rel="stylesheet">
<link href="/css/bootstrap-responsive.min.css" rel="stylesheet">
<link id="base-style" href="/css/style.css" rel="stylesheet">
<link id="base-style-responsive" href="/css/style-responsive.css" rel="stylesheet">
<link id="ie-style" href="/css/ie.css" rel="stylesheet">
<link id="ie9style" href="/css/ie9.css" rel="stylesheet">
<!-- end: CSS -->
<!-- start: JavaScript-->
<script src="/js/jquery-2.1.4.min.js"></script>
<!-- end: JavaScript-->
#include("/common/header.html")
<style type="text/css">
html,body {;
background: #333333;;
}
#dialog {
height:80px;
line-height:80px;
text-align:center;
}
.no-close .ui-dialog-titlebar-close {
display:none;
}
</style>
<script >
function enterkey(){
try{
//根据浏览器选择适合的event
var ev=window.event||arguments.callee.caller.arguments[0],et=ev.srcElement||ev.target;
var userName=document.getElementById("yhmc").value;
var password=document.getElementById("yhmm").value;
var el_keydown=et;
if(ev.keyCode==13){
}
}catch(e){
return ;
}
}
$(function(){
var wHight = $(window).height();//alert('wHight '+wHight);
var dHight = $(document).height();//alert('dHight '+dHight);
if(dHight > wHight){//滚动条滚动
$(document).scrollTop((dHight-wHight)/2);
}
$("#yhmc").trigger('focus');
//连接超时后 防止iframe跳转登录 使主页面跳转到登录页面
if(top.location!=self.location){
$('body').empty();
top.location.href="/";
}else{
var loginError=$("#loginError").val();
if(loginError!=undefined&&loginError!=''){
myAlert(loginError);
}
}
});
function myAlert(msg) {
$("#dialog").text(msg);
$("#dialog").dialog({
dialogClass: "no-close",
modal:true,
buttons: {
Ok: function() {
$(this).dialog("close");
}
}
});
}
</script>
</head>
<body>
#if(session??&&session.signError??)
<input type="hidden" id="loginError" value="#(_res.get(session.signError))">
#end
<div class="container-fluid-full">
<div class="row-fluid">
<div class="row-fluid">
<div class="login-box">
<div class="login-box1">
<span style="text-align: center;margin: 0 auto;width: auto;height: 75px;display: block;margin-top: -5%;font-size: 50px;">#(equipmentName)</span>
</div>
<div class="login-box2">
<span style="text-align: center;margin: 0 auto;width: 225px;height: 75px;display: block;margin-top: 15%;font-size: 50px;">#(projectName)</span>
</div>
<form class="form-horizontal" action="/login" name="form1" method="post" id="login">
<fieldset>
<div class="input-prepend" title="username">
<span class="add-on"><i class="halflings-icon user"></i></span>
#if(nameMsg != null)
#set(style="border-color:red !important;")
#else
#set(style="")
#end
<input style="#(style)" class="input-large span10" name="name" id="yhmc" type="text" placeholder="Account" onkeyDown="enterkey();" value="#(name)"/>#--<p style="color:red;font-size:10px">#(nameMsg)</p>--#
</div>
<div class="clearfix"></div>
<div class="input-prepend" title="password">
<span class="add-on"><i class="halflings-icon lock"></i></span>
#if(passwordMsg != null)
#set(style="border-color:red !important;")
#else
#set(style="")
#end
<input style="#(style)" class="input-large span10" name="password" id="yhmm" type="password" placeholder="Password" onkeyDown="enterkey();" value="#(password)"/>#--<p style="color:red;font-size:10px">#(passwordMsg)</p>--#
</div>
<div class="clearfix"></div>
<div class="button-login">
<button type=reset class="btn btn-warning" style="width:60px;"><span class="icon-undo"></span></button>
</div>
<div class="button-login">
<button type="submit" class="btn btn-primary" style="width:60px;"><span class="icon-circle-arrow-right"></span></button>
</div>
</fieldset>
</form>
</div>
</div>
</div>
</div>
<div id="dialog" style="display:none;"></div>
</body>
</html>