<?php use yii\helpers\ArrayHelper; use yii\helpers\Html; use kartik\detail\DetailView; use common\models\Facility; use common\models\Golfer; use common\models\User; use yii2mod\selectize\Selectize; /* @var $this yii\web\View */ /* @var $model common\models\Golfer */ $this->title = $model->name; $this->params['breadcrumbs'][] = ['label' => Yii::t('igolf', 'Golfers'), 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; ?> <div class="golfer-view"> <?php echo DetailView::widget(['model' => $model, 'panel' => ['heading' => '<h3>' . $model->name . '</h3>'], 'labelColOptions' => ['style' => 'width: 30%'], 'attributes' => ['name', 'email:email', 'phone', 'handicap', ['attribute' => 'gender', 'type' => DetailView::INPUT_RADIO_LIST, 'items' => ['' => Yii::t('igolf', 'Unspecified')] + Golfer::getLocalizedConstants('GENDER_')], ['attribute' => 'hand', 'type' => DetailView::INPUT_RADIO_LIST, 'items' => ['' => Yii::t('igolf', 'Unspecified')] + Golfer::getLocalizedConstants('HAND_')], 'homecourse', ['attribute' => 'facility_id', 'value' => isset($model->facility) ? $model->facility->name : '', 'type' => DetailView::INPUT_DROPDOWN_LIST, 'items' => ['' => 'Select home course...'] + ArrayHelper::map(Facility::find()->where(['>', 'id', 0])->asArray()->all(), 'id', 'name'), 'widgetOptions' => ['pluginOptions' => ['items' => ArrayHelper::map(Facility::find()->where(['>', 'id', 0])->asArray()->all(), 'id', 'name')]]], ['attribute' => 'user_id', 'label' => 'User', 'type' => DetailView::INPUT_DROPDOWN_LIST, 'items' => ArrayHelper::map(['' => ''] + User::find()->orderBy('username')->asArray()->all(), 'id', 'username'), 'value' => isset($model->user) ? $model->user->username : '******']]]); ?> </div>
use yii\helpers\Html; use kartik\detail\DetailView; /* @var $this yii\web\View */ /* @var $model app\models\User */ $this->title = $model->username; $this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Users'), 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; ?> <div class="user-view"> <h1><?php echo Html::encode($this->title); ?> </h1> <div class="kv-panel-before"> <p> <?php echo Html::a(Yii::t('app', 'Update'), ['update', 'id' => $model->id], ['class' => 'btn btn-primary']); ?> <?php echo Html::a('Delete', ['delete', 'id' => $model->id], ['class' => 'btn btn-danger', 'data' => ['confirm' => Yii::t('app', 'Are you sure you want to delete this item?'), 'method' => 'post']]); ?> </p> </div> <?php echo DetailView::widget(['model' => $model, 'attributes' => ['id', 'username', 'lastname', 'firstname', 'email:email', 'token', 'auth_key', 'active', 'created_at', 'updated_at']]); ?> </div>
echo is_null($educationDataProvider) ? 'No results found.' : ListView::widget(['dataProvider' => $educationDataProvider, 'itemView' => '_education_item', 'summary' => '', 'layout' => "{items}"]); ?> <?php Pjax::end(); ?> <?php echo DetailView::widget(['model' => $educationModel, 'condensed' => true, 'hover' => true, 'mode' => DetailView::MODE_VIEW, 'hAlign' => DetailView::ALIGN_LEFT, 'vAlign' => DetailView::ALIGN_TOP, 'hideIfEmpty' => true, 'panel' => ['heading' => 'Add education', 'type' => DetailView::TYPE_INFO], 'buttons1' => '{update}', 'updateOptions' => ['label' => '<span class="glyphicon glyphicon-plus"></span>'], 'buttons2' => '{reset} {save}', 'attributes' => ['institute', 'degree', 'area', 'location', ['attribute' => 'start_date', 'type' => DetailView::INPUT_DATE, 'widgetOptions' => ['pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']]], ['attribute' => 'end_date', 'type' => DetailView::INPUT_DATE, 'widgetOptions' => ['pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']]]]]); ?> </div> <div class="page"> <h3>Address</h3> <hr/> <?php Pjax::begin(); ?> <?php echo is_null($addressDataProvider) ? 'No results found.' : ListView::widget(['dataProvider' => $addressDataProvider, 'itemView' => '_address_item', 'summary' => '', 'layout' => "{items}"]); ?> <?php Pjax::end(); ?> <?php echo DetailView::widget(['model' => $addressModel, 'condensed' => true, 'hover' => true, 'mode' => DetailView::MODE_VIEW, 'hAlign' => DetailView::ALIGN_LEFT, 'vAlign' => DetailView::ALIGN_TOP, 'hideIfEmpty' => true, 'panel' => ['heading' => 'Add new address', 'type' => DetailView::TYPE_INFO], 'buttons1' => '{update}', 'updateOptions' => ['label' => '<span class="glyphicon glyphicon-plus"></span>'], 'buttons2' => '{reset} {save}', 'attributes' => ['address1', 'address2', 'landmark', 'city', 'state', 'country', 'pincode']]); ?> </div> </div>
/** * @inheritdoc * @throws \Exception */ public function run() { if (!$this->_module->profileSettings['enabled']) { return; } echo DetailView::widget($this->widgetOptions); }
/** * @inheritdoc */ public function run() { if (Yii::$app->user->id != $this->model->id || !$this->_module->socialSettings['enabled']) { echo ''; return; } echo DetailView::widget($this->widgetOptions); }
<?php use yii\helpers\Html; use kartik\detail\DetailView; use yii\data\ActiveDataProvider; /* @var $this yii\web\View */ /* @var $model common\models\Competition */ $this->title = $model->name; $this->params['breadcrumbs'][] = ['label' => Yii::t('igolf', 'Competitions'), 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; ?> <div class="competition-view"> <?php echo DetailView::widget(['model' => $model, 'panel' => ['heading' => '<h3>' . Yii::t('igolf', $model->competition_type) . ' ' . $model->name . '</h3>', 'headingOptions' => ['template' => '{title}']], 'attributes' => ['description', ['attribute' => 'parent_id', 'value' => $model->parent ? $model->parent->name : ''], ['attribute' => 'course_id', 'value' => $model->course ? $model->course->name : ''], 'holes', ['attribute' => 'rule_id', 'value' => $model->rule ? $model->rule->name : ''], 'start_date', ['attribute' => 'status', 'label' => 'Status', 'value' => Yii::t('igolf', $model->status)], 'updated_at']]); ?> <?php echo $this->render('_scorecards', ['competition' => $model, 'dataProvider' => new ActiveDataProvider(['query' => $model->getScorecards()])]); ?> </div>
Carbon::setLocale(substr(Yii::$app->language, 0, 2)); // eg. en-US to en ?> <div class="theme-view box box-big box-light"> <div class="pull-right" style="margin-top: -5px"> <?php echo Html::a('<span class="glyphicon glyphicon-pencil"></span> ', ['update', 'id' => $themeModel->id], ['title' => Yii::t('app', 'Update Theme'), 'class' => 'btn btn-sm btn-info']); ?> <?php echo Html::a('<span class="glyphicon glyphicon-bin"></span> ', ['delete', 'id' => $themeModel->id], ['title' => Yii::t('app', 'Delete Theme'), 'class' => 'btn btn-sm btn-danger', 'data' => ['confirm' => Yii::t('app', 'Are you sure you want to delete this theme? All data related to this item will be deleted. This action cannot be undone.'), 'method' => 'post']]); ?> </div> <div class="box-header"> <h3 class="box-title"><?php echo Yii::t('app', 'Theme'); ?> <span class="box-subtitle"><?php echo Html::encode($this->title); ?> </span> </h3> </div> <?php echo DetailView::widget(['model' => $themeModel, 'condensed' => false, 'hover' => true, 'mode' => DetailView::MODE_VIEW, 'enableEditMode' => false, 'hideIfEmpty' => true, 'options' => ['class' => 'kv-view-mode'], 'attributes' => ['id', 'name', 'description', ['attribute' => 'color', 'format' => 'raw', 'value' => "<span class='badge' style='background-color: {$themeModel->color}'> </span> <code>" . $themeModel->color . '</code>', 'type' => DetailView::INPUT_COLOR], ['attribute' => 'author', 'value' => $themeModel->author->username, 'label' => Yii::t('app', 'Created by')], ['attribute' => 'created_at', 'value' => isset($themeModel->created_at) ? Carbon::createFromTimestampUTC($themeModel->created_at)->diffForHumans() : null, 'label' => Yii::t('app', 'Created')], ['attribute' => 'lastEditor', 'value' => $themeModel->lastEditor->username, 'label' => Yii::t('app', 'Last Editor')], ['attribute' => 'updated_at', 'value' => isset($themeModel->updated_at) ? Carbon::createFromTimestampUTC($themeModel->updated_at)->diffForHumans() : null, 'label' => Yii::t('app', 'Last updated')]]]); ?> </div>
<?php use yii\helpers\Html; use yii\helpers\ArrayHelper; // use yii\widgets\DetailView; use kartik\detail\DetailView; use kartik\grid\GridView; /* @var $this yii\web\View */ /* @var $model app\models\Partner */ // Добавление моделей use app\models\AppBankAccount; use app\models\AppPatrnerType; $this->title = $model->Name; $this->params['breadcrumbs'][] = ['label' => 'Контрагенты', 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; /************************************************************************* * Подготовка данных для представления в ************************************************************************/ $attributes = [['group' => true, 'label' => 'Общая информация', 'rowOptions' => ['class' => 'info']], 'Name:ntext', 'FullName', ['group' => true, 'label' => 'Контактная информация', 'rowOptions' => ['class' => 'info']], 'MailAddress', 'ActualAddress', 'Phone', 'Fax', 'Email:email', ['group' => true, 'label' => 'Юридическая информация', 'rowOptions' => ['class' => 'info']], 'LegalAddress', ['columns' => [['attribute' => 'INN', 'valueColOptions' => ['style' => 'width:30%']], ['attribute' => 'KPP', 'valueColOptions' => ['style' => 'width:30%']]]], ['attribute' => 'ID_BankAccount', 'value' => $model->ID_BankAccount != null ? $model->iDBankAccount->Account : '', 'type' => DetailView::INPUT_SELECT2, 'widgetOptions' => ['data' => ArrayHelper::map(AppBankAccount::find()->all(), 'ID', 'Account', 'bank.Name')]], ['attribute' => 'ID_TypePatrner', 'value' => $model->ID_TypePatrner != null ? $model->iDTypePatrner->description : '', 'type' => DetailView::INPUT_SELECT2, 'widgetOptions' => ['data' => ArrayHelper::map(AppPatrnerType::find()->all(), 'ID', 'description')]]]; // View file rendering the widget echo DetailView::widget(['model' => $model, 'condensed' => true, 'hover' => true, 'mode' => DetailView::MODE_VIEW, 'panel' => ['heading' => 'Клиент : ' . $model->FullName, 'type' => DetailView::TYPE_PRIMARY], 'attributes' => $attributes, 'deleteOptions' => ['url' => ['delete', 'id' => $model->ID], 'data' => ['confirm' => Yii::t('app', 'Are you sure you want to delete this record?'), 'method' => 'post']]]); /***************** Вывод грида по договорам *************************/ echo Yii::$app->controller->renderPartial('viewcontractgrid', ['model' => $model]); /***************** Вывод грида по договорам *************************/ ?> </div>
<?php use yii\helpers\Html; use kartik\detail\DetailView; use kartik\datecontrol\DateControl; /** * @var yii\web\View $this * @var common\models\Product $model */ $this->title = $model->title; $this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Products'), 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; ?> <div class="product-view"> <div class="page-header"> <h1><?php echo Html::encode($this->title); ?> </h1> </div> <?php echo DetailView::widget(['model' => $model, 'condensed' => false, 'hover' => true, 'mode' => Yii::$app->request->get('edit') == 't' ? DetailView::MODE_EDIT : DetailView::MODE_VIEW, 'panel' => ['heading' => $this->title, 'type' => DetailView::TYPE_INFO], 'attributes' => ['id', 'title', 'keywords', 'intro:ntext', 'body:ntext', 'icon_image', 'main_image', 'price_discount', 'price', 'results:ntext', 'group_services', 'orientation', 'tags', 'recommend:ntext', 'prepare:ntext', 'notes', 'organization_id', 'type_id'], 'deleteOptions' => ['url' => ['delete', 'id' => $model->id], 'data' => ['confirm' => Yii::t('app', 'Are you sure you want to delete this item?'), 'method' => 'post']], 'enableEditMode' => true]); ?> </div>
use common\widgets\Scorecard; use kartik\detail\DetailView; use yii\data\ActiveDataProvider; use yii\helpers\Html; use yii\helpers\Url; /* @var $this yii\web\View */ /* @var $scorecard common\models\Scorecard */ $this->title = $scorecard->registration->golfer->name; $this->params['breadcrumbs'][] = ['label' => Yii::t('igolf', 'Competitions'), 'url' => ['competition/index']]; $this->params['breadcrumbs'][] = ['label' => $scorecard->registration->competition->name, 'url' => ['competition', 'id' => $scorecard->registration->competition_id]]; $this->params['breadcrumbs'][] = $this->title; ?> <div class="scorecard-view"> <?php echo DetailView::widget(['model' => $scorecard->registration->competition, 'panel' => ['heading' => '<h3>' . $scorecard->registration->competition->getFullName() . ' <small>(' . Yii::t('igolf', $scorecard->registration->competition->competition_type) . ')</small></h3>', 'headingOptions' => ['template' => '{title}']], 'attributes' => ['description', ['attribute' => 'course_id', 'label' => 'Course', 'value' => $scorecard->registration->competition->course ? $scorecard->registration->competition->course->name : ''], 'holes', ['attribute' => 'rule_id', 'label' => 'Rules', 'value' => $scorecard->registration->competition->rule ? $scorecard->registration->competition->rule->name : ''], ['attribute' => 'status', 'label' => 'Scorecard Status', 'value' => Yii::t('igolf', $scorecard->status)]]]); ?> <?php echo Scorecard::widget(['scorecard' => $scorecard, 'options' => [Scorecard::LENGTH => true, Scorecard::SI => true, Scorecard::PAR => true, Scorecard::HOLES => true, Scorecard::FRONTBACK => true, Scorecard::COLOR => true, Scorecard::LEGEND => true, Scorecard::ALLOWED => true, Scorecard::ALLOWED_ICON => '•', Scorecard::SCORE => true, Scorecard::SCORE_NET => true, Scorecard::STABLEFORD => true, Scorecard::STABLEFORD_NET => true, Scorecard::TO_PAR => true, Scorecard::TO_PAR_NET => true]]); ?> <?php if (!in_array($scorecard->competition->status, [Competition::STATUS_COMPLETED, Competition::STATUS_CLOSED])) { ?> <div class="clearfix"></div> <?php echo Html::a(Yii::t('igolf', 'Update'), Url::to(['update', 'id' => $scorecard->id]), ['class' => 'btn btn-primary']); ?> <?php }
?> <div class="container"> <div class="row"> <div class="col-md-12 text-center"> <h1><?php echo Html::encode($this->title); ?> </h1> </div> </div> <div class="row"> <div class="col-md-offset-5 col-md-2 text-center"> <?php echo Html::a('Изменить', ['update'], ['class' => 'btn btn-primary']); ?> </div> </div> </br> <div class="row"> <div class="col-md-6 col-md-offset-3"> <?php echo DetailView::widget(['model' => $model, 'condensed' => true, 'hover' => true, 'panel' => ['heading' => $model->username, 'headingOptions' => ['class' => 'text-center', 'template' => '{title}']], 'mode' => DetailView::MODE_VIEW, 'attributes' => ['username', 'email', 'name', 'surname', 'gender', 'age', 'role']]); ?> </div> </div> </div>
<?php use yii\helpers\Html; use kartik\detail\DetailView; use kartik\datecontrol\DateControl; /** * @var yii\web\View $this * @var app\models\KartikCrud $model */ $this->title = $model->id; $this->params['breadcrumbs'][] = ['label' => 'Kartik Cruds', 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; ?> <div class="kartik-crud-view"> <div class="page-header"> <h1><?php echo Html::encode($this->title); ?> </h1> </div> <?php echo DetailView::widget(['model' => $model, 'condensed' => false, 'hover' => true, 'mode' => Yii::$app->request->get('edit') == 't' ? DetailView::MODE_EDIT : DetailView::MODE_VIEW, 'panel' => ['heading' => $this->title, 'type' => DetailView::TYPE_INFO], 'attributes' => ['id', 'thought', 'goodness', 'rank', 'censorship', ['attribute' => 'occurred', 'format' => ['date', isset(Yii::$app->modules['datecontrol']['displaySettings']['date']) ? Yii::$app->modules['datecontrol']['displaySettings']['date'] : 'd-m-Y'], 'type' => DetailView::INPUT_WIDGET, 'widgetOptions' => ['class' => DateControl::classname(), 'type' => DateControl::FORMAT_DATE]], 'email:email', 'url:url', 'filename', 'avatar'], 'deleteOptions' => ['url' => ['delete', 'id' => $model->id], 'data' => ['confirm' => Yii::t('app', 'Are you sure you want to delete this item?'), 'method' => 'post']], 'enableEditMode' => true]); ?> </div>
use yii\widgets\ActiveForm; use kartik\widgets\DepDrop; use lukisongroup\master\models\barangalias; use lukisongroup\master\models\Distributor; use yii\helpers\Url; use kartik\widgets\Select2; use kartik\detail\DetailView; /* @var $this yii\web\View */ /* @var $model lukisongroup\master\models\Customersalias */ /* @var $form yii\widgets\ActiveForm */ /*Customers alias info*/ $cusviewinfo = DetailView::widget(['model' => $model, 'attributes' => [['attribute' => 'KD_CUSTOMERS', 'label' => 'Kd Customer', 'labelColOptions' => ['style' => 'text-align:right;width: 30%']], ['attribute' => 'custnm', 'label' => 'Customer.NM', 'labelColOptions' => ['style' => 'text-align:right;width: 30%']], ['attribute' => 'custpnma', 'label' => 'Customers.parent', 'labelColOptions' => ['style' => 'text-align:right;width: 30%']], ['attribute' => 'disnm', 'label' => 'Nama Distributor', 'labelColOptions' => ['style' => 'text-align:right;width: 30%']], ['attribute' => 'KD_ALIAS', 'label' => 'Alias Code :', 'labelColOptions' => ['style' => 'text-align:right;width: 30%']]]]); /*update customers alias*/ $attalias = [['group' => true, 'label' => false, 'rowOptions' => ['class' => 'info'], 'groupOptions' => ['class' => 'text-left']], ['attribute' => 'KD_PARENT', 'format' => 'raw', 'value' => $model->cusp->CUST_NM, 'type' => DetailView::INPUT_SELECT2, 'widgetOptions' => ['data' => $cus_data, 'options' => ['placeholder' => 'Select ...'], 'pluginOptions' => ['allowClear' => true]]], ['attribute' => 'KD_CUSTOMERS', 'format' => 'raw', 'value' => $model->cus->CUST_NM, 'type' => DetailView::INPUT_DEPDROP, 'widgetOptions' => ['options' => ['id' => 'customers-city_id', 'placeholder' => 'Select Kota'], 'type' => DepDrop::TYPE_SELECT2, 'select2Options' => ['pluginOptions' => ['allowClear' => true]], 'pluginOptions' => ['depends' => ['customersalias-kd_parent'], 'url' => Url::to(['/master/customers/lis-child-cus']), 'loadingText' => 'Loading data ...']]], ['attribute' => 'KD_DISTRIBUTOR', 'format' => 'raw', 'value' => $model->dis->NM_DISTRIBUTOR, 'type' => DetailView::INPUT_SELECT2, 'widgetOptions' => ['data' => $cus_dis, 'options' => ['placeholder' => 'Select ...'], 'pluginOptions' => ['allowClear' => true]]], ['attribute' => 'KD_ALIAS', 'label' => 'alias code', 'type' => DetailView::INPUT_TEXT, 'labelColOptions' => ['style' => 'text-align:right;width: 15px']]]; /* Customers alias View Editing*/ $alias = DetailView::widget(['id' => $model->formName(), 'model' => $model, 'attributes' => $attalias, 'condensed' => true, 'hover' => true, 'mode' => DetailView::MODE_VIEW, 'buttons1' => '{update}', 'buttons2' => '{view}{save}', 'panel' => ['heading' => '<div style="float:left;margin-right:10px" class="fa fa-1x fa-list-alt"></div><div><h6 class="modal-title"><b>Alias Customers</b></h6></div>', 'type' => DetailView::TYPE_INFO], 'formOptions' => ['id' => $model->formName(), 'enableAjaxValidation' => true, 'enableClientValidation' => true, 'validationUrl' => Url::toRoute('/master/customers/valid-alias-update')]]); ?> <div style="height:100%;font-family: verdana, arial, sans-serif ;font-size: 8pt"> <div class="row" > <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6"> <?php echo $cusviewinfo; ?> </div> <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6"> <?php echo $alias; ?>
/* @var $this yii\web\View */ /* @var $model app\models\Cuentas */ $this->title = strtoupper($model->idEmpresa->nombre); $this->params['breadcrumbs'][] = ['label' => 'Cuentas', 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; ?> <div class="cuentas-view"> <h1><?php echo Html::encode($this->title); ?> </h1> <p> <?php echo Html::a('Update', ['update', 'id' => $model->id_cuenta], ['class' => 'btn btn-lg btn-primary']); ?> <?php echo Html::a('PDF', ['pdf', 'id' => $model->id_cuenta], ['class' => 'btn btn-lg btn-success']); ?> <?php echo Html::a('Delete', ['delete', 'id' => $model->id_cuenta], ['class' => 'btn btn-danger btn-lg', 'data' => ['confirm' => 'Esta seguro de eliminar este item?', 'method' => 'post']]); ?> </p> <?php echo DetailView::widget(['model' => $model, 'valueColOptions' => ['style' => 'text-transform: uppercase'], 'condensed' => true, 'hover' => true, 'mode' => DetailView::MODE_VIEW, 'panel' => ['heading' => 'Cuenta de cobro # ' . $model->id_cuenta, 'type' => DetailView::TYPE_INFO], 'attributes' => [['attribute' => 'id_empresa', 'value' => strtoupper($model->idEmpresa->nombre), 'label' => 'Usuario'], ['attribute' => 'id_tercero', 'value' => strtoupper($model->idTercero->nombre), 'label' => 'Tercero'], 'fecha', 'valor', 'detalle']]); ?> </div>
?> <div class="golfer-profile-index"> <div class="row"> <div class="col-lg-8"> <?php if (!$model) { ?> <div class="alert alert-info"> Your are not registered as a golfer. </div> <?php } else { ?> <?php echo DetailView::widget(['model' => $model, 'panel' => ['heading' => '<h3>' . Html::encode($this->title) . '</h3>'], 'labelColOptions' => ['style' => 'width: 30%'], 'formOptions' => ['action' => Url::to(['view', 'id' => $model->id])], 'attributes' => ['name', 'email:email', 'phone', 'handicap', ['attribute' => 'gender', 'type' => DetailView::INPUT_RADIO_LIST, 'items' => ['' => Yii::t('igolf', 'Unspecified')] + Golfer::getLocalizedConstants('GENDER_')], ['attribute' => 'hand', 'type' => DetailView::INPUT_RADIO_LIST, 'items' => ['' => Yii::t('igolf', 'Unspecified')] + Golfer::getLocalizedConstants('HAND_')], ['label' => Yii::t('igolf', 'Home Course'), 'attribute' => 'facility_id', 'value' => isset($model->facility) ? $model->facility->name : '', 'type' => DetailView::INPUT_DROPDOWN_LIST, 'items' => ['' => 'Select home course...'] + ArrayHelper::map(Facility::find()->where(['>', 'id', 0])->asArray()->all(), 'id', 'name'), 'widgetOptions' => ['pluginOptions' => ['items' => ArrayHelper::map(Facility::find()->where(['>', 'id', 0])->asArray()->all(), 'id', 'name')]]]]]); ?> <?php } ?> </div> <div class="col-lg-4"> <h3><?php echo Yii::t('goflleague', 'Menu'); ?> </h3> <h3><?php echo Yii::t('goflleague', 'Enter score');
$this->title = $username; $this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Users'), 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; ?> <div class="user-view box box-big box-light"> <div class="pull-right" style="margin-top: -5px"> <?php echo Html::a('<span class="glyphicon glyphicon-pencil"></span> ', ['update', 'id' => $user->id], ['title' => Yii::t('app', 'Update User'), 'class' => 'btn btn-sm btn-info']); ?> <?php echo Html::a('<span class="glyphicon glyphicon-bin"></span> ', ['delete', 'id' => $user->id], ['title' => Yii::t('app', 'Delete User'), 'class' => 'btn btn-sm btn-danger', 'data' => ['confirm' => Yii::t('app', 'Are you sure you want to delete this user? All data related to this item will be deleted. This action cannot be undone.'), 'method' => 'post']]); ?> </div> <div class="box-header"> <h3 class="box-title"><?php echo Yii::t('app', 'User'); ?> <span class="box-subtitle"><?php echo Html::encode($username); ?> </span> </h3> </div> <?php echo DetailView::widget(['model' => $user, 'condensed' => false, 'hover' => true, 'mode' => DetailView::MODE_VIEW, 'hideIfEmpty' => true, 'enableEditMode' => false, 'options' => ['class' => 'kv-view-mode'], 'attributes' => [['group' => true, 'label' => Yii::t('app', 'Account Information'), 'rowOptions' => ['class' => 'info']], 'id', 'email:email', ['attribute' => 'role', 'value' => $user->role->name, 'label' => Yii::t('app', 'Role')], ['attribute' => 'status', 'format' => 'raw', 'value' => $userStatus, 'type' => DetailView::INPUT_SWITCH, 'widgetOptions' => ['pluginOptions' => ['onText' => Yii::t('app', 'Active'), 'offText' => Yii::t('app', 'Inactive')]]], 'new_email:email', 'ban_reason', ['group' => true, 'label' => Yii::t('app', 'Profile Information'), 'rowOptions' => ['class' => 'info']], ['attribute' => 'profile', 'value' => $user->profile->full_name, 'label' => Yii::t('app', 'Full Name')], ['attribute' => 'profile', 'value' => $user->profile->company, 'label' => Yii::t('app', 'Company')], ['attribute' => 'profile', 'value' => $user->profile->timezone, 'label' => Yii::t('app', 'Timezone')], ['attribute' => 'profile', 'value' => $user->profile->language, 'label' => Yii::t('app', 'Language')], ['group' => true, 'label' => Yii::t('app', 'Additional Information'), 'rowOptions' => ['class' => 'info']], 'login_time', 'create_time', 'update_time', 'login_ip', 'create_ip', 'ban_time']]); ?> </div>
<?php use yii\helpers\Html; use kartik\detail\DetailView; use kartik\datecontrol\DateControl; /** * @var yii\web\View $this * @var app\models\Wineries $model */ $this->title = $model->id; $this->params['breadcrumbs'][] = ['label' => 'Wineries', 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; ?> <div class="wineries-view"> <div class="page-header"> <h1><?php echo Html::encode($this->title); ?> </h1> </div> <?php echo DetailView::widget(['model' => $model, 'condensed' => false, 'hover' => true, 'mode' => Yii::$app->request->get('edit') == 't' ? DetailView::MODE_EDIT : DetailView::MODE_VIEW, 'panel' => ['heading' => $this->title, 'type' => DetailView::TYPE_INFO], 'attributes' => ['id', 'winery_name', 'default_appellation_id', 'phone', 'proprietor_name', 'winemaker_name', 'website', 'description', 'created_at', 'updated_at'], 'deleteOptions' => ['url' => ['delete', 'id' => $model->id], 'data' => ['confirm' => Yii::t('app', 'Are you sure you want to delete this item?'), 'method' => 'post']], 'enableEditMode' => true]); ?> </div>
<?php //Html::a('Create Acdfrequenceenroll', ['create'], ['class' => 'btn btn-success']) ?> </p> <div class="panel panel-default"> <div class="panel-heading"><span class="titulo_panel">Informações da disciplinas </span> <?php echo Html::button('<span class="glyphicon glyphicon-plus-sign"></span>', ["data-toggle" => "collapse", "data-target" => "#corpo-info", "style" => "float:right;", "id" => "btn-fecha_info"]); ?> </div> <div id="corpo-info" class="panel-body collapse"> <?php echo DetailView::widget(['model' => $obj, 'condensed' => true, 'bordered' => true, 'hover' => true, 'enableEditMode' => false, 'mode' => DetailView::MODE_VIEW, 'attributes' => [['columns' => [['attribute' => 'groupid', 'value' => $obj->groupid], ['attribute' => 'curriculumid', 'value' => $obj->curriculum->curricularcomponent->name . '/' . $obj->curriculum->curricularcomponent->curricularcomponentversion], 'classid']], ['columns' => [['attribute' => 'curso', 'value' => $obj->curriculum->course->course->course->name . '/' . $obj->curriculum->course->course->courseversion], ['attribute' => 'learningperiodid', 'value' => $obj->learningperiod->periodid]]]]]); ?> </div> </div> <div class="panel panel-primary"> <div class="panel-body"> <div class="acdfrequenceenroll-form"> <?php echo TabsX::widget(['items' => [['label' => 'Conteúdo das Aulas', 'content' => $this->render('_conteudo_aula', ['dataProvider' => $dataProvider, 'groupid' => $groupid, 'searchConteudo' => $searchConteudo, 'horas' => $hora]), 'active' => true], ['label' => 'Frequência dos alunos', 'content' => $this->render('_filtro_frequencia', ['search' => $search, 'groupid' => $groupid, 'hora' => $hora])]]]); ?> </div>
/*extensions */ use yii\helpers\Html; use yii\bootstrap\ActiveForm; use yii\helpers\ArrayHelper; use kartik\widgets\Select2; use kartik\widgets\DatePicker; use kartik\detail\DetailView; /* namespace model*/ use lukisongroup\master\models\Terminvest; $config = ['template' => "{input}\n{error}\n{hint}"]; /*info*/ $viewinfo = DetailView::widget(['model' => $model, 'attributes' => [['attribute' => 'NOMER_FAKTURPAJAK', 'label' => 'Nomer Faktur', 'labelColOptions' => ['style' => 'text-align:right;width: 30%']], ['attribute' => 'NOMER_INVOCE', 'label' => 'Nomer Invoce', 'labelColOptions' => ['style' => 'text-align:right;width: 30%']], ['attribute' => 'temr_Id', 'value' => $model->TERM_ID, 'label' => 'Term Id', 'labelColOptions' => ['style' => 'text-align:right;width: 30%']], ['attribute' => 'cus_Perent', 'value' => $model_header, 'label' => 'Nama Customers', 'labelColOptions' => ['style' => 'text-align:right;width: 30%']], ['attribute' => 'PERIODE_START', 'label' => 'Periode start', 'labelColOptions' => ['style' => 'text-align:right;width: 30%']], ['attribute' => 'PERIODE_END', 'label' => 'periode end', 'labelColOptions' => ['style' => 'text-align:right;width: 30%']]]]); /*update data Term */ $update_data_term = [['group' => true, 'label' => false, 'rowOptions' => ['class' => 'info'], 'groupOptions' => ['class' => 'text-left']], ['attribute' => 'NOMER_FAKTURPAJAK', 'type' => DetailView::INPUT_TEXT], ['attribute' => 'INVESTASI_TYPE', 'type' => DetailView::INPUT_SELECT2, 'value' => $model->nminvest, 'widgetOptions' => ['pluginOptions' => ['placeholder' => 'Select Type Investasi ...'], 'data' => $investData]], ['attribute' => 'NOMER_INVOCE', 'type' => DetailView::INPUT_TEXT], ['attribute' => 'HARGA', 'type' => DetailView::INPUT_MONEY], ['attribute' => 'PPN', 'type' => DetailView::INPUT_TEXT], ['attribute' => 'PPH23', 'type' => DetailView::INPUT_SELECT2, 'widgetOptions' => ['pluginOptions' => ['placeholder' => 'Select...'], 'data' => $data]], ['attribute' => 'INVESTASI_PROGRAM', 'type' => DetailView::INPUT_TEXTAREA, 'widgetOptions' => ['pluginOptions' => ['rows' => 6]]], ['attribute' => 'PERIODE_START', 'format' => 'date', 'type' => DetailView::INPUT_DATE, 'widgetOptions' => ['pluginOptions' => ['format' => 'yyyy-mm-dd'], 'pluginEvents' => ['show' => "function(e) {errror}"]]], ['attribute' => 'PERIODE_END', 'format' => 'raw', 'format' => 'date', 'type' => DetailView::INPUT_DATE, 'widgetOptions' => ['pluginOptions' => ['format' => 'yyyy-mm-dd'], 'pluginEvents' => ['show' => "function(e) {errror}"]]]]; /* term data View Editing*/ $edit_data_term = DetailView::widget(['id' => 'term-actual-view-id', 'model' => $model, 'attributes' => $update_data_term, 'condensed' => true, 'hover' => true, 'mode' => DetailView::MODE_VIEW, 'buttons1' => '{update}', 'buttons2' => '{view}{save}', 'panel' => ['heading' => '<div style="float:left;margin-right:10px" class="fa fa-1x fa-list-alt"></div><div><h6 class="modal-title"><b>Data Term</b></h6></div>', 'type' => DetailView::TYPE_INFO]]); ?> <div style="height:100%;font-family: verdana, arial, sans-serif ;font-size: 8pt"> <div class="row" > <div class="col-xs-5 col-sm-5 col-md-5 col-lg-5"> <?php echo $viewinfo; ?> </div> <div class="col-xs-7 col-sm-7 col-md-7 col-lg-7"> <?php echo $edit_data_term; ?> </div> </div>
<?php use yii\helpers\Html; use kartik\detail\DetailView; use kartik\datecontrol\DateControl; /** * @var yii\web\View $this * @var common\models\Diagnos $model */ $this->title = $model->title; $this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Diagnos'), 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; ?> <div class="diagnos-view"> <div class="page-header"> <h1><?php echo Html::encode($this->title); ?> </h1> </div> <?php echo DetailView::widget(['model' => $model, 'condensed' => false, 'hover' => true, 'mode' => Yii::$app->request->get('edit') == 't' ? DetailView::MODE_EDIT : DetailView::MODE_VIEW, 'panel' => ['heading' => $this->title, 'type' => DetailView::TYPE_INFO], 'attributes' => ['id', 'title', 'body:ntext', 'intro:ntext'], 'deleteOptions' => ['url' => ['delete', 'id' => $model->id], 'data' => ['confirm' => Yii::t('app', 'Are you sure you want to delete this item?'), 'method' => 'post']], 'enableEditMode' => true]); ?> </div>
$Val_GF = $Gf_MDL->GF_NM; } /*GROUP-SEQUEN*/ if (count($GSeqmen_MDL) == 0) { $Val_SQMEN = 'none'; } else { $Val_SQMEN = $GSeqmen_MDL->SEQ_NM; } /*JOBGRADE*/ if (count($Grading_MDL) == 0) { $Val_GRADING = 'none'; } else { $Val_GRADING = $Grading_MDL->JOBGRADE_NM; } ?> <?php $attribute = [['label' => 'Group Function', 'attribute' => 'GF_ID', 'format' => 'raw', 'value' => Html::a($Val_GF, '#', ['class' => 'kv-author-link']), 'type' => DetailView::INPUT_SELECT2, 'widgetOptions' => ['data' => ArrayHelper::map(Groupfunction::find()->orderBy('SORT')->asArray()->all(), 'GF_ID', 'GF_NM'), 'options' => ['id' => 'Groupfnc-id']]], ['label' => 'Group Seqmen', 'attribute' => 'SEQ_ID', 'format' => 'raw', 'value' => Html::a($Val_SQMEN, '#', ['class' => 'kv-author-link']), 'type' => DetailView::INPUT_SELECT2, 'widgetOptions' => ['data' => ArrayHelper::map(Groupseqmen::find()->orderBy('SEQ_NM')->asArray()->all(), 'SEQ_ID', 'SEQ_NM'), 'options' => ['id' => 'Groupseq-id']]], ['label' => 'JobGrading', 'attribute' => 'JOBGRADE_ID', 'format' => 'raw', 'value' => Html::a($Val_GRADING, '#', ['class' => 'kv-author-link']), 'type' => DetailView::INPUT_SELECT2, 'widgetOptions' => ['data' => ArrayHelper::map(Jobgrade::find()->orderBy('SORT')->asArray()->all(), 'JOBGRADE_ID', 'JOBGRADE_NM'), 'options' => ['id' => 'Grading-id']]], ['attribute' => 'SORT'], ['attribute' => 'JOBGRADE_DCRP', 'type' => DetailView::INPUT_TEXTAREA], ['attribute' => 'CREATED_BY', 'options' => ['readonly' => true]], ['attribute' => 'UPDATED_BY', 'options' => ['readonly' => true]], ['attribute' => 'UPDATED_TIME', 'options' => ['readonly' => true]]]; ?> <div class="container"> <div class="col-sm-2"></div> <div class="col-sm-7"> <?php $form = ActiveForm::begin(['options' => ['enctype' => 'multipart/form-data']]); echo DetailView::widget(['model' => $model, 'condensed' => true, 'hover' => true, 'mode' => DetailView::MODE_VIEW, 'panel' => ['heading' => 'FORMULA MODUL GRADING', 'type' => DetailView::TYPE_INFO], 'attributes' => $attribute, 'deleteOptions' => ['url' => ['deletestt', 'id' => $model->ID], 'data' => ['confirm' => Yii::t('app', 'Are you sure you want to delete this record?'), 'method' => 'post']]]); ActiveForm::end(); ?> </div> </div>
<?php /*extensions */ use yii\helpers\Html; use yii\bootstrap\ActiveForm; use yii\helpers\ArrayHelper; use kartik\detail\DetailView; use yii\helpers\Json; use yii\web\Response; use kartik\grid\GridView; /*info*/ $viewinfo = DetailView::widget(['model' => $model_customers, 'attributes' => [['attribute' => 'CUST_KD', 'label' => 'Kode Customers', 'labelColOptions' => ['style' => 'text-align:right;width: 30%']], ['attribute' => 'CUST_NM', 'label' => 'Nama Customers', 'labelColOptions' => ['style' => 'text-align:right;width: 30%']], ['attribute' => 'ALAMAT', 'label' => 'Alamat', 'labelColOptions' => ['style' => 'text-align:right;width: 30%']], ['attribute' => 'STATUS', 'format' => 'raw', 'value' => $model_customers->STATUS ? '<span class="label label-success">InActive</span>' : '<span class="label label-danger">Active</span>', 'label' => 'Status', 'labelColOptions' => ['style' => 'text-align:right;width: 30%']], ['attribute' => 'LOCK_MAP', 'label' => 'GPS', 'format' => 'raw', 'value' => $model_customers->LOCK_MAP ? '<span class="label label-primary">Lock</span>' : '<span class="label label-primary">Unlock</span>', 'labelColOptions' => ['style' => 'text-align:right;width: 30%']], ['attribute' => 'MAP_LAT', 'label' => 'LAT', 'value' => $model_customers->MAP_LAT ? $model_customers->MAP_LAT : '-', 'labelColOptions' => ['style' => 'text-align:right;width: 30%']], ['attribute' => 'MAP_LNG', 'label' => 'LNG', 'value' => $model_customers->MAP_LNG ? $model_customers->MAP_LNG : '-', 'labelColOptions' => ['style' => 'text-align:right;width: 30%']]]]); /** * GRID VIEW PLAN TREM * @author wawan * @since 1.0 */ $attDinamik = []; /*GRIDVIEW ARRAY FIELD HEAD*/ $headColomnEvent = [['ID' => 0, 'ATTR' => ['FIELD' => 'TGL', 'SIZE' => '50px', 'label' => 'Tanggal', 'align' => 'left', 'warna' => '126, 189, 188, 0.9', 'GRP' => false, 'FORMAT' => 'html', 'filter' => true, 'filterType' => true, 'filterwarna' => '126, 189, 188, 0.9']], ['ID' => 1, 'ATTR' => ['FIELD' => 'CHECKOUT_LAT', 'SIZE' => '10px', 'label' => 'Lat ', 'align' => 'left', 'warna' => '126, 189, 188, 0.9', 'GRP' => false, 'FORMAT' => 'html', 'filter' => true, 'filterType' => true, 'filterwarna' => '126, 189, 188, 0.9']], ['ID' => 2, 'ATTR' => ['FIELD' => 'CHECKOUT_LAG', 'SIZE' => '10px', 'label' => 'lng', 'align' => 'left', 'warna' => '126, 189, 188, 0.9', 'GRP' => false, 'FORMAT' => 'html', 'filter' => true, 'filterType' => true, 'filterwarna' => '126, 189, 188, 0.9']]]; $gvHeadColomn = ArrayHelper::map($headColomnEvent, 'ID', 'ATTR'); /*GRIDVIEW SERIAL ROWS*/ $attDinamik[] = ['class' => 'kartik\\grid\\SerialColumn', 'width' => '10px', 'header' => 'No.', 'headerOptions' => ['style' => ['text-align' => 'center', 'width' => '10px', 'font-family' => 'verdana, arial, sans-serif', 'font-size' => '9pt', 'background-color' => 'rgba(126, 189, 188, 0.9)']], 'contentOptions' => ['style' => ['text-align' => 'center', 'width' => '10px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '9pt']]]; /*GRIDVIEW ARRAY ROWS*/ foreach ($gvHeadColomn as $key => $value[]) { if ($value[$key]['FIELD'] == 'TGL') { $attDinamik[] = ['attribute' => $value[$key]['FIELD'], 'label' => $value[$key]['label'], 'filterType' => GridView::FILTER_DATE, 'filter' => $value[$key]['filter'], 'filterWidgetOptions' => ['pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']], 'filterOptions' => ['style' => 'background-color:rgba(' . $value[$key]['filterwarna'] . '); align:center'], 'hAlign' => 'right', 'vAlign' => 'middle', 'noWrap' => true, 'group' => $value[$key]['GRP'], 'format' => $value[$key]['FORMAT'], 'headerOptions' => ['style' => ['text-align' => 'center', 'width' => $value[$key]['FIELD'], 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '8pt', 'background-color' => 'rgba(' . $value[$key]['warna'] . ')']], 'contentOptions' => ['style' => ['text-align' => $value[$key]['align'], 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '8pt', 'width' => '30%']]]; } else { $attDinamik[] = ['attribute' => $value[$key]['FIELD'], 'label' => $value[$key]['label'], 'filterType' => $value[$key]['filterType'], 'filter' => $value[$key]['filter'], 'filterOptions' => ['style' => 'background-color:rgba(' . $value[$key]['filterwarna'] . '); align:center'], 'hAlign' => 'right', 'vAlign' => 'middle', 'noWrap' => true, 'group' => $value[$key]['GRP'], 'format' => $value[$key]['FORMAT'], 'headerOptions' => ['style' => ['text-align' => 'center', 'width' => $value[$key]['FIELD'], 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '8pt', 'background-color' => 'rgba(' . $value[$key]['warna'] . ')']], 'contentOptions' => ['style' => ['text-align' => $value[$key]['align'], 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '8pt']]]; } }
<?php use yii\helpers\Html; use kartik\detail\DetailView; /* @var $this yii\web\View */ /* @var $model app\models\Registration */ $this->title = $model->golfer->name; $this->params['breadcrumbs'][] = ['label' => Yii::t('igolf', 'Registrations'), 'url' => ['index']]; $this->params['breadcrumbs'][] = ['label' => $model->competition->name, 'url' => ['competition', 'id' => $model->competition->id]]; $this->params['breadcrumbs'][] = $this->title; ?> <div class="registration-view"> <?php echo DetailView::widget(['model' => $model, 'panel' => ['heading' => '<h3>' . $this->title . '</h3>'], 'attributes' => [['attribute' => 'competition_id', 'value' => $model->competition->name], ['attribute' => 'competition_id', 'value' => $model->competition->competition_type], ['attribute' => 'status', 'type' => DetailView::INPUT_DROPDOWN_LIST, 'items' => $model::getLocalizedConstants('STATUS_'), 'value' => Yii::t('igolf', $model->status)], ['attribute' => 'created_at', 'displayOnly' => true], ['attribute' => 'updated_at', 'displayOnly' => true]]]); ?> </div>
use common\models\SubSector; use common\models\PlanOperativo; use common\models\ObjetivosHistoricos; use common\models\ObjetivosNacionales; use common\models\ObjetivosEstrategicos; use common\models\ObjetivosGenerales; use common\models\Ambito; //Iconos $icons = ['crear' => '<span class="glyphicon glyphicon-file" aria-hidden="true"></span>', 'editar' => '<span class="glyphicon glyphicon-pencil" aria-hidden="true"></span>', 'eliminar' => '<span class="glyphicon glyphicon-remove" aria-hidden="true"></span>', 'recargar' => '<span class="glyphicon glyphicon-repeat"></span>']; CrudAsset::register($this); ?> <div class="proyecto-view "> <!-- Widget con los datos --> <?php echo DetailView::widget(['model' => $model, 'mode' => 'view', 'fadeDelay' => 0, 'bordered' => true, 'striped' => true, 'condensed' => true, 'responsive' => true, 'deleteOptions' => ['params' => ['id' => $model->id, 'kvdelete' => true]], 'attributes' => ['id', 'codigo_proyecto', 'codigo_sne', ['attribute' => 'nombre', 'type' => DetailView::INPUT_TEXTAREA, 'options' => ['rows' => '6', 'style' => 'width:50%']], ['label' => $model->getAttributeLabel('fecha_inicio'), 'attribute' => 'fecha_inicio', 'type' => DetailView::INPUT_DATE, 'options' => ['style' => 'width:47%'], 'widgetOptions' => ['pluginOptions' => ['autoclose' => true, 'format' => 'dd/mm/yyyy']]], ['label' => $model->getAttributeLabel('fecha_fin'), 'attribute' => 'fecha_fin', 'type' => DetailView::INPUT_DATE, 'options' => ['style' => 'width:47%'], 'widgetOptions' => ['pluginOptions' => ['autoclose' => true, 'format' => 'dd/mm/yyyy']]], ['label' => $model->getAttributeLabel('estatus_proyecto'), 'attribute' => 'estatus_proyecto', 'value' => $model->nombreEstatusProyecto, 'type' => DetailView::INPUT_SELECT2, 'widgetOptions' => ['data' => ArrayHelper::map(EstatusProyecto::find()->all(), 'id', 'estatus'), 'options' => ['placeholder' => 'Seleccione'], 'pluginOptions' => ['allowClear' => true, 'width' => '50%']]], ['label' => $model->getAttributeLabel('situacion_presupuestaria'), 'attribute' => 'situacion_presupuestaria', 'value' => SituacionPresupuestaria::find()->where(['id' => $model->situacion_presupuestaria])->one()->situacion, 'type' => DetailView::INPUT_SELECT2, 'widgetOptions' => ['data' => ArrayHelper::map(SituacionPresupuestaria::find()->all(), 'id', 'situacion'), 'options' => ['placeholder' => 'Seleccione'], 'pluginOptions' => ['allowClear' => true, 'width' => '50%']]], ['label' => $model->getAttributeLabel('monto_proyecto'), 'attribute' => 'monto_proyecto', 'value' => $model->bolivarMonto, 'type' => DetailView::INPUT_MONEY, 'widgetOptions' => []], ['attribute' => 'descripcion', 'type' => DetailView::INPUT_TEXTAREA, 'options' => ['rows' => '6', 'style' => 'width:50%']], ['label' => $model->getAttributeLabel('sector'), 'attribute' => 'sector', 'value' => $model->nombreSector, 'type' => DetailView::INPUT_SELECT2, 'widgetOptions' => ['data' => ArrayHelper::map(Sector::find()->all(), 'id', 'sector'), 'options' => ['placeholder' => 'Seleccione'], 'pluginOptions' => ['allowClear' => true, 'width' => '50%']]], ['label' => $model->getAttributeLabel('sub_sector'), 'attribute' => 'sub_sector', 'value' => $model->nombreSubSector, 'type' => DetailView::INPUT_SELECT2, 'widgetOptions' => ['data' => ArrayHelper::map(SubSector::find()->all(), 'id', 'sub_sector'), 'options' => ['placeholder' => 'Seleccione'], 'pluginOptions' => ['allowClear' => true, 'width' => '50%']]], ['label' => $model->getAttributeLabel('plan_operativo'), 'attribute' => 'plan_operativo', 'value' => PlanOperativo::find()->where(['id' => $model->plan_operativo])->one()->plan_operativo, 'type' => DetailView::INPUT_SELECT2, 'widgetOptions' => ['data' => ArrayHelper::map(PlanOperativo::find()->all(), 'id', 'plan_operativo'), 'options' => ['placeholder' => 'Seleccione'], 'pluginOptions' => ['allowClear' => true, 'width' => '50%']]], ['label' => 'Objetivo Historico', 'value' => $historico->objetivo_historico, 'options' => ['style' => 'width:50%']], ['label' => 'Objetivo Nacional', 'value' => $nacional->objetivo_nacional, 'options' => ['style' => 'width:50%']], ['label' => 'Objetivo Estratégico', 'value' => $estrategico->objetivo_estrategico, 'options' => ['style' => 'width:50%']], ['label' => $model->getAttributeLabel('objetivo_general'), 'attribute' => 'objetivo_general', 'value' => ObjetivosGenerales::find()->where(['id' => $model->objetivo_general])->one()->objetivo_general, 'type' => DetailView::INPUT_SELECT2, 'widgetOptions' => ['data' => ArrayHelper::map(ObjetivosGenerales::find()->all(), 'id', 'objetivo_general'), 'options' => ['placeholder' => 'Seleccione'], 'pluginOptions' => ['allowClear' => true, 'width' => '50%']]], ['attribute' => 'objetivo_estrategico_institucional', 'type' => DetailView::INPUT_TEXTAREA, 'options' => ['rows' => '6', 'style' => 'width:50%']], ['label' => $model->getAttributeLabel('ambito'), 'attribute' => 'ambito', 'value' => $model->idAmbito->ambito, 'type' => DetailView::INPUT_SELECT2, 'widgetOptions' => ['data' => ArrayHelper::map(Ambito::find()->all(), 'id', 'ambito'), 'options' => ['placeholder' => 'Seleccione'], 'pluginOptions' => ['allowClear' => true, 'width' => '50%']]]], 'panel' => ['type' => 'primary', 'heading' => '<i class="fa fa-list"></i> Datos Básicos']]); ?> </div> <!-- LOCALIZACION --> <div class="panel panel-info" id="localizacion"> <div class="panel-heading"> <h3 class="panel-title"><i class="glyphicon glyphicon-map-marker"></i> Localización</h3> </div> <div class="panel-body"> <?php echo GridView::widget(['id' => 'crud-datatable', 'dataProvider' => $localizacion, 'pjax' => true, 'columns' => require __DIR__ . '/_localizacion.php', 'toolbar' => [['content' => Html::a($icons['crear'] . ' Nuevo', ['proyecto-localizacion/create', 'proyecto' => $model->id, 'ambito' => $model->ambito], ['role' => 'modal-remote', 'title' => 'Nuevo', 'class' => 'btn btn-default']) . Html::a($icons['recargar'] . ' Refrescar', ['proyecto/view', 'id' => $model->id], ['data-pjax' => 1, 'class' => 'btn btn-default', 'title' => 'Reset Grid']) . '{toggleData}' . '{export}']], 'striped' => true, 'condensed' => true, 'responsive' => true, 'panel' => ['type' => 'default', 'before' => '<em>* Resize table columns just like a spreadsheet by dragging the column edges.</em>', 'after' => BulkButtonWidget::widget(['buttons' => Html::a('<i class="glyphicon glyphicon-trash"></i> Delete All', ["bulk-delete"], ["class" => "btn btn-danger btn-xs", 'role' => 'modal-remote-bulk', 'data-confirm' => false, 'data-method' => false, 'data-request-method' => 'post', 'data-confirm-title' => 'Are you sure?', 'data-confirm-message' => 'Are you sure want to delete this item'])]) . '<div class="clearfix"></div>']]); ?> </div> </div>
<div class="order-view"> <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 $isNotes = $model->notes ? true : false; ?> <?php echo DetailView::widget(['model' => $model, 'attributes' => ['id', 'phone', 'email:email', ['visible' => false, 'label' => 'Notes', 'value' => $model->notes], 'created_at:datetime', 'updated_at:datetime', 'status'], 'hAlign' => DetailView::ALIGN_LEFT]); ?> <?php foreach ($model->orderItems as $item) { ?> <h4>PRODUCT:</h4> <?php echo DetailView::widget(['model' => $item, 'attributes' => ['title', 'price', 'quantity'], 'hAlign' => DetailView::ALIGN_LEFT]); ?> <?php } ?> </div>
use lukisongroup\hrd\models\Employe; use kartik\detail\DetailView; use yii\bootstrap\Modal; use kartik\widgets\ActiveField; use kartik\widgets\ActiveForm; use kartik\builder\Form; use kartik\icons\Icon; use kartik\widgets\Growl; $this->sideCorp = 'ubudsatu.com'; /* Title Select Company pada header pasa sidemenu/menu samping kiri */ $this->sideMenu = 'admin'; /* kd_menu untuk list menu pada sidemenu, get from table of database */ $this->title = Yii::t('app', 'UbudSatu'); /* title pada header page */ ?> <div class="panel panel-default" style="margin-top: 0px"> <div class="panel-body"> <?php $Emp_MDL = Employe::find()->where(['EMP_ID' => $model->EMP_ID])->orderBy('EMP_NM')->one(); if (count($Emp_MDL) == 0) { $Val_Emp = 'none'; } else { $Val_Emp = $Emp_MDL->EMP_NM; } $attribute = [['attribute' => 'id', 'options' => ['readonly' => true]], ['attribute' => 'username', 'options' => ['readonly' => true]], ['attribute' => 'auth_key'], ['label' => 'Employe Name', 'attribute' => 'EMP_ID', 'format' => 'raw', 'value' => Html::a($Val_Emp, '#', ['class' => 'kv-author-link']), 'type' => DetailView::INPUT_SELECT2, 'widgetOptions' => ['data' => ArrayHelper::map(Employe::find()->orderBy('EMP_NM')->asArray()->all(), 'EMP_ID', 'EMP_NM'), 'options' => ['placeholder' => 'Select ...'], 'pluginOptions' => ['allowClear' => true]]]]; echo DetailView::widget(['model' => $model, 'condensed' => true, 'hover' => true, 'mode' => DetailView::MODE_VIEW, 'panel' => ['heading' => $model->username . '| ' . $model->EMP_ID, 'type' => DetailView::TYPE_INFO], 'attributes' => $attribute, 'deleteOptions' => ['url' => ['delete', 'id' => $model->id], 'data' => ['confirm' => Yii::t('app', 'Apakah Anda yakin menghapus akun :' . $model->username . ' ?'), 'method' => 'post']]]); ?> </div> </div>
use common\models\Hole; use common\models\Course; use common\models\Tees; use common\models\Competition; use yii\data\ActiveDataProvider; use yii\helpers\ArrayHelper; use yii\helpers\Html; use yii\helpers\Url; use kartik\detail\DetailView; /* @var $this yii\web\View */ /* @var $model app\models\Tees */ $this->title = $model->name; $this->params['breadcrumbs'][] = ['label' => Yii::t('igolf', 'Facilities'), 'url' => ['facility/index']]; $this->params['breadcrumbs'][] = ['label' => $model->course->facility->name, 'url' => ['facility/view', 'id' => $model->course->facility_id]]; $this->params['breadcrumbs'][] = ['label' => $model->course->name, 'url' => ['course/view', 'id' => $model->course->id]]; $this->params['breadcrumbs'][] = $this->title . ' (' . Yii::t('igolf', ucfirst($model->color)) . ')'; ?> <div class="tees-view"> <?php echo DetailView::widget(['model' => $model, 'panel' => ['heading' => '<h2>' . $model->name . '</h2>'], 'labelColOptions' => ['style' => 'width: 30%'], 'attributes' => [['attribute' => 'course_id', 'type' => DetailView::INPUT_DROPDOWN_LIST, 'label' => Yii::t('igolf', 'Course'), 'items' => ArrayHelper::map(Course::find()->asArray()->all(), 'id', 'name'), 'value' => $model->course->name], 'name', ['attribute' => 'color', 'type' => DetailView::INPUT_DROPDOWN_LIST, 'items' => Yii::$app->params['tees_colors'], 'value' => Yii::t('igolf', ucfirst($model->color))], 'par', ['attribute' => 'holes', 'type' => DetailView::INPUT_DROPDOWN_LIST, 'items' => array(18 => '18', 9 => '9')], ['attribute' => 'gender', 'type' => DetailView::INPUT_DROPDOWN_LIST, 'items' => Tees::getLocalizedConstants('GENDER_')], ['attribute' => 'category', 'type' => DetailView::INPUT_DROPDOWN_LIST, 'items' => Tees::getLocalizedConstants('CATEGORY_')], ['attribute' => 'front_back', 'type' => DetailView::INPUT_DROPDOWN_LIST, 'items' => Tees::getLocalizedConstants('TEE_'), 'visible' => $model->holes == 9], 'course_rating', 'slope_rating']]); ?> <?php //TabularForm requires that dataProvider is build from Model::find() $dataProvider = new ActiveDataProvider(['query' => $model->getHoles()]); echo $this->render('../hole/_updates', ['dataProvider' => $dataProvider, 'tees' => $model]); ?> </div>
?> </h1> </div> </div> <div class="kv-panel-before"> <p> <?php echo Html::a(Yii::t('rbac-admin', 'Update'), ['update', 'id' => $model->name], ['class' => 'btn btn-primary']); ?> <?php echo Html::a(Yii::t('rbac-admin', 'Delete'), ['delete', 'id' => $model->name], ['class' => 'btn btn-danger', 'data-confirm' => Yii::t('rbac-admin', 'Are you sure to delete this item?'), 'data-method' => 'post']); ?> </p> </div> <?php echo DetailView::widget(['model' => $model, 'attributes' => ['name', 'description:ntext', 'ruleName', 'data:ntext']]); ?> <div class="col-lg-5"> <div class="form-group"> <label class="col-md-3 control-label" for="example-text-input"><?php echo Yii::t('rbac-admin', 'Avaliable'); ?> </label> <div class="col-md-9"> <?php echo Html::textInput('search_av', '', ['class' => 'role-search form-control', 'data-target' => 'avaliable']) . '<br>'; echo Html::listBox('roles', '', $avaliable, ['id' => 'avaliable', 'multiple' => true, 'size' => 20, 'style' => 'width:100%']); ?> </div> </div>
$this->params['breadcrumbs'][] = ['label' => Yii::t('google_analytics', 'Add-ons'), 'url' => ['/addons']]; $this->params['breadcrumbs'][] = ['label' => Yii::t('google_analytics', 'Google Analytics'), 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; ?> <div class="ga-view box box-big box-light"> <div class="pull-right" style="margin-top: -5px"> <?php echo Html::a('<span class="glyphicon glyphicon-pencil"></span> ', ['update', 'id' => $model->id], ['title' => Yii::t('google_analytics', 'Update'), 'class' => 'btn btn-sm btn-info']); ?> <?php echo Html::a('<span class="glyphicon glyphicon-bin"></span> ', ['delete', 'id' => $model->id], ['title' => Yii::t('google_analytics', 'Delete'), 'class' => 'btn btn-sm btn-danger', 'data' => ['confirm' => Yii::t('google_analytics', 'Are you sure you want to delete this tracking configuration? All data related to this item will be deleted. This action cannot be undone.'), 'method' => 'post']]); ?> </div> <div class="box-header"> <h3 class="box-title"><?php echo Yii::t('google_analytics', 'Form Tracking'); ?> <span class="box-subtitle"><?php echo $model->id; ?> </span> </h3> </div> <?php echo DetailView::widget(['model' => $model, 'attributes' => ['id', ['attribute' => 'form', 'format' => 'raw', 'value' => Html::encode($model->form->name)], 'tracking_id', 'tracking_domain', ['attribute' => 'status', 'format' => 'raw', 'value' => $model->status === 1 ? '<span class="label label-success"> ' . Yii::t('google_analytics', 'ON') . ' </span>' : '<span class="label label-danger"> ' . Yii::t('google_analytics', 'OFF') . ' </span>', 'type' => DetailView::INPUT_SWITCH, 'widgetOptions' => ['pluginOptions' => ['onText' => Yii::t('google_analytics', 'ON'), 'offText' => Yii::t('google_analytics', 'OFF')]]], ['attribute' => 'anonymize_ip', 'format' => 'raw', 'value' => $model->anonymize_ip === 1 ? '<span class="label label-success"> ' . Yii::t('google_analytics', 'ON') . ' </span>' : '<span class="label label-danger"> ' . Yii::t('google_analytics', 'OFF') . ' </span>', 'type' => DetailView::INPUT_SWITCH, 'widgetOptions' => ['pluginOptions' => ['onText' => Yii::t('google_analytics', 'ON'), 'offText' => Yii::t('google_analytics', 'OFF')]]]]]); ?> </div>
use ubud\dashboard\models\Warga_data; //print_r($dpDataProvider); //$model=$dpDataProvider->getModels(); //$modelDW=$model!=''?$model[0]:false; //print_r($cntkk); /*COUNT DATA WARGA*/ if ($model != '0') { $attKK = [['group' => true, 'label' => 'SUMMARY DATA WARGA', 'rowOptions' => ['class' => 'info']], ['attribute' => $id == 1 ? 'Rt1_Cntkk' : ($id == 2 ? 'Rt2_Cntkk' : ($id == 3 ? 'Rt3_Cntkk' : ($id == 4 ? 'Rt4_Cntkk' : ($id == 11 ? 'Rw_Cntkk' : '0')))), 'label' => 'Jumlah.KK', 'labelColOptions' => ['style' => 'text-align:right;width: 40%'], 'options' => ['readonly' => true]], ['label' => 'Total Warga', 'value' => '0', 'labelColOptions' => ['style' => 'text-align:right;width: 40%'], 'options' => ['readonly' => true]]]; $dtInfoKK = DetailView::widget(['model' => $model, 'attributes' => $attKK]); } else { $dtInfoKK = 'No Data'; } /*COUNT PROPERTY*/ if ($model != '0') { $attPeroperty = [['group' => true, 'label' => 'SUMMARY DATA RUMAH', 'rowOptions' => ['class' => 'info']], ['attribute' => $id == 1 ? 'Rt1_Cntrumah_milik' : ($id == 2 ? 'Rt2_Cntrumah_milik' : ($id == 3 ? 'Rt3_Cntrumah_milik' : ($id == 4 ? 'Rt4_Cntrumah_milik' : ($id == 11 ? 'Rw_Cntrumah_milik' : '0')))), 'label' => 'MILIK SENDIRI', 'labelColOptions' => ['style' => 'text-align:right;width: 40%'], 'options' => ['readonly' => true]], ['attribute' => $id == 1 ? 'Rt1_Cntrumah_kontrak' : ($id == 2 ? 'Rt2_Cntrumah_kontrak' : ($id == 3 ? 'Rt3_Cntrumah_kontrak' : ($id == 4 ? 'Rt4_Cntrumah_kontrak' : ($id == 11 ? 'Rw_Cntrumah_kontrak' : '0')))), 'label' => 'KONTRAK', 'labelColOptions' => ['style' => 'text-align:right;width: 40%'], 'options' => ['readonly' => true]], ['attribute' => $id == 1 ? 'Rt1_Cntrumah_kosong' : ($id == 2 ? 'Rt2_Cntrumah_kosong' : ($id == 3 ? 'Rt3_Cntrumah_kosong' : ($id == 4 ? 'Rt4_Cntrumah_kosong' : ($id == 11 ? 'Rw_Cntrumah_kosong' : '0')))), 'label' => 'ROSONG', 'labelColOptions' => ['style' => 'text-align:right;width: 40%'], 'options' => ['readonly' => true]]]; $dtInfoPeroperty = DetailView::widget(['model' => $model, 'attributes' => $attPeroperty]); } else { $dtInfoPeroperty = 'No Data'; } ?> <div class="row"> <div class="col-lg-6"> <?php echo $dtInfoKK; ?> </div> <div class="col-lg-6"> <?php echo $dtInfoPeroperty; ?> </div>