當前位置: 首頁>>代碼示例>>PHP>>正文


PHP DatePicker::classname方法代碼示例

本文整理匯總了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]);
 }
開發者ID:carono,項目名稱:yii2-components,代碼行數:5,代碼來源:ActiveField.php

示例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">
開發者ID:JohnRivers,項目名稱:seed-testing,代碼行數:31,代碼來源:_form.php

示例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>
開發者ID:ni032mas,項目名稱:emtol_yii2,代碼行數:31,代碼來源:index1.php

示例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']);
?>
開發者ID:nishanthpininti,項目名稱:nishanth-work-nudostilo,代碼行數:31,代碼來源:registration.php

示例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">
開發者ID:rzamarripa,項目名稱:du,代碼行數:31,代碼來源:_form.php

示例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 
開發者ID:tammy00,項目名稱:paps,代碼行數:31,代碼來源:_form.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')]);
開發者ID:obedkin,項目名稱:atlant,代碼行數:30,代碼來源:_form.php

示例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();
?>
開發者ID:Dr1N,項目名稱:BooksOrganizer,代碼行數:31,代碼來源:update.php

示例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 --']);
開發者ID:sonumahan,項目名稱:yii-admin,代碼行數:30,代碼來源:_form.php

示例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">
開發者ID:Rakeshdrupal,項目名稱:yiifirstliveproject,代碼行數:31,代碼來源:_form.php

示例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');
?>
開發者ID:chimgrrl,項目名稱:auction,代碼行數:31,代碼來源:_form.php

示例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>
開發者ID:QiLiuXianSheng,項目名稱:yii2,代碼行數:31,代碼來源:createCustomerAndReservation.php

示例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');
開發者ID:asimzeeshan,項目名稱:AliExpressOTS,代碼行數:31,代碼來源:_form.php

示例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>
      
開發者ID:nishanthpininti,項目名稱:nishanth-work-nudostilo,代碼行數:30,代碼來源:editmodal.php

示例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();
?>
開發者ID:mrhat24,項目名稱:site-for-pm,代碼行數:31,代碼來源:_form_chief.php


注:本文中的yii\jui\DatePicker::classname方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。