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


PHP MaskedInput::classname方法代码示例

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


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

示例1:

?>

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

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

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

        <?php 
echo $form->field($model, 'icq')->widget(MaskedInput::classname(), ['mask' => '999 999 999', 'clientOptions' => ['removeMaskOnSubmit' => true]]);
?>

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

        <?php 
echo $form->field($model, 'weight')->textInput();
?>

        <?php 
$listdata = ArrayHelper::map(Status::find()->all(), 'id', 'title');
?>
        <?php 
echo $form->field($model, 'status_id')->dropDownList($listdata, ['class' => 'form-control select']);
开发者ID:obedkin,项目名称:atlant,代码行数:31,代码来源:_form.php

示例2:

                </div>
                <div class="col-md-3 col-xs-3">
                    <span>จังหวัด</span><?php 
echo $form->field($model, 'province')->textInput(['placeholder' => 'จังหวัด'])->label(false);
?>
                </div>
                <div class="col-md-3 col-xs-3">
                    <span>ประเทศ</span><?php 
echo $form->field($model, 'country')->textInput(['placeholder' => 'ประเทศ'])->label(false);
?>
                </div>
            </div>
            <div class="row">
                <div class="col-md-4 col-xs-4">
                    <span>โทรศัพท์</span><?php 
echo $form->field($model, 'telephone')->widget(\yii\widgets\MaskedInput::classname(), ['mask' => '99-9999-9999'])->label(false);
?>
                </div>
                <div class="col-md-4 col-xs-4"><span>มีความประสงค์ขออนุญาตนำรถที่จดทะเบียนในประเทศ</span>
                    <?php 
echo $form->field($model, 'car_enroll_country')->textInput(['maxlength' => true])->label(false);
?>
                </div>
                <div class="col-md-4 col-xs-4"><span>หมายเลขทะเบียน</span>
                    <?php 
echo $form->field($model, 'plates_number')->textInput(['maxlength' => true])->label(false);
?>
                </div>
            </div>
            <div class="row">
                <div class="col-xs-6"><span>เข้ามาในราชอาณาจักรเป็นการชั่วคราวเพื่อใช้ในการท่องเที่ยว  ตั้งแต่วันที่ </span>
开发者ID:aekkapun,项目名称:dlt-tcplch,代码行数:31,代码来源:_form.php

示例3:

echo $form->field($model, 'title')->label(false)->radioList(ArrayHelper::map(Title::find()->all(), 'id', 'title'));
?>
        </div>
        <div class="col-md-3">
            <?php 
echo $form->field($model, 'name')->textInput(['maxlength' => true]);
?>
        </div>
        <div class="col-md-3">
            <?php 
echo $form->field($model, 'lname')->textInput(['maxlength' => true]);
?>
        </div>
        <div class="col-md-3">
            <?php 
echo $form->field($model, 'id_no')->widget(\yii\widgets\MaskedInput::classname(), ['mask' => '9-9999-99999-99-9'])->label();
?>
        </div>
    </div>
    <div class="row">
        <div class="col-md-3">
            <?php 
// $form->field($model, 'off_code')->textInput(['maxlength' => true])
?>
            <?php 
echo $form->field($model, 'off_code')->widget(Select2::classname(), ['data' => ArrayHelper::map(Province::find()->where(['BOR_FLAG' => 1])->all(), 'PRV_CODE', 'PRV_DESC'), 'options' => ['placeholder' => 'เลือกจังหวัด ...', 'id' => 'ddl-province-start'], 'pluginOptions' => ['allowClear' => true]])->label();
?>
        </div>
        <div class="col-md-3">
            <?php 
// $form->field($model, 'br_code')->textInput(['maxlength' => true])
开发者ID:aekkapun,项目名称:dlt-tcplch,代码行数:31,代码来源:_form.php

示例4:

<div class="banned-ip-form">

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

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

    <?php 
echo $form->field($model, 'start_ip_num_value')->widget(MaskedInput::classname(), ['mask' => '9[9][9].9[9][9].9[9][9].9[9][9]']);
?>

    <?php 
echo $form->field($model, 'end_ip_num_value')->widget(MaskedInput::classname(), ['mask' => '9[9][9].9[9][9].9[9][9].9[9][9]']);
?>

    <?php 
echo $form->field($model, 'is_active')->widget(CheckboxX::classname(), ['pluginOptions' => ['threeState' => false]]);
?>

    <div class="form-group">
        <?php 
echo Html::submitButton($model->isNewRecord ? 'Добавить' : 'Изменить', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
    </div>

    <?php 
ActiveForm::end();
?>
开发者ID:alexsynytskiy,项目名称:Dynamomania,代码行数:31,代码来源:_form.php

示例5:

                    </div>
                  </div>
                  <div class="col-xs-6">
                    <div class="form-group">
                      <label class="control-label" for="dynamicmodel-total_komisi">Total Komisi</label>
                      <?php 
echo Html::input('text', 'DynamicModel[total_komisi]', '0.00', ['class' => 'form-control', 'id' => 'dynamicmodel-total_komisi', 'readonly' => 'true', 'style' => 'text-align:right;']);
?>
                    </div>
                  </div>
                </div>
              </div>
              <div class="col-xs-6">
                <div class="form-group">
                  <?php 
echo $form->field($simulation, 'jml_saham')->widget(MaskedInput::classname(), ['clientOptions' => ['alias' => 'numeric', 'groupSeparator' => ',', 'radixPoint' => '.', 'autoGroup' => true, 'removeMaskOnSubmit' => true]]);
?>
                </div>
                <div class="form-group">
                  <label class="control-label" for="dynamicmodel-range">Range</label>
                  <?php 
echo Html::input('text', 'DynamicModel[range]', '0.00', ['class' => 'form-control', 'id' => 'dynamicmodel-range', 'readonly' => 'true', 'style' => 'text-align:right;']);
?>
                </div>
                <div class="form-group">
                  <label class="control-label" for="dynamicmodel-total_harga">Total Harga</label>
                  <?php 
echo Html::input('text', 'DynamicModel[total_harga]', '0.00', ['class' => 'form-control', 'id' => 'dynamicmodel-total_harga', 'readonly' => 'true', 'style' => 'text-align:right;']);
?>
                </div>
              </div>
开发者ID:hscstudio,项目名称:psaham,代码行数:31,代码来源:index.php

示例6:

    <div class="row">  
        <div class="col-sm-4">
        <?php 
echo $form->field($model, 'job_firm');
?>
        <?php 
echo $form->field($model, 'job_role');
?>
        </div>
        <div class="col-sm-3">
        <?php 
echo $form->field($model, 'job_phone')->widget(\yii\widgets\MaskedInput::classname(), ['mask' => ['(99)9999-9999']]);
?>
        <?php 
echo $form->field($model, 'job_admission_date')->widget(\yii\widgets\MaskedInput::classname(), ['mask' => ['99/99/9999']]);
?>
        </div>
    </div>
    
    <hr/>

    <?php 
echo $form->field($model, 'reference')->textarea(['rows' => 4])->hint('<i class="fa fa-exclamation-triangle"></i> Favor informar 2 nomes com os respectivos telefones');
?>

    <div class="form-group">
        <?php 
echo Html::submitButton($model->isNewRecord ? '<i class="fa fa-share"></i> Próxima Etapa' : '<i class="fa fa-floppy-o"></i> Gravar', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-success']);
?>
    </div>
开发者ID:phprocks,项目名称:cadastro,代码行数:30,代码来源:_form.php

示例7:

        </div>
        <div style="clear:both;"></div>
    </div>

    <div class="row tech-char">
        <div class="ab_reg">
            Технические характеристики

        </div>

        <?php 
echo $form->field($model, 'year')->widget(MaskedInput::classname(), ['mask' => '9{1,4}', 'clientOptions' => ['greedy' => true, 'alias' => 'year']])->textInput(['maxlength' => true, 'class' => 'inptxt auto-width']);
?>

        <?php 
echo $form->field($model, 'power')->widget(MaskedInput::classname(), ['mask' => '9{1,3}', 'clientOptions' => ['greedy' => true, 'alias' => 'power']])->textInput(['maxlength' => true, 'class' => 'inptxt auto-width']);
?>

        <?php 
echo $form->field($model, 'trans')->radioList($model->getTransList(), ['default' => '1']);
?>
    </div>

    <div class="row tech-char">

        <?php 
echo $form->field($model, 'conditioner')->radioList(['0' => 'Отсутствует', '1' => 'Есть']);
?>
    </div>

    <div class="row tech-char">
开发者ID:HejVkt,项目名称:auto.only3.ru,代码行数:31,代码来源:_form.php

示例8:

?>
      </div>
    </div>

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

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

    <div class="row">
      <div class="col-xs-6 col-sm-4">
      <?php 
echo $form->field($model, 'TELP')->widget(MaskedInput::classname(), ['mask' => '9', 'clientOptions' => ['repeat' => 10, 'greedy' => false, 'removeMaskOnSubmit' => true]]);
?>
      </div>
    </div>
    <div class="row">
      <div class="col-xs-6 col-sm-4">
      <?php 
echo $form->field($model, 'HP')->textInput(['maxlength' => true]);
?>
      </div>
    </div>
    <div class="row">
      <div class="col-xs-6 col-sm-4">
      <?php 
echo $form->field($model, 'CP')->textInput(['maxlength' => true])->label('Kontak');
?>
开发者ID:hscstudio,项目名称:psaham,代码行数:31,代码来源:_form.php

示例9:

<?php

/**
 * @copyright Copyright &copy; Kartik Visweswaran, communityii, 2014 - 2015
 * @package communityii/yii2-user
 * @version 1.0.0
 * @see https://github.com/communityii/yii2-user
 */
use kartik\select2\Select2;
use yii\widgets\MaskedInput;
/**
 * @var comyii\user\models\UserProfile $profile
 */
echo $form->field($profile, 'first_name')->textInput(['maxlength' => true]);
echo $form->field($profile, 'last_name')->textInput(['maxlength' => true]);
?>
<div class="row">
    <div class="col-md-4">
        <?php 
echo $form->field($profile, 'gender')->widget(Select2::classname(), ['data' => $profile->genderList]);
?>
    </div>
    <div class="col-md-8">
        <?php 
echo $form->field($profile, 'birth_date')->widget(MaskedInput::classname(), ['clientOptions' => ['alias' => 'yyyy-mm-dd']]);
?>
    </div>
</div>
开发者ID:communityii,项目名称:yii2-user,代码行数:28,代码来源:_profile.php

示例10: JsExpression

    <?php $form = ActiveForm::begin(); ?>
    <?= $form->field($model, 'loja_idloja', ['template' => ''])->hiddenInput() ?>
    <?php echo $form->errorSummary($model); ?>



    <div class="bs-callout bs-callout-info">
        <h4>Etapa 1 - Informações da venda</h4>
        <div class="row">

            <!--<div class="col-md-4">
                                <? //= $form->field($model, 'data')->widget(DateControl::classname(), ['type' => DateControl::FORMAT_DATE, 'options' => ['pluginOptions' => ['autoclose' => true]]]) ?>
                            </div>-->

            <? $form->field($model, 'data')->widget(\yii\widgets\MaskedInput::classname(), ['clientOptions' => ['alias' => 'date', 'class' => 'hidden']]) ?>

            <div class="col-md-4">
                <?=
                $form->field($model, 'cliente_idcliente')->widget(Select2::classname(), [
                        'pluginOptions' => [
                                'allowClear'         => true,
                                'minimumInputLength' => 2,
                                'ajax'               => [
                                        'url'      => $url_cliente,
                                        'dataType' => 'json',
                                        'data'     => new JsExpression('function(params) { return {search:params.term};}')
                                ],
                        ],
                        'options'       => ['placeholder' => 'Selecione um cliente...'],
                ]) ?>
开发者ID:alissoncti,项目名称:sgo,代码行数:30,代码来源:_form.php

示例11:

?>

            <?php 
echo $form->field($model, 'phone_1', ['template' => $template_phone])->widget(MaskedInput::classname(), ['mask' => '(99) 999-9999', 'options' => ['class' => 'form-control', 'placeholder' => 'Телефон']])->label(false);
?>

            <?php 
echo $form->field($model, 'phone_2', ['template' => $template_phone])->widget(MaskedInput::classname(), ['mask' => '(99) 999-9999', 'options' => ['class' => 'form-control', 'placeholder' => 'Телефон']])->label(false);
?>

            <?php 
echo $form->field($model, 'phone_3', ['template' => $template_phone])->widget(MaskedInput::classname(), ['mask' => '(99) 999-9999', 'options' => ['class' => 'form-control', 'placeholder' => 'Телефон']])->label(false);
?>

            <?php 
echo $form->field($model, 'phone_4', ['template' => $template_phone])->widget(MaskedInput::classname(), ['mask' => '(99) 999-9999', 'options' => ['class' => 'form-control', 'placeholder' => 'Телефон']])->label(false);
?>

            <?php 
echo $form->field($model, 'status')->checkbox();
?>
        </div>
        <div class="col-md-8">
            <?php 
echo $form->field($model, 'description')->widget(\yii\imperavi\Widget::className(), ['plugins' => ['fullscreen', 'fontcolor', 'video'], 'options' => ['minHeight' => 400, 'maxHeight' => 400, 'buttonSource' => true, 'convertDivs' => false, 'removeEmptyTags' => false, 'imageUpload' => Yii::$app->urlManager->createUrl(['/file-storage/upload-imperavi'])]]);
?>
        </div>
    </div>

<!--    --><?php 
//echo $form->field($model, 'price')->textInput(['maxlength' => true])
开发者ID:kartrez,项目名称:pitomec,代码行数:31,代码来源:_form.php

示例12: key

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]);
?>

        <div class="form-group">
            <div class="col-lg-offset-3 col-lg-8">
                <?php 
echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-primary' : 'btn btn-primary']);
?>
            </div>
开发者ID:vfokov,项目名称:tims2,代码行数:31,代码来源:edit.php

示例13:

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

<div class="student-form">

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

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

    <?php 
echo $form->field($model, 'email')->widget(MaskedInput::classname(), ['clientOptions' => ['alias' => 'email']]);
?>

    <?php 
echo $form->field($model, 'birthdate')->widget(DatePicker::className(), ['inline' => true, 'template' => '<div class="well well-sm" style="background-color: #fff; width:250px">{input}</div>', 'language' => 'ru', 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']]);
?>

    <?php 
echo $form->field($model, 'level')->dropDownList(Student::getLevelsList());
?>

    <div class="form-group">
        <?php 
echo Html::submitButton($model->isNewRecord ? 'Добавить' : 'Сохранить', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
    </div>
开发者ID:kmarenov,项目名称:yii2-app-test,代码行数:31,代码来源:_form.php

示例14:

    $form = ActiveForm::begin(['id' => 'rent-form']);
    ?>
                                        <div style="margin-bottom: 10px;text-align: center;padding-left:0px;" class="des-calendar-top">2. Укажите информацию о себе</div>

                                        <div id="left-form-part" style="margin-left: 45px;">

                                            <div class="row-input">
                                                <?php 
    echo $form->field($rentModel, 'name', ['template' => '{input}'])->textInput(['maxlength' => true, 'placeholder' => 'Имя/ФИО']);
    ?>
                                            </div>

                                            <div class="row-input">

                                                <?php 
    echo $form->field($rentModel, 'phone', ['template' => '{input}'])->widget(MaskedInput::classname(), ['clientOptions' => ['name' => 'phone', 'mask' => '8(999)999-9999', 'alias' => 'phone']], ['placeholder' => 'Телефон']);
    ?>

                                            </div>

                                            <?php 
    /*
    <div class="row-input">
        <?= $form->field($rentModel, 'email', ['template'=>'{input}'])->textInput(['maxlength' => true, 'placeholder'=> 'Укажите почту для напоминания']) ?>
    </div>
    */
    ?>
                                        </div>


                                        <div id="right-form-part">
开发者ID:HejVkt,项目名称:auto.only3.ru,代码行数:31,代码来源:reserveCarModule.php

示例15:

        <div class="col-md-2"><?= $form->field($model, 'naturalidade_uf')->dropDownList([ 'RN' => 'RN', 'AC' => 'AC', 'AL' => 'AL', 'AP' => 'AP', 'AM' => 'AM', 'BA' => 'BA', 'CE' => 'CE', 'DF' => 'DF', 'ES' => 'ES', 'GO' => 'GO', 'MA' => 'MA', 'MT' => 'MT', 'MS' => 'MS', 'MG' => 'MG', 'PR' => 'PR', 'PB' => 'PB', 'PA' => 'PA', 'PE' => 'PE', 'PI' => 'PI', 'RJ' => 'RJ', 'RS' => 'RS', 'RO' => 'RO', 'RR' => 'RR', 'SC' => 'SC', 'SE' => 'SE', 'SP' => 'SP', 'TO' => 'TO', ], ['prompt' => '']) ?></div>
        <div class="col-md-2"><?= $form->field($model, 'estadocivil')->dropDownList([ 'Solteiro' => 'Solteiro', 'Casado' => 'Casado', 'Divorciado' => 'Divorciado', 'Viúvo' => 'Viúvo', 'U. Estável' => 'U. Estável', ], ['prompt' => '']) ?></div>
        <div class="col-md-3"><?= $form->field($model, 'profissao')->textInput(['maxlength' => true]) ?></div>
        <div class="col-md-2"><?= $form->field($model, 'renda')->widget(MaskMoney::classname()) ?></div>
    </div>
    <div class="row">
        <div class="col-md-6"><?= $form->field($model, 'mae')->textInput(['maxlength' => true]) ?></div>
        <div class="col-md-6"><?= $form->field($model, 'pai')->textInput(['maxlength' => true]) ?></div>
    </div>
    <div class="row">
        <div class="col-md-8"><?= $form->field($model, 'conjuge')->textInput(['maxlength' => true]) ?></div>
        <div class="col-md-4"><?= $form->field($model, 'telefone2')->widget(MaskedInput::classname(), ['mask' => '(99) 9 9999-9999']) ?></div>
    </div>
    <div class="row">
        <div class="col-md-8"><?= $form->field($model, 'referencia1')->textInput(['maxlength' => true]) ?></div>
        <div class="col-md-4"><?= $form->field($model, 'telefone11')->widget(MaskedInput::classname(), ['mask' => '(99) 9 9999-9999']) ?></div>
    </div>
    <div class="row">
        <div class="col-md-8"><?= $form->field($model, 'referencia2')->textInput(['maxlength' => true]) ?></div>
        <div class="col-md-4"><?= $form->field($model, 'telefone21')->widget(MaskedInput::classname(), ['mask' => '(99) 9 9999-9999']) ?></div>
    </div>
</div>
<div class="form-group">
        <?= Html::submitButton($model->isNewRecord ? Yii::t('app', 'Cadastrar') : Yii::t('app', 'Atualizar'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>

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


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