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


PHP DepDrop::className方法代码示例

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


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

示例1:

        </div>
    </div>
    <div class="row">
        <div class="col-xs-3 col-sm-3 col-md-3">           
            <?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]]);
开发者ID:inamjung,项目名称:testupgithup,代码行数:31,代码来源:_form.php

示例2: explode

    <?php 
$form = (include \Yii::getAlias("@nitm/views/layouts/form/header.php"));
?>
	<?php 
echo $form->field($model, 'action')->widget(Select2::className(), ['data' => $model->setting('actions'), 'theme' => Select2::THEME_KRAJEE, 'options' => ['id' => 'alert-action' . $uniqid, 'placeholder' => 'Alert me...', "allowClear" => true]])->label("Action");
?>
    
	<?php 
echo $form->field($model, 'remote_type')->widget(DepDrop::className(), ['value' => $model->remote_type, 'data' => [$model->remote_type => $model->properName($model->remote_type)], 'options' => ['placeholder' => ' select something ', 'id' => 'alert-type' . $uniqid], 'type' => DepDrop::TYPE_SELECT2, 'select2Options' => ['id' => 'alert-remote-type' . $uniqid, 'pluginOptions' => ['allowClear' => true]], 'pluginOptions' => ['depends' => ['alert-action' . $uniqid], 'url' => Url::to(['/alerts/list/types']), 'loadingText' => '...', 'placeholder' => ' type of ']])->label("Remote Type");
?>
    
	<?php 
echo $form->field($model, 'remote_for')->widget(DepDrop::className(), ['value' => $model->remote_for, 'data' => [$model->remote_for => $model->properName($model->remote_for)], 'options' => ['placeholder' => ' for ', 'id' => 'alert-for' . $uniqid], 'type' => DepDrop::TYPE_SELECT2, 'select2Options' => ['id' => 'alert-remote-type' . $uniqid, 'pluginOptions' => ['allowClear' => true]], 'pluginOptions' => ['depends' => ['alert-type' . $uniqid], 'url' => Url::to(['/alerts/list/for']), 'loadingText' => '...', 'placeholder' => ' and it\'s for a/an ']])->label("Remote For");
?>
	<?php 
echo $form->field($model, 'priority')->widget(DepDrop::className(), ['value' => $model->priority, 'data' => [$model->priority => $model->properName($model->priority)], 'options' => ['placeholder' => ' and it if has a priority of ', 'id' => 'priority' . $uniqid], 'type' => DepDrop::TYPE_SELECT2, 'select2Options' => ['id' => 'alert-priority' . $uniqid, 'pluginOptions' => ['allowClear' => true]], 'pluginOptions' => ['depends' => ['alert-type' . $uniqid], 'url' => Url::to(['/alerts/list/priority']), 'loadingText' => '...', 'placeholder' => ' and has a proiority of ']])->label("Priority");
?>
	<?php 
echo $form->field($model, 'methods')->widget(Select2::className(), ['value' => explode(',', $model->methods), 'options' => ['id' => 'alert-methods' . $uniqid, 'placeholder' => ' then alert me using'], 'data' => \nitm\helpers\alerts\DispatcherData::supportedMethods()])->label("Priority");
?>
	
		
	<?php 
if (!\Yii::$app->request->isAjax) {
    ?>
	<div class="btn-group">
		<?php 
    echo Html::submitButton(ucfirst($action), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
    ?>
	</div>
	<?php 
开发者ID:nhatvuvan,项目名称:yii2-widgets,代码行数:31,代码来源:_form.php

示例3: isset

?>
</a></li>
    </ul>
    <br/>
    <div class="tab-content">
        <div id="main" class="tab-pane active">
            <?php 
echo $form->field($model, 'menu_type_id')->dropDownList(['' => Yii::t('gromver.platform', 'Select ...')] + \yii\helpers\ArrayHelper::map(\gromver\platform\common\models\MenuType::find()->all(), 'id', 'title'), ['id' => 'menu_type_id']);
?>

            <?php 
echo $form->field($model, 'language')->dropDownList(Yii::$app->getLanguagesList(), ['prompt' => Yii::t('gromver.platform', 'Select ...'), 'id' => 'language']);
?>

            <?php 
echo $form->field($model, 'parent_id')->widget(\kartik\widgets\DepDrop::className(), ['pluginOptions' => ['depends' => ['menu_type_id', 'language'], 'placeholder' => Yii::t('gromver.platform', 'Select ...'), 'url' => \yii\helpers\Url::to(['type-items', 'update_item_id' => $model->isNewRecord ? null : $model->id, 'selected' => $model->parent_id])]]);
?>

            <?php 
echo $form->field($model, 'title')->textInput(['maxlength' => 1024, 'placeholder' => isset($sourceModel) ? $sourceModel->title : null]);
?>

            <?php 
echo $form->field($model, 'alias')->textInput(['maxlength' => 255, 'placeholder' => Yii::t('gromver.platform', 'Auto-generate')]);
?>

            <?php 
echo $form->field($model, 'status')->dropDownList(['' => Yii::t('gromver.platform', 'Select ...')] + $model->statusLabels());
?>

            <?php 
开发者ID:gromver,项目名称:yii2-platform,代码行数:31,代码来源:_form.php

示例4: date

                <div class="form-group container">
                    <?php 
echo Html::activeLabel($model, 'detail_text');
?>
                    <div>
                        <?php 
echo \mihaildev\ckeditor\CKEditor::widget(['model' => $model, 'attribute' => 'detail_text', 'editorOptions' => \mihaildev\elfinder\ElFinder::ckeditorOptions('grom/media/manager', ['extraPlugins' => 'codesnippet'])]);
?>
                    </div>
                </div>
                <?php 
echo $form->field($model, 'language')->dropDownList(Yii::$app->getLanguagesList(), ['prompt' => Yii::t('gromver.platform', 'Select ...'), 'id' => 'language']);
?>

                <?php 
echo $form->field($model, 'category_id')->widget(\kartik\widgets\DepDrop::className(), ['pluginOptions' => ['depends' => ['language'], 'placeholder' => Yii::t('gromver.platform', 'Select ...'), 'url' => \yii\helpers\Url::to(['categories', 'selected' => $model->category_id])]]);
?>

                <?php 
echo $form->field($model, 'status')->dropDownList(['' => Yii::t('gromver.platform', 'Select ...')] + $model->statusLabels());
?>

                <?php 
echo $form->field($model, 'published_at')->widget(\kartik\widgets\DateTimePicker::className(), ['options' => ['value' => date('d.m.Y H:i', is_int($model->published_at) ? $model->published_at : time())], 'pluginOptions' => ['format' => 'dd.mm.yyyy hh:ii', 'autoclose' => true]]);
?>
            </div>

            <div id="advanced-options" class="tab-pane">
                <?php 
echo $form->field($model, 'preview_text')->textarea(['rows' => 6]);
?>
开发者ID:gromver,项目名称:yii2-platform,代码行数:31,代码来源:_form.php

示例5:

echo $form->field($model, 'address')->textInput(['maxlength' => true]);
?>
        </div> 
        <div class="col-xs-4 col-sm-4 col-md-3">
            <?php 
echo $form->field($model, 'village')->textInput(['maxlength' => true]);
?>
        </div>
        <div class="col-xs-4 col-sm-4 col-md-3">           
            <?php 
echo $form->field($model, 'amphur')->widget(Select2::className(), ['data' => ArrayHelper::map(Campur::find()->orderBy('ampurname')->all(), 'ampurcodefull', 'ampurname'), 'options' => ['id' => 'ddl-ampur', 'placeholder' => '<--คลิกเลือกอำเภอ-->'], 'pluginOptions' => ['allowClear' => true]]);
?>
        </div> 
        <div class="col-xs-4 col-sm-4 col-md-3">            
            <?php 
echo $form->field($model, 'tambon')->widget(DepDrop::className(), ['data' => $tambon, 'options' => ['id' => 'ddl-tambon', 'placeholder' => '<--คลิกเลือกหรือพิมพ์ชื่อตำบล-->'], 'type' => DepDrop::TYPE_SELECT2, 'select2Options' => ['pluginOptions' => ['allowClear' => true]], 'pluginOptions' => ['depends' => ['ddl-ampur'], 'url' => Url::to(['/patient/get-tambon']), 'loadingText' => 'Loading1...']]);
?>
             
        </div> 
</div>
        <hr/> 
        
<div class="page-header-line">
    <h3><label class="label label-danger">ข้อมูลเข้ารับการรักษาพยาบาล</label></h3>
</div>

        <div class="row">
        <div class="col-xs-4 col-sm-4 col-md-4">
            <?php 
echo $form->field($model, 'hospcode')->widget(Select2::className(), ['data' => ArrayHelper::map(Chospital::find()->orderBy('hospname')->all(), 'hospcode', 'hospname'), 'options' => ['placeholder' => '<--คลิกเลือกชื่อสถานพยาบาล-->'], 'pluginOptions' => ['allowClear' => true]]);
?>
开发者ID:utehnphnu2015,项目名称:stoke,代码行数:31,代码来源:_form.php


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