Gentics Portal.Node PHP API
 All Classes Namespaces Functions Variables Pages
index.php
1 <?php
2 $this->breadcrumbs = array(
3  UserModule::t('Users') => array('admin'),
4  UserModule::t('Manage'),
5 );
6 ?>
7 <h1><?php echo UserModule::t("Manage Users"); ?></h1>
8 
9 <?php echo $this->renderPartial('_menu', array(
10  'list' => array(
11  CHtml::link(UserModule::t('Create User'), array('create')),
12  CHtml::link(UserModule::t('Import Users'), array('/user/import')),
13  ),
14 ));
15 ?>
16 
17 <?php $this->widget('zii.widgets.grid.CGridView', array(
18  'dataProvider' => $model->search(),
19  'filter' => $model,
20  'columns' => array(
21  array(
22  'name' => 'id',
23  'type' => 'raw',
24  'value' => 'CHtml::link(CHtml::encode($data->id),array("admin/update","id"=>$data->id))',
25  ),
26  array(
27  'name' => 'username',
28  'type' => 'raw',
29  'value' => 'CHtml::link(CHtml::encode($data->username),array("admin/view","id"=>$data->id))',
30  ),
31  array(
32  'name' => 'firstname',
33  'type' => 'raw',
34  'value' => '$data->profile->firstname',
35  ),
36  array(
37  'name' => 'lastname',
38  'type' => 'raw',
39  'value' => '$data->profile->lastname',
40  ),
41  array(
42  'name' => 'email',
43  'type' => 'raw',
44  'value' => 'CHtml::link(CHtml::encode($data->email), "mailto:".$data->email)',
45  ),
46  array(
47  'name' => 'createtime',
48  'value' => '$data->createtime',
49  ),
50 // array(
51 // 'name' => 'lastvisit',
52 // 'value' => '(($data->lastvisit)? $data->lastvisit : UserModule::t("Not visited"))',
53 // ),
54  array(
55  'name' => 'status',
56  'value' => 'User::itemAlias("UserStatus",$data->status)',
57  'filter' => User::itemAlias("UserStatus"),
58  ),
59 // array(
60 // 'name'=>'superuser',
61 // 'value'=>'User::itemAlias("AdminStatus",$data->superuser)',
62 // ),
63  array(
64  'class' => 'CButtonColumn',
65  'template' => '{rights}{view}{update}{delete}',
66  'buttons' => array(
67  'rights' => array(
68  'label' => 'Rights',
69  'url' => '$this->grid->controller->createUrl("assignment/user", array("id"=>$data->id))',
70  'imageUrl' => $this->module->getAssetsUrl() . '/user-rights.gif',
71  )
72  ),
73  'htmlOptions' => array('style' => 'width:64px')
74  ),
75  ),
76 )); ?>