<!DOCTYPE html>
<html>
	<head>
		<meta charset="<?php echo $cfg_soft_lang; ?>">
		<meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
		<title>头像设置-会员中心-<?php echo $cfg_webname; ?></title>
		<script src="<?php echo $cfg_cmsurl; ?>/static/web/js/jquery.min.js"></script>
		<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/bootstrap.min.css">
		<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/font/css/font-awesome.min.css">
		<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/style.css">
		<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/member.css">
	</head>
	<body>
		<?php include(DEDEMEMBER."/templets/top_login.htm"); ?>
		<main class="member">
			<div class="pannel">
				<div class="container">
					<div class="row">
						<?php
						$_menu_edtex = true;
						$_menu_edtitem = 'face';
						?>
						<?php include(DEDEMEMBER."/templets/menu.htm"); ?>
						<div class="pannel-main col-md-9 mt-3 mb-3">
							<div class="pannel-main-container">
								<ul class="nav nav-tabs">
									<li class="nav-item">
										<a class="nav-link" href="edit_baseinfo.php">账号安全</a>
									</li>
									<li class="nav-item">
										<a class="nav-link active" href="edit_face.php">头像设置</a>
									</li>
									<li class="nav-item">
										<a class="nav-link" href="edit_email.php">验证邮箱</a>
									</li>
								</ul>
								<form action="edit_face.php" method="post" enctype="multipart/form-data" name="form1" class="mt-3">
									<input type="hidden" name="_csrf_token" value="<?php echo $GLOBALS['csrf_token'];?>">
									<input type="hidden" name="dopost" value="save">
									<div class="form-group row">
										<label for="iptUname" class="col-sm-2 col-form-label">手工填写网址</label>
										<div class="col-sm-10">
											<input name="faceurl" type="text" id="faceurl" size="35" class="form-control" value="<?php echo $face; ?>">
										</div>
									</div>
									<div class="form-group row">
										<label for="iptValidate" class="col-sm-2 col-form-label">原来头像</label>
										<div class="col-sm-10">
											<?php
											if($face!='') echo " <img src='$face' style='width:50px;height:50px;border-radius:50%'>";
											?>
										</div>
									</div>
									<div class="form-group row">
										<div class="col-sm-10">
											<button type="submit" class="btn btn-success btn-sm">保存</button>
										</div>
									</div>
								</form>
							</div>
						</div>
					</div>
				</div>
			</div>
		</main>
		<?php include(DEDEMEMBER."/templets/footer.htm"); ?>
	</body>
</html>