westdc-zf1/application/default/views/scripts/account/index.phtml

53 lines
1.7 KiB
PHTML

<?php
$this->headTitle($this->config->title->site);
$this->headTitle('我的账户');
$this->headTitle()->setSeparator(' - ');
?>
<div class="container-fluid">
<div class="row-fluid">
<div class="span3">
<div class="well sidebar-nav">
<?= $this->partial('account/left.phtml'); ?>
</div><!--/.well -->
</div><!--/span-->
<div class="span9">
<h3>账户信息</h3>
<hr />
<?php if(!empty($this->info)) {?>
<dl class="dl-horizontal">
<dt>头像</dt>
<dd><img src="<?= $this->avatar ?>" class="img-polaroid"></dd>
</dl>
<dl class="dl-horizontal">
<dt>用户名</dt>
<dd><?php echo $this->info['username'] ?></dd>
</dl>
<dl class="dl-horizontal">
<dt>Email</dt>
<dd><?php echo $this->info['email'] ?></dd>
</dl>
<dl class="dl-horizontal">
<dt>真实姓名</dt>
<dd><?php echo $this->info['realname'] ?></dd>
</dl>
<dl class="dl-horizontal">
<dt>工作单位</dt>
<dd><?php echo $this->info['unit'] ?></dd>
</dl>
<dl class="dl-horizontal">
<dt>项目</dt>
<dd><?php echo $this->info['project_title'] ?></dd>
</dl>
<dl class="dl-horizontal">
<dt>账号注册时间</dt>
<dd><?php echo date("Y-m-d H:i",strtotime($this->info['ts_created'])) ?></dd>
</dl>
<dl class="dl-horizontal">
<dt>上次登录时间</dt>
<dd><?php echo date("Y-m-d H:i",strtotime($this->info['ts_last_login'])) ?></dd>
</dl>
<?php } ?>
</div><!--/span-->
</div><!--/row-->
</div>