?> <?php echo $form->field($model, 'email_work')->textInput(['maxlength' => 255]); ?> <?php echo $form->field($model, 'email_private')->textInput(['maxlength' => 255]); ?> <?php echo $form->field($model, 'jabber')->textInput(['maxlength' => 255]); ?> <?php echo $form->field($model, 'icq')->widget(MaskedInput::classname(), ['mask' => '999 999 999', 'clientOptions' => ['removeMaskOnSubmit' => true]]); ?> <?php echo $form->field($model, 'skype')->textInput(['maxlength' => 255]); ?> <?php echo $form->field($model, 'weight')->textInput(); ?> <?php $listdata = ArrayHelper::map(Status::find()->all(), 'id', 'title'); ?> <?php echo $form->field($model, 'status_id')->dropDownList($listdata, ['class' => 'form-control select']);
</div> <div class="col-md-3 col-xs-3"> <span>จังหวัด</span><?php echo $form->field($model, 'province')->textInput(['placeholder' => 'จังหวัด'])->label(false); ?> </div> <div class="col-md-3 col-xs-3"> <span>ประเทศ</span><?php echo $form->field($model, 'country')->textInput(['placeholder' => 'ประเทศ'])->label(false); ?> </div> </div> <div class="row"> <div class="col-md-4 col-xs-4"> <span>โทรศัพท์</span><?php echo $form->field($model, 'telephone')->widget(\yii\widgets\MaskedInput::classname(), ['mask' => '99-9999-9999'])->label(false); ?> </div> <div class="col-md-4 col-xs-4"><span>มีความประสงค์ขออนุญาตนำรถที่จดทะเบียนในประเทศ</span> <?php echo $form->field($model, 'car_enroll_country')->textInput(['maxlength' => true])->label(false); ?> </div> <div class="col-md-4 col-xs-4"><span>หมายเลขทะเบียน</span> <?php echo $form->field($model, 'plates_number')->textInput(['maxlength' => true])->label(false); ?> </div> </div> <div class="row"> <div class="col-xs-6"><span>เข้ามาในราชอาณาจักรเป็นการชั่วคราวเพื่อใช้ในการท่องเที่ยว ตั้งแต่วันที่ </span>
echo $form->field($model, 'title')->label(false)->radioList(ArrayHelper::map(Title::find()->all(), 'id', 'title')); ?> </div> <div class="col-md-3"> <?php echo $form->field($model, 'name')->textInput(['maxlength' => true]); ?> </div> <div class="col-md-3"> <?php echo $form->field($model, 'lname')->textInput(['maxlength' => true]); ?> </div> <div class="col-md-3"> <?php echo $form->field($model, 'id_no')->widget(\yii\widgets\MaskedInput::classname(), ['mask' => '9-9999-99999-99-9'])->label(); ?> </div> </div> <div class="row"> <div class="col-md-3"> <?php // $form->field($model, 'off_code')->textInput(['maxlength' => true]) ?> <?php echo $form->field($model, 'off_code')->widget(Select2::classname(), ['data' => ArrayHelper::map(Province::find()->where(['BOR_FLAG' => 1])->all(), 'PRV_CODE', 'PRV_DESC'), 'options' => ['placeholder' => 'เลือกจังหวัด ...', 'id' => 'ddl-province-start'], 'pluginOptions' => ['allowClear' => true]])->label(); ?> </div> <div class="col-md-3"> <?php // $form->field($model, 'br_code')->textInput(['maxlength' => true])
<div class="banned-ip-form"> <?php $form = ActiveForm::begin(); ?> <?php echo $form->field($model, 'title')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'start_ip_num_value')->widget(MaskedInput::classname(), ['mask' => '9[9][9].9[9][9].9[9][9].9[9][9]']); ?> <?php echo $form->field($model, 'end_ip_num_value')->widget(MaskedInput::classname(), ['mask' => '9[9][9].9[9][9].9[9][9].9[9][9]']); ?> <?php echo $form->field($model, 'is_active')->widget(CheckboxX::classname(), ['pluginOptions' => ['threeState' => false]]); ?> <div class="form-group"> <?php echo Html::submitButton($model->isNewRecord ? 'Добавить' : 'Изменить', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']); ?> </div> <?php ActiveForm::end(); ?>
</div> </div> <div class="col-xs-6"> <div class="form-group"> <label class="control-label" for="dynamicmodel-total_komisi">Total Komisi</label> <?php echo Html::input('text', 'DynamicModel[total_komisi]', '0.00', ['class' => 'form-control', 'id' => 'dynamicmodel-total_komisi', 'readonly' => 'true', 'style' => 'text-align:right;']); ?> </div> </div> </div> </div> <div class="col-xs-6"> <div class="form-group"> <?php echo $form->field($simulation, 'jml_saham')->widget(MaskedInput::classname(), ['clientOptions' => ['alias' => 'numeric', 'groupSeparator' => ',', 'radixPoint' => '.', 'autoGroup' => true, 'removeMaskOnSubmit' => true]]); ?> </div> <div class="form-group"> <label class="control-label" for="dynamicmodel-range">Range</label> <?php echo Html::input('text', 'DynamicModel[range]', '0.00', ['class' => 'form-control', 'id' => 'dynamicmodel-range', 'readonly' => 'true', 'style' => 'text-align:right;']); ?> </div> <div class="form-group"> <label class="control-label" for="dynamicmodel-total_harga">Total Harga</label> <?php echo Html::input('text', 'DynamicModel[total_harga]', '0.00', ['class' => 'form-control', 'id' => 'dynamicmodel-total_harga', 'readonly' => 'true', 'style' => 'text-align:right;']); ?> </div> </div>
<div class="col-md-3 col-xs-3"> <span>จังหวัด</span><?php echo $form->field($model, 'province')->textInput(['placeholder' => 'จังหวัด'])->label(false); ?> </div> <div class="col-md-3 col-xs-3"> <span>ประเทศ</span> <?php echo $form->field($model, 'country')->widget(Select2::classname(), ['data' => ArrayHelper::map(Countries::find()->all(), 'id', 'country_name'), 'options' => ['placeholder' => 'เลือกประเทศ ...', 'id' => 'ddl-countries'], 'pluginOptions' => ['allowClear' => true]])->label(false); ?> </div> </div> <div class="row"> <div class="col-md-4 col-xs-4"> <span>โทรศัพท์</span><?php echo $form->field($model, 'telephone')->widget(\yii\widgets\MaskedInput::classname(), ['mask' => '99-9999-9999'])->hint('เบอร์โทรศัพท์ ต้องไม่เป็นค่าว่าง')->label(false); ?> </div> <div class="col-md-4 col-xs-4"><span>มีความประสงค์ขออนุญาตนำรถที่จดทะเบียนในประเทศ</span> <?php echo $form->field($model, 'car_enroll_country')->textInput(['maxlength' => true])->label(false); ?> </div> <div class="col-md-4 col-xs-4"><span>หมายเลขทะเบียน</span> <?php echo $form->field($model, 'plates_number')->textInput(['maxlength' => true])->label(false); ?> </div> </div> <div class="row"> <div class="col-xs-6"><span>เข้ามาในราชอาณาจักรเป็นการชั่วคราวเพื่อใช้ในการท่องเที่ยว ตั้งแต่วันที่ </span>
<div class="row"> <div class="col-sm-4"> <?php echo $form->field($model, 'job_firm'); ?> <?php echo $form->field($model, 'job_role'); ?> </div> <div class="col-sm-3"> <?php echo $form->field($model, 'job_phone')->widget(\yii\widgets\MaskedInput::classname(), ['mask' => ['(99)9999-9999']]); ?> <?php echo $form->field($model, 'job_admission_date')->widget(\yii\widgets\MaskedInput::classname(), ['mask' => ['99/99/9999']]); ?> </div> </div> <hr/> <?php echo $form->field($model, 'reference')->textarea(['rows' => 4])->hint('<i class="fa fa-exclamation-triangle"></i> Favor informar 2 nomes com os respectivos telefones'); ?> <div class="form-group"> <?php echo Html::submitButton($model->isNewRecord ? '<i class="fa fa-share"></i> Próxima Etapa' : '<i class="fa fa-floppy-o"></i> Gravar', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-success']); ?> </div>
</div> <div style="clear:both;"></div> </div> <div class="row tech-char"> <div class="ab_reg"> Технические характеристики </div> <?php echo $form->field($model, 'year')->widget(MaskedInput::classname(), ['mask' => '9{1,4}', 'clientOptions' => ['greedy' => true, 'alias' => 'year']])->textInput(['maxlength' => true, 'class' => 'inptxt auto-width']); ?> <?php echo $form->field($model, 'power')->widget(MaskedInput::classname(), ['mask' => '9{1,3}', 'clientOptions' => ['greedy' => true, 'alias' => 'power']])->textInput(['maxlength' => true, 'class' => 'inptxt auto-width']); ?> <?php echo $form->field($model, 'trans')->radioList($model->getTransList(), ['default' => '1']); ?> </div> <div class="row tech-char"> <?php echo $form->field($model, 'conditioner')->radioList(['0' => 'Отсутствует', '1' => 'Есть']); ?> </div> <div class="row tech-char">
?> </div> </div> <?php echo $form->field($model, 'NAMA')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'ALAMAT')->textInput(['maxlength' => true]); ?> <div class="row"> <div class="col-xs-6 col-sm-4"> <?php echo $form->field($model, 'TELP')->widget(MaskedInput::classname(), ['mask' => '9', 'clientOptions' => ['repeat' => 10, 'greedy' => false, 'removeMaskOnSubmit' => true]]); ?> </div> </div> <div class="row"> <div class="col-xs-6 col-sm-4"> <?php echo $form->field($model, 'HP')->textInput(['maxlength' => true]); ?> </div> </div> <div class="row"> <div class="col-xs-6 col-sm-4"> <?php echo $form->field($model, 'CP')->textInput(['maxlength' => true])->label('Kontak'); ?>
<?php /** * @copyright Copyright © Kartik Visweswaran, communityii, 2014 - 2015 * @package communityii/yii2-user * @version 1.0.0 * @see https://github.com/communityii/yii2-user */ use kartik\select2\Select2; use yii\widgets\MaskedInput; /** * @var comyii\user\models\UserProfile $profile */ echo $form->field($profile, 'first_name')->textInput(['maxlength' => true]); echo $form->field($profile, 'last_name')->textInput(['maxlength' => true]); ?> <div class="row"> <div class="col-md-4"> <?php echo $form->field($profile, 'gender')->widget(Select2::classname(), ['data' => $profile->genderList]); ?> </div> <div class="col-md-8"> <?php echo $form->field($profile, 'birth_date')->widget(MaskedInput::classname(), ['clientOptions' => ['alias' => 'yyyy-mm-dd']]); ?> </div> </div>
echo $form->field($modelat, 'UNITAT')->textInput(['maxlength' => true])->widget(MaskedInput::classname(), ['clientOptions' => ['alias' => 'numeric', 'groupSeparator' => ',', 'radixPoint' => '.', 'autoGroup' => true, 'removeMaskOnSubmit' => true]])->label(false); ?> </td> <td> <?php echo Html::input('text', 'navat', number_format($modelat->NAVAT, 2), ['class' => 'form-control', 'id' => 'navat', 'readonly' => 'true', 'style' => 'text-align:right;']); ?> </td> </tr> <tr> <th class="tgl_transaksi text-center"><?php echo $model->TGL; ?> </th> <td><?php echo $form->field($model, 'UNIT')->textInput(['maxlength' => true])->widget(MaskedInput::classname(), ['clientOptions' => ['alias' => 'numeric', 'groupSeparator' => ',', 'radixPoint' => '.', 'autoGroup' => true, 'removeMaskOnSubmit' => true]])->label(false); ?> </td> <td> <?php echo Html::input('text', 'nav', number_format($model->NAV, 2), ['class' => 'form-control', 'id' => 'nav', 'readonly' => 'true', 'style' => 'text-align:right;']); ?> </td> </tr> </tbody> <tfoot> <tr style="border-top:2px solid #ccc;"> <th>Pertumbuhan (%)</th> <td> </td> <td>
<?php $form = ActiveForm::begin(); ?> <?= $form->field($model, 'loja_idloja', ['template' => ''])->hiddenInput() ?> <?php echo $form->errorSummary($model); ?> <div class="bs-callout bs-callout-info"> <h4>Etapa 1 - Informações da venda</h4> <div class="row"> <!--<div class="col-md-4"> <? //= $form->field($model, 'data')->widget(DateControl::classname(), ['type' => DateControl::FORMAT_DATE, 'options' => ['pluginOptions' => ['autoclose' => true]]]) ?> </div>--> <? $form->field($model, 'data')->widget(\yii\widgets\MaskedInput::classname(), ['clientOptions' => ['alias' => 'date', 'class' => 'hidden']]) ?> <div class="col-md-4"> <?= $form->field($model, 'cliente_idcliente')->widget(Select2::classname(), [ 'pluginOptions' => [ 'allowClear' => true, 'minimumInputLength' => 2, 'ajax' => [ 'url' => $url_cliente, 'dataType' => 'json', 'data' => new JsExpression('function(params) { return {search:params.term};}') ], ], 'options' => ['placeholder' => 'Selecione um cliente...'], ]) ?>
?> <?php echo $form->field($model, 'phone_1', ['template' => $template_phone])->widget(MaskedInput::classname(), ['mask' => '(99) 999-9999', 'options' => ['class' => 'form-control', 'placeholder' => 'Телефон']])->label(false); ?> <?php echo $form->field($model, 'phone_2', ['template' => $template_phone])->widget(MaskedInput::classname(), ['mask' => '(99) 999-9999', 'options' => ['class' => 'form-control', 'placeholder' => 'Телефон']])->label(false); ?> <?php echo $form->field($model, 'phone_3', ['template' => $template_phone])->widget(MaskedInput::classname(), ['mask' => '(99) 999-9999', 'options' => ['class' => 'form-control', 'placeholder' => 'Телефон']])->label(false); ?> <?php echo $form->field($model, 'phone_4', ['template' => $template_phone])->widget(MaskedInput::classname(), ['mask' => '(99) 999-9999', 'options' => ['class' => 'form-control', 'placeholder' => 'Телефон']])->label(false); ?> <?php echo $form->field($model, 'status')->checkbox(); ?> </div> <div class="col-md-8"> <?php echo $form->field($model, 'description')->widget(\yii\imperavi\Widget::className(), ['plugins' => ['fullscreen', 'fontcolor', 'video'], 'options' => ['minHeight' => 400, 'maxHeight' => 400, 'buttonSource' => true, 'convertDivs' => false, 'removeEmptyTags' => false, 'imageUpload' => Yii::$app->urlManager->createUrl(['/file-storage/upload-imperavi'])]]); ?> </div> </div> <!-- --><?php //echo $form->field($model, 'price')->textInput(['maxlength' => true])
<?php echo $form->field($model, 'KOM_BELI')->widget(MaskedInput::classname(), ['clientOptions' => ['alias' => 'numeric', 'groupSeparator' => ',', 'radixPoint' => '.', 'autoGroup' => true, 'removeMaskOnSubmit' => true]]); ?> </div> </div> <div class="row"> <div class="col-md-3"> <?php echo $form->field($model, 'KOM_JUAL')->widget(MaskedInput::classname(), ['clientOptions' => ['alias' => 'numeric', 'groupSeparator' => ',', 'radixPoint' => '.', 'autoGroup' => true, 'removeMaskOnSubmit' => true]]); ?> </div> </div> <div class="row"> <div class="col-md-3"> <?php echo $form->field($model2, 'JML_LBRSAHAM')->widget(MaskedInput::classname(), ['clientOptions' => ['alias' => 'numeric', 'groupSeparator' => ',', 'radixPoint' => '.', 'autoGroup' => true, 'removeMaskOnSubmit' => true]])->label('Jml Saham / Lot'); ?> </div> </div> <div class="form-group"> <?php echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary', 'data-confirm' => "Apakah anda yakin akan menyimpan data ini?"]); ?> <?php echo Html::a('Close', ['site/index'], ['class' => 'btn btn-default', 'onclick' => ' if (confirm("Apakah yakin mau keluar dari halaman ini?")) { return true; } else{ return false; }
echo $this->render('partials/_chunkInput', ['model' => $model, 'form' => $form, 'attribute' => 'imageOverviewCamera', 'type' => EvidenceFileType::TYPE_IMAGE_OVERVIEW_CAMERA, 'uploadUrl' => $uploadUrl, 'acceptMimeTypes' => $acceptMimeTypes, 'maxFileSize' => $maxFileSize, 'maxChunkSize' => $maxChunkSize, 'dropZone' => $dropZone, 'handleUrl' => $handleUrl]); ?> <!-- --><?php //var_dump($model->infraction_date); die; ?> <?php echo $form->field($model, 'infraction_date')->widget(DatePicker::classname(), ['layout' => '{input}{picker}', 'options' => ['placeholder' => 'Enter infraction date ...'], 'pluginOptions' => ['format' => Yii::$app->params['date.view.format']]]); ?> <?php echo $form->field($model, 'lat')->widget(MaskedInput::classname(), ['mask' => '9[9[9]]\\º 9[9[9]]\' 9[9].9[9[9]]\\" a'])->hint('If the current value less than mask value, please use space key(on the keyboard) in order to move cursor to the next sub field! Latitude example 49º 59\' 36.6" N'); ?> <?php echo $form->field($model, 'lng')->widget(MaskedInput::classname(), ['mask' => '9[9[9]]\\º 9[9[9]]\' 9[9].9[9[9]]\\" a'])->hint('If the current value less than mask value, please use space key(on the keyboard) in order to move cursor to the next sub field! Longitude example 36º 13\' 49.378" E'); ?> <?php echo $form->field($model, 'state_id')->dropDownList(States::listData()); ?> <?php echo $form->field($model, 'license')->textInput(['maxlength' => true]); ?> <div class="form-group"> <div class="col-lg-offset-3 col-lg-8"> <?php echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-primary' : 'btn btn-primary']); ?> </div>
/* @var $model app\models\Student */ /* @var $form yii\widgets\ActiveForm */ ?> <div class="student-form"> <?php $form = ActiveForm::begin(); ?> <?php echo $form->field($model, 'name')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'email')->widget(MaskedInput::classname(), ['clientOptions' => ['alias' => 'email']]); ?> <?php echo $form->field($model, 'birthdate')->widget(DatePicker::className(), ['inline' => true, 'template' => '<div class="well well-sm" style="background-color: #fff; width:250px">{input}</div>', 'language' => 'ru', 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']]); ?> <?php echo $form->field($model, 'level')->dropDownList(Student::getLevelsList()); ?> <div class="form-group"> <?php echo Html::submitButton($model->isNewRecord ? 'Добавить' : 'Сохранить', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']); ?> </div>
$form = ActiveForm::begin(['id' => 'rent-form']); ?> <div style="margin-bottom: 10px;text-align: center;padding-left:0px;" class="des-calendar-top">2. Укажите информацию о себе</div> <div id="left-form-part" style="margin-left: 45px;"> <div class="row-input"> <?php echo $form->field($rentModel, 'name', ['template' => '{input}'])->textInput(['maxlength' => true, 'placeholder' => 'Имя/ФИО']); ?> </div> <div class="row-input"> <?php echo $form->field($rentModel, 'phone', ['template' => '{input}'])->widget(MaskedInput::classname(), ['clientOptions' => ['name' => 'phone', 'mask' => '8(999)999-9999', 'alias' => 'phone']], ['placeholder' => 'Телефон']); ?> </div> <?php /* <div class="row-input"> <?= $form->field($rentModel, 'email', ['template'=>'{input}'])->textInput(['maxlength' => true, 'placeholder'=> 'Укажите почту для напоминания']) ?> </div> */ ?> </div> <div id="right-form-part">
<div class="col-md-2"><?= $form->field($model, 'naturalidade_uf')->dropDownList([ 'RN' => 'RN', 'AC' => 'AC', 'AL' => 'AL', 'AP' => 'AP', 'AM' => 'AM', 'BA' => 'BA', 'CE' => 'CE', 'DF' => 'DF', 'ES' => 'ES', 'GO' => 'GO', 'MA' => 'MA', 'MT' => 'MT', 'MS' => 'MS', 'MG' => 'MG', 'PR' => 'PR', 'PB' => 'PB', 'PA' => 'PA', 'PE' => 'PE', 'PI' => 'PI', 'RJ' => 'RJ', 'RS' => 'RS', 'RO' => 'RO', 'RR' => 'RR', 'SC' => 'SC', 'SE' => 'SE', 'SP' => 'SP', 'TO' => 'TO', ], ['prompt' => '']) ?></div> <div class="col-md-2"><?= $form->field($model, 'estadocivil')->dropDownList([ 'Solteiro' => 'Solteiro', 'Casado' => 'Casado', 'Divorciado' => 'Divorciado', 'Viúvo' => 'Viúvo', 'U. Estável' => 'U. Estável', ], ['prompt' => '']) ?></div> <div class="col-md-3"><?= $form->field($model, 'profissao')->textInput(['maxlength' => true]) ?></div> <div class="col-md-2"><?= $form->field($model, 'renda')->widget(MaskMoney::classname()) ?></div> </div> <div class="row"> <div class="col-md-6"><?= $form->field($model, 'mae')->textInput(['maxlength' => true]) ?></div> <div class="col-md-6"><?= $form->field($model, 'pai')->textInput(['maxlength' => true]) ?></div> </div> <div class="row"> <div class="col-md-8"><?= $form->field($model, 'conjuge')->textInput(['maxlength' => true]) ?></div> <div class="col-md-4"><?= $form->field($model, 'telefone2')->widget(MaskedInput::classname(), ['mask' => '(99) 9 9999-9999']) ?></div> </div> <div class="row"> <div class="col-md-8"><?= $form->field($model, 'referencia1')->textInput(['maxlength' => true]) ?></div> <div class="col-md-4"><?= $form->field($model, 'telefone11')->widget(MaskedInput::classname(), ['mask' => '(99) 9 9999-9999']) ?></div> </div> <div class="row"> <div class="col-md-8"><?= $form->field($model, 'referencia2')->textInput(['maxlength' => true]) ?></div> <div class="col-md-4"><?= $form->field($model, 'telefone21')->widget(MaskedInput::classname(), ['mask' => '(99) 9 9999-9999']) ?></div> </div> </div> <div class="form-group"> <?= Html::submitButton($model->isNewRecord ? Yii::t('app', 'Cadastrar') : Yii::t('app', 'Atualizar'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> </div> <?php ActiveForm::end(); ?> </div> </div>
</div> </div> <?php $share = $lotshare * $model->JMLLOT; $bruto = $share * $model->HARGA; // 2. Perhitungan Total Komisi = kom_beli * harga * share / 100 $komisi_total = $model->KOM_BELI * $bruto / 100; // 1. Koreksi perhitungan total. Total = (jmlsaham * harga) + total komisi $netto = $bruto + $komisi_total; ?> <div class="row"> <div class="col-xs-6 col-sm-3"> <?php echo $form->field($model, 'KOM_BELI')->widget(MaskedInput::classname(), ['clientOptions' => ['alias' => 'numeric', 'groupSeparator' => ',', 'radixPoint' => '.', 'autoGroup' => true, 'removeMaskOnSubmit' => true]])->label('Komisi'); ?> </div> <div class="col-xs-6 col-sm-6"> <label class="control-label">Total Komisi</label> <?php echo Html::input('text', 'komisi-total', number_format($komisi_total, 2), ['class' => 'form-control', 'id' => 'komisi-total', 'readonly' => 'true', 'style' => 'text-align:right;']); ?> </div> <div class="col-xs-6 col-xs-offset-6 col-sm-3 col-sm-offset-0"> <label class="control-label">Harga Total</label> <?php echo Html::input('text', 'harga-total', number_format($netto, 2), ['class' => 'form-control', 'id' => 'harga-total', 'readonly' => 'true', 'style' => 'text-align:right;']); ?> <?php
echo $form->field($model, 'chw')->widget(Select2::classname(), ['data' => ArrayHelper::map(app\models\Provinces::find()->all(), 'PROVINCE_ID', 'PROVINCE_NAME'), 'language' => 'th', 'options' => ['placeholder' => 'เลือกจังหวัด ...'], 'pluginOptions' => ['allowClear' => true]]); ?> </div> <div class="col-xs-3 col-sm-3 col-md-3"> <?php echo $form->field($model, 'ampur')->widget(DepDrop::className(), ['data' => $amp, 'options' => ['placeholder' => '<--คลิกเลือกอำเภอ-->'], 'type' => DepDrop::TYPE_SELECT2, 'select2Options' => ['pluginOptions' => ['allowClear' => true]], 'pluginOptions' => ['depends' => ['employees-chw'], 'url' => yii\helpers\Url::to(['/employees/get-amp']), 'loadingText' => 'กำลังค้นข้อมูล...']]); ?> </div> <div class="col-xs-3 col-sm-3 col-md-3"> <?php echo $form->field($model, 'tumbon')->widget(DepDrop::className(), ['data' => $tum, 'options' => ['placeholder' => '<--คลิกเลือกตำบล-->'], 'type' => DepDrop::TYPE_SELECT2, 'select2Options' => ['pluginOptions' => ['allowClear' => true]], 'pluginOptions' => ['depends' => ['employees-chw', 'employees-ampur'], 'url' => yii\helpers\Url::to(['/employees/get-dist']), 'loadingText' => 'กำลังค้นข้อมูล...']]); ?> </div> <div class="col-xs-3 col-sm-3 col-md-3"> <?php echo $form->field($model, 'tel')->widget(\yii\widgets\MaskedInput::classname(), ['mask' => '999-999-9999']); ?> </div> <div class="col-xs-3 col-sm-3 col-md-3"> <?php echo $form->field($model, 'comein')->widget(DatePicker::className(), ['language' => 'th', 'dateFormat' => 'yyyy-MM-dd', 'clientOptions' => ['changeMonth' => true, 'changeYear' => true], 'options' => ['class' => 'form-control']]); ?> </div> <div class="col-xs-3 col-sm-3 col-md-3"> <?php echo $form->field($model, 'department_id')->widget(Select2::classname(), ['data' => ArrayHelper::map(Departments::find()->all(), 'id', 'name'), 'language' => 'th', 'options' => ['placeholder' => 'เลือกแผนก ...'], 'pluginOptions' => ['allowClear' => true]]); ?> </div> <div class="col-xs-3 col-sm-3 col-md-3"> <?php echo $form->field($model, 'education')->dropDownList(['ปริณญาตรี' => 'ปริณญาตรี', 'ปริณญาโท' => 'ปริณญาโท', 'สูงกว่าระดับปริณญาโทขึ้นไป' => 'สูงกว่าระดับปริณญาโทขึ้นไป', 'ปวส/อนุปริณญา' => 'ปวส/อนุปริณญา', 'มัธยมศึกษา6' => 'มัธยมศึกษา6', 'มัธยมศึกษา3' => 'มัธยมศึกษา3', 'ประถมศึกษา' => 'ประถมศึกษา'], ['prompt' => '']);
$listdata = ArrayHelper::map(User::find()->all(), 'id', 'last_name'); ?> <?php echo $form->field($model, 'user_id')->dropDownList($listdata, ['class' => 'form-control select', 'prompt' => 'Укажите руководителя']); ?> <?php $listdata = ArrayHelper::map(Department::find()->all(), 'id', 'title'); ?> <?php echo $form->field($model, 'department_id')->dropDownList($listdata, ['class' => 'form-control select', 'prompt' => 'Укажите подчинённость']); ?> <?php echo $form->field($model, 'phone')->widget(\yii\widgets\MaskedInput::classname(), ['mask' => '8 (999) 999-99-99']); ?> <?php echo $form->field($model, 'fax')->textInput(['maxlength' => 255]); ?> <?php echo $form->field($model, 'email')->textInput(['maxlength' => 255]); ?> <?php echo $form->field($model, 'weight')->textInput(); ?>