本文整理汇总了PHP中TbHtml::buttonGroup方法的典型用法代码示例。如果您正苦于以下问题:PHP TbHtml::buttonGroup方法的具体用法?PHP TbHtml::buttonGroup怎么用?PHP TbHtml::buttonGroup使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TbHtml
的用法示例。
在下文中一共展示了TbHtml::buttonGroup方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
<?php
$this->breadcrumbs = array('Items' => array('admin'), 'Update');
?>
<?php
if (Yii::app()->user->hasFlash('warning')) {
?>
<?php
$this->widget('bootstrap.widgets.TbAlert');
}
?>
<?php
$box = $this->beginWidget('yiiwheels.widgets.box.WhBox', array('title' => Yii::t('app', 'Update Item'), 'headerIcon' => 'ace-icon fa fa-tags', 'htmlHeaderOptions' => array('class' => 'widget-header-flat widget-header-small'), 'content' => $this->renderPartial('_form_image', array('model' => $model, 'price_tiers' => $price_tiers), true), 'headerButtons' => array(TbHtml::buttonGroup(array(array('label' => Yii::t('app', ''), 'url' => Yii::app()->createUrl('Item/Admin'), 'icon' => 'ace-icon fa fa-undo white')), array('color' => TbHtml::BUTTON_COLOR_INVERSE, 'size' => TbHtml::BUTTON_SIZE_SMALL)))));
?>
<?php
$this->endWidget();
示例2: array
return Profile::model()->nombreApellido($data->profile->firstname, $data->profile->secondname, $data->profile->lastname1, $data->profile->lastname2);
}), array('header' => 'Sexo', 'value' => function ($data, $row) {
return Profile::model()->validarSexo($data->profile->sex);
}, 'type' => 'raw'), array('header' => 'Correo', 'value' => '$data->profile->email'), array('header' => 'Registrado', 'value' => function ($data, $row) {
return Yii::app()->dateFormatter->formatDateTime($data->profile->user->regdate, 'medium', false);
}, 'type' => 'raw'), array('header' => 'Status', 'type' => 'raw', 'value' => function ($data, $row) {
return Profile::model()->validarStatus($data->profile->cruge_user_iduser);
}), array('header' => '', 'type' => 'raw', 'value' => function ($data, $row) {
return Profile::model()->botonStatus($data->profile->cruge_user_iduser);
}))));
$this->endWidget();
?>
<!-- End Box de Tutors VC -->
<!-- Box de Parents VC -->
<?php
$this->beginWidget('yiiwheels.widgets.box.WhBox', array('title' => 'Padres VC', 'headerIcon' => 'icon-th-list', 'headerButtons' => array(TbHtml::buttonGroup(array(array('label' => 'Gestionar Padres', 'submit' => array('parents/admin')))))));
$this->widget('yiiwheels.widgets.grid.WhGridView', array('fixedHeader' => true, 'headerOffset' => 40, 'type' => 'striped', 'dataProvider' => $dataParents, 'responsiveTable' => true, 'template' => "{items}", 'columns' => array(array('header' => 'ID', 'value' => '$data->id_parent'), array('header' => 'Nombre', 'type' => 'raw', 'value' => function ($data, $row) {
return Profile::model()->nombreApellido($data->profile->firstname, $data->profile->secondname, $data->profile->lastname1, $data->profile->lastname2);
}), array('header' => 'Sexo', 'value' => function ($data, $row) {
return Profile::model()->validarSexo($data->profile->sex);
}, 'type' => 'raw'), array('header' => 'Correo', 'value' => '$data->profile->email'), array('header' => 'Registrado', 'value' => function ($data, $row) {
return Yii::app()->dateFormatter->formatDateTime($data->profile->user->regdate, 'medium', false);
}, 'type' => 'raw'), array('header' => 'Status', 'type' => 'raw', 'value' => function ($data, $row) {
return Profile::model()->validarStatus($data->profile->cruge_user_iduser);
}), array('header' => '', 'type' => 'raw', 'value' => function ($data, $row) {
return Profile::model()->botonStatus($data->profile->cruge_user_iduser);
}))));
$this->endWidget();
?>
<!-- End Box de Parents VC -->
示例3: array
<?php
$this->beginWidget('yiiwheels.widgets.box.WhBox', array('title' => TbHtml::encode('Payment Transactions'), 'headerButtons' => array(TbHtml::buttonGroup(array(array('label' => 'Manage', 'url' => $this->createUrl('admin'), 'icon' => TbHtml::ICON_WRENCH, 'class' => 'ylink manage')), array('toggle' => TbHtml::BUTTON_TOGGLE_RADIO, 'color' => TbHtml::BUTTON_COLOR_PRIMARY)), ' ', TbHtml::buttonDropdown('Export', array(array('label' => 'Selected', 'url' => $this->createUrl('exportselected'), 'class' => 'exportSelected'), array('label' => 'All', 'url' => $this->createUrl('exportall'), 'class' => 'exportAll')), array('color' => TbHtml::BUTTON_COLOR_PRIMARY, 'icon' => TbHtml::ICON_DOWNLOAD_ALT, 'class' => 'exportDrop')), ' ', ' ')));
?>
<div id="aMessage"></div>
<div id="viewContent">
<?php
$this->renderPartial('_list', array('dataProvider' => $dataProvider));
?>
</div>
<div id="errorText" class="hide"><?php
echo Yii::t('info', 'An error has occurred');
?>
</div>
<div class="errorTextSort hide"><?php
echo Yii::t('info', 'An error has occurred during sorting');
?>
</div>
<?php
$this->endWidget();
示例4: renderDataCellContent
/**
* Renders the data cell content.
*
* @param integer $row the row number (zero-based)
* @param CActiveRecord $data the data associated with the row
*/
protected function renderDataCellContent($row, $data)
{
ob_start();
parent::renderDataCellContent($row, $data);
$parentContents = ob_get_clean();
$links = array();
if ($data instanceof CActiveRecord) {
$links[] = array('label' => $parentContents, 'url' => $data->getUrl());
$items = method_exists($data, 'getMenuLinks') ? call_user_func(array($data, 'getMenuLinks')) : array();
if ($items) {
$links[] = array('items' => $items);
}
} else {
$links[] = $parentContents;
}
echo '<div class="filter-container">';
echo TbHtml::buttonGroup($links);
echo '</div>';
}
示例5: testButtonGroup
public function testButtonGroup()
{
$I = $this->codeGuy;
$buttons = array(array('label' => 'Left'), array('label' => 'Middle', 'items' => array(array('label' => 'Action', 'url' => '#')), 'htmlOptions' => array('color' => TbHtml::BUTTON_COLOR_INVERSE)), array('label' => 'Right', 'visible' => false));
$html = TbHtml::buttonGroup($buttons, array('class' => 'div', 'color' => TbHtml::BUTTON_COLOR_PRIMARY, 'toggle' => TbHtml::BUTTON_TOGGLE_CHECKBOX));
$group = $I->createNode($html, 'div.btn-group');
$I->seeNodeCssClass($group, 'div');
$I->seeNodeAttribute($group, 'data-toggle', 'buttons-checkbox');
$I->seeNodeNumChildren($group, 2);
foreach ($group->children() as $i => $btnElement) {
$btn = $I->createNode($btnElement);
if ($i === 1) {
$I->seeNodeChildren($btn, array('a.dropdown-toggle', 'ul.dropdown-menu'));
$a = $btn->filter('a.dropdown-toggle');
$I->seeNodeCssClass($a, 'btn-inverse');
$I->seeNodeText($a, 'Middle');
} else {
$I->seeNodeCssClass($btn, 'btn');
$I->seeNodeAttribute($btn, 'href', '#');
$I->seeNodeCssClass($btn, 'btn-primary');
$I->seeNodeText($btn, $buttons[$i]['label']);
}
}
$html = TbHtml::buttonGroup(array());
$this->assertEquals('', $html);
}
示例6: array
return $output;
}
?>
<?php
$this->breadcrumbs = array('Requirement' => array('index'), $model->id);
$this->menu = array(array('label' => CHtml::image(Yii::app()->theme->baseUrl . "/img/operaciones/list29.png") . ' Listado', 'url' => array('index')), array('label' => CHtml::image(Yii::app()->theme->baseUrl . "/img/operaciones/plus27.png") . ' Crear Requirement', 'url' => array('create')), array('label' => CHtml::image(Yii::app()->theme->baseUrl . "/img/operaciones/font2.png") . ' Editar Requirement', 'url' => array('update', 'id' => $model->id)), array('label' => CHtml::image(Yii::app()->theme->baseUrl . "/img/operaciones/cogs3.png") . ' Gestionar Requirements', 'url' => array('admin')));
?>
<legend>Detalle de Requirement #<?php
echo $model->id;
?>
</legend>
<!-- Box de Students Asignados -->
<?php
$this->beginWidget('yiiwheels.widgets.box.WhBox', array('title' => 'Información del Requirement', 'headerIcon' => 'icon-th-list', 'headerButtons' => array(TbHtml::buttonGroup(array(array('label' => 'Actualizar campos del Requirement', 'submit' => array('load', 'id' => $model->id)))))));
$this->widget('zii.widgets.CDetailView', array('htmlOptions' => array('class' => 'table table-striped table-condensed table-hover'), 'data' => $model, 'attributes' => array('id', 'create_date', 'last_update', 'colleges.name', array('label' => 'Campos del Requirement', 'type' => 'raw', 'value' => displayRequiremenstField($model->requirementsHasRequirementsFields)))));
$this->endWidget();
?>
<?php
/*echo TbHtml::button('Actualizar campos del Requirement', array(
'color' => TbHtml::BUTTON_COLOR_PRIMARY,
'submit' => array('load','id'=>$model->id)
)); */
?>
<legend>
<a href="#" id="mostrarAdd" style="display: none;"><i class="fa fa-chevron-down"></i></a>
<a href="#" id="ocultarAdd"><i class="fa fa-chevron-up"></i></a>
Asignar Estudiante a Requirement
示例7: array
<?php
/*
*EDITOR DE SUBZONA
*/
?>
<div class='controles'>
<h2>Editor de subzona.</h2>
<?php
echo TbHtml::dropDownList('SubzonaId', $subzona->SubzonaId, TbHtml::listData($subzona->hermanas, 'SubzonaId', 'nombre'), array('class' => 'input-medium panel-head'));
?>
<br />
<?php
echo TbHtml::buttonGroup(array(array('title' => 'Alinear todo a la izquierda', 'class' => 'fa fa-align-left fa-3x btn btn-large btn-alinear', 'url' => array('alinearSubzona', 'EventoId' => $subzona->EventoId, 'FuncionesId' => $subzona->FuncionesId, 'ZonasId' => $subzona->ZonasId, 'SubzonaId' => $subzona->SubzonaId, 'direccion' => 'izquierda')), array('title' => 'Alinear todo al centro', 'class' => 'fa fa-align-center fa-3x btn btn-large btn-alinear', 'url' => array('alinearSubzona', 'EventoId' => $subzona->EventoId, 'FuncionesId' => $subzona->FuncionesId, 'ZonasId' => $subzona->ZonasId, 'SubzonaId' => $subzona->SubzonaId, 'direccion' => 'centro')), array('title' => 'Alinear todo a la derecha', 'class' => 'fa fa-align-right fa-3x btn btn-large btn-alinear', 'url' => array('alinearSubzona', 'EventoId' => $subzona->EventoId, 'FuncionesId' => $subzona->FuncionesId, 'ZonasId' => $subzona->ZonasId, 'SubzonaId' => $subzona->SubzonaId, 'direccion' => 'derecha'))), array('vertical' => false));
?>
<br />
<?php
echo TbHtml::link(' Regresar', array('editor', 'EventoId' => $subzona->EventoId, 'FuncionesId' => $subzona->FuncionesId, 'scenario' => 'editar', '#' => 'zona-' . $subzona->ZonasId), array('class' => 'btn fa fa-arrow-left', 'style' => 'margin:10px'));
?>
</div>
<div id='area-subzona'>
<?php
$this->renderPartial('_subzona', compact('subzona'));
?>
</div>
<br />
<style type="text/css" media="screen">
table{background:#eeD}
th,td{margin:5px;padding:5px !important;}
示例8: array
padding:7px;
color:white;
}
</style>
<?php
/* @$this->assignmentTablear $this ChallanController */
$this->breadcrumbs = array('Challans' => array('index'), 'Manage');
$this->menu = array(array('label' => 'List Challan', 'url' => array('index')), array('label' => 'Create Challan', 'url' => array('create')));
?>
<div class="site-container">
<div class="top-header" >
*Kindly select a field and enter correct number and press go.
</div>
<div style="margin:10px 0px 0px 10px;text-align:center;">
<?php
echo TbHtml::buttonGroup(array(array('label' => 'Registration Number', 'onclick' => 'js:getElementById("type").innerHTML="Enter Registration Number";'), array('label' => 'Driving Licence', 'onclick' => 'js:getElementById("type").innerHTML="Enter Driving Licence";'), array('label' => 'Adhaar Number', 'onclick' => 'js:getElementById("type").innerHTML="Enter Adhaar Number";'), array('label' => 'Mobile Number', 'onclick' => 'js:getElementById("type").innerHTML="Enter Mobile Number";'), array('label' => 'Email address', 'onclick' => 'js:getElementById("type").innerHTML="Enter Email address";')), array('toggle' => TbHtml::BUTTON_TOGGLE_RADIO, 'color' => TbHtml::BUTTON_COLOR_PRIMARY));
?>
<div>
<div class="form form-left" style="float:left;">
<form>
<div style="text-align:center;margin-top:-6px;" >
<label id="type" style="margin-left:-172px;"></label>
<input type="text" placeholder="Enter Value" id="reg_no">
<?php
echo CHtml::ajaxLink('<input type="button" id="get-challan" value="Go" name="get-challan" class="btn btn-success" style="margin-left:3px;margin-top:-10px;">', array('site/loadchallan'), array('data' => array('reg_no' => 'js:document.getElementById("reg_no").value'), 'beforeSend' => 'function() {
$("#progress-meter").show();
$("#overlay").show();
}', 'dataType' => 'json', 'success' => 'js:function(data) { demo(data); }'));
?>
<input type="reset" class="search-button btn" value="Clear" style="margin-left:4px;margin-top:-10px;">
示例9: array
echo TbHtml::buttonGroup($buttonGroupConfig, array('toggle' => TbHtml::BUTTON_TOGGLE_CHECKBOX, 'color' => TbHtml::BUTTON_COLOR_PRIMARY));
?>
</div>
<pre class="prettyprint linenums">
<?php
echo TbHtml::buttonGroup(array(
array('label' => 'Left'),
array('label' => 'Middle'),
array('label' => 'Right'),
), array('toggle' => TbHtml::BUTTON_TOGGLE_CHECKBOX, 'color' => TbHtml::BUTTON_COLOR_PRIMARY)); ?></pre>
<h3>Radio</h3>
<div class="bs-docs-example">
<?php
echo TbHtml::buttonGroup($buttonGroupConfig, array('toggle' => TbHtml::BUTTON_TOGGLE_RADIO, 'color' => TbHtml::BUTTON_COLOR_PRIMARY));
?>
</div>
<pre class="prettyprint linenums">
<?php
echo TbHtml::buttonGroup(array(
array('label' => 'Left'),
array('label' => 'Middle'),
array('label' => 'Right'),
), array('toggle' => TbHtml::BUTTON_TOGGLE_RADIO, 'color' => TbHtml::BUTTON_COLOR_PRIMARY)); ?></pre>
</section>
<!-- Split button dropdowns
================================================== -->
<section id="buttonDropdowns">
示例10: array
</div>
</div>
<div class='controles'>
<legend>Configuración de la distribución de asientos</legend>
<div class=''>
<?php
echo TbHtml::textField('Requeridos', $model->ZonasCanLug, array('class' => 'input-small text-center Requeridos', 'prepend' => 'Asientos requeridos:', 'readonly' => true, 'data-id' => $model->ZonasId));
?>
<br />
<?php
echo TbHtml::numberField('FilasZonasCanLug', $model->ZonasCanLug, array('class' => 'input-small text-center FilasZonasCanLug', 'prepend' => 'Asientos listos para generar:', 'readonly' => true, 'data-id' => $model->ZonasId, 'id' => 'FilasZonasCanLug'));
?>
</div>
<?php
echo TbHtml::link(' Regresar', array('editor', 'EventoId' => $model->EventoId, 'FuncionesId' => $model->FuncionesId, 'scenario' => 'editar', '#' => 'zona-' . $model->ZonasId), array('class' => 'btn fa fa-arrow-left', 'style' => 'margin:10px'));
echo TbHtml::buttonGroup(array(array('id' => 'btn-agregar-fila', 'label' => ' Agregar fila', 'class' => 'fa fa-plus btn btn-success', 'url' => array('agregarFila', 'EventoId' => $model->EventoId, 'FuncionesId' => $model->FuncionesId, 'ZonasId' => $model->ZonasId), 'title' => 'Agregar una Fila'), array('label' => ' Generar asientos', 'class' => 'fa fa-delicious btn-primary', 'id' => 'btn-generar-numerados', 'url' => array('generarNumerados', 'EventoId' => $model->EventoId, 'FuncionesId' => $model->FuncionesId, 'ZonasId' => $model->ZonasId), 'title' => 'Generar todos los Asientos')));
?>
<br />
<br />
</div>
<div class='row-fluid '>
<table border="0" class="table items table-bordered table-hover" id="tabla-filas">
<tr>
<th>#</th>
<th></th>
<th>No. Fila</th>
<?php
for ($i = 0; $i < $model->ZonasCantSubZon; $i++) {
echo TbHtml::tag('th', array('colspan' => 2), "Subzona " . ($i + 1));
echo TbHtml::tag('th', array(), "Ctd.");
}
示例11: array
</td>
<td>
<?php
echo TbHtml::textField('ZonasCanLug', $model->ZonasCanLug, array('class' => 'input-small text-center ZonasCanLug', 'prepend' => '#', 'disabled' => !$editar, 'data-id' => $model->ZonasId, 'append' => CHtml::link(' Generar', array('generacionFilas', 'EventoId' => $model->EventoId, 'FuncionesId' => $model->FuncionesId, 'ZonasId' => $model->ZonasId), array('class' => 'btn btn-generar-asientos fa fa-bolt', 'id' => 'btn-generar-asientos-' . $model->ZonasId, 'disabled' => !$editar, 'data-target' => '#dlg-asientos', 'data-id' => $model->ZonasId))));
?>
</td>
<td>
<?php
echo TbHtml::textField('ZonasCosBol', $model->ZonasCosBol, array('class' => 'input-small text-center ZonasCosBol', 'data-id' => $model->ZonasId, 'prepend' => '$'));
?>
</td>
<td>
<?php
if ($editar) {
echo TbHtml::buttonGroup(array(array('label' => ' Filas', 'class' => 'fa fa-bars btn', 'title' => 'Configurar Filas', 'url' => array('editorSubzona', 'EventoId' => $model->EventoId, 'FuncionesId' => $model->FuncionesId, 'ZonasId' => $model->ZonasId, 'SubzonaId' => 1), 'id' => 'btn-configurar-filas')), array('class' => $model->ZonasTipo == 1 ? 'hidden' : ''));
}
?>
</td>
<td>
<div class='arbol-cargos' id="arbol-<?php
echo $model->ZonasId;
?>
">
<?php
$this->renderPartial('_arbolCargos', compact('model'));
?>
</div>
</td>
</tr>
</table>
示例12: array
<?php
$box = $this->beginWidget('yiiwheels.widgets.box.WhBox', array('title' => Yii::t('app', 'Stock Counting'), 'headerIcon' => 'ace-icon fa fa-signal', 'headerButtons' => array(TbHtml::buttonGroup(array(array('label' => Yii::t('app', 'Print & Sign'), 'url' => Yii::app()->createUrl('report/StockCountPrint/'), 'icon' => 'ace-icon fa fa-print white')), array('color' => TbHtml::BUTTON_COLOR_PRIMARY, 'size' => TbHtml::BUTTON_SIZE_SMALL))), 'htmlHeaderOptions' => array('class' => 'widget-header-flat widget-header-small')));
?>
<?php
$this->widget('bootstrap.widgets.TbNav', array('type' => TbHtml::NAV_TYPE_PILLS, 'htmlOptions' => array('class' => 'btn-stockcount-opt'), 'items' => array(array('label' => Yii::t('app', 'Daily'), 'url' => Yii::app()->urlManager->createUrl('report/StockCount', array('filter' => 1)), 'active' => true), array('label' => Yii::t('app', 'Weekly'), 'url' => Yii::app()->urlManager->createUrl('report/StockCount', array('filter' => 7))), array('label' => Yii::t('app', 'Bi-Weekly'), 'url' => Yii::app()->urlManager->createUrl('report/StockCount', array('filter' => 14))), array('label' => Yii::t('app', 'Monthly'), 'url' => Yii::app()->urlManager->createUrl('report/StockCount', array('filter' => 30))), array('label' => Yii::t('app', 'All'), 'url' => Yii::app()->urlManager->createUrl('report/StockCount', array('filter' => 'all'))))));
?>
<?php
if (isset($warning)) {
echo TbHtml::alert(TbHtml::ALERT_COLOR_WARNING, $warning);
}
?>
<?php
//$this->widget( 'ext.modaldlg.EModalDlg' );
?>
<div id="rpt-stockcount-grid">
<?php
$this->widget('EExcelView', array('id' => 'stockcount-grid', 'fixedHeader' => true, 'responsiveTable' => true, 'type' => TbHtml::GRID_TYPE_BORDERED, 'dataProvider' => $report->StockCount($filter), 'template' => "{summary}\n{items}\n{exportbuttons}\n{pager}", 'columns' => array(array('name' => 'name', 'header' => Yii::t('app', 'Item Name'), 'value' => '$data["name"]'), array('name' => 'quantity', 'header' => Yii::t('app', 'On Hand'), 'htmlOptions' => array('style' => 'text-align: right;'), 'headerHtmlOptions' => array('style' => 'text-align: right;')), array('name' => 'modified_date', 'header' => Yii::t('app', 'Last Counted date')), array('name' => 'next_count_date', 'header' => Yii::t('app', 'Next Schedule')))));
?>
</div>
<?php
$this->endWidget();
示例13: array
<?php
echo TbHtml::openTag('table', array('width' => 'auto', 'class' => 'table-bordered centrado box'));
foreach ($subzona->filas as $fila) {
// Por filas
//$this->renderPartial('_filaAsiento',array('asientos'=>$fila->asientos));
echo TbHtml::openTag('tr');
echo TbHtml::tag('th', array(), $fila->FilasAli);
foreach ($fila->lugares as $asiento) {
//Por cada Asiento
$clase = "";
if ($asiento->LugaresStatus == 'OFF') {
$clase .= " off hidden";
}
$control = TbHtml::textField('asiento', $asiento->LugaresLug, array('class' => 'input-mini asiento' . $clase, 'data-fid' => $asiento->FilasId, 'data-id' => $asiento->LugaresId));
echo TbHtml::tag('td', array('class' => ' '), $control);
}
echo TbHtml::tag('td', array(), TbHtml::buttonGroup(array(array('data-id' => $fila->FilasId, 'title' => 'Alinear todo a la izquierda', 'class' => 'fa fa-angle-double-left btn btn-info btn-alinear', 'url' => array_merge((array) 'alinearFila', $fila->getPrimaryKey(), array('direccion' => 'izquierda'))), array('data-id' => $fila->FilasId, 'title' => 'Recorrer a la izquierda', 'class' => 'fa fa-angle-left btn btn-info btn-alinear', 'url' => array_merge((array) 'moverFila', $fila->getPrimaryKey(), array('direccion' => 'izquierda'))), array('data-id' => $fila->FilasId, 'title' => 'Alinear todo al centro', 'class' => 'fa fa-angle-double-up btn-alinear btn btn-info', 'url' => array_merge((array) 'alinearFila', $fila->getPrimaryKey(), array('direccion' => 'centro'))), array('data-id' => $fila->FilasId, 'title' => 'Recorrer a la derecha', 'class' => 'fa fa-angle-right btn-alinear btn btn-info', 'url' => array_merge((array) 'moverFila', $fila->getPrimaryKey(), array('direccion' => 'derecha'))), array('data-id' => $fila->FilasId, 'title' => 'Alinear todo a la derecha', 'class' => 'fa fa-angle-double-right btn-alinear btn btn-info', 'url' => array_merge((array) 'alinearFila', $fila->getPrimaryKey(), array('direccion' => 'derecha'))))));
echo TbHtml::tag('td', array(), TbHtml::button('', array('onclick' => 'activarOff(' . $fila->FilasId . ')', 'class' => 'btn fa fa-adjust')));
echo TbHtml::tag('td', array(), TbHtml::textField('FilasCanLug-' . $fila->FilasId, $fila->ntrue, array('class' => 'input-mini', 'data-lugares' => $fila->ntrue, 'append' => 'Lugares', 'readonly' => true)));
echo TbHtml::closeTag('tr');
}
echo TbHtml::closeTag('table');
示例14: array
<?php
$box = $this->beginWidget('yiiwheels.widgets.box.WhBox', array('title' => Yii::t('app', 'Wholesale Register'), 'headerIcon' => 'menu-icon fa fa-shopping-cart', 'headerButtons' => array(TbHtml::buttonGroup(array(array('label' => Yii::t('app', 'On-going Sale'), 'url' => Yii::app()->createUrl('wholeSale/ListSuspendedSale/'), 'icon' => 'ace-icon fa fa-spinner fa-spin white'), array('label' => ' | '), array('label' => Yii::t('app', 'New Item'), 'url' => Yii::app()->createUrl('Item/createImage', array('grid_cart' => 'S')), 'icon' => 'ace-icon fa fa-plus white')), array('color' => TbHtml::BUTTON_COLOR_PRIMARY, 'size' => TbHtml::BUTTON_SIZE_SMALL))), 'htmlHeaderOptions' => array('class' => 'widget-header-flat widget-header-small')));
?>
<div class="widget-main">
<div id="itemlookup">
<?php
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array('action' => Yii::app()->createUrl('wholeSale/add'), 'method' => 'post', 'layout' => TbHtml::FORM_LAYOUT_HORIZONTAL, 'id' => 'add_item_form'));
?>
<?php
$this->widget('zii.widgets.jui.CJuiAutoComplete', array('model' => $model, 'attribute' => 'item_id', 'source' => $this->createUrl('request/suggestItem'), 'htmlOptions' => array('size' => '35'), 'options' => array('showAnim' => 'fold', 'minLength' => '1', 'delay' => 10, 'autoFocus' => false, 'select' => 'js:function(event, ui) {
event.preventDefault();
$("#SaleItem_item_id").val(ui.item.id);
$("#add_item_form").ajaxSubmit({target: "#register_container", beforeSubmit: salesBeforeSubmit, success: itemScannedSuccess});
}')));
?>
<?php
/* echo TbHtml::linkButton('',array(
'color'=>TbHtml::BUTTON_COLOR_INFO,
'size'=>TbHtml::BUTTON_SIZE_SMALL,
'icon'=>'glyphicon-hand-up white',
'url'=>$this->createUrl('Item/SelectItem/'),
'class'=>'update-dialog-open-link',
'data-update-dialog-title' => Yii::t('app','select items'),
)); */
?>
<?php
示例15:
<?php
echo TbHtml::buttonGroup(MenuItem::model()->findByPk($id)->getItems());