本文整理汇总了PHP中yii\jui\DatePicker::classname方法的典型用法代码示例。如果您正苦于以下问题:PHP DatePicker::classname方法的具体用法?PHP DatePicker::classname怎么用?PHP DatePicker::classname使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类yii\jui\DatePicker
的用法示例。
在下文中一共展示了DatePicker::classname方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: date
public function date($options = [])
{
Html::addCssClass($options, 'form-control');
return $this->widget(DatePicker::classname(), ['language' => 'ru', 'dateFormat' => 'dd.MM.yyyy', 'options' => $options]);
}
示例2: DateTime
?>
<?php
echo $form->field($model, 'chistota')->textInput(['maxlength' => true]);
?>
<?php
echo $form->field($model, 'masa_1000')->textInput(['maxlength' => true]);
?>
<?php
echo $form->field($model, 'klass')->textInput();
?>
<?php
echo $form->field($model, 'date_doc')->widget(DatePicker::classname(), ['value' => $model->date_doc ? $model->date_doc : (new DateTime())->format('Y-m-d'), 'dateFormat' => 'php:Y-m-d', 'options' => ['class' => 'form-control']]);
?>
<?php
echo $form->field($model, 'id_type')->dropDownList(ArrayHelper::map(TestType::find()->orderBy(['order' => SORT_ASC])->all(), 'id', 'type'))->label(Yii::t('test-type', 'Type'));
?>
<?php
echo $form->field($model, 'N_prev')->textInput();
?>
<?php
echo $form->field($model, 'v_rahunok')->textInput();
?>
<div class="form-group">
示例3:
?>
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel" data-interval="false" data-pause="false">
<div class="container">
<div class="tour-form">
<?php
NavBar::begin();
$form = ActiveForm::begin(['method' => 'post', 'action' => ['/tour/index'], 'options' => ['class' => 'form-inline']]);
?>
<?php
echo $form->field($model, 'search_data', ['options' => ['class' => 'search-data form-group']])->widget(Select2::classname(), ['data' => $data, 'options' => ['placeholder' => 'Введите ключевые слова...'], 'pluginOptions' => ['allowClear' => true]]);
?>
<!-- /.search-data -->
<?php
echo $form->field($model, 'date_begin')->widget(\yii\jui\DatePicker::classname(), ['language' => 'ru', 'dateFormat' => 'yyyy-MM-dd']);
?>
<div class="form-group btn-search">
<?php
echo Html::submitButton('Вперед!', ['class' => 'btn btn-success']);
?>
</div>
<?php
ActiveForm::end();
NavBar::end();
?>
<div class="slider-value">
Filter by price interval: <b>€ 10</b> <input id="ex2" type="text" class="span2" value=""
data-slider-min="10"
data-slider-max="1000" data-slider-step="5"
data-slider-value="[250,450]"/> <b>€ 1000</b>
示例4:
echo $form2->field($designerModel, 'designer_user_name');
?>
<?php
echo $form2->field($designerModel, 'designer_first_name');
?>
<?php
echo $form2->field($designerModel, 'designer_last_name');
?>
<?php
echo $form2->field($designerModel, 'designer_email');
?>
<?php
echo $form2->field($designerModel, 'designer_gender')->radioList(['M' => 'Male', 'F' => 'Female']);
?>
<?php
echo $form2->field($designerModel, 'designer_birthdate')->widget(DatePicker::classname(), ['dateFormat' => 'yyyy-MM-dd']);
?>
<?php
echo $form2->field($designerModel, 'password')->passwordInput();
?>
<?php
echo $form2->field($designerModel, 'confirmPassword')->passwordInput();
?>
<input type=hidden id=desgIndcheck value=<?php
echo $chckuser;
?>
/>
<div class="form-group2">
<?php
echo Html::submitButton('Register', ['class' => 'btn btn-primary', 'name' => 'signup-button']);
?>
示例5:
'showErrors'=>false,
//'addon' => ['prepend' => ['content'=>'<i class="fa fa-envelope fa-lg fa-fw"></i>']],
'options'=>['class' => 'form-group']]
)->input('text',[
'class' => 'form-control input-lg',
'multiple'=>true,
'placeholder'=>$model->getAttributeLabel('p4MontoPagarTemporal'),
'name'=>'p4MontoPagarTemporal',
'id'=>'p4MontoPagarTemporal'
]
);?>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<?= $form->field($model, 'p4VigenciaPagoTemporal')->widget(\yii\jui\DatePicker::classname(),[
'dateFormat' => 'yyyy-MM-dd',
])->textInput(['name'=>'p4VigenciaPagoTemporal']) ?>
</div>
</div>
</div>
</div>
</div>
</div>
<?php } else {?>
<h2 class="bg-danger"> Permiso Denegado</h2>
<?php }?>
</div>
<div class="tab-pane " id="tab5">
示例6:
<div class="solicitacao-form">
<?php
$form = ActiveForm::begin();
?>
<?php
echo $form->field($model, 'descricao')->textInput(['maxlength' => true]);
?>
<?php
echo $form->field($model, 'dtInicio')->widget(\yii\jui\DatePicker::classname(), ['language' => 'pt-BR', 'dateFormat' => 'dd-M-y']);
?>
<?php
echo $form->field($model, 'dtTermino')->widget(\yii\jui\DatePicker::classname(), ['language' => 'pt-BR', 'dateFormat' => 'dd-M-y']);
?>
<?php
echo $form->field($model, 'horasComputadas')->textInput();
?>
<?php
echo $form->field($model, 'horasMaxAtiv')->textInput();
?>
<?php
echo $form->field($model, 'observacoes')->textInput(['maxlength' => true]);
?>
<!--<?php
示例7:
<?php
echo $form->field($model, 'gender')->dropDownList(User::getGenderArray(), ['prompt' => Yii::t('app', 'Select from list')]);
?>
<?php
echo $form->field($model, 'marital')->dropDownList(User::getMaritalArray(), ['prompt' => Yii::t('app', 'Select from list')]);
?>
<?php
echo $form->field($model, 'birthday')->widget(DatePicker::classname(), ['language' => 'ru', 'dateFormat' => 'dd.MM.yyyy']);
?>
<?php
echo $form->field($model, 'workday')->widget(DatePicker::classname(), ['language' => 'ru', 'dateFormat' => 'dd.MM.yyyy']);
?>
<?php
/*$listdata = ArrayHelper::map(Post::find()->all(), 'id', 'title'); ?>
<?= $form->field($model, 'post_id')->dropDownList($listdata, [
'class' => 'form-control select',
'prompt' => Yii::t('app', 'Select from list')
]); */
?>
<?php
$listdata = ArrayHelper::map(Department::find()->all(), 'id', 'title');
?>
<?php
echo $form->field($model, 'department_id')->dropDownList($listdata, ['class' => 'form-control select', 'prompt' => Yii::t('app', 'Select from list')]);
示例8:
<div class="books-form">
<?php
$form = ActiveForm::begin(['options' => ['enctype' => 'multipart/form-data']]);
?>
<?php
echo $form->field($model, 'name')->textInput(['maxlength' => true]);
?>
<?php
echo $form->field($model, 'author_id')->dropdownList($authors);
?>
<?php
echo $form->field($model, 'strDate')->widget(DatePicker::classname(), ['language' => 'ru', 'dateFormat' => 'php: d.m.Y', 'options' => ['class' => 'form-control'], 'clientOptions' => ['changeMonth' => true, 'changeYear' => true, 'yearRange' => '1920:2016']]);
?>
<?php
echo $form->field($model, 'cover')->fileInput();
?>
<div class="form-group">
<?php
echo Html::submitButton('Сохранить', ['class' => 'btn btn-primary']);
?>
</div>
<?php
ActiveForm::end();
?>
示例9:
<div class="edge-course-form">
<?php
$form = ActiveForm::begin(['options' => ['enctype' => 'multipart/form-data']]);
?>
<?php
echo $form->field($model, 'name')->textInput(['maxlength' => true]);
?>
<?php
echo $form->field($model, 'detail')->widget(CKEditor::className(), ['options' => ['rows' => 6], 'preset' => 'full']);
?>
<?php
echo $form->field($model, 'starting_date')->widget(\yii\jui\DatePicker::classname(), ['dateFormat' => 'yyyy-MM-dd', 'options' => ['class' => 'form-control']]);
?>
<?php
echo $form->field($model, 'status')->dropDownList(["active" => "active", "inactive" => "inactive"]);
?>
<?php
echo $form->field($model, 'week_num')->textInput();
?>
<?php
echo $form->field($model, 'is_oriantation')->dropDownList(['0' => "No", '1' => "Yes"], ['prompt' => '-- Is orientation program --']);
示例10: array
<?php
echo $form->field($model, 'poster_board_no', array('labelOptions' => array('class' => 'f18')))->textInput(['class' => 'form-control intp']);
?>
</div></div>
<div class="col-xs-6 col-sm-4 p5">
<div class="ml20">
<?php
echo $form->field($model, 'presentation_no', array('labelOptions' => array('class' => 'f18')))->textInput(['class' => 'form-control intp']);
?>
</div></div>
<div class="col-xs-6 col-sm-4 p5">
<div class="ml20">
<?php
echo $form->field($model, 'date', array('labelOptions' => array('class' => 'f18')))->widget(\yii\jui\DatePicker::classname(), ['dateFormat' => 'MM-dd-yyyy', 'clientOptions' => ['minDate' => $congressStartDate, 'maxDate' => $congressEndDate], 'options' => ['class' => 'form-control intp', 'readonly' => true]]);
?>
</div>
</div>
<div class="col-xs-6 col-sm-4 p5">
<div class="ml20">
<?php
echo $form->field($model, 'category', array('labelOptions' => array('class' => 'f18')))->textInput(['class' => 'form-control intp']);
?>
</div>
</div>
</div>
<!-- Div row ends -->
<div class="row" style="margin:0; padding:10px; background-color:#f4f4f4; margin-top:10px">
示例11:
?>
<?php
echo $form->field($model, 'membership_first_name');
?>
<?php
echo $form->field($model, 'membership_last_name');
?>
<?php
echo $form->field($model, 'membership_gender')->dropDownList(['M' => 'Male', 'F' => 'Female']);
?>
<?php
echo $form->field($model, 'membership_date_of_birth')->widget(\yii\jui\DatePicker::classname(), ['dateFormat' => 'dd/MM/yyyy', 'clientOptions' => ['changeMonth' => 'true', 'changeYear' => 'true', 'defaultDate' => '-1', 'yearRange' => '1920:2015']]);
?>
<?php
echo $form->field($model, 'membership_district');
?>
<?php
echo $form->field($model, 'membership_address');
?>
<?php
echo $form->field($model, 'membership_contact_telephone');
?>
示例12: function
<?php
echo $form->field($customer, "surname")->textInput();
?>
<?php
echo $form->field($customer, "phone_number")->textInput();
?>
<h2>Reservation</h2>
<?php
echo $form->field($reservation, "room_id")->dropDownList(ArrayHelper::map(Room::find()->all(), 'id', function ($room, $defaultValue) {
return sprintf('Room n.%d at floor %d', $room->room_number, $room->floor);
}));
?>
<?php
echo $form->field($reservation, "price_per_day")->textInput();
?>
<?php
echo $form->field($reservation, "date_from")->widget(DatePicker::classname(), ['language' => 'zh-cn', 'dateFormat' => 'yyyy/MM/dd']);
?>
<?php
echo $form->field($reservation, "date_to")->widget(DatePicker::classname(), ['language' => 'zh-cn', 'dateFormat' => 'yyyy/MM/dd']);
?>
</div>
<div class="form-group">
<?php
echo Html::submitButton('Save customer and room', ['class' => 'btn btn-primary']);
?>
</div>
<?php
ActiveForm::end();
?>
</div>
示例13:
$allCouriers = ArrayHelper::map(\app\models\Courier::find()->orderBy('id')->all(), 'id', 'name');
?>
<?php
echo $form->field($model, 'courier_id')->dropDownList($allCouriers, ['prompt' => ' -- Select Courier --'])->label('Courier');
?>
<?php
echo $form->field($model, 'tracking_id')->textInput(['maxlength' => true]);
?>
<?php
echo $form->field($model, 'shipment_date')->widget(\yii\jui\DatePicker::classname(), ['options' => ['class' => 'form-control'], 'dateFormat' => 'yyyy-MM-dd']);
?>
<?php
echo $form->field($model, 'delivery_date')->widget(\yii\jui\DatePicker::classname(), ['options' => ['class' => 'form-control'], 'dateFormat' => 'yyyy-MM-dd']);
?>
<?php
}
?>
<?php
echo $form->field($model, 'arrived_in')->hiddenInput()->label(false);
?>
<?php
$allPaymentMethods = ArrayHelper::map(\app\models\PaymentMethod::find()->orderBy('id')->all(), 'id', 'name');
?>
<?php
echo $form->field($model, 'paid_with')->dropDownList($allPaymentMethods, ['prompt' => ' -- Select Payment Method --'])->label('Payment Method');
示例14:
echo $form1->field($model1, 'name_on_card');
?>
<?php
echo $form1->field($model1, 'creditcard_no');
?>
<?php
echo $form1->field($model1, 'billing_address');
?>
<?php
echo $form1->field($model1, 'billing_id')->hiddenInput()->label(false);
?>
<?php
echo $form1->field($model1, 'customer_usr_name')->hiddenInput()->label(false);
?>
<?php
echo $form1->field($model1, 'creditcard_expdate')->widget(DatePicker::classname(), ['dateFormat' => 'yyyy-MM-dd']);
?>
<div class="form-group1">
<?php
echo Html::submitButton('submit', ['class' => 'btn btn-warning editsubmit', 'name' => 'credit-button']);
?>
</div>
<?php
ActiveForm::end();
?>
</div>
</div>
示例15:
/* @var $model common\models\Standart */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="standart-form">
<?php
$form = ActiveForm::begin();
?>
<?php
echo $form->field($model, 'name')->textInput(['maxlength' => true]);
?>
<?php
echo $form->field($model, 'start_date')->widget(DatePicker::classname(), ['clientOptions' => ['changeMonth' => true, 'changeYear' => true, 'yearRange' => "-100:+100"], 'options' => ['class' => 'form-control']]);
?>
<?php
echo $form->field($model, 'key')->textInput();
?>
<div class="form-group">
<?php
echo Html::submitButton($model->isNewRecord ? 'Создать' : 'Сохранить', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
</div>
<?php
ActiveForm::end();
?>