当前位置: 首页>>代码示例>>PHP>>正文


PHP TbHtml::buttonGroup方法代码示例

本文整理汇总了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();
开发者ID:noonnightcoder,项目名称:bakou-pos-apsara,代码行数:21,代码来源:update_image.php

示例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 -->
开发者ID:argenis1763,项目名称:vc,代码行数:31,代码来源:admin.php

示例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)), '&nbsp;', 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')), '&nbsp;', '&nbsp;')));
?>
<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();
开发者ID:Rudianasaja,项目名称:cycommerce,代码行数:20,代码来源:index.php

示例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>';
 }
开发者ID:cornernote,项目名称:yii-embed-wordpress,代码行数:25,代码来源:YiiEmbedDropdownColumn.php

示例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);
 }
开发者ID:AlexanderGrant1,项目名称:AC41004,代码行数:26,代码来源:TbHtmlTest.php

示例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
开发者ID:argenis1763,项目名称:vc,代码行数:31,代码来源:view.php

示例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;}
开发者ID:cicb,项目名称:tpc,代码行数:31,代码来源:editorSubzona.php

示例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;">
开发者ID:harpreet39,项目名称:challan,代码行数:31,代码来源:index.php

示例9: array

echo TbHtml::buttonGroup($buttonGroupConfig, array('toggle' => TbHtml::BUTTON_TOGGLE_CHECKBOX, 'color' => TbHtml::BUTTON_COLOR_PRIMARY));
?>
    </div>
    <pre class="prettyprint linenums">
&lt;?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">
&lt;?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">
开发者ID:crisu83,项目名称:yiistrap-docs,代码行数:31,代码来源:components.php

示例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.");
}
开发者ID:cicb,项目名称:tpc,代码行数:31,代码来源:editorFilas.php

示例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>
开发者ID:cicb,项目名称:tpc,代码行数:31,代码来源:_zona.php

示例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();
开发者ID:noonnightcoder,项目名称:bakou-pos-apsara,代码行数:31,代码来源:stock_count.php

示例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');
开发者ID:cicb,项目名称:tpc,代码行数:23,代码来源:_subzona.php

示例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 
开发者ID:soklux,项目名称:bakou-pos-apsara,代码行数:31,代码来源:_left_panel_header.php

示例15:

<?php

echo TbHtml::buttonGroup(MenuItem::model()->findByPk($id)->getItems());
开发者ID:rizaldi-github,项目名称:yii-menu-module,代码行数:3,代码来源:_TbHtml_buttonGroup.php


注:本文中的TbHtml::buttonGroup方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。