1 <?php $this->pageTitle = Yii::app()->name .
' - ' .
UserModule::t(
"Profile");
2 $this->breadcrumbs = array(
6 <?php echo $this->renderPartial(
'menu'); ?>
8 <?php
if (Yii::app()->user->hasFlash(
'profileMessage')): ?>
10 <?php echo Yii::app()->user->getFlash(
'profileMessage'); ?>
13 <table
class=
"dataGrid">
15 <th
class=
"label"><?php echo CHtml::encode($model->getAttributeLabel(
'username')); ?>
17 <td><?php echo CHtml::encode($model->username); ?>
21 <th
class=
"label"><?php echo CHtml::encode($model->getAttributeLabel(
'email')); ?>
23 <td><?php echo CHtml::encode($model->email); ?>
29 foreach ($profileFields as $field) {
33 <th
class=
"label"><?php echo CHtml::encode(
UserModule::t($field->title)); ?>
35 <td><?php echo (($field->widgetView($profile)) ? $field->widgetView($profile) : CHtml::encode((($field->range) ? Profile::range($field->range, $profile->getAttribute($field->varname)) : $profile->getAttribute($field->varname)))); ?>
44 <th
class=
"label"><?php echo CHtml::encode($model->getAttributeLabel(
'createtime')); ?>
46 <td><?php echo $model->createtime; ?>
50 <th
class=
"label"><?php echo CHtml::encode($model->getAttributeLabel(
'lastvisit')); ?>
52 <td><?php echo $model->lastvisit; ?>
56 <th
class=
"label"><?php echo CHtml::encode($model->getAttributeLabel(
'status')); ?>
58 <td><?php echo CHtml::encode(User::itemAlias(
"UserStatus", $model->status));