~horux-dev/horux-webcli/thfo

« back to all changes in this revision

Viewing changes to protected/views/site/ControlPanel/LogginUser.php

  • Committer: Thierry Forchelet
  • Date: 2011-02-25 13:30:15 UTC
  • Revision ID: thierry.forchelet@letux.ch-20110225133015-zxyj9w7sqv8ly971
Initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
 
 
3
$dataProvider = new CActiveDataProvider('Superusers', array('criteria'=>array('condition'=>'isLogged=1')));
 
4
 
 
5
 
 
6
 
 
7
$this->widget('zii.widgets.grid.CGridView', array(
 
8
    'id' => 'superUser-grid',    
 
9
    'dataProvider'=>$dataProvider,
 
10
    'itemsCssClass' => 'adminlist',
 
11
    'columns'=>array(
 
12
        'name',
 
13
        array(            // display 'lastConnection' using an expression
 
14
            'name'=>'lastConnection',
 
15
            'header' => Yii::t('app', 'Last connection'),
 
16
            'value'=>'date("d-m-Y h:i:s", CDateTimeParser::parse($data->lastConnection, \'yyyy-MM-dd HH:mm:ss\'))',
 
17
            'sortable'=>true
 
18
        ),
 
19
        array(
 
20
            'name' => 'group.name',
 
21
            'header' => Yii::t('app','Group'),
 
22
            'value' => $data->group->name,
 
23
            'type'=>'text'
 
24
            )
 
25
    ),
 
26
));
 
27
 
 
28
?>
 
 
b'\\ No newline at end of file'