<?php use yii\helpers\Html; use app\components\DetailView; $this->title = 'Thông tin thành viên "' . $model->username . '"'; $this->params['breadcrumbs'][] = ['label' => Yii::t(Yii::$app->controller->module->id, 'Member'), 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; ?> <h1><?php echo Html::encode($this->title); ?> </h1> <p> <?php echo Html::a(Yii::t('yii', 'Update'), ['update', 'id' => $model->id], ['class' => 'btn btn-primary']); ?> <?php echo Html::a(Yii::t('yii', 'Delete'), ['delete', 'id' => $model->id], ['class' => 'btn btn-danger', 'data' => ['confirm' => Yii::t(Yii::$app->controller->module->id, 'Are you sure you want to delete this item?'), 'method' => 'post']]); ?> </p> <?php echo DetailView::widget(['model' => $model, 'attributes' => ['id', 'username', 'email', 'status']]);
<?php use yii\bootstrap\Html; use app\components\DetailView; use app\helpers\ArrayHelper; use app\modules\job\models\Job; ?> <!-- MAIN --> <main id="main" class="main-container"> <!-- SECTION 1 --> <div class="section section-1"> <div class="container"> <div class="row jobs-posted"> <div class="section-title section-title-style-2"> <h2 class="title"> <?php echo Yii::t('job', "Job Informations"); ?> </h2> </div> <?php echo DetailView::widget(['model' => $model, 'attributes' => ['code', ['attribute' => 'country_id', 'value' => ArrayHelper::getValue(\app\modules\job\models\JobLocation::getOptions(), ArrayHelper::getValue($model, 'country_id'))], ['attribute' => 'category_ids', 'value' => $model->getCategoryNames(), 'format' => 'raw'], 'city_name', ['attribute' => 'annual_salary_from', 'value' => ArrayHelper::getValue(\app\modules\job\models\JobSalary::getOptions(), ArrayHelper::getValue($model, 'annual_salary_from'))], ['attribute' => 'annual_salary_to', 'value' => ArrayHelper::getValue(\app\modules\job\models\JobSalary::getOptions(), ArrayHelper::getValue($model, 'annual_salary_to'))], ['attribute' => 'functions', 'value' => $model->getFunctionNames(), 'format' => 'raw'], ['attribute' => 'work_type', 'value' => ArrayHelper::getValue(app\modules\job\models\JobWorkType::getOptions(), ArrayHelper::getValue($model, 'work_type'))], ['attribute' => 'industry', 'value' => $model->getIndustryNames(), 'format' => 'raw'], 'company_name', 'company_description:html', 'description:html', 'seo_url', 'seo_title', 'seo_desc', ['attribute' => 'created_time', 'format' => ['datetime', 'php:m/d/Y H:i:s'], 'value' => $model->created_time->sec], ['attribute' => 'updated_time', 'format' => ['datetime', 'php:m/d/Y H:i:s'], 'value' => $model->updated_time->sec], ['attribute' => 'satus', 'value' => ArrayHelper::getValue(Job::getStatusOptions(), ArrayHelper::getValue($model, 'status'))], 'hits']]); ?> </div> </div> </div> <!-- # SECTION 1 --> </main> <!-- # MAIN -->
</div> <div class="row"> <div class="col-lg-12"> <div class="ibox float-e-margins"> <div class="ibox-title"> <h5><?php echo Yii::t(Yii::$app->controller->module->id, 'Infomation'); ?> </h5> </div> <div class="ibox-content"> <?php $attributes = ['_id', 'email', 'user.phone']; $seekerAttributes = [['attribute' => 'sex', 'value' => $model->getSexText()], ['attribute' => 'birthday', 'value' => Yii::$app->formatter->asDate($model->birthday->sec)], ['attribute' => 'seeker_nationality', 'value' => $model->seekerNationality->title], ['attribute' => 'seeker_salary', 'value' => $model->seekerSalary->title]]; $recruiterAttributes = [['attribute' => 'recruiter_type', 'value' => $model->getRecruiterTypeText()], 'recruiter_company_name', 'recruiter_position', ['attribute' => 'recruiter_office_location', 'value' => $model->recruiterOfficeLocation->title], 'recruiter_city_name', 'recruiter_website', ['attribute' => 'recruiter_jobs_industry', 'value' => $model->recruiterIndustry->title], 'recruiter_summary']; $vipAttributes = ['vip', ['attribute' => 'vip_from', 'value' => $model->vip_from != null ? Yii::$app->formatter->asDate($model->vip_from->sec) : ''], ['attribute' => 'vip_to', 'value' => $model->vip_to != null ? Yii::$app->formatter->asDate($model->vip_to->sec) : '']]; if ($model->role == 'seeker') { $attributes = array_merge($attributes, $seekerAttributes, $vipAttributes); } else { $attributes = array_merge($attributes, $recruiterAttributes, $vipAttributes); } echo DetailView::widget(['model' => $model, 'attributes' => $attributes]); ?> </div> </div> </div> </div> </div>
<p> <?php echo Html::a(Yii::t(Yii::$app->controller->module->id, 'Update'), ['update', 'id' => (string) $model->_id], ['class' => 'btn btn-primary']); ?> <?php echo Html::a(Yii::t(Yii::$app->controller->module->id, 'Delete'), ['delete', 'id' => (string) $model->_id], ['class' => 'btn btn-danger', 'data' => ['confirm' => Yii::t(Yii::$app->controller->module->id, 'Are you sure you want to delete this item?'), 'method' => 'post']]); ?> </p> </div> </div> <div class="row"> <div class="col-lg-12"> <div class="ibox float-e-margins"> <div class="ibox-title"> <h5><?php echo Yii::t(Yii::$app->controller->module->id, 'Infomation'); ?> </h5> </div> <div class="ibox-content"> <?php echo DetailView::widget(['model' => $model, 'attributes' => ['_id', 'creator', 'editor', 'sort', 'status', 'title', ['attribute' => 'create_time', 'value' => Yii::$app->formatter->asDatetime($model->create_time->sec)], ['attribute' => 'update_time', 'value' => Yii::$app->formatter->asDatetime($model->update_time->sec)]]]); ?> </div> </div> </div> </div> </div>
<?php use yii\bootstrap\Html; use app\components\DetailView; /** * @var yii\web\View $this * @var app\modules\article\models\base\LetArticleBase $model */ ?> <h1><?php echo Html::encode($this->title); ?> </h1> <p> <?php echo Html::a(Yii::t(Yii::$app->controller->module->id, 'Update'), ['update', 'id' => $model->id], ['class' => 'btn btn-primary']); ?> <?php echo Html::a(Yii::t(Yii::$app->controller->module->id, 'Delete'), ['delete', 'id' => $model->id], ['class' => 'btn btn-danger', 'data' => ['confirm' => Yii::t(Yii::$app->controller->module->id, 'Are you sure you want to delete this item?'), 'method' => 'post']]); ?> </p> <?php echo DetailView::widget(['model' => $model, 'attributes' => ['id', 'title', 'image', 'intro', 'content:ntext', 'author', 'source', 'tags', 'from_time', 'to_time', 'seo_title', 'seo_url:url', 'seo_desc', 'creator', 'create_time', 'editor', 'update_time', 'promotion', 'status']]);
<p> <?php echo Html::a(Yii::t(Yii::$app->controller->module->id, 'Update'), ['update', 'id' => (string) $model->_id], ['class' => 'btn btn-primary']); ?> <?php echo Html::a(Yii::t(Yii::$app->controller->module->id, 'Delete'), ['delete', 'id' => (string) $model->_id], ['class' => 'btn btn-danger', 'data' => ['confirm' => Yii::t(Yii::$app->controller->module->id, 'Are you sure you want to delete this item?'), 'method' => 'post']]); ?> </p> </div> </div> <div class="row"> <div class="col-lg-12"> <div class="ibox float-e-margins"> <div class="ibox-title"> <h5><?php echo Yii::t(Yii::$app->controller->module->id, 'Infomation'); ?> </h5> </div> <div class="ibox-content"> <?php echo DetailView::widget(['model' => $model, 'attributes' => ['_id', 'annual_salary_from', 'annual_salary_to', 'category_ids', 'city_name', 'code', 'company_description', 'company_name', 'country_id', 'created_by', 'created_time', 'description', 'email_cc', 'function2', 'function3', 'functions', 'hits', 'industry', 'industry2', 'is_filtering', 'seo_desc', 'seo_title', 'seo_url', 'status', 'title', 'updated_time', 'work_type']]); ?> </div> </div> </div> </div> </div>
<p> <?php echo Html::a(Yii::t(Yii::$app->controller->module->id, 'Update'), ['update', 'id' => (string) $model->_id], ['class' => 'btn btn-primary']); ?> <?php echo Html::a(Yii::t(Yii::$app->controller->module->id, 'Delete'), ['delete', 'id' => (string) $model->_id], ['class' => 'btn btn-danger', 'data' => ['confirm' => Yii::t(Yii::$app->controller->module->id, 'Are you sure you want to delete this item?'), 'method' => 'post']]); ?> </p> </div> </div> <div class="row"> <div class="col-lg-12"> <div class="ibox float-e-margins"> <div class="ibox-title"> <h5><?php echo Yii::t(Yii::$app->controller->module->id, 'Infomation'); ?> </h5> </div> <div class="ibox-content"> <?php echo DetailView::widget(['model' => $model, 'attributes' => ['_id', ['attribute' => 'role', 'value' => ArrayHelper::getValue(\app\modules\job\models\UserJob::getRoleOptions(), ArrayHelper::getValue($model, 'role'))], 'title', 'days', 'editor', 'creator', 'price', 'sort', 'status', ['attribute' => 'create_time', 'value' => Yii::$app->formatter->asDatetime($model->create_time->sec)], ['attribute' => 'update_time', 'value' => Yii::$app->formatter->asDatetime($model->update_time->sec)]]]); ?> </div> </div> </div> </div> </div>