本文整理匯總了PHP中yii\bootstrap\Html::buttonInput方法的典型用法代碼示例。如果您正苦於以下問題:PHP Html::buttonInput方法的具體用法?PHP Html::buttonInput怎麽用?PHP Html::buttonInput使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類yii\bootstrap\Html
的用法示例。
在下文中一共展示了Html::buttonInput方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: implode
?>
</a></li>
<li role="presentation"><a href="<?php
echo Url::to(['/account/rbac/actionlist']);
?>
"><?php
echo Yii::t('account', 'Action list');
?>
</a></li>
</ul>
<div class="row m-b-sm">
<div class="col-lg-12">
<div id="msg" style="display: none;" class="alert alert-dismissable"></div>
<?php
if (!empty($role)) {
echo Html::buttonInput(Yii::t('common', 'Save'), ['class' => 'btn btn-primary m-r-md', 'onclick' => 'addPermissionFromRole();']);
}
echo Html::dropDownList('choseRole', $role, ArrayHelper::map($auth->getRoles(), 'name', 'description'), ['prompt' => Yii::t('account', 'Select a role'), 'class' => 'chosen-select', 'id' => 'role', 'onchange' => 'changeUrlPermission()']);
?>
</div>
</div>
<div id="message"></div>
<?php
if (!empty($role)) {
echo Html::hiddenInput('allPermission', implode(',', \app\helpers\ArrayHelper::map($dataProvider->getModels(), '_id', 'name')), ['id' => 'allPermission']);
echo GridView::widget(['panel' => ['heading' => Yii::t(Yii::$app->controller->module->id, 'Account'), 'tableOptions' => ['id' => 'listDefault']], 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [['class' => 'app\\modules\\account\\components\\SelectPermissionForRoleColumn'], 'name', 'description', 'rule_name'], 'responsive' => true, 'hover' => true]);
}
?>