76 lines
4.1 KiB
PHTML
76 lines
4.1 KiB
PHTML
<?php
|
|
$this->headTitle('用户信息');
|
|
?>
|
|
<div class="container">
|
|
<div class="col-lg-8 col-12 col-sm-12">
|
|
<h3 class="heading">修改个人资料</h3>
|
|
<hr />
|
|
<div class="tabbable">
|
|
<ul class="nav nav-tabs">
|
|
<li <?php if($this->section == "general" || empty($this->section)) echo 'class="active"'?>><a href="#tab1" data-toggle="tab">个人信息</a></li>
|
|
<li <?php if($this->section == "password") echo 'class="active"'?>><a href="#tab3" data-toggle="tab">修改密码</a></li>
|
|
</ul>
|
|
<div class="tab-content">
|
|
<?php if(!empty($this->error)) {
|
|
echo $this->error;
|
|
}?>
|
|
<div class="tab-pane <?php if($this->section == "general" || empty($this->section)) echo 'active'?>" id="tab1">
|
|
<form role="form" action="" method="post" id="opt_general">
|
|
<div class="form-group">
|
|
<label for="realname">名号</label>
|
|
<input type="text" class="form-control" name="realname" id="realname" placeholder="起个响亮的名号吧" value="<?php if($this->user['realname']) echo $this->user['realname'];?>" />
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="signature">签名</label>
|
|
<input type="text" class="form-control" name="signature" id="signature" placeholder="" value="<?php if($this->user['signature']) echo $this->user['signature'];?>" />
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="description">个人简介</label>
|
|
<textarea class="form-control" name="description" id="description" rows="3"><?php if($this->user['description']) echo $this->user['description'];?></textarea>
|
|
</div>
|
|
<input type="hidden" name="type" value="general" />
|
|
<input type="hidden" name="submit" value="1" />
|
|
<button type="submit" class="btn btn-default">保存</button>
|
|
</form>
|
|
</div><!-- tab1 -->
|
|
<div class="tab-pane <?php if($this->section == "password") echo 'active'?>" id="tab3">
|
|
<form id="opt_password" action="" method="post">
|
|
<fieldset>
|
|
<div class="form-group">
|
|
<label class="required">当前密码</label>
|
|
<input class="form-control" type="password" name="password" value="" />
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="required">新密码</label>
|
|
<input class="form-control" type="password" name="password_new" id="password_new" value="" />
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="required">重新输入密码</label>
|
|
<input class="form-control" type="password" name="password_confirm" id="password_confirm" value="" />
|
|
</div>
|
|
<div class="form-group">
|
|
<input type="hidden" name="type" value="password" />
|
|
<input type="hidden" name="submit" value="1" />
|
|
<button type="submit" class="btn btn-default" id="save_opt_password">保存</button>
|
|
</div>
|
|
</fieldset>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div><!-- Tabs -->
|
|
|
|
</div><!-- left -->
|
|
<div class="col-lg-4 col-12 col-sm-12">
|
|
<div class="panel panel-default">
|
|
<div class="panel-body">
|
|
<a href="javascript:void(0);" class="thumbnail">
|
|
<img src="<?= $this->avatar ?>">
|
|
</a>
|
|
<div class="caption">
|
|
<p>头像请在<a href="https://cn.gravatar.com/" target="_blank">Gravatar</a>设置<br />(设为公开模式慢时光可以自动读取哦!)</p>
|
|
</div>
|
|
</div>
|
|
</div> <!-- avatar -->
|
|
|
|
</div>
|
|
</div>
|