86 lines
3.7 KiB
PHTML
86 lines
3.7 KiB
PHTML
<?php
|
|
$this->headTitle('用户信息');
|
|
?>
|
|
<div class="row-fluid">
|
|
<div class="span12 col-lg-8 col-12 col-sm-12">
|
|
<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="row-fluid">
|
|
<div class="span8 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="phone">电话</label>
|
|
<input type="text" class="form-control" name="phone" id="phone" placeholder="" value="<?php if($this->user['phone']) echo $this->user['phone'];?>" />
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="project">使用数据项目名称</label>
|
|
<textarea class="form-control" name="project" id="project" rows="3"><?php if($this->user['project']) echo $this->user['project'];?>
|
|
</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>
|
|
<!-- tab3 -->
|
|
</div>
|
|
|
|
<!-- left -->
|
|
<div class="span4 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><!-- row -->
|
|
</div>
|
|
<!-- Tabs -->
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|