PageRenderTime 41ms CodeModel.GetById 16ms RepoModel.GetById 1ms app.codeStats 0ms

/user/views/user/restricted_admin.php

https://github.com/yii-simon/yii-user-management
PHP | 16 lines | 14 code | 2 blank | 0 comment | 0 complexity | 100e78e353ef95e0a6e7d579325d33a2 MD5 | raw file
  1. <?
  2. $this->title = Yii::t('UserModule.user', 'Manage users');
  3. $this->breadcrumbs = array(
  4. Yii::t("UserModule.user", 'Users') => array('index'),
  5. Yii::t("UserModule.user", 'Manage'));
  6. printf('<table><tr><th>%s</th><th>%s</th></tr>', Yum::t('Username'), Yum::t('Actions'));
  7. foreach($users as $user) {
  8. printf('<tr><td>%s</td><td>%s %s</td></tr>',
  9. $user->username,
  10. CHtml::link(Yum::t('Details'), array('//user/user/view', 'id' => $user->id)),
  11. CHtml::link(Yum::t('Update'), array('//user/user/update', 'id' => $user->id))
  12. );
  13. }
  14. echo '</table>';