本文整理汇总了PHP中app\models\User::getUserFullNameById方法的典型用法代码示例。如果您正苦于以下问题:PHP User::getUserFullNameById方法的具体用法?PHP User::getUserFullNameById怎么用?PHP User::getUserFullNameById使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类app\models\User
的用法示例。
在下文中一共展示了User::getUserFullNameById方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: actionSamplepdf
public function actionSamplepdf($id)
{
$model = $this->findModel($id);
$imgLink = "../resources/activities/activity_" . $id . ".jpg";
$date = date("M d D", strtotime($model->startDatetime));
$startTime = date("g:i A", strtotime($model->startDatetime));
$endTime = date("g:i A", strtotime($model->endDatetime));
$content = '
<div class="container text-center">
<div class="row">
<div class="col-sm-8">
<h1>' . $model->Activity_name . '</h1>
<p>' . $model->description . '</p>
<p class="text-center"><img src="' . $imgLink . '" class="activity-detail-img"></p>
</div>
<div class="col-sm-4 activity-detail-technical" style="background-color: <?= \\app\\models\\ActivityType::getActivityTypeThemeColorById($model->ActivityType_id) ?>">
<h3>Date and Time</h3>
' . $date . '<br>
' . $startTime . ' - ' . $endTime . '
<h3>Venue</h3>
' . \app\models\Venue::getVenueNameById($model->Venue_id) . '
<h3>Person in Charge</h3>
' . \app\models\User::getUserFullNameById($model->personInCharge) . '
</div>
</div>
</div>
';
$mpdf = new mPDF();
$mpdf->WriteHTML($content);
$mpdf->Output();
exit;
}
示例2:
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model app\models\User */
$this->title = 'Update User: ' . ' ' . \app\models\User::getUserFullNameById($model->id);
$this->params['breadcrumbs'][] = ['label' => 'Users', 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => \app\models\User::getUserFullNameById($model->id), 'url' => ['view', 'id' => $model->id]];
$this->params['breadcrumbs'][] = 'Update';
?>
<div class="user-update container">
<h1><?php
echo Html::encode($this->title);
?>
</h1>
<?php
echo $this->render('_form', ['model' => $model, 'role' => $role]);
?>
</div>
示例3:
<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
/* @var $this yii\web\View */
/* @var $model app\models\UserBibi */
$this->title = \app\models\User::getUserFullNameById($model->User_id);
?>
<div class="user-bibi-view container">
<h1><?php
echo Html::encode($this->title);
?>
</h1>
<?php
if (Yii::$app->user->can('userBibiEdit')) {
?>
<p>
<?php
echo Html::a('Update', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']);
?>
<?php
echo Html::a('Delete', ['delete', 'id' => $model->id], ['class' => 'btn btn-danger', 'data' => ['confirm' => 'Are you sure you want to delete this item?', 'method' => 'post']]);
?>
</p>
<?php
}
?>
示例4: foreach
],
])*/
?>
<?php
if (count($allReplies) > 0) {
?>
<h2>Replies</h2>
<table class="table">
<?php
foreach ($allReplies as $row) {
?>
<tr>
<td>
<h3><?php
echo User::getUserFullNameById($row['Participant_id']);
?>
</h3>
<strong><?php
echo $row['datetime'];
?>
</strong>
<p><?php
echo $row['content'];
?>
</p>
</td>
</tr>
<?php
}
?>
示例5: date
echo date("M d D", strtotime($model->startDatetime));
?>
<br>
<?php
echo date("g:i A", strtotime($model->startDatetime));
?>
- <?php
echo date("g:i A", strtotime($model->endDatetime));
?>
<h3>Venue</h3>
<?php
echo \app\models\Venue::getVenueNameById($model->Venue_id);
?>
<h3>Person in Charge</h3>
<?php
echo \app\models\User::getUserFullNameById($model->personInCharge);
?>
<br><br>
<?php
echo Html::a('Get PDF <span class="glyphicon glyphicon-download-alt"></span>', ['/activity/samplepdf', 'id' => $model->id], ['class' => 'btn btn-default', 'target' => '_blank']);
?>
</div>
</div>
</div>
<?php
} else {
$this->params['breadcrumbs'][] = ['label' => 'Activities', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="container">
<h1><?php
示例6: foreach
<div class="row">
<h2>Star Speakers</h2>
<div class="speakers">
<?php
foreach ($userBibi as $row) {
?>
<a href="<?php
echo Url::to(['user-bibi/view', 'id' => $row['id']]);
?>
">
<div class="col-sm-3 col-xs-6 user-bibi" style="background-image: url(../resources/userbibi_pic/<?php
echo $row['id'];
?>
.jpg)">
<div class="user-bibi-cover"><?php
echo \app\models\User::getUserFullNameById($row['User_id']);
?>
</div>
</div>
</a>
<?php
}
?>
</div>
</div>
</div>
<script src="http://maps.googleapis.com/maps/api/js"></script>
<script>
var myCenter=new google.maps.LatLng(22.3008311, 114.1775517);
function initialize() {