<!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/web/css/bootstrap.min.css">
<link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
<link rel="stylesheet" href="../static/web/css/style.css">
<title><?php echo $cfg_webname; ?>后台登录</title>
<style>
body{font:14px Helvetica Neue,Helvetica,PingFang SC,Tahoma,Arial,sans-serif;color:#393d49;background:#f6f6f6}
img{max-width:100%}
input{font-size:14px!important}
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:1.25rem;border-radius:.25rem}
.login-area .btnLogin{width:100%}
.login-power{padding-top:1rem}
.login-power a,.goindex a{color:#008e38}
</style>
</head>
<body>
    <?php
    if(preg_match('/MSIE/i',$_SERVER['HTTP_USER_AGENT']) || preg_match('/Trident/i',$_SERVER['HTTP_USER_AGENT'])){
    ?>
    <div id="browsehappy" style="padding:20px 30px;font-size:14px;line-height:16px;color:#856404;background:#fff3cd;border-radius:.25rem;border:none">
        <a onclick="document.getElementById('browsehappy').style.display='none';" style="float:right;cursor:pointer">×</a>
        <span>您正在使用一个过时的浏览器，请您<a href="https://www.dedebiz.com/browsehappy" target="_blank">升级浏览器</a>，以提高您对后台体验</span>
    </div>
    <?php
    }
    ?>
	<header>
		<div class="container top">
			<div class="row">
				<div class="col-10">
					<div class="logo"><img src="../static/web/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="../apps/vdimgck.php" onclick="this.src='../apps/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>
</body>
</html>