You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
170 lines
10 KiB
170 lines
10 KiB
<?php if (!defined('THINK_PATH')) exit(); /*a:5:{s:72:"/www/wwwroot/stationery/public/../application/index/view/user/index.html";i:1725591948;s:66:"/www/wwwroot/stationery/application/index/view/layout/default.html";i:1725591948;s:63:"/www/wwwroot/stationery/application/index/view/common/meta.html";i:1725591948;s:66:"/www/wwwroot/stationery/application/index/view/common/sidenav.html";i:1725591948;s:65:"/www/wwwroot/stationery/application/index/view/common/script.html";i:1725591948;}*/ ?>
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title><?php echo htmlentities((isset($title) && ($title !== '')?$title:'') ?? ''); ?> – <?php echo htmlentities($site['name'] ?? ''); ?></title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
|
|
<meta name="renderer" content="webkit">
|
|
|
|
<?php if(isset($keywords)): ?>
|
|
<meta name="keywords" content="<?php echo htmlentities($keywords ?? ''); ?>">
|
|
<?php endif; if(isset($description)): ?>
|
|
<meta name="description" content="<?php echo htmlentities($description ?? ''); ?>">
|
|
<?php endif; ?>
|
|
|
|
<link rel="shortcut icon" href="/assets/img/favicon.ico" />
|
|
|
|
<link href="/assets/css/frontend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.css?v=<?php echo htmlentities(\think\Config::get('site.version') ?? ''); ?>" rel="stylesheet">
|
|
|
|
<!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
|
|
<!--[if lt IE 9]>
|
|
<script src="/assets/js/html5shiv.js"></script>
|
|
<script src="/assets/js/respond.min.js"></script>
|
|
<![endif]-->
|
|
<script type="text/javascript">
|
|
var require = {
|
|
config: <?php echo json_encode($config ?? ''); ?>
|
|
};
|
|
</script>
|
|
|
|
<link href="/assets/css/user.css?v=<?php echo htmlentities(\think\Config::get('site.version') ?? ''); ?>" rel="stylesheet">
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<nav class="navbar navbar-white navbar-fixed-top" role="navigation">
|
|
<div class="container">
|
|
<div class="navbar-header">
|
|
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#header-navbar">
|
|
<span class="sr-only">Toggle navigation</span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
</button>
|
|
<a class="navbar-brand" href="<?php echo url('/'); ?>"><?php echo htmlentities($site['name'] ?? ''); ?></a>
|
|
</div>
|
|
<div class="collapse navbar-collapse" id="header-navbar">
|
|
<ul class="nav navbar-nav navbar-right">
|
|
<li><a href="<?php echo url('/'); ?>"><?php echo __('Home'); ?></a></li>
|
|
<li class="dropdown">
|
|
<?php if($user): ?>
|
|
<a href="<?php echo url('user/index'); ?>" class="dropdown-toggle" data-toggle="dropdown">
|
|
<span class="avatar-img"><img src="<?php echo cdnurl(htmlentities($user['avatar'] ?? '') ?? ''); ?>" alt=""></span>
|
|
<span class="visible-xs-inline-block" style="padding:5px;"><?php echo $user['nickname']; ?> <b class="caret"></b></span>
|
|
</a>
|
|
<?php else: ?>
|
|
<a href="<?php echo url('user/index'); ?>" class="dropdown-toggle" data-toggle="dropdown"><?php echo __('Member center'); ?> <b class="caret"></b></a>
|
|
<?php endif; ?>
|
|
<ul class="dropdown-menu">
|
|
<?php if($user): ?>
|
|
<li><a href="<?php echo url('user/index'); ?>"><i class="fa fa-user-circle fa-fw"></i><?php echo __('User center'); ?></a></li>
|
|
<li><a href="<?php echo url('user/profile'); ?>"><i class="fa fa-user-o fa-fw"></i><?php echo __('Profile'); ?></a></li>
|
|
<li><a href="<?php echo url('user/changepwd'); ?>"><i class="fa fa-key fa-fw"></i><?php echo __('Change password'); ?></a></li>
|
|
<li><a href="<?php echo url('user/logout'); ?>"><i class="fa fa-sign-out fa-fw"></i><?php echo __('Sign out'); ?></a></li>
|
|
<?php else: ?>
|
|
<li><a href="<?php echo url('user/login'); ?>"><i class="fa fa-sign-in fa-fw"></i> <?php echo __('Sign in'); ?></a></li>
|
|
<li><a href="<?php echo url('user/register'); ?>"><i class="fa fa-user-o fa-fw"></i> <?php echo __('Sign up'); ?></a></li>
|
|
<?php endif; ?>
|
|
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
|
|
<main class="content">
|
|
<style>
|
|
.basicinfo {
|
|
margin: 15px 0;
|
|
}
|
|
|
|
.basicinfo .row > .col-xs-4 {
|
|
padding-right: 0;
|
|
}
|
|
|
|
.basicinfo .row > div {
|
|
margin: 5px 0;
|
|
}
|
|
</style>
|
|
<div id="content-container" class="container">
|
|
<div class="row">
|
|
<div class="col-md-3">
|
|
<div class="sidebar-toggle"><i class="fa fa-bars"></i></div>
|
|
<div class="sidenav" id="sidebar-nav">
|
|
<?php echo hook('user_sidenav_before'); ?>
|
|
<ul class="list-group">
|
|
<li class="list-group-heading"><?php echo __('Member center'); ?></li>
|
|
<li class="list-group-item <?php echo check_nav_active('user/index'); ?>"> <a href="<?php echo url('user/index'); ?>"><i class="fa fa-user-circle fa-fw"></i> <?php echo __('User center'); ?></a> </li>
|
|
<li class="list-group-item <?php echo check_nav_active('user/profile'); ?>"> <a href="<?php echo url('user/profile'); ?>"><i class="fa fa-user-o fa-fw"></i> <?php echo __('Profile'); ?></a> </li>
|
|
<li class="list-group-item <?php echo check_nav_active('user/changepwd'); ?>"> <a href="<?php echo url('user/changepwd'); ?>"><i class="fa fa-key fa-fw"></i> <?php echo __('Change password'); ?></a> </li>
|
|
<li class="list-group-item <?php echo check_nav_active('user/logout'); ?>"> <a href="<?php echo url('user/logout'); ?>"><i class="fa fa-sign-out fa-fw"></i> <?php echo __('Sign out'); ?></a> </li>
|
|
</ul>
|
|
<?php echo hook('user_sidenav_after'); ?>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="col-md-9">
|
|
<div class="panel panel-default">
|
|
<div class="panel-body">
|
|
<h2 class="page-header">
|
|
<?php echo __('Member center'); ?>
|
|
<a href="<?php echo url('user/profile'); ?>" class="btn btn-primary pull-right"><i class="fa fa-pencil"></i> <?php echo __('Profile'); ?></a>
|
|
</h2>
|
|
<div class="row user-baseinfo">
|
|
<div class="col-md-3 col-sm-3 col-xs-3 text-center user-center">
|
|
<a href="<?php echo url('user/profile'); ?>" title="<?php echo __('Click to edit'); ?>">
|
|
<span class="avatar-img"><img src="<?php echo cdnurl(htmlentities($user['avatar'] ?? '') ?? ''); ?>" alt=""></span>
|
|
</a>
|
|
</div>
|
|
<div class="col-md-9 col-sm-9 col-xs-9">
|
|
<div class="ui-content">
|
|
<h4><a href="<?php echo url('user/profile'); ?>"><?php echo htmlentities($user['nickname'] ?? ''); ?></a></h4>
|
|
<p class="text-muted">
|
|
<?php echo htmlentities((isset($user['bio']) && ($user['bio'] !== '')?$user['bio']:__("This guy hasn't written anything yet")) ?? ''); ?>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-9 col-sm-9 col-xs-12">
|
|
<div class="ui-content">
|
|
<div class="basicinfo">
|
|
<div class="row">
|
|
<div class="col-xs-4 col-md-2"><?php echo __('Money'); ?></div>
|
|
<div class="col-xs-8 col-md-4">
|
|
<a href="javascript:;" class="viewmoney"><?php echo $user['money']; ?></a>
|
|
</div>
|
|
<div class="col-xs-4 col-md-2"><?php echo __('Score'); ?></div>
|
|
<div class="col-xs-8 col-md-4">
|
|
<a href="javascript:;" class="viewscore"><?php echo $user['score']; ?></a>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-xs-4 col-md-2"><?php echo __('Logintime'); ?></div>
|
|
<div class="col-xs-8 col-md-4"><?php echo date("Y-m-d H:i:s",$user['logintime']); ?></div>
|
|
<div class="col-xs-4 col-md-2"><?php echo __('Prevtime'); ?></div>
|
|
<div class="col-xs-8 col-md-4"><?php echo date("Y-m-d H:i:s",$user['prevtime']); ?></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</main>
|
|
|
|
<footer class="footer" style="clear:both">
|
|
<p class="copyright">Copyright © <?php echo date("Y"); ?> <?php echo htmlentities($site['name'] ?? ''); ?> All Rights Reserved <a href="https://beian.miit.gov.cn" target="_blank"><?php echo htmlentities($site['beian'] ?? ''); ?></a></p>
|
|
</footer>
|
|
|
|
<script src="/assets/js/require<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js" data-main="/assets/js/require-frontend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js?v=<?php echo htmlentities($site['version'] ?? ''); ?>"></script>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|