<!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/js/jquery.min.js"></script>
  <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/css/bootstrap.min.css">
  <link href="<?php echo $cfg_cmsurl;?>/static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
  <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/css/style.css">
  <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/css/member.css">
  <title>会员中心 -<?php echo $cfg_webname; ?></title>
  <style>
    .member a.btn {
      color: white;
    }
  </style>
</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_home = true; //展开编辑信息
          ?>
          <?php include(DEDEMEMBER."/templets/menu.htm"); ?>
          <div class="pannel-main col-md-9 mt-3 mb-3">
            <div class="pannel-main-container">

              <div class="media-body row">
                <div class="col-12 col-md-3 text-center">
                  <a href="<?php echo $cfg_memberurl;?>/"><img class="member-logo" src="<?php echo $cfg_ml->fields['face']; ?>" class="mr-3"
                    alt="<?php echo $cfg_ml->M_MbType; ?>的头像"></a>
                  <div class="member-type"><span class="badge badge-success"><?php echo $cfg_ml->M_MbType; ?>用户</span>
                  </div>
                </div>
                <div class="col-12 col-md-9 title">
                  <h3 class="mt-0 mb-3"><?php echo $cfg_ml->M_LoginID; ?></h3>
                  <p>积分：<span class="text-danger"><?php echo $cfg_ml->M_Scores;?></span> 金币：<span
                      class="text-danger"><?php echo $cfg_ml->M_Money;?></span> <a
                      href="<?php echo $cfg_memberurl;?>/buy.php" class="btn btn-danger btn-sm">充值</a></p>
                </div>
              </div>
            </div>

            <div class="pannel-main-container mt-3">
              <div class="media-body py-3">
                <ul class="row row-cols-3 row-cols-sm-4 row-cols-lg-6 row-cols-xl-8 list-unstyled list">
                  <li class="col" data-tags="alarm clock">
                    <a class="d-block text-dark text-decoration-none" href="<?php echo $cfg_memberurl;?>/content_list.php?channelid=1">
                      <div class="p-3 py-4 mb-2 bg-light text-center rounded">
                        <i class="fa fa-list" aria-hidden="true" style="font-size: 2em;"></i>
                      </div>
                      <div class="name text-muted text-decoration-none text-center pt-1">
                        内容管理
                      </div>
                    </a>
                  </li>
                  <li class="col" data-tags="alarm clock">
                    <a class="d-block text-dark text-decoration-none" href="<?php echo $cfg_memberurl;?>/pm.php?folder=inbox">
                      <div class="p-3 py-4 mb-2 bg-light text-center rounded">
                        <i class="fa fa-commenting-o" aria-hidden="true" style="font-size: 2em;"></i>
                      </div>
                      <div class="name text-muted text-decoration-none text-center pt-1">
                        消息管理
                      </div>
                    </a>
                  </li>
                  <li class="col" data-tags="alarm clock">
                    <a class="d-block text-dark text-decoration-none" href="<?php echo $cfg_memberurl;?>/buy.php">
                      <div class="p-3 py-4 mb-2 bg-light text-center rounded">
                        <i class="fa fa-credit-card-alt" aria-hidden="true" style="font-size: 2em;"></i>
                      </div>
                      <div class="name text-muted text-decoration-none text-center pt-1">
                        钱包积分
                      </div>
                    </a>
                  </li>
                  <li class="col" data-tags="space align distribute">
                    <a class="d-block text-dark text-decoration-none" href="<?php echo $cfg_memberurl;?>/shops_orders.php">
                      <div class="p-3 py-4 mb-2 bg-light text-center rounded">
                        <i class="fa fa-shopping-cart" aria-hidden="true" style="font-size: 2em;"></i>
                      </div>
                      <div class="name text-muted text-decoration-none text-center pt-1">
                        订单管理
                      </div>
                    </a>
                  </li>
                  <li class="col" data-tags="space align distribute">
                    <a class="d-block text-dark text-decoration-none" href="<?php echo $cfg_memberurl;?>/mystow.php">
                      <div class="p-3 py-4 mb-2 bg-light text-center rounded">
                        <i class="fa fa-star" aria-hidden="true" style="font-size: 2em;"></i>
                      </div>
                      <div class="name text-muted text-decoration-none text-center pt-1">
                        我的收藏
                      </div>
                    </a>
                  </li>
                  <li class="col" data-tags="space align distribute">
                    <a class="d-block text-dark text-decoration-none" href="<?php echo $cfg_memberurl;?>/edit_baseinfo.php">
                      <div class="p-3 py-4 mb-2 bg-light text-center rounded">
                        <i class="fa fa-cog" aria-hidden="true" style="font-size: 2em;"></i>
                      </div>
                      <div class="name text-muted text-decoration-none text-center pt-1">
                        账号安全
                      </div>
                    </a>
                  </li>
                </ul>
              </div>
            </div>

            <div class="pannel-main-container mt-3">
              <div class="media-body row">
                <div class="col-12 py-3">
                  <h5>最新内容</h5>
                  <div class="card ddcard">
                    <ul class="list-group list-group-flush">
                      <?php
                        foreach ($archives as $archive)
                        {
                      ?>
                      <li><a href="<?php echo $archive['htmlurl']; ?>"
                          title="<?php echo $archive['title']; ?>"><?php echo $archive['title']; ?></a></li>
                      <?php
                        }
                      ?>
                    </ul>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </main>
  <?php include(DEDEMEMBER."/templets/footer.htm"); ?>
</body>

</html>