<!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">
  <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 href="<?php echo $cfg_cmsurl; ?>/static/web/font/css/font-awesome.min.css" rel="stylesheet">
  <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">
  <title>头像设置 - 会员中心 - <?php echo $cfg_webname; ?></title>
</head>
<body>
  <?php include(DEDEMEMBER."/templets/top_login.htm"); ?>
  <main class="member">
    <div class="container-fluid 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 class='' src='$face' />\r\n";
                    ?>
                  </div>
                </div>
                <div class="form-group row">
                  <div class="col-sm-10">
                    <button type="submit" class="btn btn-success">保存</button>
                  </div>
                </div>
              </form>
            </div>
          </div>
        </div>
      </div>
    </div>
  </main>
  <?php include(DEDEMEMBER."/templets/footer.htm"); ?>
</body>
</html>

