public function actionIndex()
 {
     $this->hasPrivilege(Acl::ACTION_VIEW);
     $this->pageTitle = Lang::t(Common::pluralize($this->resourceLabel));
     $searchModel = Dept::model()->searchModel(array(), $this->settings[Constants::KEY_PAGINATION], 'name');
     $this->render('default/index', array('model' => $searchModel));
 }
 public function actionSchedule()
 {
     $this->hasPrivilege(Acl::ACTION_VIEW);
     $this->pageTitle = Lang::t(Common::pluralize($this->resourceLabel));
     $client = Yii::app()->user->client != 0 ? "sp_client = " . (int) Yii::app()->user->client : "";
     $searchModel = Services::model()->searchModel(array(), $this->settings[Constants::KEY_PAGINATION], 'service_name', $client);
     $this->render('index', array('model' => $searchModel));
 }
 /**
  * Lists all models.
  */
 public function actionIndex()
 {
     $this->hasPrivilege(Acl::ACTION_VIEW);
     $this->pageTitle = Lang::t(Common::pluralize($this->resourceLabel));
     $searchModel = UsersView::model()->searchModel(array(), $this->settings[Constants::KEY_PAGINATION], 'username', Users::model()->getFetchCondition());
     $this->render('index', array('model' => $searchModel));
 }
Beispiel #4
0
<?php

$this->breadcrumbs = array(Lang::t(Common::pluralize($this->resourceLabel)) => array('index'), $this->pageTitle);
$this->renderPartial('_form', array('model' => $model));
Beispiel #5
0
<?php

if ($this->showLink(UserResources::RES_USER_ADMIN)) {
    $this->breadcrumbs = array(Lang::t(Common::pluralize($this->resourceLabel)) => array('index'), $user_model->username);
} else {
    $this->breadcrumbs = array($user_model->username);
}
$can_update = $user_model->canBeModified($this, Acl::ACTION_UPDATE);
$can_view_activity = $this->showLink(UserResources::RES_USER_ACTIVITY);
$this->renderPartial('_profile_tabs', array('model' => $user_model));
?>
<div id="user-profile-1" class="user-profile row">
        <div class="col-xs-12 col-sm-3 center">
                <div>
                        <span class="profile-picture">
                                <?php 
echo CHtml::image(MyYiiUtils::getThumbSrc($person_model->getProfileImagePath(), array('resize' => array('width' => 200, 'height' => 200))), CHtml::encode($user_model->username), array('id' => 'avator', 'class' => 'editable img-responsive'));
?>
                        </span>
                        <div class="space-4"></div>
                        <div class="width-80 label label-info label-xlg arrowed-in arrowed-in-right">
                                <div class="inline position-relative">
                                        <a href="javascript:void(0);" class="user-title-label dropdown-toggle" data-toggle="dropdown">
                                                <i class="icon-circle <?php 
echo $user_model->status === Users::STATUS_ACTIVE ? 'light-green' : ($user_model->status === Users::STATUS_PENDING ? 'yellow' : 'red');
?>
 middle"></i>
                                                &nbsp;
                                                <span class="white"><?php 
echo CHtml::encode($person_model->name);
?>
Beispiel #6
0
<?php

$this->breadcrumbs = array(Lang::t(Common::pluralize($this->resourceLabel)) => array('index'), CHtml::encode($model->name) => array('view', 'id' => $model->id), $this->pageTitle);
$this->renderPartial('default/_form', array('model' => $model));
Beispiel #7
0
 /**
  * Lists all models.
  */
 public function actionIndex($dept_id = NULL)
 {
     $this->hasPrivilege(Acl::ACTION_VIEW);
     $this->pageTitle = Lang::t(Common::pluralize($this->resourceLabel));
     $dept_model = NULL;
     if (!empty($dept_id)) {
         $dept_model = Dept::model()->loadModel($dept_id);
         $this->pageDescription = $this->pageTitle;
         $this->pageTitle = $dept_model->name;
         $this->activeTab = 7;
     }
     if (!empty(Controller::$dept_id)) {
         $dept_id = Controller::$dept_id;
     }
     $searchModel = UsersView::model()->searchModel(array('dept_id' => $dept_id), $this->settings[Constants::KEY_PAGINATION], 'username', Users::model()->getFetchCondition());
     $this->render('index', array('model' => $searchModel, 'dept_model' => $dept_model));
 }