<!DOCTYPE html>
<html>
<head>
<meta charset="<?php echo $cfg_soft_lang; ?>">
<meta name="robots" content="noindex,nofollow">
<meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
<link rel="stylesheet" href="../static/css/bootstrap.min.css">
<link rel="stylesheet" href="../static/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="../static/css/dede.css">
<title><?php echo $cfg_webname; ?>后台登录</title>
<style>
body{font:14px Helvetica Neue,Helvetica,PingFang SC,Tahoma,Arial,sans-serif;color:#424b51;background:#f8f8f8}
img{max-width:100%}
header{background:#fff}
header .logo{width:300px;padding:1rem 0}
.goindex{line-height:68px}
.fa{font-size:16px}
.login-from{max-width:580px;width:100%}
.login-area{background:#fff;padding:2rem;border-radius:.25rem}
.login-area .btnLogin{width:100%}
.login-power{padding-top:1rem}
.login-power a,.goindex a{color:#008e38}
</style>
</head>
<body>
	<header>
		<div class="container top">
			<div class="row">
				<div class="col-10">
					<div class="logo"><img src="../static/img/admin-logo.png" title="<?php echo $cfg_soft_enname; ?>"></div>
				</div>
				<div class="col-2 d-flex justify-content-end goindex">
					<a href="../index.php" target="_blank"><i class="fa fa-home" aria-hidden="true"></i></a>
				</div>
			</div>
		</div>
	</header>
	<main class="container login-from mt-5">
		<?php echo $redmsg; ?>
		<div class="login-area">
			<h4 class="mb-4 text-center">后台登录</h4>
			<form name="form1" method="post" action="login.php">
				<input type="hidden" name="gotopage" value="<?php if(!empty($gotopage)) echo RemoveXSS($gotopage); ?>">
				<input type="hidden" name="dopost" value="login">
				<input type="hidden" name="adminstyle" value="newDedeBIZ">
				<div class="form-group">
					<label for="iptUserid">用户名</label>
					<input type="text" name="userid" class="form-control" id="iptUserid">
				</div>
				<div class="form-group">
					<label for="iptPassword">密码</label>
					<input type="password" name="pwd" class="form-control" id="iptPassword">
				</div>
	   			<?php
        		if(preg_match("/6/",$safe_gdopen))
        		{
        		?>
				<div class="form-group">
					<label for="iptValidate">验证码</label>
					<div class="input-group">
						<input type="text" name="validate" class="form-control" id="iptValidate" style="text-transform:uppercase">
						<img src="../plus/vdimgck.php" onclick="this.src='../plus/vdimgck.php?'+new Date().getTime()+Math.round(Math.random() * 10000)" title="验证码" id="validateimg" style="cursor:pointer">
					</div>
				</div>
				<?php
       			}
				?>
				<button type="submit" class="btn btn-success btnLogin">登录</button>
				<div class="login-power"><?php echo $cfg_powerby; ?></div>
			</form>
		</div>
	</main>
	<script src="../static/js/jquery.min.js"></script>
	<script src="../static/js/bootstrap.bundle.js"></script>
</body>
</html>