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


PHP Html::activeHiddenInput方法代码示例

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


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

示例1:

}
?>

<div id="sc-payment-new" style="margin-top: 20px;<?php 
if (is_null($model) && !empty($payments)) {
    echo "display:none;";
}
?>
">
    <?php 
if (!isset($model) || is_null($model)) {
    $model = new \app\models\CreditCardForm();
}
$form = ActiveForm::begin(['action' => Url::to(['shopcart/payment-save']), 'layout' => 'horizontal']);
echo Html::activeHiddenInput($model, 'profile_id');
echo Html::activeHiddenInput($model, 'payment_profile_id');
?>
    <h3>2. <?php 
echo Yii::t('app', 'Add New Payment Method');
?>
</h3>
    <?php 
echo $form->errorSummary([$model]);
?>

    <div class="row">
        <div class="col-sm-5">
            <div style="margin-bottom: 4px;"><?php 
echo Yii::t('app', 'Credit Card');
?>
</div>
开发者ID:rcjusto,项目名称:simplestore,代码行数:31,代码来源:_sc_payment.php

示例2:

<?php

use hipanel\helpers\Url;
use yii\bootstrap\ActiveForm;
use yii\bootstrap\Html;
?>

<?php 
$form = ActiveForm::begin(['id' => 'set-serial-form', 'action' => Url::toRoute('set-serial'), 'validationUrl' => Url::toRoute(['validate-form', 'scenario' => 'set-serial'])]);
?>

<?php 
foreach ($models as $model) {
    ?>
    <?php 
    echo Html::activeHiddenInput($model, "[{$model->id}]id");
    ?>
    <div class="row">
        <div class="col-md-6">
            <?php 
    echo $form->field($model, "[{$model->id}]partno")->textInput(['disabled' => true]);
    ?>
        </div>
        <div class="col-md-6">
            <?php 
    echo $form->field($model, "[{$model->id}]serial");
    ?>
        </div>
    </div>
<?php 
}
开发者ID:hiqdev,项目名称:hipanel-module-stock,代码行数:31,代码来源:_setSerial.php

示例3:

            </div>
            <div class="col-md-4">
                <?php 
echo $form->field($content, 'name', ['template' => '{input}'])->textInput(['data-toggle' => 'tooltip', 'title' => $sale->getAttributeLabel('name')]);
?>
            </div>
            <div class="col-md-2">
                <?php 
echo $form->field($content, 'description', ['template' => '{input}'])->textarea(['data-toggle' => 'tooltip', 'title' => $sale->getAttributeLabel('description')]);
?>
                <?php 
foreach ($image as $i) {
    if (!empty($i->url)) {
        echo Html::a(' <i class="glyphicon glyphicon-camera"></i> ', $i->url, ['target' => '_blank']);
    }
    echo Html::activeHiddenInput($i, '[' . $i->id . ']url', ['id' => false, 'class' => 'photo']);
}
?>
            </div>
            <div class="col-md-1">
                <?php 
echo $form->field($sale, 'covered', ['template' => '{input}'])->textInput(['data-toggle' => 'tooltip', 'title' => $sale->getAttributeLabel('covered')]);
?>
            </div>
            <div class="col-md-1">
                <?php 
echo $form->field($sale, 'bedroom', ['template' => '{input}'])->textInput(['data-toggle' => 'tooltip', 'title' => $sale->getAttributeLabel('bedroom')]);
?>
            </div>
            <div class="col-md-2">
                <?php 
开发者ID:dench,项目名称:resistor,代码行数:31,代码来源:prepareItem.php

示例4: time

?>

<?php 
$form = ActiveForm::begin(['id' => 'dynamic-form-' . ($model->id ?: time()), 'action' => '@dns/record/' . $model->scenario, 'enableAjaxValidation' => true, 'options' => ['data-pjax' => true, 'data-pjaxPush' => false], 'validationUrl' => Url::toRoute(['@dns/record/validate-form', 'scenario' => $model->isNewRecord ? $model->scenario : 'update'])]);
?>
    <div class="panel panel-default">
        <div class="panel-body">

            <div class="row record-item">
                <?php 
if ($id = $model->id) {
    echo Html::activeHiddenInput($model, "[{$id}]id");
} else {
    $id = 0;
}
echo Html::activeHiddenInput($model, "[{$id}]hdomain_id");
?>
                <div class="col-lg-3 col-md-4">
                    <?php 
echo $form->field($model, "[{$id}]name", ['template' => '
                    {label}
                    <div class="input-group">
                      {input}
                      <div class="input-group-addon">.' . $model->domain . '</div>
                    </div>
                    {hint}
                    {error}
                ', 'inputOptions' => ['data-attribute' => 'name']]);
?>
                </div>
                <div class="col-lg-2 col-md-2">
开发者ID:hiqdev,项目名称:hipanel-module-dns,代码行数:31,代码来源:_form.php

示例5:

        ?>
                                        <?php 
    }
    ?>
                                    </div>
                                    <div class="col-md-2 text-right">
                                        <div class="btn-group" role="group">
                                            <button type="button" class="add-item btn btn-default"><i
                                                    class="glyphicon glyphicon-plus"></i></button>
                                            <button type="button" class="remove-item btn btn-default"><i
                                                    class="glyphicon glyphicon-minus"></i></button>
                                        </div>
                                    </div>
                                </div>
                                <?php 
    echo Html::activeHiddenInput($nsModel, "[{$i}]domain_name", ['value' => $model->domain]);
    ?>
                            </div>

                        <?php 
}
?>
                    </div>
                    <?php 
DynamicFormWidget::end();
?>
                </div>
            </div>
        </div>
    </div>
开发者ID:hiqdev,项目名称:hipanel-module-domain,代码行数:30,代码来源:ns.php


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