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


PHP DepDrop::classname方法代码示例

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


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

示例1:

?>
	
    <?php 
echo $form->field($model, 'industry_address')->textarea(['rows' => 6]);
?>
	
	<?php 
echo $form->field($model, 'industry_propinsi')->dropDownList(ArrayHelper::map(Lokasi::find()->where('kabupaten_kota = :kabkota', [':kabkota' => 00])->all(), 'id', 'nama'), ['prompt' => '']);
?>
	<?php 
if ($model->isNewRecord == true) {
    echo $form->field($model, 'industry_kabkota')->widget(DepDrop::classname(), ['pluginOptions' => ['depends' => ['client-industry_propinsi'], 'placeholder' => 'Select...', 'url' => Url::to(['/site/get-kab-kota'])]]);
    echo $form->field($model, 'industry_kecamatan')->widget(DepDrop::classname(), ['pluginOptions' => ['depends' => ['client-industry_kabkota'], 'placeholder' => 'Select...', 'url' => Url::to(['/site/get-kecamatan'])]]);
} else {
    echo $form->field($model, 'industry_kabkota')->widget(DepDrop::classname(), ['data' => ArrayHelper::map(Lokasi::find()->where('id = :id', [':id' => $model->industry_kabkota])->all(), 'id', 'nama'), 'pluginOptions' => ['depends' => ['client-industry_propinsi'], 'placeholder' => 'Select...', 'url' => Url::to(['/site/get-kab-kota'])]]);
    echo $form->field($model, 'industry_kecamatan')->widget(DepDrop::classname(), ['data' => ArrayHelper::map(Lokasi::find()->where('id = :id', [':id' => $model->industry_kecamatan])->all(), 'id', 'nama'), 'pluginOptions' => ['depends' => ['client-industry_kabkota'], 'placeholder' => 'Select...', 'url' => Url::to(['/site/get-kecamatan'])]]);
}
?>
	
    <?php 
echo $form->field($model, 'industry_kode_pos')->textInput(['maxlength' => true]);
?>
	
    <?php 
echo $form->field($model, 'industry_telp')->textInput(['maxlength' => true]);
?>
	
    <?php 
echo $form->field($model, 'industry_fax')->textInput(['maxlength' => true]);
?>
	
开发者ID:niego,项目名称:roksurv-soft,代码行数:30,代码来源:_form.php

示例2: function

 */
$this->registerJs("\n\n\t\t\t \$.fn.modal.Constructor.prototype.enforceFocus = function(){};\n\t\t\t\t \$('#ModulEvent').on('beforeSubmit',function(){\n\t\t\t\t\t var tgl2 = \$('#modalTitle').val();\n\t\t\t\t\t var tgl1 = \$('#tglawal').val();\n\t\t\t\t\t var parent = \$('#modelevent-modul_prn').val();\n\t\t\t\t\t var modulid = \$('#modelevent-modul_id').val();\n\t\t\t\t\t\$.ajax({\n\t\t\t\t\t\t\turl: '/sistem/personalia/save-event',\n\t\t\t\t\t\t\ttype: 'POST',\n\t\t\t\t\t\t\tdata: {title :tgl2,modulid :modulid,tgl1:tgl1,parent:parent},\n\t\t\t\t\t\t\tdataType: 'json',\n\t\t\t\t\t\t\tsuccess: function(result) {\n\t\t\t\t\t\t\t\tif (result == 1){\n\t\t\t\t\t\t\t\t\t\t\t\t \$(document).find('#confirm-permission-alert').modal('hide');\n\t\t\t\t\t\t\t\t\t\t\t\t    \$.pjax.reload({container:'#gv-event'});\n\t\t\t\t\t\t\t\t\t\t\t }\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t\t\t\t});\n\t\t", $this::POS_READY);
Modal::begin(['id' => 'confirm-permission-alert', 'size' => Modal::SIZE_SMALL]);
/* echo  '<div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span> <span class="sr-only">close</span></button>
                <h4 id="modalTitle" class="modal-title"></h4>
            </div>
			 <div id="modalBody" class="modal-body"></div>
			'; */
$form = ActiveForm::begin(['id' => $modelEvent->formName()]);
echo $form->field($modelEvent, 'title')->Hiddeninput(['id' => 'modalTitle'])->label(false);
?>
				<input type="hidden" id="tglawal">
				<?php 
echo $form->field($modelEvent, 'MODUL_ID')->dropDownList($aryModulID, ['id' => 'modelevent-modul_id'])->label('Attendance Parent');
echo $form->field($modelEvent, 'MODUL_PRN')->widget(DepDrop::classname(), ['type' => DepDrop::TYPE_SELECT2, 'data' => $droptype, 'options' => ['id' => 'modelevent-modul_prn'], 'pluginOptions' => ['depends' => ['modelevent-modul_id'], 'url' => Url::to(['/sistem/personalia/modul-child']), 'initialize' => true]])->label('Attendance Child');
// echo FileInput::widget([
// 'name'=>'import_file',
// 'name' => 'attachment_48[]',
// 'options'=>[
// 'multiple'=>true
// ],
// 'pluginOptions' => [
// 'uploadUrl' => Url::to(['/sales/import-data/upload']),
// 'showPreview' => false,
// 'showUpload' => false,
// 'showCaption' => true,
// 'showRemove' => true,
// 'uploadExtraData' => [
// 'album_id' => 20,
// 'cat_id' => 'Nature'
开发者ID:adem-team,项目名称:advanced,代码行数:31,代码来源:index.php

示例3: date

    <?php 
$form = ActiveForm::begin(['id' => 'roInput', 'enableClientValidation' => true, 'method' => 'post', 'action' => ['/purchasing/request-order/simpanfirst']]);
?>
	<?php 
//= $form->errorSummary($model);
?>
	
    <?php 
echo $form->field($roDetail, 'CREATED_AT', ['template' => "{input}"])->hiddenInput(['value' => date('Y-m-d H:i:s'), 'readonly' => true]);
?>

    <?php 
echo $form->field($roDetail, 'KD_CORP')->dropDownList($userCorp, ['id' => 'rodetail-kd_corp', 'prompt' => ' -- Pilih Salah Satu --'])->label('Perusahaan');
echo $form->field($roDetail, 'KD_TYPE')->widget(DepDrop::classname(), ['type' => DepDrop::TYPE_SELECT2, 'data' => $brgType, 'options' => ['id' => 'rodetail-kd_type'], 'pluginOptions' => ['depends' => ['rodetail-kd_corp'], 'url' => Url::to(['/purchasing/sales-order/corp-type']), 'initialize' => true]])->label('Type');
echo $form->field($roDetail, 'KD_KATEGORI')->widget(DepDrop::classname(), ['type' => DepDrop::TYPE_SELECT2, 'data' => $brgKtg, 'options' => ['id' => 'rodetail-kd_kategori'], 'pluginOptions' => ['depends' => ['rodetail-kd_corp', 'rodetail-kd_type'], 'url' => Url::to(['/purchasing/sales-order/type-kat']), 'initialize' => true]]);
echo $form->field($roDetail, 'KD_BARANG')->widget(DepDrop::classname(), ['type' => DepDrop::TYPE_SELECT2, 'data' => $brgProdak, 'options' => ['id' => 'rodetail-kd_barang'], 'pluginOptions' => ['depends' => ['rodetail-kd_kategori'], 'url' => Url::to(['/purchasing/sales-order/brgkat']), 'initialize' => true]]);
echo $form->field($roDetail, 'NM_BARANG')->hiddenInput(['value' => ''])->label(false);
echo $form->field($roDetail, 'UNIT')->widget(Select2::classname(), ['data' => $brgUnit, 'options' => ['placeholder' => 'Pilih Unit Barang ...'], 'pluginOptions' => ['allowClear' => true]]);
?>

    <?php 
echo $form->field($roDetail, 'RQTY')->textInput(['maxlength' => true, 'placeholder' => 'Jumlah Barang']);
?>

    <?php 
echo $form->field($roDetail, 'NOTE')->textarea(array('rows' => 2, 'cols' => 5))->label('Informasi');
?>

    <div class="form-group">
        <?php 
echo Html::submitButton($roDetail->isNewRecord ? 'Create' : 'Update', ['class' => $roDetail->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
开发者ID:adem-team,项目名称:advanced,代码行数:31,代码来源:_formItemXX.php

示例4:

        </div>
    </div>

    <div class="row">
        <div class="col-sm-12">
            
        <?php 
$form = ActiveForm::begin(['id' => $model->formName()]);
?>

        <?php 
echo $form->field($model_day, 'OPT')->widget(Select2::classname(), ['data' => $opt, 'options' => ['placeholder' => 'Pilih ...'], 'pluginOptions' => ['allowClear' => true]])->label('Options Jeda Pekan');
?>

        <?php 
echo $form->field($model, 'DAY_ID')->widget(DepDrop::classname(), ['type' => DepDrop::TYPE_SELECT2, 'options' => ['placeholder' => 'Select ...'], 'select2Options' => ['pluginOptions' => ['allowClear' => true]], 'pluginOptions' => ['depends' => ['dayname-opt'], 'initialize' => true, 'loadingText' => 'Loading  ...', 'url' => Url::to(['/master/draft-plan/lisday'])]])->label('Setel Hari');
?>

       <!--   $form->field($model, 'DAY_ID')->widget(Select2::classname(), [
                // 'data' => $opt,
                'options' => ['placeholder' => 'Pilih ...'],
                'pluginOptions' => [
                    'allowClear' => true,

                     ],
            ]);?> -->


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

示例5: JsExpression

$this->registerMetaTag(['property' => 'og:description', 'content' => $met_description]);
$this->registerMetaTag(['name' => 'description', 'content' => $met_description]);
$this->registerMetaTag(['name' => 'keywords', 'content' => $met_description]);
?>
<div class="row">
    <div class="col-md-2">
        <?php 
$form = ActiveForm::begin(['id' => $searchModel->formName(), 'enableAjaxValidation' => false, 'enableClientValidation' => false, 'method' => 'get']);
?>
        <?php 
echo $form->field($searchModel, 'category_id')->widget(Select2::classname(), ['language' => Yii::$app->helper->getTwoCharLanguage(), 'size' => Select2::MEDIUM, 'options' => [], 'pluginOptions' => ['allowClear' => true, 'minimumInputLength' => 2, 'ajax' => ['url' => $categoriesListUrl, 'dataType' => 'json', 'data' => new JsExpression('function(params) { return {search:params.term}; }'), 'results' => new JsExpression('function(data,page) { return {results:data.results}; }')], 'initSelection' => new JsExpression($initCategoriesListScript)]]);
?>
        <?php 
echo $form->field($searchModel, 'country_id')->widget(Select2::className(), ['data' => ArrayHelper::map(Country::find()->asArray()->all(), 'id', 'name'), 'language' => Yii::$app->helper->getTwoCharLanguage(), 'options' => ['placeholder' => Yii::t('app', 'Select...')], 'pluginOptions' => ['allowClear' => true]]);
echo $form->field($searchModel, 'province_id')->widget(DepDrop::classname(), ['data' => !$searchModel->country_id ? [] : ArrayHelper::map(Province::find()->where(['country_id' => $searchModel->country_id])->asArray()->all(), 'id', 'name'), 'type' => DepDrop::TYPE_SELECT2, 'options' => ['placeholder' => Yii::t('app', 'Select...')], 'select2Options' => ['pluginOptions' => ['allowClear' => true], 'language' => Yii::$app->helper->getTwoCharLanguage()], 'pluginOptions' => ['depends' => ['search-country_id'], 'url' => Url::to(['/province/dep-list']), 'loadingText' => Yii::t('app', 'Loading...')]]);
echo $form->field($searchModel, 'city_id')->widget(DepDrop::classname(), ['data' => !$searchModel->province_id ? [] : ArrayHelper::map(City::find()->where(['province_id' => $searchModel->province_id])->asArray()->all(), 'id', 'name'), 'options' => ['placeholder' => Yii::t('app', 'Select...')], 'type' => DepDrop::TYPE_SELECT2, 'select2Options' => ['pluginOptions' => ['allowClear' => true], 'language' => Yii::$app->helper->getTwoCharLanguage()], 'pluginOptions' => ['depends' => ['search-province_id'], 'url' => Url::to(['/city/dep-list']), 'loadingText' => Yii::t('app', 'Loading...')]]);
?>
            <?php 
echo $form->field($searchModel, 'title')->textInput();
?>
            <?php 
echo $form->field($searchModel, 'address')->textInput();
?>
            <?php 
echo Html::hiddenInput('view', $adverView, ['id' => 'hiddenViewMode']);
?>
        <div class="form-group">
            <?php 
echo Html::submitButton(Yii::t('app', 'Search'), ['class' => 'btn btn-primary']);
?>
        </div>
开发者ID:rocketyang,项目名称:admap,代码行数:31,代码来源:index.php

示例6:

?>

<div class="kota-form">

    <?php 
$form = ActiveForm::begin(['id' => $model->formName(), 'enableClientValidation' => true, 'enableAjaxValidation' => true, 'validationUrl' => Url::toRoute('/purchasing/salesman-order/valid-alias-header')]);
?>

    

    <?php 
echo $form->field($model, 'parent_cusid')->widget(Select2::classname(), ['data' => $data_cus, 'options' => ['placeholder' => 'Pilih parent Customers..'], 'pluginOptions' => ['allowClear' => true]]);
?>

    <?php 
echo $form->field($model, 'CUST_ID')->widget(DepDrop::classname(), ['options' => ['placeholder' => 'Select Customers'], 'type' => DepDrop::TYPE_SELECT2, 'select2Options' => ['pluginOptions' => ['allowClear' => true]], 'pluginOptions' => ['depends' => ['soheader-parent_cusid'], 'url' => Url::to(['/purchasing/salesman-order/lis-child-cus']), 'loadingText' => 'Loading data ...']]);
?>

    <?php 
echo $form->field($model, 'TGL')->widget(DateTimePicker::classname(), ['options' => ['placeholder' => ' pilih ...'], 'pluginOptions' => ['autoclose' => true], 'pluginEvents' => ['show' => "function(e) {errror}"]]);
?>


     <?php 
echo $form->field($model, 'USER_SIGN1')->widget(Select2::classname(), ['data' => $data_user, 'options' => ['placeholder' => 'Pilih User..'], 'pluginOptions' => ['allowClear' => true]]);
?>


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

示例7: date

// 		'depends'=>['additemvalidation-kd_corp','additemvalidation-kd_type'],
// 		'url'=>Url::to(['/purchasing/request-order/type-kat']),
// 		'initialize'=>true,
// 	],
// ]);
?>
			<?php 
echo $form->field($roDetail, 'cREATED_AT', ['template' => "{input}"])->hiddenInput(['value' => date('Y-m-d H:i:s'), 'readonly' => true]);
?>
			<?php 
echo $form->field($roDetail, 'kD_RO', ['template' => "{input}"])->textInput(['value' => $roHeader->KD_RO, 'type' => 'hidden']);
?>

			<?php 
echo $form->field($roDetail, 'hARGA')->hiddenInput(['value' => ''])->label(false);
echo $form->field($roDetail, 'kD_BARANG')->widget(DepDrop::classname(), ['type' => DepDrop::TYPE_SELECT2, 'data' => $brgUmum, 'options' => ['id' => 'additemvalidation-kd_barang'], 'pluginOptions' => ['depends' => ['additemvalidation-kd_kategori'], 'url' => Url::to(['/purchasing/request-order/brgkat']), 'initialize' => true]]);
/* echo $form->field($roDetail, 'uNIT')->widget(DepDrop::classname(), [
				'type'=>DepDrop::TYPE_DEFAULT,
				'data' => $brgUnit,
				'options' => ['id'=>'unit-id','readonly'=>true,'selected'=>false],
				'pluginOptions' => [
					'depends'=>['additemvalidation-kd_kategori','additemvalidation-kd_barang'],
					'url'=>Url::to(['/purchasing/request-order/brgunit']),
					'initialize'=>true,
					'placeholder' => false,
				],
			]);   */
echo $form->field($roDetail, 'uNIT')->widget(Select2::classname(), ['data' => $brgUnit, 'options' => ['placeholder' => 'Pilih Unit Barang ...'], 'pluginOptions' => ['allowClear' => true]]);
?>

			<?php 
开发者ID:adem-team,项目名称:advanced,代码行数:31,代码来源:additem.php

示例8:

<?php

/**
 * @author Niko Gasco
 * @copyright 2015
 */
use kartik\widgets\DepDrop;
// Parent
echo $form->field($model, 'cat')->dropDownList($catList, ['id' => 'cat-id']);
// Child # 1
echo $form->field($model, 'subcat')->widget(DepDrop::classname(), ['options' => ['id' => 'subcat-id'], 'pluginOptions' => ['depends' => ['cat-id'], 'placeholder' => 'Select...', 'url' => Url::to(['/site/subcat'])]]);
// Child # 2
echo $form->field($model, 'prod')->widget(DepDrop::classname(), ['pluginOptions' => ['depends' => ['cat-id', 'subcat-id'], 'placeholder' => 'Select...', 'url' => Url::to(['/site/prod'])]]);
开发者ID:nikolasg22,项目名称:curso_yii,代码行数:13,代码来源:depdrop.php

示例9:

    echo $form->field($model, 'urls')->widget(Select2::classname(), ['data' => array_merge(["" => ""], app\models\Article::makeLink($model->langs)), 'options' => ['placeholder' => 'เลือกเนื้อหาเว็บไซต์ หรือ บทความ', 'class' => 'form-control'], 'pluginOptions' => ['allowClear' => true]]);
} else {
    if ($type == 'links') {
        echo $form->field($model, 'urls')->input('text', ['placeholder' => 'เช่น http://www.nongkhai.go.th']);
    }
}
?>
                <?php 
echo $form->field($model, 'description')->textarea();
?>
            </div>
            <div class="col-sm-4">
                <?php 
echo $form->field($model, 'langs')->dropDownList(\app\models\tblLangs::makeDropDown(), ['style' => 'width: 150px;']);
echo $form->field($model, 'type')->widget(Select2::classname(), ['data' => \app\models\TblMenutype::makeDropDown($model->langs), 'hideSearch' => true, 'options' => ['placeholder' => 'เลือก...', 'class' => 'form-control ', 'multiple' => false, 'style' => 'width: 98%;']]);
echo $form->field($model, 'parent_id')->widget(DepDrop::classname(), ['type' => DepDrop::TYPE_SELECT2, 'data' => [$model->parent_id => ''], 'options' => ['style' => 'width: 98%;'], 'select2Options' => ['hideSearch' => true], 'pluginOptions' => ['depends' => [Html::getInputId($model, 'type')], 'placeholder' => 'เลือก...', 'url' => Url::to(["getsubmenu"]), 'initialize' => true]]);
?>
            
                <?php 
echo $form->field($model, 'published')->widget(SwitchInput::classname(), ['pluginOptions' => ['size' => 'normal'], 'inlineLabel' => false]);
?>
                <?php 
echo $form->field($model, 'target')->widget(SwitchInput::classname(), ['pluginOptions' => ['size' => 'normal', 'onText' => 'หน้าต่างใหม่', 'offText' => 'หน้าต่างเดิม'], 'inlineLabel' => false]);
?>
            </div>
        </div>

        <?php 
echo $form->field($model, 'id', ['options' => ['class' => 'sr-only']])->hiddenInput();
?>
        <?php 
开发者ID:jatuponp,项目名称:discovery,代码行数:31,代码来源:update.php

示例10:

    <div class="panel panel-primary">
        <div class="panel-heading">
            <h3 class="panel-title">Registrar</h3>
        </div>
        <div class="panel-body">
            <div class="row">

                <div class="col-md-3">
                    <?php 
echo $form->field($model, 'id_departamento')->widget(Select2::classname(), ['data' => ArrayHelper::map(\app\models\Divipola::find()->all(), 'id_dpto', 'dpto'), 'options' => ['placeholder' => 'Seleccione una opción'], 'pluginOptions' => ['allowClear' => true]]);
?>

                </div>
                <div class="col-md-3">
                    <?php 
echo $form->field($model, 'id_municipio')->widget(DepDrop::classname(), ['type' => DepDrop::TYPE_SELECT2, 'pluginOptions' => ['depends' => ['detalleproyecto-id_departamento'], 'loadingText' => 'Cargando...', 'placeholder' => 'Seleccione ciudad', 'url' => Url::to(['divipola/ciudades'])]]);
?>
                </div>
                <div class="col-md-3">
                    <?php 
echo $form->field($model, 'latitud')->textInput();
?>
                </div>
                <div class="col-md-3">
                    <?php 
echo $form->field($model, 'longitud')->textInput();
?>
                </div>
            </div>
            <div class="row">
                <div class="col-md-12">
开发者ID:jcesarrc,项目名称:cobertura,代码行数:31,代码来源:_form.php

示例11:

$dropunit = ArrayHelper::map(Unitbarang::find()->all(), 'KD_UNIT', 'NM_UNIT');
$dropsup = ArrayHelper::map(Suplier::find()->all(), 'KD_SUPPLIER', 'NM_SUPPLIER');
?>

<div class="barang-form">

    <?php 
$form = ActiveForm::begin(['type' => ActiveForm::TYPE_HORIZONTAL, 'method' => 'post', 'id' => 'form-prodak-id', 'enableClientValidation' => true, 'options' => ['enctype' => 'multipart/form-data']]);
?>
		<?php 
echo $form->field($model, 'PARENT')->hiddenInput(['value' => 1, 'maxlength' => true])->label(false);
?>
		<?php 
echo $form->field($model, 'KD_CORP')->dropDownList($drop, ['id' => 'barang-kd_corp', 'readonly' => true])->label('Perusahaan');
echo $form->field($model, 'KD_TYPE')->widget(DepDrop::classname(), ['type' => DepDrop::TYPE_SELECT2, 'data' => $droptype, 'options' => ['id' => 'barang-kd_type'], 'pluginOptions' => ['depends' => ['barang-kd_corp'], 'url' => Url::to(['/dashboard/gsn-product/prodak-corp-type']), 'initialize' => true]]);
echo $form->field($model, 'KD_KATEGORI')->widget(DepDrop::classname(), ['type' => DepDrop::TYPE_SELECT2, 'data' => $dropkat, 'options' => ['id' => 'barang-kd_kategori'], 'pluginOptions' => ['depends' => ['barang-kd_corp', 'barang-kd_type'], 'url' => Url::to(['/dashboard/gsn-product/prodak-type-kat']), 'initialize' => true]]);
?>
		<?php 
echo $form->field($model, 'NM_BARANG')->textInput(['maxlength' => true]);
?>
		<?php 
echo $form->field($model, 'KD_UNIT')->widget(Select2::classname(), ['data' => $dropunit, 'options' => ['placeholder' => 'Pilih KD UNIT ...'], 'pluginOptions' => ['allowClear' => true]]);
?>
		
		<?php 
echo $form->field($model, 'KD_SUPPLIER')->widget(Select2::classname(), ['data' => $dropsup, 'options' => ['placeholder' => 'Pilih  Nama Supplier ...'], 'pluginOptions' => ['allowClear' => true]]);
?>
		
		
		<?php 
/* $form->field($model, 'KD_DISTRIBUTOR')->widget(Select2::classname(), [
开发者ID:adem-team,项目名称:advanced,代码行数:31,代码来源:_form.php

示例12:

							<div class="row">
								<div class="col-md-12">
									<?php 
echo $form->field($model, 'PLACE')->textInput(['disabled' => $mode == 'view' ? true : false]);
?>
								</div>
							</div>
							<div class="row">
								<div class="col-md-6">
									<?php 
echo $form->field($model, 'PROVINCE_CODE')->widget(Select2::classname(), ['data' => \yii\helpers\ArrayHelper::map(app\models\EfThaiProvince::find()->all(), 'PROVINCE_ID', 'PROVINCE_NAME'), 'options' => ['placeholder' => 'กรุณาเลือกจังหวัด', 'disabled' => $mode == 'view' ? true : false], 'pluginOptions' => ['allowClear' => false]]);
?>
								</div>
								<div class="col-md-6">
									<?php 
echo $form->field($model, 'AMPHOE_CODE')->widget(DepDrop::classname(), ['data' => \yii\helpers\ArrayHelper::map(app\models\EfThaiAmphur::find()->where(['AMPHUR_ID' => $model->AMPHOE_CODE])->all(), 'AMPHUR_ID', 'AMPHUR_NAME'), 'type' => DepDrop::TYPE_SELECT2, 'select2Options' => ['pluginOptions' => ['allowClear' => false]], 'options' => ['disabled' => $mode == 'view' ? true : false], 'pluginOptions' => ['depends' => $mode == 'view' ? [''] : ['efproject-province_code'], 'initialize' => $model->isNewRecord ? false : true, 'url' => Url::to(['/common/ajax/get-amphur-list']), 'loadingText' => 'Loading ...', 'placeholder' => 'เลือกจังหวัดก่อน']]);
?>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="row">
			<div class="col-md-12">
				<div class="">
					<div class="panel panel-primary dummy-data">
						<div class="panel-heading">
							<h3 class="panel-title">รายละเอียดโครงการ</h3>
						</div>
开发者ID:bomcpe11,项目名称:cosmos,代码行数:31,代码来源:_form.php

示例13:

?>

        <div class="fields-group-heading">
            <h3>Работа</h3>
        </div>

        <?php 
echo $form->field($model, 'rabotaOrgVedomstvo')->widget(Select2::classname(), ['data' => Vedomstvo::find()->formattedAll(EntityQuery::DROP_DOWN, 'nazvanie')]);
?>

        <?php 
echo $form->field($model, 'rabotaOrgAdres')->widget(Select2::classname(), ['data' => AdresnyjObjekt::findBurRajon()->commonOnly()->formattedAll(EntityQuery::DROP_DOWN, 'formalnoeNazvanie')]);
?>

        <?php 
echo SwitchingFields::widget(['commonOptions' => ['form' => $form, 'model' => $model, 'options' => ['template' => "{label}\n<div class=\"col-md-8\">\n{input}\n{hint}\n{error}\n{switch}\n</div>", 'options' => ['class' => 'form-group']]], 'field1Options' => ['attribute' => 'rabotaOrgId', 'switchIntroText' => 'Не нашли в списке?', 'switchLinkText' => 'Нажмите здесь чтобы ввести организацию вручную.', 'widgetClass' => DepDrop::classname(), 'widgetConfig' => ['type' => DepDrop::TYPE_SELECT2, 'data' => [$model->rabotaOrgId => null], 'pluginOptions' => ['depends' => [Html::getInputId($model, 'rabotaOrgVedomstvo'), Html::getInputId($model, 'rabotaOrgAdres')], 'loadingText' => 'Загрузка организаций...', 'initialize' => true, 'placeholder' => 'Выберите образовательную организацию', 'url' => Url::to(['kadry/rabota-org'])]], 'widgetConfigDisabled' => ['disabled' => true]], 'field2Options' => ['attribute' => 'rabotaOrgNazvanie', 'switchIntroText' => 'Возможно ваша организация есть в списке.', 'switchLinkText' => 'Нажмите здесь чтобы найти её в списке.']]);
?>

        <?php 
echo SwitchingFields::widget(['commonOptions' => ['form' => $form, 'model' => $model, 'options' => ['template' => "{label}\n<div class=\"col-md-8\">\n{input}\n{hint}\n{error}\n{switch}\n</div>", 'options' => ['class' => 'form-group']]], 'field1Options' => ['attribute' => 'rabotaDolzhnostId', 'switchIntroText' => 'Не нашли в списке?', 'switchLinkText' => 'Нажмите здесь чтобы ввести должность вручную.', 'widgetClass' => Select2::className(), 'widgetConfig' => ['data' => Dolzhnost::find()->commonOnly()->formattedAll(EntityQuery::DROP_DOWN, 'nazvanie')], 'widgetConfigDisabled' => ['disabled' => true]], 'field2Options' => ['attribute' => 'rabotaDolzhnostNazvanie', 'switchIntroText' => 'Возможно ваша должность есть в списке.', 'switchLinkText' => 'Нажмите здесь чтобы найти её в списке.']]);
?>

        <?php 
echo $form->field($model, 'rabotaEtapObrazovaniya')->widget(Select2::className(), ['data' => EtapObrazovaniya::namesMap()]);
?>

        <?php 
echo $form->field($model, 'rabotaTelefon')->widget(MaskedInput::className(), ['mask' => '+79999999999']);
?>

        <div class="fields-group-heading">
开发者ID:tsyrya,项目名称:mybriop,代码行数:31,代码来源:registraciya.php

示例14:

echo $form->field($model, 'address')->textInput();
?>
<div class="row">
    <div class="col-sm-4 col-md-4">
       <?php 
echo $form->field($model, 'province')->dropdownList(ArrayHelper::map(Province::find()->all(), 'PROVINCE_ID', 'PROVINCE_NAME'), ['id' => 'ddl-province', 'prompt' => 'เลือกจังหวัด']);
?>
    </div>
    <div class="col-sm-4 col-md-4">
       <?php 
echo $form->field($model, 'amphur')->widget(DepDrop::classname(), ['options' => ['id' => 'ddl-amphur'], 'data' => $amphur, 'pluginOptions' => ['depends' => ['ddl-province'], 'placeholder' => 'เลือกอำเภอ...', 'url' => Url::to(['/employee/get-amphur'])]]);
?>
    </div>
    <div class="col-sm-4 col-md-4">
      <?php 
echo $form->field($model, 'district')->widget(DepDrop::classname(), ['data' => $district, 'pluginOptions' => ['depends' => ['ddl-province', 'ddl-amphur'], 'placeholder' => 'เลือกตำบล...', 'url' => Url::to(['/employee/get-district'])]]);
?>
    </div>
</div>





    <div class="row">
    <div class="col-sm-4 col-md-4">
        <?php 
echo $form->field($model, 'zip_code')->widget(\yii\widgets\MaskedInput::classname(), ['mask' => '99999']);
?>
    </div>
开发者ID:Mynameadmin,项目名称:Yii2-Learning-Source,代码行数:30,代码来源:_form.php

示例15:

?>



<div class="kategoricus-form">

    <?php 
$form = ActiveForm::begin(['id' => $model->formName(), 'enableClientValidation' => true]);
?>
    
    <?php 
echo $form->field($model, 'cus_Type')->widget(Select2::classname(), ['options' => ['placeholder' => 'Select Category ...'], 'data' => $dropparentkategori])->label('Kategori');
?>

  <?php 
echo $form->field($model, 'cust_ktga')->widget(DepDrop::classname(), ['type' => DepDrop::TYPE_SELECT2, 'options' => ['placeholder' => 'Select ...', 'id' => 'customers-cust_ktga'], 'select2Options' => ['pluginOptions' => ['allowClear' => true]], 'pluginOptions' => ['depends' => ['customers-cus_type'], 'initialize' => true, 'loadingText' => 'Loading  ...', 'url' => Url::to(['/master/customers/lisdata'])]])->label('Type');
?>

 <!-- $form->field($model, 'CUST_GRP')->widget(DepDrop::classname(), [
    'type'=>DepDrop::TYPE_SELECT2,
    'options'=>['placeholder'=>'Select ...'],
    'select2Options'=>['pluginOptions'=>['allowClear'=>true]],
    'pluginOptions'=>[
        'depends'=>['customers-cust_ktg'],
         // 'initialize' => true,
         'loadingText' => 'Loading  ...',
        'url'=>Url::to(['/master/customers/lis-cus']),
    ]
]) ?> -->

  <?php 
开发者ID:adem-team,项目名称:advanced,代码行数:31,代码来源:_pilih_export.php


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