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; }
<?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>
<?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 } ?>
], ])*/ ?> <?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 } ?>
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
<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() {