123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <meta http-equiv="X-UA-Compatible" content="IE=Edge">
- <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
- <title>生产人员入口 - 产能监控系统登陆</title>
- <!-- Favicon-->
- <link rel="icon" href="favicon.ico" type="image/x-icon">
- <!-- Google Fonts -->
- <link href="css/cyllic.css" rel="stylesheet" type="text/css">
- <link href="css/mateial.css" rel="stylesheet" type="text/css">
- <!-- Bootstrap Core Css -->
- <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/4.0.0/css/bootstrap.min.css"
- integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
- <!-- Waves Effect Css -->
- <link href="plugins/node-waves/waves.css" rel="stylesheet"/>
- <!-- Animation Css -->
- <link href="plugins/animate-css/animate.css" rel="stylesheet"/>
- <!-- Morris Chart Css-->
- <link href="plugins/morrisjs/morris.css" rel="stylesheet"/>
- <!-- Custom Css -->
- <link href="css/style.css" rel="stylesheet">
- <!-- AdminBSB Themes. You can choose a theme from css/themes instead of get all themes -->
- <link href="css/themes/all-themes.css" rel="stylesheet"/>
- <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
- <script src="https://cdn.bootcss.com/popper.js/1.12.9/umd/popper.min.js"
- integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q"
- crossorigin="anonymous"></script>
- <script src="https://cdn.bootcss.com/bootstrap/4.0.0/js/bootstrap.min.js"
- integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl"
- crossorigin="anonymous"></script>
- <link rel="icon" href="https://static.jianshukeji.com/highcharts/images/favicon.ico">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- </head>
- <body class="login-page ls-closed " style="background-color: #303030 ">
- <div class="login-box text-center" style="">
- <div class="logo">
- <a href="javascript:void(0);">生产人员入口 <br>工厂产能监控登陆</a>
- </div>
- <div class="alert alert-warning" id="mpAlert" style="display:none">
- </div>
- <div class="card">
- <div class="body">
- <form id="sign_in" method="POST" onsubmit="return false;">
- <div class="msg">请使用生产人员信息登陆(不是管理员信息)</div>
- <div class="input-group">
- <span class="input-group-addon">
- <i class="material-icons">person</i>
- </span>
- <div class="form-line">
- <input type="text" class="form-control" name="username" placeholder="生产人员登陆名" required autofocus>
- </div>
- </div>
- <div class="input-group">
- <span class="input-group-addon">
- <i class="material-icons">lock</i>
- </span>
- <div class="form-line">
- <input type="password" class="form-control" name="password" placeholder="生产人员密码" required>
- </div>
- </div>
- <div class="row">
- <div class="col-8"></div>
- <div class="col-4" style="float: right">
- <button class="btn btn-block bg-pink waves-effect" type="submit" onclick="gotoLogin()">登陆</button>
- </div>
- </div>
- </form>
- </div>
- </div>
- </div>
- <!-- Jquery Core Js -->
- <script src="plugins/jquery/jquery.min.js"></script>
- <!-- Bootstrap Core Js -->
- <script src="plugins/bootstrap/js/bootstrap.js"></script>
- <!-- Waves Effect Plugin Js -->
- <script src="plugins/node-waves/waves.js"></script>
- <!-- Validation Plugin Js -->
- <script src="plugins/jquery-validation/jquery.validate.js"></script>
- <!-- Custom Js -->
- <script src="js/basic.js"></script>
- <script src="js/pages/examples/sign-in.js"></script>
- <script>
- function gotoLogin(){
- var password = $('input[name="password"]').val();
- var username = $('input[name="username"]').val();
- get_data("/fcWorker/login?u=" + username +
- "&p="+ password, onlogin_finish);
- }
- function onlogin_finish(obj){
- console.log("Login Outcome::");
- console.log(obj);
- obj = first_parse(this, obj);
- if(obj == undefined || obj == null || obj.list === undefined || obj.list == null || obj.list.length < 1){
- send_alert("用户名密码错误");
- }else{
- // TODO: 判断是否存在flowMaster,是否有权限
- setCookieWithTimeout("doibyUser", obj.list[0].userId);
- alert("Cookie : " + getCookie("doibyUser"));
- location.href = "denglu.html?userId=" + obj.list[0].userId;
- }
- }
- </script>
- </body>
- </html>
|