当前位置: 首页>>代码示例>>PHP>>正文


PHP DatePicker::classname方法代码示例

本文整理汇总了PHP中kartik\date\DatePicker::classname方法的典型用法代码示例。如果您正苦于以下问题:PHP DatePicker::classname方法的具体用法?PHP DatePicker::classname怎么用?PHP DatePicker::classname使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在kartik\date\DatePicker的用法示例。


在下文中一共展示了DatePicker::classname方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1:

echo $form->field($model, 'FileUpload')->fileInput();
?>
		     </div>
    
    		<div class="clearfix"></div>
    
    
   			 <div class="col-sm-8" style="padding:0px;">
				  <div class="col-sm-4">
					     <?php 
echo $form->field($model, 'offerStartDate')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Enter offerStartDate ...', 'style' => 'width:100px'], 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-m-d', 'todayHighlight' => true]]);
?>
					 </div>
					 <div class="col-sm-4">
					     <?php 
echo $form->field($model, 'offerEndDate')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Enter offerEndDate ...', 'style' => 'width:100px'], 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-m-d', 'todayHighlight' => true]]);
?>
					</div>
    			</div>
				<div class="col-sm-8" style="padding:0px;">
				    <div class="col-sm-4">
				    	<?php 
echo $form->field($model, 'isStoreOffer')->checkbox(array('placeholder' => 'isStoreOffer', 'id' => 'isStoreOffer'))->label(false);
?>
				    </div>
				    <div class="col-sm-4">
				 		<?php 
echo $form->field($model, 'offer')->textInput(array('placeholder' => 'offer', 'style' => 'width:150px', 'id' => 'offer'))->label(false);
?>
				   </div>
			    </div>
开发者ID:ewwgit,项目名称:eptri,代码行数:31,代码来源:vendor_view.php

示例2:

            
            
             
            
            
            
            
             <div class="form-group col-sm-5 btnWithTooltip" data-placement="bottom" 
            data-original-title="Name & address details will help us to send  gifts on app rewards and other gifts" 
            data-html="true"  placeholder=" Middle Name">
             
            
             
             
             <?php 
echo $form->field($model, 'purchaseDate')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Purchase date ...'], 'name' => 'from_date', 'value' => $model->purchaseDate, 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-m-d', 'todayHighlight' => true]])->label(false);
?>
            
            <i class="fa fa-question-circle btnWithTooltip Qty-symbol-tooltip" data-placement="bottom" 
            data-original-title="Name & address details will help us to send  gifts on app rewards and other gifts" 
            data-html="true" ></i>
                    <span style="float: right;font-size: 10px; font-family:font-family: Arial; color:#CCC;">charcters length 25</span> 
                    </div>
                    
                    
                    
                  <div class=" form-group col-sm-5 btnWithTooltip" data-placement="bottom" 
            data-original-title="Name & address details will help us to send  gifts on app rewards and other gifts" 
            data-html="true"   placeholder="Last Name">
                   
            
开发者ID:ewwgit,项目名称:eptri,代码行数:22,代码来源:rewards.php

示例3:

/* @var $model app\models\Brood */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="brood-form">

    <?php 
$form = ActiveForm::begin();
?>

    <?php 
echo $form->field($model, 'name')->textInput(['maxlength' => true]);
?>

    <?php 
echo $form->field($model, 'date')->widget(DatePicker::classname(), ['options' => ['placeholder' => Yii::t('app', 'Enter birth date ...')], 'type' => DatePicker::TYPE_COMPONENT_APPEND, 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd'], 'removeButton' => false, 'language' => \app\models\Lang::getCurrent()['local']]);
?>

    <?php 
echo $form->field($model, 'breed_id')->dropDownList(\app\models\Breed::getAll());
?>

    <?php 
echo $form->field($model, 'common_status_id')->dropDownList(\app\models\CommonStatus::getAll());
?>

    <div class="form-group">
        <?php 
echo Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
    </div>
开发者ID:sergeyusatyuk,项目名称:HOLJ,代码行数:31,代码来源:_form.php

示例4:

    <?php 
echo $form->field($model, 'oborud1')->widget(Select2::className(), ['options' => ['placeholder' => 'Выберите оборудование...', 'multiple' => true], 'pluginOptions' => ['allowClear' => true]]);
?>





    <?php 
echo $form->field($model, 'id_client')->dropDownList(ArrayHelper::map($client, 'id', 'name_client'), ['prompt' => 'Выберите клиента']);
?>


    <?php 
echo $form->field($model, 'date_event')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Выберите дату ...'], 'language' => 'ru-RU', 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']]);
?>

    <?php 
echo $form->field($model, 'name_event')->textInput(['maxlength' => true]);
?>



    <?php 
echo $form->field($model, 'time_n')->widget(TimePicker::classname(), ['pluginOptions' => ['showSeconds' => false, 'showMeridian' => false, 'minuteStep' => 5]]);
?>



    <?php 
开发者ID:Sywooch,项目名称:arenda,代码行数:30,代码来源:_form.php

示例5: date

<div class="posts-form">

    <?php 
$form = ActiveForm::begin();
?>

    <?php 
echo $form->field($model, 'title')->textInput(['maxlength' => true]);
?>

    <?php 
echo $form->field($model, 'text')->widget(Widget::className(), ['settings' => ['lang' => 'ru', 'minHeight' => 200, 'plugins' => ['clips', 'fullscreen']]]);
?>
    <div id="datepicker-stg2">
        <?php 
echo $form->field($model, 'strDate')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Click and choose date ...', 'value' => $model->isNewRecord ? '' : date('d-M-Y', $model->date)], 'pluginOptions' => ['autoclose' => true, 'format' => 'dd-M-yyyy']]);
?>
    </div>

    <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>
开发者ID:NavaINT1876,项目名称:stage2php,代码行数:30,代码来源:_form.php

示例6:

$form = ActiveForm::begin();
?>

    <?php 
echo $form->field($model, 'title')->textInput(['maxlength' => true]);
?>

    <?php 
echo $form->field($model, 'baomingshijian')->widget(DatePicker::classname(), ['options' => ['placeholder' => '选择报名时间'], 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']]);
?>
    <?php 
echo $form->field($model, 'jiezhishijian')->widget(DatePicker::classname(), ['options' => ['placeholder' => '选择报名时间'], 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']]);
?>

    <?php 
echo $form->field($model, 'kaoshishijian')->widget(DatePicker::classname(), ['options' => ['placeholder' => '选择报名时间'], 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']]);
?>
    <?php 
echo $form->field($model, 'ord')->textInput(['placeholder' => '数字越小越靠前,默认可不填写']);
?>

    <?php 
echo $form->field($model, 'is_reminder')->dropDownList(['否', '是']);
?>


    <div class="form-group">
        <?php 
echo Html::submitButton($model->isNewRecord ? '添加' : '修改', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
    </div>
开发者ID:James88,项目名称:www.yubin.com,代码行数:31,代码来源:_form.php

示例7: readURL

        }

        $("#imgInp").change(function(){
            readURL(this);
        });
    </script>

    <?php 
echo $form->field($model, 'content')->widget(CKEditor::className(), ['options' => ['rows' => 10], 'preset' => 'full', 'clientOptions' => ['filebrowserUploadUrl' => '/daitech-admin/project/upload']]);
?>


    <?php 
echo $form->field($model, 'start_date')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Start date ...'], 'convertFormat' => true, 'pluginOptions' => ['format' => 'yyyy-MM-dd']]);
?>
    <?php 
echo $form->field($model, 'end_date')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'End date ...'], 'convertFormat' => true, 'pluginOptions' => ['format' => 'yyyy-MM-dd']]);
?>

    <div class="form-control">
        <?php 
echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
    </div>

    <?php 
ActiveForm::end();
?>

</div>
开发者ID:phamviet1510,项目名称:daitech-web,代码行数:30,代码来源:_form.php

示例8: key

?>

        <?php 
echo $this->render('partials/_chunkInput', ['model' => $model, 'form' => $form, 'attribute' => 'imageLpr', 'type' => EvidenceFileType::TYPE_IMAGE_LPR, 'uploadUrl' => $uploadUrl, 'acceptMimeTypes' => $acceptMimeTypes, 'maxFileSize' => $maxFileSize, 'maxChunkSize' => $maxChunkSize, 'dropZone' => $dropZone, 'handleUrl' => $handleUrl]);
?>

        <?php 
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]);
?>
开发者ID:vfokov,项目名称:tims2,代码行数:31,代码来源:edit.php

示例9:

								</div>
								<div class="col-md-6">
									<?php 
echo $form->field($model, 'DIVISION_ID')->widget(DepDrop::classname(), ['data' => ArrayHelper::map(app\models\EfDivision::find()->where(['DIVISION_ID' => $model->DIVISION_ID])->all(), 'DIVISION_ID', 'DIVISION_NAME'), 'type' => DepDrop::TYPE_SELECT2, 'select2Options' => ['pluginOptions' => ['allowClear' => false]], 'options' => ['disabled' => $mode == 'view' ? true : false], 'pluginOptions' => ['depends' => $mode == 'view' ? [''] : ['efproject-unit_id'], 'initialize' => $model->isNewRecord ? false : true, 'url' => Url::to(['/common/ajax/get-efdivision-list']), 'loadingText' => 'Loading ...', 'placeholder' => 'เลือก สำนัก/กอง ก่อน']]);
?>
								</div>
							</div>
							<div class="row">
								<div class="col-md-6">
									<?php 
echo $form->field($model, 'START_DATE')->widget(DatePicker::classname(), ['type' => DatePicker::TYPE_COMPONENT_APPEND, 'value' => $model->START_DATE, 'disabled' => $mode == 'view' ? true : false, 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']]);
?>
								</div>
								<div class="col-md-6">
									<?php 
echo $form->field($model, 'END_DATE')->widget(DatePicker::classname(), ['type' => DatePicker::TYPE_COMPONENT_APPEND, 'value' => $model->END_DATE, 'disabled' => $mode == 'view' ? true : false, 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']]);
?>
								</div>
							</div>
							<div class="row">
								<div class="col-md-6">
									<?php 
echo $form->field($model, 'BUDGET_TYPE_ID')->widget(Select2::classname(), ['data' => \yii\helpers\ArrayHelper::map(app\models\EfBudgetType::find()->all(), 'BUDGET_TYPE_ID', 'BUDGET_TYPE_NAME'), 'options' => ['placeholder' => 'กรุณาเลือก', 'disabled' => $mode == 'view' ? true : false], 'pluginOptions' => ['allowClear' => false]]);
?>
								</div>
								<div class="col-md-6">
									<?php 
echo $form->field($model, 'BUDGET_RECEIVE')->textInput(['disabled' => $mode == 'view' ? true : false]);
?>
								</div>
							</div>
开发者ID:bomcpe11,项目名称:cosmos,代码行数:31,代码来源:_form.php

示例10:

    <?php 
echo $form->field($model, 'name', ["options" => ["class" => "col-lg-3"]])->textInput(['placeholder' => 'Название книги'])->label(false);
?>
    <div class="clearfix"></div>

    <div class="pull-left col-lg-12">

        <div class="pull-left"><label>Дата выхода книги:</label></div>
        <?php 
echo $form->field($model, 'date_from', ["options" => ["class" => "col-lg-2"]])->widget(\yii\widgets\MaskedInput::className(), ['mask' => '99/99/9999'])->widget(DatePicker::classname(), ['type' => DatePicker::TYPE_INPUT, 'options' => ['placeholder' => 'Ведите дату...'], 'pluginOptions' => ['autoclose' => true]])->label(false);
?>

        <div class="pull-left"><label>до</label></div>
        <?php 
echo $form->field($model, 'date_to', ["options" => ["class" => "col-lg-2"]])->widget(\yii\widgets\MaskedInput::className(), ['mask' => '99/99/9999'])->widget(DatePicker::classname(), ['type' => DatePicker::TYPE_INPUT, 'options' => ['placeholder' => 'Ведите дату...'], 'pluginOptions' => ['autoclose' => true]])->label(false);
?>
        <input type="hidden" name="sort" value="<?php 
echo Yii::$app->request->get('sort');
?>
">
        <div class="form-group pull-right">
            <?php 
echo Html::submitButton('Искать', ['class' => 'btn btn-primary']);
?>
        </div>

    </div>
    <div class="clearfix"></div>

    <?php 
开发者ID:MrAnderstand,项目名称:library,代码行数:30,代码来源:_search.php

示例11: date

    <div class="row">
        <div class="col-md-4">
            <?php 
echo $form->field($model, 'author_id')->dropDownList(\app\models\Authors::map(), ['prompt' => 'автор']);
?>
        </div>
        <div class="col-md-4">
            <?php 
echo $form->field($model, 'name')->textInput(['placeholder' => 'название книги']);
?>
        </div>
    </div>
    <div class="row">
        <div class="col-sm-8">
    <?php 
echo $form->field($model, 'datein', $templateDate)->textInput()->widget(DatePicker::classname(), ['value' => date('y-m-d'), 'pluginOptions' => ['format' => 'yyyy-mm-dd', 'todayHighlight' => true]]);
?>
        </div>
        <div class="col-sm-3">
            <div class="form-group">
                <?php 
echo Html::submitButton('Поиск', ['class' => 'btn btn-primary']);
?>
                <?php 
echo Html::resetButton('Сброс', ['class' => 'btn btn-default']);
?>
            </div>
        </div>


开发者ID:gluck1986,项目名称:yii2test,代码行数:28,代码来源:_search.php

示例12:

</div>
            </div>
            <div class="row">
                <div class="col-md-6 col-xs-6"><?php 
echo $form->field($model, 'disease')->dropDownList($lib_disease);
?>
</div>
                <div class="col-md-6 col-xs-6"><?php 
echo $form->field($model, 'type')->dropDownList(['NI' => 'NI', 'CI' => 'CI']);
?>
</div>
            </div>
            <div class="row">
                <div class="col-md-6 col-xs-6">
                    <?php 
echo $form->field($model, 'infect_date')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'เลือกวันที่'], 'language' => 'th', 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd', 'todayHighlight' => true]]);
?>
                </div>
                <div class="col-md-6 col-xs-6"><?php 
echo $form->field($model, 'infect_ward')->dropDownList($lib_ward);
?>
</div>
                
            </div>
            <?php 
echo $form->field($model, 'hn')->hiddenInput(['maxlength' => true])->label(false);
?>

            <?php 
echo $form->field($model, 'an')->hiddenInput(['maxlength' => true])->label(false);
?>
开发者ID:pookiez797,项目名称:nmis_59,代码行数:31,代码来源:_form.php

示例13:

$form = ActiveForm::begin();
?>
<div class="row">
    <div class="col-md-6">
    <?php 
echo $form->field($model2, 'id_kegiatan')->hiddenInput(['value' => $model->id_kegiatan, 'maxlength' => true])->label(false);
?>
     <?php 
$data3 = ArrayHelper::map(\common\models\Pegawai::find()->where('unit_id=132210')->asArray()->all(), 'nip', 'nama');
echo $form->field($model2, 'personil_id')->widget(Select2::classname(), ['data' => $data3, 'options' => ['placeholder' => 'Pilih Nama Pejabat'], 'pluginOptions' => ['allowClear' => true]])->label('Nama Personil');
?>
    </div>
    <div class="col-md-6">
    <br/>
    <?php 
echo $form->field($model2, 'tgl_terima')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Tanggal Kirim'], 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-m-d']])->label('Tanggal Kirim');
?>
    </div>
     <div class="row">
       <div class="col-md-12">
        &nbsp; &nbsp; &nbsp;<?php 
echo Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Kirim '), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
       </div>
    </div>
  </div>
    
    

  
开发者ID:ilhammalik,项目名称:yii2-advanced-beta,代码行数:26,代码来源:kirim_isi.php

示例14:

if (!$incident->isNewRecord) {
    ?>
    
    <hr />
    <h3>Disposition</h3>
    <br />
    <div class="row">
        <div class="col-md-4">
            <?php 
    echo $form->field($incident, 'disposition')->dropDownList(['D' => 'D', 'E' => 'E', 'P' => 'P', 'R' => 'R', 'T' => 'T'], ['prompt' => '']);
    ?>
            <?php 
    echo $form->field($incident, 'disposition_date')->widget(DatePicker::classname(), ['type' => DatePicker::TYPE_INPUT, 'options' => ['value' => $incident->disposition_date ? Yii::$app->formatter->asDate($incident->disposition_date) : '', 'placeholder' => 'Select disposition date ...'], 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd', 'todayHighlight' => true]]);
    ?>
            <?php 
    echo $form->field($incident, 'end_of_stay')->widget(DatePicker::classname(), ['type' => DatePicker::TYPE_INPUT, 'options' => ['value' => $incident->end_of_stay ? Yii::$app->formatter->asDate($incident->end_of_stay) : '', 'placeholder' => 'Select end of stay date ...'], 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd', 'todayHighlight' => true]]);
    ?>
        </div>
        <div class="col-md-4 col-md-offset-2">
            <?php 
    echo $form->field($incident, 'released')->checkbox();
    ?>
            <hr style="border-top: 1px solid #B0B0B0; width: 180px; margin-left: 0;" />
            <?php 
    echo $form->field($incident, 'died')->checkbox();
    ?>
            <?php 
    echo $form->field($incident, 'died_48')->checkbox();
    ?>
            <?php 
    echo $form->field($incident, 'died_96')->checkbox();
开发者ID:eibenm,项目名称:raptorapp,代码行数:31,代码来源:_form.php

示例15: shifts

<div class="body-content">
	<div class="row">
		<div class="col-lg-12">
			<h1>Copy a Team</h1>
			<p>This will copy an event and all of it's team and shifts (but not volunteers) to a new event. 
				Each shift will be moved relative to the start of the new event's date.  So a shift on the first day of the old event at 10am will be set to the first day of the new event at 10am.</p> 
            <?php 
$form = ActiveForm::begin(['id' => 'team-copy-form']);
?>

                <?php 
echo $form->field($model, 'event_id')->dropdownList($model->eventList, ['prompt' => 'Select an event to copy']);
?>

				<?php 
echo $form->field($model, 'start_time')->widget(DatePicker::classname(), ['pluginOptions' => ['defaultTime' => false, 'format' => 'M d  yyyy']]);
?>

                <div class="form-group">
                    <?php 
echo Html::submitButton('Copy', ['class' => 'btn btn-primary', 'name' => 'copy-button']);
?>
                </div>

            <?php 
ActiveForm::end();
?>
			
		</div>
	</div>
</div>
开发者ID:Flashpoint-Artists-Initiative,项目名称:Volunteering,代码行数:31,代码来源:copy.php


注:本文中的kartik\date\DatePicker::classname方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。