當前位置: 首頁>>代碼示例>>PHP>>正文


PHP BsHtml::submitButton方法代碼示例

本文整理匯總了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();
開發者ID:shnellpavel,項目名稱:bcgroup_lk,代碼行數:31,代碼來源:_form.php

示例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>&nbsp;</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'));
    ?>
開發者ID:snapfrozen,項目名稱:boxomatic,代碼行數:31,代碼來源:index.php

示例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>
開發者ID:shnellpavel,項目名稱:bcgroup_lk,代碼行數:31,代碼來源:view.php

示例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>
開發者ID:nsarvar,項目名稱:performance,代碼行數:30,代碼來源:login.php

示例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();
開發者ID:shnellpavel,項目名稱:bcgroup_lk,代碼行數:31,代碼來源:_search.php

示例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();
開發者ID:nsarvar,項目名稱:performance,代碼行數:31,代碼來源:_search.php

示例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>
開發者ID:snapfrozen,項目名稱:boxomatic,代碼行數:30,代碼來源:_form.php

示例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>
開發者ID:shnellpavel,項目名稱:bcgroup_lk,代碼行數:30,代碼來源:create.php

示例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));
 }
開發者ID:blrtromax,項目名稱:seobility,代碼行數:10,代碼來源:Fields.php

示例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>
開發者ID:snapfrozen,項目名稱:boxomatic,代碼行數:31,代碼來源:login.php

示例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();
開發者ID:snapfrozen,項目名稱:snapcms,代碼行數:31,代碼來源:_form.php

示例12: elseif

			Problem sending mail.
			<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</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">&times;</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 &gt;');
?>
        </div>
		<?php 
$this->endWidget();
?>
    </div>
</div>
開發者ID:snapfrozen,項目名稱:boxomatic,代碼行數:31,代碼來源:forgottenPassword.php

示例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();
開發者ID:snapfrozen,項目名稱:boxomatic,代碼行數:30,代碼來源:_form.php

示例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>
開發者ID:snapfrozen,項目名稱:boxomatic,代碼行數:31,代碼來源:_search.php

示例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();
開發者ID:shnellpavel,項目名稱:bcgroup_lk,代碼行數:31,代碼來源:login.php


注:本文中的BsHtml::submitButton方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。