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


PHP TbHtml::labelTb方法代码示例

本文整理汇总了PHP中TbHtml::labelTb方法的典型用法代码示例。如果您正苦于以下问题:PHP TbHtml::labelTb方法的具体用法?PHP TbHtml::labelTb怎么用?PHP TbHtml::labelTb使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在TbHtml的用法示例。


在下文中一共展示了TbHtml::labelTb方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: renderDataCellContent

 /**
  * Renders the data cell content.
  * @param integer $row the row number (zero-based).
  * @param mixed $data the data associated with the row.
  */
 protected function renderDataCellContent($row, $data)
 {
     /* @var $am CAuthManager|AuthBehavior */
     $am = Yii::app()->getAuthManager();
     $labelType = $this->active || $am->hasParent($this->itemName, $data['name']) || $am->hasChild($this->itemName, $data['name']) ? 'info' : '';
     /* @var $controller AuthItemController */
     $controller = $this->grid->getController();
     echo TbHtml::labelTb($controller->getItemTypeText($data['item']->type), array('color' => $labelType));
 }
开发者ID:ivko,项目名称:yii-auth,代码行数:14,代码来源:AuthItemTypeColumn.php

示例2: validarStatus

 public function validarStatus($status)
 {
     if ($status == 1) {
         return TbHtml::labelTb("Asignado", array('color' => TbHtml::LABEL_COLOR_SUCCESS));
     } else {
         if ($status == 2) {
             return TbHtml::labelTb("Por asignar");
         } else {
             if ($status == 3) {
                 return TbHtml::labelTb("Creado", array('color' => TbHtml::LABEL_COLOR_SUCCESS));
             } else {
                 if ($status == 4) {
                     return TbHtml::labelTb("Eliminado", array('color' => TbHtml::LABEL_COLOR_IMPORTANT));
                 } else {
                     if ($status == 5) {
                         return TbHtml::labelTb("Cerrado", array('color' => TbHtml::LABEL_COLOR_INVERSE));
                     } else {
                         if ($status == 6) {
                             return TbHtml::labelTb("Re abierto", array('color' => TbHtml::LABEL_COLOR_INFO));
                         } else {
                             if ($status == 7) {
                                 return TbHtml::labelTb("Corregido por tutor", array('color' => TbHtml::LABEL_COLOR_SUCCESS));
                             } else {
                                 if ($status == 8) {
                                     return TbHtml::labelTb("Corregido por estudiante", array('color' => TbHtml::LABEL_COLOR_SUCCESS));
                                 } else {
                                     if ($status == 9) {
                                         return TbHtml::labelTb("No corregido", array('color' => TbHtml::LABEL_COLOR_WARNING));
                                     } else {
                                         if ($status == 10) {
                                             return TbHtml::labelTb("Aprobado", array('color' => TbHtml::LABEL_COLOR_SUCCESS));
                                         } else {
                                             if ($status == 11) {
                                                 return TbHtml::labelTb("En emergencia", array('color' => TbHtml::LABEL_COLOR_IMPORTANT));
                                             } else {
                                                 if ($status == 12) {
                                                     return TbHtml::labelTb("Enviado", array('color' => TbHtml::LABEL_COLOR_SUCCESS));
                                                 } else {
                                                     if ($status == 13) {
                                                         return TbHtml::labelTb("No enviado", array('color' => TbHtml::LABEL_COLOR_IMPORTANT));
                                                     } else {
                                                         if ($status == 14) {
                                                             return TbHtml::labelTb("Nuevo", array('color' => TbHtml::LABEL_COLOR_INFO));
                                                         }
                                                     }
                                                 }
                                             }
                                         }
                                     }
                                 }
                             }
                         }
                     }
                 }
             }
         }
     }
 }
开发者ID:argenis1763,项目名称:vc,代码行数:58,代码来源:EssaysHasCrugeUser.php

示例3: array

    ));

    echo $form->errorSummary($model);
    ?>
    
<fieldset>
         
          
  <?php
  // variable para deshabilitar campos durante el update, en alta es false, en update en true
  $disabled=false;
  
   // update
   if (!$model->isNewRecord){
       $disabled=true;
        echo TbHtml::labelTb('Unidad: ' .$model->idunidad0->nombre, array('color' => TbHtml::LABEL_COLOR_WARNING, 'style' => 'padding: 8px ;margin-bottom:10px;'));
        } 
    else {   
    // alta
        // determinar que unidades corresponden con el nomencladorplan 
        $idunidades=  Nomencladorplan::model()->search3($model->idosplan);  
     
        echo $form->dropDownListControlGroup($model, 'idunidad', CHtml::listData(Unidad::model()->findAllByPk($idunidades,array('order'=>'nombre')),'idunidad', 'nombre'));

  }
  
  /* Cada cuenta de OOSS incluye profesionales:

   * ACREDITADO,
   * ACREDITADO Y NO ACREDITADO, 
   * NO ACREDITADO,
开发者ID:juankie,项目名称:gestcb9git,代码行数:31,代码来源:_form.php

示例4: array

	<h3>Condensed</h3>

	<div class="bs-docs-example">
		<?php 
$this->widget('bootstrap.widgets.TbGridView', array('style' => TbHtml::GRID_CONDENSED, 'dataProvider' => $gridDataProvider, 'template' => "{items}", 'columns' => $gridColumns));
?>
	</div>

	<pre class="prettyprint linenums">
&lt?php $this->widget('bootstrap.widgets.TbGridView', array(
    'style' => TbHtml::GRID_CONDENSED,
    ...
)); ?></pre>

	<p><?php 
echo TbHtml::labelTb('Heads up!', array('style' => TbHtml::STYLE_INFO));
?>
 You can also combine table styles by providing multiple values.</p>

	<hr class="bs-docs-divider">

	<h2>Detail Views</h2>

	<p class="muted">@todo</p>

</section>

<!-- Forms
	================================================== -->
<section id="forms">
开发者ID:yii-twbs,项目名称:yiistrap-docs,代码行数:30,代码来源:components.php

示例5: array

    
    
    // Carga formulario de datos de impuestos en  tab 5
    $tabs['Datos Impositivos'] = array(
        'label' => 'Datos Impositivos',
        'content' => $this->renderPartial('//datoimpositivo/_datoimpositivocompleto', array(
            'form' => $form, 
            'model' => $model_datoimpositivo,
             ), true),
    );
    
    // Carga un array con  formulario de datos de domicilio particular
    // para armar luego un tab de los dos tipos de domicilios
    $tabd['Domicilio Particular'] = array(
        'label' => 'Domicilio Particular',
        'content' => TbHtml::labelTb('Domicilio particular', array('color' => TbHtml::LABEL_COLOR_WARNING, 'style' => 'margin-bottom:15px;font-size:13px;padding:5px;')) .
                    $this->renderPartial('//domicilio/_form_domi_completo', array(
                        'model' => $model,
                        'modelDomicilio' => $model_domicilio,
                        'modellocalidad' => $model_domicilio,
                        'form' => $form,
                    ), true),
);


// Carga un array con  formulario de datos de domicilio profesional
    $tabd['Domicilios profesionales'] = array(
        'label' => 'Domicilios Profesionales',
        'content' => $this->renderPartial('//domicilio/_domicilioprofesional', array(
         'form' => $form, 
         'model' => $model,
开发者ID:juankie,项目名称:gestcb9git,代码行数:29,代码来源:_formtabs_profesional.php

示例6: array

body {
 font-family: 微软雅黑, Verdana, sans-serif, 宋体;
}
.form-horizontal .control-label {
 width:80px;
}
.form-horizontal .controls {
 margin-left:100px;
}

');
?>
<body>

<?php 
$this->widget('bootstrap.widgets.TbNavbar', array('brandLabel' => 'FirCMS', 'brandUrl' => array('/admin'), 'items' => array(array('class' => 'bootstrap.widgets.TbNav', 'items' => array(array('label' => '栏目', 'url' => array('/admin/catalog/admin'), 'visible' => !Yii::app()->user->isGuest), array('label' => '内容', 'url' => array('/admin/post/admin'), 'visible' => !Yii::app()->user->isGuest), array('label' => '单页', 'url' => array('/admin/page/admin'), 'visible' => !Yii::app()->user->isGuest), array('label' => "留言", 'url' => array('/admin/feedback/admin'), 'visible' => !Yii::app()->user->isGuest), array('label' => '登陆', 'url' => array('/site/login'), 'visible' => Yii::app()->user->isGuest))), array('class' => 'bootstrap.widgets.TbNav', 'encodeLabel' => false, 'htmlOptions' => array('class' => 'pull-right'), 'items' => array(array('label' => TbHtml::labelTb('欢迎使用 FirCMS!&nbsp;&nbsp;', array('style' => 'margin-top:8px;padding-right:0px;')), 'visible' => !Yii::app()->user->isGuest), array('label' => '系统主页 &nbsp;', 'url' => array('/admin/default/index'), 'linkOptions' => array('style' => 'padding-right:0px;'), 'active' => false, 'visible' => !Yii::app()->user->isGuest), array('label' => '网站主页 &nbsp;', 'url' => array('/site/index'), 'linkOptions' => array('style' => 'padding-right:0px;'), 'visible' => !Yii::app()->user->isGuest), array('label' => '<i class="icon-off" style="margin-top:4px;"></i>[退出]', 'url' => array('/site/logout'), 'linkOptions' => array('style' => 'padding-left:0px;'), 'visible' => !Yii::app()->user->isGuest))))));
?>


        <?php 
echo $content;
?>

<div style="min-height:50px"></div>
<footer class="footer" style="text-align: center;">
    Copyright &copy; <?php 
echo date('Y');
?>
 by poctsy.
    All Rights Reserved.Powered by fircms.com
</footer><!-- footer -->
开发者ID:cooltheo,项目名称:fircms,代码行数:31,代码来源:main.php

示例7: array

<?php 
 echo TbHtml::labelTb('Detalle Práctica', array('color' => TbHtml::LABEL_COLOR_WARNING, 'style' => 'margin-left:-2px;font-size:13px;padding:5px;'));
 
 // dos formas de poner boton de cierre
// echo TbHtml::closeButton(TbHtml::CLOSE_TEXT,$htmlOptions=array('onclick'=>'js: $( this ).parent("div").hide()')); 
echo TbHtml::icon(TbHtml:: ICON_REMOVE_CIRCLE,$htmlOptions=array('style'=>'float:right;' ,'onclick'=>'js: $( this ).parent("div").hide()'));
$this->widget('zii.widgets.CDetailView', array(
'data' => $model,
'attributes' => array(
//        'idpractica',
        'codigo',
        'nombre',
        'estadistica',
        array(
            'name' => 'asitioweb',
            'type' => 'boolean'
        ),
        array(
            'name' => 'idpractipo',
            'value' => $model->idpractipo0->nombre,
        ),
        array(
            'name' => 'idnomenclador',
            'value' => $model->idnomenclador0->nombre,
        ),
)));?>
开发者ID:juankie,项目名称:gestcb9git,代码行数:26,代码来源:viewdetalle.php

示例8: testLabel

 public function testLabel()
 {
     $I = $this->codeGuy;
     $html = TbHtml::labelTb('Label text', array('color' => TbHtml::LABEL_COLOR_INFO, 'class' => 'span'));
     $span = $I->createNode($html, 'span.label');
     $I->seeNodeCssClass($span, 'label-info span');
     $I->seeNodeText($span, 'Label text');
 }
开发者ID:AlexanderGrant1,项目名称:AC41004,代码行数:8,代码来源:TbHtmlTest.php

示例9: array

<?php
echo TbHtml::labelTb('Contrato', array('color' => TbHtml::LABEL_COLOR_WARNING,'style'=>'margin-top:20px;font-size:13px;padding:5px;')); 
echo $form->dropDownListControlGroup($model, 'idcontratotipo', CHtml::listData(Contratotipo::model()->findAll(array('order' => 'nombre')), 'idcontratotipo', 'nombre'));
?>
<?php
echo "<div class='control-group'>";
echo $form->labelEx($model, 'desde', array('class' => 'control-label'));
echo "<div class='controls'>";

//Selector de calendario 
$this->widget('CJuiDateTimePicker', array(
    'model' => $model,
    'name' => 'Contrato[desde]',
    'language' => 'es',
    'value' => $model->isNewRecord ? date('d/m/Y') :$model->desde,
    'mode' => 'date',
    'options' => array(
        'showAnim' => 'fold', // 'show' (the default), 'slideDown', 'fadeIn', 'fold'
        'showButtonPanel' => false,
        'changeYear' => true,
        'changeMonth' => true,
        'dateFormat' => 'dd/mm/yy',
    ),
        )
);
echo "</div></div>";




开发者ID:juankie,项目名称:gestcb9git,代码行数:26,代码来源:_form_gral.php

示例10: array

$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array('layout' => TbHtml::FORM_LAYOUT_HORIZONTAL));
?>

    <fieldset>

        <legend ></legend>


        <?php 
echo $form->textFieldControlGroup($model, 'cityName', array('help' => 'Введите город', 'size' => 60, 'maxlength' => 128));
?>

        <?php 
if ($model->error != GameUtils::ERROR_SUCCESS) {
    ?>
        <div id="error_wrapper">
            <?php 
    echo TbHtml::labelTb($model->error, array('color' => TbHtml::LABEL_COLOR_IMPORTANT, 'id' => 'error_label'));
    ?>
        </div>
        <?php 
}
?>

    <?php 
echo TbHtml::formActions(array(TbHtml::submitButton('Ходить', array('color' => TbHtml::BUTTON_COLOR_PRIMARY)), TbHtml::linkButton('Сдаться', array('color' => TbHtml::BUTTON_COLOR_INFO, 'url' => array('game/delete', 'id' => Yii::app()->session['gameId'])))));
?>

    </fieldset>
    <?php 
$this->endWidget();
开发者ID:tatyanayavkina,项目名称:yii_city_game,代码行数:31,代码来源:_form.php

示例11: array

    <?php
    if ($model->mostrarCampo('matriculamedico'))
        echo $form->textFieldControlGroup($model, 'matriculamedico', array('size' => 30, 'maxlength' => 30));
    ?>


    <?php
    if ($model->mostrarCampo('fechaemision')) {
        echo $form->dateFieldControlGroup($model, 'fechaemision');
    }
     

    
// Sección de practicas
    echo TbHtml::labelTb('Prácticas', array('color' => TbHtml::LABEL_COLOR_WARNING, 'style' => 'margin-bottom:20px;font-size:21px;padding:12px;'));
    $data = CHtml::listData(Practica::model()->findAll(array('order' => 'nombre')), 'idpractica', 'nombrecomp');
// Cargo las practicas en pantalla
    $i = 0;
    $filas = ceil(Carga::MAX_PRACTICAS_BOLETA / 5);
   echo "<div class='control-group' style='float:right;margin-right:186px;margin-top:6px;' >";
  
    $this->widget('yiiwheels.widgets.select2.WhSelect2', array(
          'asDropDownList' =>true,
         'data' => $data,
         'name'=>'cargapractica',

          'htmlOptions'=>  
            array(
                'style' => 'width:300px;',
                'prompt' => '',
开发者ID:juankie,项目名称:gestcb9git,代码行数:30,代码来源:_form.php

示例12: array

				<td><?php 
            echo $dp['NumeroTeste'];
            ?>
</td>
				<td><?php 
            echo $dp['NomeTeste'];
            ?>
</td>
				<td><?php 
            if ($dp['Status'] == 0) {
                echo TbHtml::labelTb('Pending', array('color' => TbHtml::LABEL_COLOR_WARNING));
            } else {
                if ($dp['Status'] == 1) {
                    echo TbHtml::labelTb('Passed', array('color' => TbHtml::LABEL_COLOR_SUCCESS));
                } else {
                    echo TbHtml::labelTb('Failed', array('color' => TbHtml::LABEL_COLOR_IMPORTANT));
                }
            }
            ?>
</td>

				<td><a href="#modalOcorrencia<?php 
            echo $dp['IDTestRun'];
            ?>
"
					role="button" class="btn" data-toggle="modal"><i
						class="fa fa-eye"></i></a></td>
			</tr>

			<!-- Informa��es detalhadas das ocorr�ncias -->
			<div id="modalOcorrencia<?php 
开发者ID:raphaelrocha,项目名称:mtcontrool_mtcontext,代码行数:31,代码来源:view.php

示例13: actionVergrilla

 public function actionVergrilla($id)
 {
     $calle = Domicilio::model()->findByPk($id)->calle;
     $model = new Contacto('search');
     $model->iddomicilio = isset($_POST['id']) ? $_POST['id'] : $id;
     // Stop jQuery from re-initialization
     Yii::app()->clientScript->scriptMap['jquery.js'] = false;
     echo TbHtml::labelTb('Contacto para calle ' . $calle, array('color' => TbHtml::LABEL_COLOR_INFO, 'style' => 'margin-top:30px;margin-bottom:20px;font-size:13px;padding:5px;'));
     $this->renderPartial('grilla', array('model' => $model));
 }
开发者ID:juankie,项目名称:gestcb9git,代码行数:10,代码来源:ContactoController.php

示例14: array

if ($accion=='carga'){
$data = CHtml::listData(Practica::model()->findAll(array('order' => 'nombre')), 'codigocarga', 'nombrecomp');

// listado oculto de los codigos de carga
$codigoscarga = CHtml::listData(Practica::model()->findAll(array('order' => 'codigocarga')), 'idpractica', 'codigocarga');
echo TbHtml::dropDownList('codigoscarga', 'codigoscarga', $codigoscarga, array('style' => 'display:none;'));

// campo de carga de codigos de practica (codigocarga) 

echo TbHtml::labelTb('Código', array('style' => 'margin-left:115px;padding:7px;'));
echo TbHtml::textField('codpractica', '', array('span' => 1));


// listado de practicas con select 2

echo TbHtml::labelTb('Nombre', array('style' => 'margin-left:106px;padding:7px;'));
$this->widget('yiiwheels.widgets.select2.WhSelect2', array(
    'asDropDownList' => true,
    'data' => $data,
    'name' => 'cargapractica',
    'htmlOptions' =>
    array(
        'style' => 'width:300px;',
        'prompt' => '',
        'allowClear' => true,
        'placeholder' => 'Buscar',
        'onclick' => 'js:{var codigocarga=this.value;'
        . 'procesa(codigocarga);'
        . '$("#cargapractica").val("").trigger("change");'
        . '}',
    ),
开发者ID:juankie,项目名称:gestcb9git,代码行数:31,代码来源:_grillapracticas.php

示例15: getNombre

 public function getNombre($id)
 {
     if (!empty($id)) {
         $tutor = Tutor::model()->findByPk($id);
         return Profile::model()->nombreApellido($tutor->profile->firstname, $tutor->profile->secondname, $tutor->profile->lastname1, $tutor->profile->lastname2);
     }
     return TbHtml::labelTb("Sin asignar", array('color' => TbHtml::LABEL_COLOR_IMPORTANT));
 }
开发者ID:argenis1763,项目名称:vc,代码行数:8,代码来源:Tutor.php


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