本文整理汇总了PHP中BsHtml::formLayoutHorizontalLabelClass方法的典型用法代码示例。如果您正苦于以下问题:PHP BsHtml::formLayoutHorizontalLabelClass方法的具体用法?PHP BsHtml::formLayoutHorizontalLabelClass怎么用?PHP BsHtml::formLayoutHorizontalLabelClass使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BsHtml
的用法示例。
在下文中一共展示了BsHtml::formLayoutHorizontalLabelClass方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
echo $form->dropDownListControlGroup($model, 'available_to', $model->getMonthList());
?>
<?php
echo $form->dateFieldControlGroup($model, 'customer_available_from', array(), array('yearRange' => date('Y') . ':2050'));
?>
<?php
echo $form->dateFieldControlGroup($model, 'customer_available_to', array(), array('yearRange' => date('Y') . ':2050'));
?>
<?php
echo $form->textFieldControlGroup($model, 'item_sales_price');
?>
<?php
echo $form->checkBoxControlGroup($model, 'available_in_shop');
?>
<h3>Categories</h3>
<ul class="categories">
<?php
echo Category::model()->getCategoryTreeForm(SnapUtil::config('boxomatic/supplier_product_root_id'), $model);
?>
</ul>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button name="new_product" type="submit" class="btn btn-primary">Add Product</button>
</div>
<?php
$form->layout = BsHtml::FORM_LAYOUT_HORIZONTAL;
BsHtml::$formLayoutHorizontalLabelClass = 'control-label col-lg-2';
示例2: array
*/
/* @var $this SiteController */
/* @var $bsForm BsActiveForm */
/* @var $form InstallForm */
/**
* @author Craft-Soft Team
* @package CS:Bans
* @version 1.4.0
* @copyright (C)2016 Craft-Soft.ru. Все права защищены.
* @link http://craft-soft.ru/
* @license http://creativecommons.org/licenses/by-nc-sa/4.0/deed.ru «Attribution-NonCommercial-ShareAlike»
*/
$license = $this->renderPartial('license', null, true);
$this->pageTitle = Yii::app()->name . ' - Установка';
$this->breadcrumbs = array('Установка');
BsHtml::$formLayoutHorizontalLabelClass = 'col-lg-3';
BsHtml::$formLayoutHorizontalControlClass = 'col-lg-9';
BsHtml::$formLayoutHorizontalOffsetClass = 'col-lg-offset-3';
?>
<div class="row">
<div class="col-lg-6">
<h2>Установка CS:Bans</h2>
<?php
if (count($error)) {
?>
<div class="alert alert-block alert-danger">
<b>Установка невозможна. Устраните следующие проблемы:</b>
<br>