本文整理汇总了PHP中kartik\widgets\DatePicker::classname方法的典型用法代码示例。如果您正苦于以下问题:PHP DatePicker::classname方法的具体用法?PHP DatePicker::classname怎么用?PHP DatePicker::classname使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类kartik\widgets\DatePicker
的用法示例。
在下文中一共展示了DatePicker::classname方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
echo $form->field($model, 'amount', ['inputOptions' => ['class' => 'form-control', 'placeholder' => 'จำนวนที่รับเข้าระบบ', 'autocomplete' => 'off']])->textInput(['maxlength' => 10]);
?>
</div>
<div class="col-md-4">
<?php
echo $form->field($model, 'serial', ['inputOptions' => ['class' => 'form-control', 'placeholder' => 'SN:0123456789', 'autocomplete' => 'off']])->textInput(['maxlength' => 45]);
?>
</div>
<div class="col-md-4">
<?php
echo $form->field($model, 'warranty')->widget(Select2::classname(), ['data' => ArrayHelper::map(Comwarranty::find()->all(), 'id', 'name'), 'options' => ['placeholder' => 'การรับประกัน...'], 'pluginOptions' => ['allowClear' => true]]);
?>
</div>
<div class="col-md-4">
<?php
echo $form->field($model, 'addToSystem')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'เลือกวันที่ ...'], 'language' => 'th', 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd', 'todayHighlight' => true]]);
?>
</div>
<div class="col-md-4">
<?php
echo $form->field($model, 'dealer')->widget(Select2::classname(), ['data' => ArrayHelper::map(Comdealer::find()->all(), 'id', 'dealerName'), 'options' => ['placeholder' => 'ร้านค้า/ผู้จำหน่าย...'], 'pluginOptions' => ['allowClear' => true]]);
?>
</div>
<div class="col-md-3">
<?php
echo $form->field($model, 'location')->widget(Select2::classname(), ['data' => ArrayHelper::map(Section::find()->all(), 'id', 'name'), 'options' => ['placeholder' => 'หน่วยงาน/ฝ่าย/แผนก...'], 'pluginOptions' => ['allowClear' => true]]);
?>
</div>
<div class="col-md-5">
<?php
echo $form->field($model, 'status')->inline(true)->radiolist(['1' => 'กำลังใช้งาน', '2' => 'พร้อมใช้งาน', '3' => 'ส่งซ่อม', '4' => 'ชำรุด', '5' => 'จำหน่ายออก']);
示例2:
?>
<?php
echo $profile->profile_image . '<br>';
//echo $form->field($profile, 'profile_image');
echo $form->field($profile, 'profile_image')->widget(NewWidget::className(), ['uploadUrl' => Url::toRoute(['/user/user-profile/uploadphoto']), 'previewUrl' => $profile->module->ProfileImagePathPreview, 'tempPreviewUrl' => $profile->module->ProfileImageTempPathPreview, 'width' => 200, 'height' => 200]);
?>
<?php
echo $form->field($profile, 'first_name');
?>
<?php
echo $form->field($profile, 'last_name');
?>
<?php
echo $form->field($profile, 'gender')->dropDownList(['1' => 'Male', '2' => 'Female']);
?>
<?php
echo $form->field($profile, 'birth_date')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Enter birth date ...'], 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy/mm/dd']]);
?>
<div class="form-group">
<?php
echo Html::submitButton('Update', ['class' => 'btn btn-primary']);
?>
</div>
<?php
ActiveForm::end();
?>
</div>
</div>
示例3: JsExpression
?>
<?php
$template = '<div><p class="nikkes">{{value}}</p></div>';
echo $form->field($model, 'nikkes')->widget(Typeahead::classname(), ['options' => ['placeholder' => 'Ketik NIKKES yang diinginkan'], 'pluginOptions' => ['highlight' => true], 'dataset' => [['datumTokenizer' => "Bloodhound.tokenizers.obj.whitespace('value')", 'display' => 'value', 'templates' => ['notFound' => '<div class="text-danger" style="padding:0 8px"> Nikkes tidak terdaftar </div>', 'suggestion' => new JsExpression("Handlebars.compile('{$template}')")], 'remote' => ['url' => Url::to(['peserta/get-nikkes-list']) . '?q=%QUERY', 'wildcard' => '%QUERY'], 'limit' => 10]]]);
?>
<?php
echo $form->field($model, 'hak_kacamata_id')->widget(Select2::classname(), ['data' => $model->hakkacamataList, 'options' => ['placeholder' => 'Please Choose One', 'disabled' => true], 'pluginOptions' => ['allowClear' => true]]);
?>
<?php
echo $form->field($model, 'tgl_ambil')->widget(\kartik\widgets\DatePicker::classname(), ['options' => ['placeholder' => 'Choose Tanggal Pengambilan'], 'type' => \kartik\widgets\DatePicker::TYPE_COMPONENT_APPEND, 'pluginOptions' => ['autoclose' => true, 'format' => 'dd-M-yyyy']]);
?>
<div class="form-group">
<?php
echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
</div>
<?php
ActiveForm::end();
?>
</div>
示例4:
?>
<?php
echo $form->field($model, 'pontodereferencia')->textInput(['maxlength' => true]);
?>
<?php
echo $form->field($model, 'sexo')->textInput(['maxlength' => true]);
?>
<?php
echo $form->field($model, 'bairro_id')->dropDownList(ArrayHelper::map(\frontend\models\Bairro::find()->orderBy(['nome' => SORT_ASC])->all(), 'id', 'nome'), ['prompt' => 'Selecione']);
?>
<?php
echo $form->field($model, 'datanascimento')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Coloque a data...'], 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']]);
?>
<?php
echo $form->field($model, 'rg')->textInput(['maxlength' => true]);
?>
<?php
echo $form->field($model, 'telefone')->textInput(['maxlength' => true]);
?>
<?php
echo $form->field($model, 'endereco')->textInput(['maxlength' => true]);
?>
<?php
示例5:
// 'data' => $dropparentkategori
// ]);
//
// echo $form->field($model, 'CUST_KTG')->widget(DepDrop::classname(), [
// 'options' => [//'id'=>'customers-cust_ktg',
// 'placeholder' => 'Select Customers kategory'],
// 'type' => DepDrop::TYPE_SELECT2,
// 'select2Options'=>['pluginOptions'=>['allowClear'=>true]],
// 'pluginOptions'=>[
// 'depends'=>['customers-cust_type'],
// 'url' => Url::to(['/master/customers/lisdata']),
// 'loadingText' => 'Loading data ...',
// ]
// ]);
echo $form->field($model, 'PIC', $config)->widget(LabelInPlace::classname());
echo $form->field($model, 'JOIN_DATE')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Dari ...'], 'pluginOptions' => ['autoclose' => true, 'format' => 'dd-mm-yyyy'], 'pluginEvents' => ['show' => "function(e) {errror}"]]);
// echo $form->field($model, 'KD_DISTRIBUTOR')->widget(Select2::classname(), [
// 'data' => $dropdis,
// 'options' => [
// 'placeholder' => 'Pilih Distributor ...'],
// 'pluginOptions' => [
// 'allowClear' => true
// ],
//
// ]);
if (!$model->isNewRecord) {
echo $form->field($model, 'STATUS')->dropDownList(['' => ' -- Silahkan Pilih --', '0' => 'Tidak Aktif', '1' => 'Aktif']);
}
?>
<div class="form-group">
示例6:
<?php
echo $form->field($model, 'PRINCIPAL_KD')->widget(Select2::classname(), ['options' => ['placeholder' => 'Select Nama Principal ...'], 'data' => $data_corp]);
?>
<?php
echo $form->field($model, 'DIST_KD')->widget(Select2::classname(), ['options' => ['placeholder' => 'Select Nama Distributor ...'], 'data' => $data_distributor]);
?>
<?php
echo $form->field($model, 'PERIOD_START')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Tgl Term Dibuat'], 'pluginOptions' => ['todayHighlight' => true, 'autoclose' => true, 'format' => 'yyyy-m-dd'], 'pluginEvents' => ['show' => "function(e) {show}"]]);
?>
<?php
echo $form->field($model, 'PERIOD_END')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Tgl Term Berakhir'], 'pluginOptions' => ['todayHighlight' => true, 'autoclose' => true, 'format' => 'yyyy-m-dd'], 'pluginEvents' => ['show' => "function(e) {show}"]]);
?>
<?php
echo $form->field($model, 'BUDGET_AWAL')->widget(MaskMoney::classname(), ['pluginOptions' => ['allowNegative' => false]]);
?>
<?php
if (!$model->IsNewRecord) {
echo $form->field($model, 'STATUS')->dropDownList(['' => ' -- Silahkan Pilih --', '0' => 'Tidak Aktif', '1' => 'Aktif']);
}
?>
<div class="form-group">
<?php
示例7:
/* @var $model lukisongroup\master\models\Kota */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="kota-form">
<?php
$form = ActiveForm::begin(['id' => $model->formName(), 'enableClientValidation' => true]);
?>
<?php
echo $form->field($model, 'KODE_REF')->textInput(['value' => $model->KD_SO, 'readonly' => true]);
?>
<?php
echo $form->field($model, 'TGL_KIRIM')->widget(DatePicker::classname(), ['options' => ['placeholder' => ' pilih ...'], 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd'], 'pluginEvents' => ['show' => "function(e) {errror}"]]);
?>
<div class="form-group">
<?php
echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
</div>
<?php
ActiveForm::end();
?>
</div>
示例8:
'placeholder' => 'Pilih kota ...'],
'pluginOptions' => [
'allowClear' => true,
],
]);?>
-->
<?php
echo $form->field($model, 'PIC', $config)->widget(LabelInPlace::classname());
?>
<?php
echo $form->field($model, 'JOIN_DATE')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Enter date ...'], 'pluginOptions' => ['autoclose' => true], 'pluginEvents' => ['show' => "function(e) {show}"]]);
?>
<?php
echo $form->field($model, 'KD_DISTRIBUTOR')->widget(Select2::classname(), ['data' => $dropdis, 'options' => ['placeholder' => 'Pilih Distributor ...'], 'pluginOptions' => ['allowClear' => true]]);
?>
<!-- $form->field($model, 'ALAMAT', $config)->widget(LabelInPlace::classname());?> -->
<?php
echo $form->field($model, 'WEBSITE', $config)->widget(LabelInPlace::classname());
?>
<?php
示例9:
use yii\web\JsExpression;
use yii\bootstrap\Modal;
use yii\helpers\Url;
use kartik\widgets\TouchSpin;
?>
<div class="sop-sales-header-form">
<?php
$form = ActiveForm::begin(['id' => $model->formName(), 'enableClientValidation' => true]);
?>
<!-- $form->field($model, 'TGL')->textInput() ?> -->
<?php
echo $form->field($model, 'TGL')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Enter date start ...'], 'pluginOptions' => ['todayHighlight' => true, 'autoclose' => true, 'format' => 'yyyy-m-dd'], 'pluginEvents' => ['show' => "function(e) {show}"]]);
?>
<!-- $form->field($model, 'STT_DEFAULT')->textInput() ?> -->
<?php
echo $form->field($model, 'SCORE_RSLT')->widget(Select2::classname(), ['options' => ['placeholder' => 'Select...'], 'data' => $score]);
?>
<?php
echo $form->field($model, 'SCORE_PERCENT_MIN')->widget(TouchSpin::classname(), ['options' => ['placeholder' => 'Enter rating 0 to 100...'], 'pluginOptions' => ['postfix' => '%']]);
?>
<?php
echo $form->field($model, 'SCORE_PERCENT_MAX')->widget(TouchSpin::classname(), ['options' => ['placeholder' => 'Enter rating 0 to 100...'], 'pluginOptions' => ['postfix' => '%']]);
示例10:
?>
<?php
echo $form->field($model, 'triagem_id')->widget(Select2::classname(), ['data' => ArrayHelper::map($triagens, 'id', 'nome'), 'options' => ['placeholder' => 'Selecione o Interessado ...'], 'pluginOptions' => ['allowClear' => true]]);
?>
<?php
echo $form->field($model, 'tipo')->dropdownList(['divorcio' => 'Divórcio', 'dissolucao' => 'Dissolução de uniões estáveis', 'guardaentrepais' => 'Guarda entre pais', 'modificacaoguarda' => 'Modificação de guarda entre pais', 'alimentos' => 'Alimentos', 'regulamentacaovisitas' => 'Regulamentação de visitas e companhia', 'investigacaopaternidade' => 'Investigação de paternidade', 'reconhecimentovoluntariopaternidade' => 'Reconhecimento voluntário de paternidade'], ['prompt' => 'Selecione']);
?>
<?php
echo $form->field($model, 'descricao')->textArea(['maxlength' => true, 'rows' => 6, 'cols' => 30]);
?>
<?php
echo $form->field($model, 'date')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Agendar a data da Audiencia...'], 'pluginOptions' => ['autoclose' => true]]);
?>
<div class="form-group">
<?php
echo Html::submitButton($model->isNewRecord ? 'Continuar' : 'Atualizar', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
</div>
<?php
ActiveForm::end();
?>
</div>
示例11: function
<?php
Pjax::begin(['id' => 'pembelian-form-pjax', 'enablePushState' => false]);
?>
<?php
$form = ActiveForm::begin(['id' => 'pembelian-form', 'options' => ['data-pjax' => true], 'enableClientValidation' => false]);
?>
<div class="row">
<div class="col-xs-6 col-sm-3">
<?php
echo $form->field($model, 'NOMOR')->textInput(['maxlength' => true, 'readonly' => true, 'style' => 'text-align:center;']);
?>
</div>
<div class="col-xs-6 col-sm-3 col-sm-offset-6 ">
<?php
echo $form->field($model, 'TGL')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Tgl Transaksi ...'], 'readonly' => true, 'removeButton' => false, 'pluginOptions' => ['todayHighlight' => true, 'todayBtn' => true, 'format' => 'dd-M-yyyy', 'autoclose' => true]]);
?>
</div>
</div>
<div class="row">
<div class="col-xs-6 col-sm-3">
<?php
$data = ArrayHelper::map(Emiten::find()->select(['KODE', 'NAMA', 'DERIVED' => 'CONCAT(KODE," - ",NAMA)'])->asArray()->all(), 'KODE', 'KODE');
echo $form->field($model, 'EMITEN_KODE')->widget(Select2::classname(), ['data' => $data, 'options' => ['placeholder' => 'Pilih Emiten ...', 'onchange' => '
//var id = Aes.Ctr.encrypt($(this).val(), "123456", 256);
var id = $(this).val()
$.post( "' . Url::to(['get-emiten']) . '?id="+id, function( data ) {
$( "#emiten-name" ).val( data.data.NAMA );
$( "#emiten-name" ).focus();
});
示例12:
?>
<?php
echo $form->field($model, 'org_type')->dropDownList(Lookup::items('OrganizationType'));
?>
<?php
echo $form->field($model, 'work_domain')->dropDownList(Lookup::items('WorkDomain'));
?>
<?php
echo $form->field($model, 'website')->textInput(['maxlength' => true]);
?>
<?php
echo $form->field($model, 'found_date')->widget(DatePicker::classname(), ['pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']]);
?>
<?php
echo $form->field($model, 'imageFile')->fileInput();
?>
<div class="form-group">
<?php
echo Html::submitButton($model->isNewRecord ? 'Create' : 'Save', ['class' => 'btn btn-success pull-right']);
?>
</div>
<?php
ActiveForm::end();
?>
示例13:
<?php
$form = ActiveForm::begin();
?>
<?php
echo $form->field($model, 'alun_nome')->textInput(['maxlength' => true]);
?>
<?php
echo $form->field($model, 'alun_matricula')->textInput();
?>
<?php
echo $form->field($model, 'alun_data_nascimento')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Selecione uma data ...'], 'pluginOptions' => ['autoclose' => true, 'format' => 'dd/mm/yyyy']]);
?>
<?php
echo $form->field($model, 'alun_habilitado')->checkbox();
?>
<?php
echo $form->field($model, 'alun_observacao')->textarea(['rows' => 6]);
?>
<?php
$rows = \app\models\Estado::find()->all();
$estado = \yii\helpers\ArrayHelper::map($rows, 'esta_codigo', 'esta_nome');
echo $form->field($model, 'esta_codigo')->dropDownList($estado, ['prompt' => 'Selecione um estado', 'onchange' => '
$.get( "' . Url::toRoute('/aluno/municipio') . '", { id: $(this).val() } )
示例14: date
?>
<?php
echo $form->field($model, 'loc_id')->widget(GooglePlacesAutoComplete::className(), ['autocompleteOptions' => []]);
?>
<?php
echo $form->field($model, 'note')->textInput(['maxlength' => true]);
?>
<?php
echo $form->field($model, 'is_set')->textInput();
?>
<?php
echo $form->field($model, 'update_time', ['feedbackIcon' => ['default' => 'calendar', 'success' => 'ok', 'error' => 'exclamation-sign', 'defaultOptions' => ['class' => 'text-primary']]])->widget(DatePicker::classname(), ['name' => 'operation_time', 'language' => 'sr', 'value' => date('d-M-Y H:i A', strtotime('+2 days')), 'options' => ['placeholder' => 'Select operating time ...']]);
?>
</div>
<div class="form-group">
<div class="col-sm-offset-3 col-sm-9">
<?php
echo Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
</div>
</div>
</fieldset>
<?php
ActiveForm::end();
?>
示例15:
?>
<?php
echo $form->field($model, 'IS_ACTIVE')->dropDownList(['TRUE' => 'TRUE', 'FALSE' => 'FALSE'], ['prompt' => '']);
?>
<?php
echo $form->field($model, 'EMAIL_ADDRESS')->textInput(['maxlength' => 45]);
?>
<?php
echo $form->field($model, 'PASSWORD')->passwordInput(['maxlength' => 60]);
?>
<?php
echo $form->field($model, 'JOINED_DATE')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Enter birth date ...'], 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']]);
?>
<?php
echo $form->field($model, 'COMPANY_ID')->dropDownList(ArrayHelper::map(COMPANIES::find()->all(), 'COMPANY_ID', 'COMPANY_NAME'), ['prompt' => '-Choose a Company-']);
//This works WITHOUT $model
// Html::dropDownList('COMPANY_ID', null,ArrayHelper::map(COMPANIES::find()->all(), 'COMPANY_ID', 'COMPANY_NAME'),['prompt' => '---- Choose a Company ----']);
//This works with $model, but the CSS is off
// Html::activeDropDownList($model, 'COMPANY_ID',ArrayHelper::map(COMPANIES::find()->all(), 'COMPANY_ID', 'COMPANY_NAME'));
?>
<?php