79 lines
4.7 KiB
PHP
79 lines
4.7 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>MES 制造执行系统 - 登录</title>
|
|
<link rel="stylesheet" href="<?php echo BASE_URL; ?>/static/css/bootstrap.min.css">
|
|
<link rel="stylesheet" href="<?php echo BASE_URL; ?>/static/css/font-awesome.min.css">
|
|
<link rel="stylesheet" href="<?php echo BASE_URL; ?>/static/css/AdminLTE.min.css">
|
|
<link rel="stylesheet" href="<?php echo BASE_URL; ?>/static/css/skins/_all-skins.min.css">
|
|
<style>
|
|
body { background: #d2d6de; }
|
|
.login-page { background: #d2d6de !important; }
|
|
.login-box { width: 400px; margin: 8% auto; }
|
|
.login-logo { font-size: 35px; text-align: center; margin-bottom: 25px; }
|
|
.login-logo b { color: #3c8dbc; }
|
|
.login-box-body { background: #fff; padding: 30px; border-radius: 5px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
|
|
.login-box-msg { text-align: center; font-size: 16px; color: #666; margin-bottom: 20px; }
|
|
.form-control-feedback { line-height: 34px; }
|
|
.login-footer { text-align: center; margin-top: 20px; color: #999; font-size: 12px; }
|
|
</style>
|
|
</head>
|
|
<body class="hold-transition login-page">
|
|
<div class="login-box">
|
|
<div class="login-logo">
|
|
<b>MES</b> 制造执行系统
|
|
</div>
|
|
<div class="login-box-body">
|
|
<p class="login-box-msg"><i class="fa fa-lock"></i> 请使用员工账号登录</p>
|
|
|
|
<?php if (!empty($error)): ?>
|
|
<div class="alert alert-danger alert-dismissible">
|
|
<button type="button" class="close" data-dismiss="alert">×</button>
|
|
<i class="fa fa-exclamation-circle"></i> <?php echo htmlspecialchars($error); ?>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
<form method="post" action="">
|
|
<input type="hidden" name="csrf_token" value="<?php echo isset($csrf_token) ? h($csrf_token) : ''; ?>">
|
|
<div class="form-group has-feedback">
|
|
<input type="text" name="emp_no" class="form-control input-lg" placeholder="员工编号" required autofocus>
|
|
<span class="fa fa-user form-control-feedback"></span>
|
|
</div>
|
|
<div class="form-group has-feedback">
|
|
<input type="password" name="password" class="form-control input-lg" placeholder="密码" required>
|
|
<span class="fa fa-lock form-control-feedback"></span>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-xs-12">
|
|
<button type="submit" class="btn btn-primary btn-block btn-flat btn-lg">
|
|
<i class="fa fa-sign-in"></i> 登录
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<div class="login-footer" style="margin-top: 15px;">
|
|
©2026深圳市云创芯电子有限公司版权所有<br>
|
|
<span class="beian">备案号:<a href="https://beian.miit.gov.cn/" target="_blank" rel="noopener">粤ICP备16118477号-1</a></span>
|
|
<br><span class="beian">公安网备:<a href="https://beian.mps.gov.cn/#/query/webSearch?code=44030002015390" target="_blank" rel="noopener" style="display:inline-flex;align-items:center;gap:4px;"><img src="<?php echo BASE_URL; ?>/static/images/gongan_badge.png" width="16" height="17" alt="公安网备" loading="lazy" style="vertical-align:middle;" onerror="this.onerror=null;this.outerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="17" viewBox="0 0 24 24"><path d="M12 2l8 3v6c0 5-4 9-8 11-4-2-8-6-8-11V5l8-3z" fill="#1a3a8f" stroke="#d4af37" stroke-width="1"/><polygon points="12,7 13.5,10.5 17,10.5 14,12.8 15,16.5 12,14.5 9,16.5 10,12.8 7,10.5 10.5,10.5" fill="#ffffff"/></svg>'">粤公网安备44030002015390号</a></span>
|
|
</div>
|
|
</div>
|
|
|
|
<script src="<?php echo BASE_URL; ?>/static/js/jquery-3.7.1.min.js"></script>
|
|
<script src="<?php echo BASE_URL; ?>/static/js/bootstrap.min.js"></script>
|
|
<?php // v3-P2 CSP:全局事件委托(替代内联 onclick 等) ?>
|
|
<script src="<?php echo BASE_URL; ?>/static/js/csp_global.js" nonce="<?php echo csp_nonce(); ?>"></script>
|
|
<script nonce="<?php echo csp_nonce(); ?>">
|
|
// ===== 自动聚焦输入框 =====
|
|
$(function() {
|
|
// 如果有错误提示,自动聚焦到员工编号输入框方便重新输入
|
|
<?php if (!empty($error)): ?>
|
|
$('input[name="emp_no"]').focus();
|
|
<?php endif; ?>
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|