Gentics Portal.Node PHP API
 All Classes Namespaces Functions Variables Pages
index.php
1 <?php
2 $this->breadcrumbs=array(
3  UserModule::t("Users"),
4 );
5 ?>
6 
7 <h1><?php echo UserModule::t("List User"); ?></h1>
8 <?php if(UserModule::isAdmin()) {
9  ?><ul class="actions">
10  <li><?php echo CHtml::link(UserModule::t('Manage User'),array('/user/admin')); ?></li>
11  <li><?php echo CHtml::link(UserModule::t('Manage Profile Field'),array('profileField/admin')); ?></li>
12 </ul><!-- actions --><?php
13 } ?>
14 <?php $this->widget('zii.widgets.grid.CGridView', array(
15  'dataProvider'=>$dataProvider,
16  'columns'=>array(
17  array(
18  'name' => 'username',
19  'type'=>'raw',
20  'value' => 'CHtml::link(CHtml::encode($data->username),array("user/view","id"=>$data->id))',
21  ),
22  array(
23  'name' => 'createtime',
24  'value' => '$data->createtime',
25  ),
26  array(
27  'name' => 'lastvisit',
28  'value' => '(($data->lastvisit)? $data->lastvisit : UserModule::t("Not visited"))',
29  ),
30  ),
31 )); ?>