2016-02-03 18:12:40 +08:00
|
|
|
<?php
|
|
|
|
/**
|
2016-03-19 10:28:18 +08:00
|
|
|
* @Author: printempw
|
2016-02-03 18:12:40 +08:00
|
|
|
* @Date: 2016-02-03 16:12:45
|
2016-03-18 16:47:25 +08:00
|
|
|
* @Last Modified by: printempw
|
2016-03-26 22:29:45 +08:00
|
|
|
* @Last Modified time: 2016-03-26 22:28:24
|
2016-02-03 18:12:40 +08:00
|
|
|
*/
|
2016-03-26 18:50:47 +08:00
|
|
|
require "../libraries/session.inc.php";
|
2016-03-19 10:28:18 +08:00
|
|
|
$data['style'] = <<< 'EOT'
|
|
|
|
<link rel="stylesheet" href="../assets/css/user.style.css">
|
|
|
|
EOT;
|
|
|
|
$data['user'] = $user;
|
|
|
|
$data['page_title'] = "个人资料";
|
|
|
|
View::show('header', $data);
|
2016-02-04 23:49:31 +08:00
|
|
|
?>
|
2016-03-19 10:28:18 +08:00
|
|
|
<!-- Content Wrapper. Contains page content -->
|
|
|
|
<div class="content-wrapper">
|
|
|
|
<!-- Content Header (Page header) -->
|
|
|
|
<section class="content-header">
|
|
|
|
<h1>
|
|
|
|
个人资料
|
|
|
|
<small>User Profile</small>
|
|
|
|
</h1>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<!-- Main content -->
|
|
|
|
<section class="content">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-6">
|
|
|
|
<div class="box box-primary">
|
|
|
|
<div class="box-header with-border">
|
|
|
|
<h3 class="box-title">更改密码</h3>
|
|
|
|
</div><!-- /.box-header -->
|
|
|
|
<div class="box-body">
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="title">旧的密码</label>
|
|
|
|
<input type="password" class="form-control" id="passwd" value="">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="server">新密码</label>
|
|
|
|
<input type="password" class="form-control" id="new-passwd" value="">
|
|
|
|
</div>
|
2016-02-03 18:12:40 +08:00
|
|
|
|
2016-03-19 10:28:18 +08:00
|
|
|
<div class="form-group">
|
|
|
|
<label for="method">确认密码</label>
|
|
|
|
<input type="password" class="form-control" id="confirm-pwd" value="">
|
|
|
|
</div>
|
|
|
|
</div><!-- /.box-body -->
|
|
|
|
<div class="box-footer">
|
|
|
|
<button id="change" class="btn btn-primary">修改密码</button>
|
2016-02-03 20:02:37 +08:00
|
|
|
</div>
|
2016-03-19 10:28:18 +08:00
|
|
|
</div><!-- /.box -->
|
2016-02-03 18:12:40 +08:00
|
|
|
</div>
|
2016-03-19 10:28:18 +08:00
|
|
|
<div class="col-md-6">
|
|
|
|
<div class="box box-warning">
|
|
|
|
<div class="box-header with-border">
|
|
|
|
<h3 class="box-title">重置账号</h3>
|
|
|
|
</div><!-- /.box-header -->
|
|
|
|
<div class="box-body">
|
|
|
|
<p>这将会删除所有你上传的内容。我们不提供任何备份,确定?</p>
|
|
|
|
<button id="reset" class="btn btn-warning">重置我的账户</button>
|
|
|
|
</div><!-- /.box-body -->
|
2016-02-03 18:12:40 +08:00
|
|
|
</div>
|
2016-03-19 10:28:18 +08:00
|
|
|
|
|
|
|
<div class="box box-danger">
|
|
|
|
<div class="box-header with-border">
|
|
|
|
<h3 class="box-title">删除账号</h3>
|
|
|
|
</div><!-- /.box-header -->
|
|
|
|
<div class="box-body">
|
2016-03-26 22:05:18 +08:00
|
|
|
<?php if (!$user->is_admin): ?>
|
2016-03-26 22:29:45 +08:00
|
|
|
<p>确定要删除你在 <?php echo Option::get('site_name'); ?> 上的账号吗?</p>
|
2016-03-19 10:28:18 +08:00
|
|
|
<p>此操作不可恢复!我们不提供任何备份,或者神奇的撤销按钮。</p>
|
|
|
|
<p>我们警告过你了,确定要这样做吗?</p>
|
|
|
|
<button id="delete" class="btn btn-danger">删除我的账户</button>
|
2016-03-26 22:05:18 +08:00
|
|
|
<?php else: ?>
|
|
|
|
<p>管理员账号不能被删除。</p>
|
|
|
|
<button class="btn btn-danger" disabled="disabled">删除我的账户</button>
|
|
|
|
<?php endif; ?>
|
2016-03-19 10:28:18 +08:00
|
|
|
</div><!-- /.box-body -->
|
2016-02-04 17:20:22 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2016-02-10 21:21:15 +08:00
|
|
|
</div>
|
2016-02-03 18:12:40 +08:00
|
|
|
|
2016-03-19 10:28:18 +08:00
|
|
|
</section><!-- /.content -->
|
|
|
|
</div><!-- /.content-wrapper -->
|
|
|
|
<?php
|
|
|
|
$data['script'] = <<< 'EOT'
|
2016-02-03 18:12:40 +08:00
|
|
|
<script type="text/javascript" src="../assets/js/profile.utils.js"></script>
|
2016-03-19 10:28:18 +08:00
|
|
|
EOT;
|
|
|
|
View::show('footer', $data); ?>
|