本文整理汇总了PHP中BsHtml::submitButton方法的典型用法代码示例。如果您正苦于以下问题:PHP BsHtml::submitButton方法的具体用法?PHP BsHtml::submitButton怎么用?PHP BsHtml::submitButton使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BsHtml
的用法示例。
在下文中一共展示了BsHtml::submitButton方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
?>
<?php
if (Yii::app()->user->id != $model->id && (Yii::app()->user->checkAccess('user.edit') || Yii::app()->user->checkAccess('user.create'))) {
?>
<div class="form-group">
<label class="control-label" for="<?php
echo CHtml::activeId($model, 'roles');
?>
">
Роли
</label>
<div>
<?php
echo BsHtml::dropDownList(CHtml::activeName($model, 'roles[]'), $assignments, $roles, array("multiple" => "multiple", 'class' => 'bs'));
?>
</div>
</div>
<?php
}
?>
<?php
if ($model->isNewRecord) {
echo BsHtml::submitButton('Создать', array('color' => BsHtml::BUTTON_COLOR_PRIMARY));
} else {
echo BsHtml::submitButton('Сохранить изменения', array('color' => BsHtml::BUTTON_COLOR_PRIMARY));
}
?>
<?php
$this->endWidget();
示例2: array
if (!$BoxoCart->location_id) {
$form = $this->beginWidget('bootstrap.widgets.BsActiveForm', array('id' => 'location-form', 'enableAjaxValidation' => false));
?>
<div class="alert alert-warning form-inline">
<div class="row">
<div class="col-md-5">
<div class="form-group">
<h3>Set Location</h3>
<?php
echo BsHtml::label('Set Location', 'BoxoCart_location_id', array('class' => 'sr-only'));
?>
<?php
echo BsHtml::dropDownList('BoxoCart[location_id]', $BoxoCart->location_id, Location::getDeliveryAndPickupList(), array('name' => 'BoxoCart[location_id]', 'prompt' => '- Select -'));
?>
<?php
echo BsHtml::submitButton('Set Location');
?>
<p class="hint">
<small>This is required to determine which products are available.</small>
</p>
</div>
</div>
<div class="col-md-1 text-center">
<p> </p>
<h3> - Or - </h3>
</div>
<div class="col-md-4 col-md-offset-1">
<h3>Login</h3>
<p>If you already have an account <?php
echo CHtml::link('Login here', array('/site/login'));
?>
示例3: array
if (!empty($assignmentOptions)) {
?>
<h4><?php
echo Yii::t('AuthModule.main', 'Assign permission');
?>
</h4>
<?php
$form = $this->beginWidget('bootstrap.widgets.BsActiveForm', array('layout' => BsHtml::FORM_LAYOUT_INLINE));
?>
<?php
echo $form->dropDownList($formModel, 'items', $assignmentOptions, array('label' => false));
?>
<?php
echo BsHtml::submitButton(Yii::t('AuthModule.main', 'Assign'), array('color' => BsHtml::BUTTON_COLOR_PRIMARY));
?>
<?php
$this->endWidget();
?>
<?php
}
?>
</div>
</div>
示例4: __
echo __('User Dashboard');
?>
</div>
<div class="panel-body">
<div id="messages-area">
</div>
<?php
$form = $this->beginWidget('BsActiveForm', array('id' => 'login-form', 'layout' => BsHtml::FORM_LAYOUT_VERTICAL, 'enableClientValidation' => true, 'clientOptions' => array('validateOnSubmit' => true)));
echo $form->textFieldControlGroup($model, 'login', array('prepend' => BsHtml::icon(BsHtml::GLYPHICON_USER), 'placeholder' => 'Login', 'labelOptions' => array()));
echo $form->passwordFieldControlGroup($model, 'password', array('prepend' => BsHtml::icon(BsHtml::GLYPHICON_LOCK), 'placeholder' => 'Login', 'labelOptions' => array()));
?>
<div style="width: 100%;" class="form-group input-group">
<?php
echo BsHtml::submitButton(__('Sign In'), array('color' => BsHtml::BUTTON_COLOR_PRIMARY, 'name' => 'submit'));
?>
<div style="margin: 8px 10px 0 0" class="pull-right small">
<a class="text-muted " href="/user/reset"><?php
echo __('Reset Password');
?>
</a>
</div>
</div>
<?php
$this->endWidget();
?>
</div>
</div>
示例5: array
</div>
</div>
<div class="row">
<div class="col-xs-6">
<?php
echo $form->textFieldControlGroup($model, 'lastName');
?>
</div>
<div class="col-xs-6">
<?php
echo $form->textFieldControlGroup($model, 'firstName');
?>
</div>
</div>
<div class="row">
<div class="col-xs-6">
<?php
echo $form->textFieldControlGroup($model, 'phoneNumber');
?>
</div>
</div>
<div class="form-actions">
<?php
echo BsHtml::submitButton('Применить', array('color' => BsHtml::BUTTON_COLOR_PRIMARY, 'class' => 'pull-right'));
?>
</div>
<?php
$this->endWidget();
示例6: array
<div class="row">
<div class="col col-md-3 col-lg-12">
<?php
echo $form->textFieldControlGroup($model, 'login', array('maxlength' => 30));
?>
</div>
<div class="col col-md-3 col-lg-12">
<?php
echo $form->textFieldControlGroup($model, 'email', array('maxlength' => 30));
?>
</div>
<div class="col col-md-3 col-lg-12">
<?php
echo $form->dropDownListControlGroup($model, 'organization_id', Organization::getOptionLabelsForUsers(), array('class' => 'selectpicker show-tick', 'title' => __('Any Organization')));
?>
</div>
<div class="col col-md-3 col-lg-12">
<?php
echo $form->dropDownListControlGroup($model, 'role', User::getRolesArray(), array('class' => 'selectpicker show-tick', 'title' => __('Any Role')));
?>
</div>
</div>
<div class="form-actions pull-right">
<?php
echo BsHtml::submitButton(__('Search'), array('color' => BsHtml::BUTTON_COLOR_PRIMARY));
?>
</div>
<div class="clearfix"></div>
<?php
$this->endWidget();
示例7: array
<?php
}
?>
<?php
}
?>
</div>
<div id="sidebar" class="col-lg-3">
<?php
$this->beginWidget('bootstrap.widgets.BsPanel', array('title' => 'Menu', 'contentCssClass' => '', 'htmlOptions' => array('class' => 'panel sticky'), 'type' => BsHtml::PANEL_TYPE_PRIMARY));
?>
<div class="btn-group btn-group-vertical">
<?php
echo BsHtml::submitButton(BsHtml::icon(BsHtml::GLYPHICON_THUMBS_UP) . ' Save');
?>
<?php
$this->widget('application.widgets.SnapMenu', array('items' => $this->menu, 'htmlOptions' => array('class' => 'nav nav-stacked')));
?>
</div>
<?php
$this->endWidget();
?>
</div>
</div>
示例8: array
" id="<?php
echo "step-{$idx}";
?>
">
<div class="form-content">
<?php
$form = $this->beginWidget('bootstrap.widgets.BsActiveForm', array('id' => 'step-form', 'enableAjaxValidation' => false, 'htmlOptions' => array('enctype' => 'multipart/form-data')));
?>
<?php
$step->render($this, $form);
if ($wizard->hasPrev()) {
echo BsHtml::submitButton('Назад', array('color' => BsHtml::BUTTON_COLOR_PRIMARY, 'name' => 'prev', 'value' => '1'));
}
if ($wizard->hasNext()) {
echo BsHtml::submitButton('Далее', array('color' => BsHtml::BUTTON_COLOR_PRIMARY, 'name' => 'next', 'value' => '1'));
echo BsHtml::submitButton('Сохранить и вернуться позже', array('color' => BsHtml::BUTTON_COLOR_PRIMARY, 'name' => 'save', 'value' => '1'));
}
if (!$wizard->hasNext()) {
echo BsHtml::submitButton('Запустить проект', array('color' => BsHtml::BUTTON_COLOR_SUCCESS, 'name' => 'start', 'value' => '1'));
}
?>
<?php
$this->endWidget();
?>
</div>
</div>
<?php
}
?>
</div>
示例9: submitBtn
/**
* Кнопка в формах админа
* @param string $name
* @param obj $icon
* @return string
*/
public static function submitBtn($name, $icon = BsHtml::GLYPHICON_FLOPPY_SAVE, $htmlOptions = array())
{
return BsHtml::submitButton($name, array_merge(array('color' => BsHtml::BUTTON_COLOR_PRIMARY, 'size' => BsHtml::BUTTON_SIZE_SMALL, 'icon' => $icon), $htmlOptions));
}
示例10: array
?>
<div class="row">
<div class="col-md-6 col-md-offset-3">
<h1>Login</h1>
<?php
$form = $this->beginWidget('bootstrap.widgets.BsActiveForm', array('id' => 'login-form', 'enableClientValidation' => true, 'clientOptions' => array('validateOnSubmit' => true)));
?>
<?php
echo $form->textFieldControlGroup($model, 'username');
?>
<?php
echo $form->passwordFieldControlGroup($model, 'password');
?>
<?php
echo $form->checkBoxControlGroup($model, 'rememberMe');
?>
<div class="form-group">
<?php
echo BsHtml::submitButton('Login');
?>
</div>
<?php
$this->endWidget();
?>
<p><?php
echo CHtml::link('Forgotten your password?', array('user/forgottenPassword'));
?>
</p>
</div>
</div>
示例11: array
</div>
</div>
<div id="sidebar" class="col-lg-3">
<?php
$this->beginWidget('bootstrap.widgets.BsPanel', array('title' => 'Menu', 'contentCssClass' => '', 'htmlOptions' => array('class' => 'panel sticky'), 'type' => BsHtml::PANEL_TYPE_PRIMARY));
?>
<div class="btn-group btn-group-vertical">
<?php
echo BsHtml::submitButton(BsHtml::icon(BsHtml::GLYPHICON_THUMBS_UP) . ' Save');
?>
<?php
echo BsHtml::submitButton(BsHtml::icon(BsHtml::GLYPHICON_PENCIL) . ' Save and Continue Editing', array('name' => 'save_and_continue'));
?>
<?php
$this->widget('application.widgets.SnapMenu', array('items' => $this->menu, 'htmlOptions' => array('class' => 'nav nav-stacked')));
?>
</div>
<?php
$this->endWidget();
?>
</div>
<?php
$this->endWidget();
示例12: elseif
Problem sending mail.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
</div>
<?php
} elseif ($User) {
?>
<div class="alert alert-success alert-dismissable">
We have sent you a password renewal email to your email address.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
</div>
<?php
}
?>
<?php
$form = $this->beginWidget('bootstrap.widgets.BsActiveForm', array('id' => 'forgotten-password-form', 'enableClientValidation' => true, 'clientOptions' => array('validateOnSubmit' => true)));
?>
<?php
echo $form->textFieldControlGroup($model, 'username', array('help' => 'Enter your email address to start the password renewal process'));
?>
<div class="form-group">
<?php
echo BsHtml::submitButton('Next >');
?>
</div>
<?php
$this->endWidget();
?>
</div>
</div>
示例13:
<?php
echo $form->textFieldControlGroup($model, 'address');
?>
<div class="row">
<div class="col-md-4">
<?php
echo $form->textFieldControlGroup($model, 'suburb');
?>
</div>
<div class="col-md-4">
<?php
echo $form->dropDownListControlGroup($model, 'state', SnapUtil::config('boxomatic/states'));
?>
</div>
<div class="col-md-4">
<?php
echo $form->textFieldControlGroup($model, 'postcode');
?>
</div>
</div>
<div class="form-group">
<?php
echo BsHtml::submitButton($model->isNewRecord ? 'Create' : 'Save');
?>
</div>
<?php
$this->endWidget();
示例14: array
echo $form->textFieldControlGroup($model, 'user_phone');
?>
<?php
echo $form->textFieldControlGroup($model, 'user_mobile');
?>
<?php
echo $form->textFieldControlGroup($model, 'user_address');
?>
<?php
echo $form->textFieldControlGroup($model, 'user_suburb');
?>
<?php
echo $form->textFieldControlGroup($model, 'user_state');
?>
<?php
echo $form->textFieldControlGroup($model, 'user_postcode');
?>
<?php
echo $form->textAreaControlGroup($model, 'search_customer_notes');
?>
</fieldset>
<div class="form-actions col-md-offset-2 col-md-10">
<?php
echo BsHtml::submitButton(BsHtml::icon(BsHtml::GLYPHICON_SEARCH) . ' Search', array('color' => BsHtml::BUTTON_COLOR_PRIMARY));
?>
</div>
<?php
$this->endWidget();
?>
</div>
示例15: array
<?php
echo $form->error($model, 'password');
?>
</div>
</div>
<div class="form-group rememberMe">
<div class="col-sm-offset-2 col-sm-4">
<div class="checkbox">
<label>
<?php
echo $form->checkBox($model, 'rememberMe');
?>
<?php
echo $model->getAttributeLabel('rememberMe');
?>
</label>
</div>
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<?php
echo BsHtml::submitButton('Войти', array('class' => 'btn btn-default'));
?>
</div>
</div>
<?php
$this->endWidget();