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


PHP Html::textInput方法代码示例

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


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

示例1:

    echo $remain->warehouse->name;
    ?>
            </td>
            <td>
                <?php 
    echo Html::textInput('remain[' . $remain->id . '][in_warehouse]', $remain->in_warehouse, ['class' => 'warehouse-remain-input form-control', 'placeholder' => Yii::t('app', 'In warehouse')]);
    ?>
            </td>
            <td>
                <?php 
    echo Html::textInput('remain[' . $remain->id . '][reserved_count]', $remain->reserved_count, ['class' => 'warehouse-remain-input form-control', 'placeholder' => Yii::t('app', 'Reserved count')]);
    ?>
            </td>
            <td>
                <?php 
    echo Html::textInput('remain[' . $remain->id . '][sku]', $remain->sku, ['class' => 'warehouse-remain-input form-control', 'placeholder' => Yii::t('app', 'SKU')]);
    ?>
            </td>
        </tr>
    <?php 
}
?>
    </tbody>
</table>

<?php 
$this->beginBlock('warehousesWidget');
?>
        $('.warehouse-remain-input').change(function(){
            var formData = {},
                $this = $(this);
开发者ID:tqsq2005,项目名称:dotplant2,代码行数:31,代码来源:warehouses-remains.php

示例2:

    <div class="box box-primary direct-chat direct-chat-primary">
        <div class="box-header with-border">
            <h3 class="box-title">Simple Chat</h3>
        </div>
        <div class="box-body">
            <div class="direct-chat-messages" id="message-container">
					<!-- <div id="notification" ></div> -->
            </div>
        </div>
        <div class="box-footer">
            <?php 
echo Html::beginForm(['/widget/chat/send-chat'], 'POST', ['id' => 'chat-form']);
?>
            <div class="input-group">
               <?php 
echo Html::textInput('message', null, ['id' => 'message-field', 'class' => 'form-control', 'placeholder' => 'Message', 'required' => true]);
?>
                <span class="input-group-btn">
                    <?php 
echo Html::submitButton('Send', ['class' => 'btn btn-primary btn-flat']);
?>
                </span>
            </div>
        </div>
    </div>
</div>


<?php 
$this->beginBlock('template_you');
?>
开发者ID:adem-team,项目名称:advanced,代码行数:31,代码来源:index.php

示例3: isset

                     <?php 
             echo Html::encode($property->name);
             ?>
                 </div>
                     <?php 
             $minval = isset(Yii::$app->request->get("p", [])[$property->id]['min']) ? Yii::$app->request->get("p", [])[$property->id]['min'] : '';
             $maxval = isset(Yii::$app->request->get("p", [])[$property->id]['max']) ? Yii::$app->request->get("p", [])[$property->id]['max'] : '';
             ?>
                 <div class="input-group input-group-sm">
                     <?php 
             echo Html::textInput("p[{$property->id}][min]", $minval, ['class' => 'form-control', 'placeholder' => 'from', 'style' => 'margin-bottom:5px;']);
             ?>
                 </div>
                 <div class="input-group input-group-sm">
                     <?php 
             echo Html::textInput("p[{$property->id}][max]", $maxval, ['class' => 'form-control', 'placeholder' => 'to']);
             ?>
                 </div>
                 <?php 
         }
     }
     ?>
             </div>
         <?php 
 }
 ?>
     <?php 
 echo Html::endForm();
 ?>
 </div>
 <?php 
开发者ID:tqsq2005,项目名称:dotplant2,代码行数:31,代码来源:filterWidget.php

示例4: function

<?php

use kartik\helpers\Html;
use yii\grid\GridView;
#use backend\models\Zstitel;
use yii\widgets\Pjax;
use app\components\XActionColumn;
$zs = [];
#new Zstitel;
Pjax::begin(['id' => 'docpicker-pjax']);
echo Html::panel(['heading' => 'Summary', 'headingTitle' => true, 'body' => GridView::widget(['dataProvider' => $model, 'filterModel' => $searchModel, 'tableOptions' => ['class' => 'table table-condensed table-bordered table-hover'], 'summary' => "<div class='summary'>{begin}-{end} von {totalCount} Dokumenten gefiltert</div>", 'pager' => ['options' => ['class' => 'pagination pagination-sm']], 'columns' => ['cb' => ['class' => 'yii\\grid\\CheckboxColumn', 'options' => ['style' => 'width:20px;'], 'multiple' => false], 'eye' => ['class' => 'app\\components\\XActionColumn', 'options' => ['style' => 'width:20px'], 'buttonOptions' => ['style' => 'color:green;'], 'template' => '{view}'], 'f' => ['label' => 'Dateiname', 'attribute' => 'filename', 'value' => 'filenamePlain', 'enableSorting' => true, 'filter' => Html::textInput('filename', Yii::$app->request->get('filename'), ['class' => 'form-control input-sm', 'placeholder' => '*Filter']), 'options' => ['style' => 'width:240px;']], 'titel' => ['label' => 'Titel', 'attribute' => 'metadata.TITEL', 'filter' => Html::textInput('titel', Yii::$app->request->get('titel'), ['class' => 'form-control input-sm', 'placeholder' => '*Filter']), 'enableSorting' => true], 'groups' => ['label' => 'Gruppe/n', 'attribute' => 'groupstr', 'filter' => Html::dropDownList('group', Yii::$app->request->get('group'), app\models\Documents::getAllgroups(), ['class' => 'form-control input-sm', 'prompt' => '- Filter -']), 'enableSorting' => true, 'options' => ['style' => 'width:110px;']], 'status' => ['label' => 'akt. Status', 'attribute' => 'onlineStatus', 'value' => 'onlineStatus_str', 'options' => ['style' => 'width:80px;'], 'filter' => Html::dropDownList('onlineStatus', Yii::$app->request->get('onlineStatus'), ['true' => 'Online', 'false' => 'Offline'], ['class' => 'form-control input-sm', 'prompt' => '- Filter -']), 'contentOptions' => ['style' => 'text-align:center;'], 'enableSorting' => true, 'format' => 'raw'], ['class' => 'yii\\grid\\ActionColumn', 'content' => 'foo', 'template' => '{edit}&nbsp;{delete}', 'filterOptions' => ['style' => 'text-align:right;'], 'contentOptions' => ['style' => 'text-align:right;width:40px;'], 'buttons' => ['edit' => function ($url, $model, $key) {
    return Html::a("<i class='fa fa-pencil'></i>", $url, ['data-class' => 'edit']);
}]]]]), 'footer' => '<small><i>* mit Tabulator/Enter Taste Filter bestätigen</i></small>'], 'default', ['style' => 'font-size:12px;', 'id' => 'docpicker']);
Pjax::end();
//
// Verkleinern der Filterfelder und ausblenden der Summary ---------------------
$css = <<<CSS
#docpicker .input-sm{
\theight: 23px;\t
}
#docpicker select.input-sm{
\theight: 23px;
\tpadding: 3px 3px;\t
}
.summary{
\tdisplay:none;\t
}
#docpicker table thead tr,
#docpicker table thead th{
\tborder:0px;
}
开发者ID:KasselR,项目名称:yii2-kr,代码行数:31,代码来源:index.php

示例5:

<?php

use kartik\helpers\Html;
echo Html::textInput('fields[2426ced136024a631a2a0672a269b700]', '', ['class' => 'form-control', 'placeholder' => Yii::t('frontend', 'Vul hier je e-mailadres in'), 'addon' => ['append' => ['content' => Html::button(Yii::t('frontend', 'Verzenden'), ['class' => 'btn btn-primary']), 'asButton' => true]]]);
?>

<?php 
echo Html::submitButton('Verzenden', ['class' => 'btn btn-primary']);
?>

<?php 
/*
<div class="form-group">
    <label class="control-label" for="name"><?= Yii::t('frontend', 'Naam') ?></label>
    <?= Html::textInput('fields[1a2f3e3b4cebe60c0e9659520e7e121a]', '', [
        'class' => 'form-control',
        'placeholder' => Yii::t('frontend', 'Naam'),
        'id' => 'name',
    ]); ?>
</div>
<div class="form-group">
    <label class="control-label" for="email"><?= Yii::t('frontend', 'E-mail') ?></label>
    <?= Html::textInput('fields[2426ced136024a631a2a0672a269b700]', '', [
        'class' => 'form-control',
        'placeholder' => Yii::t('frontend', 'E-mail'),
        'id' => 'email',
    ]); ?>
</div>
*/
?>
开发者ID:infoweb-internet-solutions,项目名称:yii2-flexmail,代码行数:30,代码来源:_fields.php


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