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


PHP TbHtml::badge方法代码示例

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


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

示例1: array

			<td>
				<?php 
echo TbHtml::badge('8', array('style' => TbHtml::STYLE_INFO));
?>
			</td>
			<td>
				<code>&lt;?php echo TbHtml::badge('8', array('style'=>TbHtml::STYLE_INFO)); ?></code>
			</td>
		</tr>
		<tr>
			<td>
				Inverse
			</td>
			<td>
				<?php 
echo TbHtml::badge('10', array('style' => TbHtml::STYLE_INVERSE));
?>
			</td>
			<td>
				<code>&lt;?php echo TbHtml::badge('10', array('style'=>TbHtml::STYLE_INVERSE)); ?></code>
			</td>
		</tr>
		</tbody>
	</table>

</section>

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

示例2: foreach

            'dataType' => 'html',
            'url' => CController::createUrl('carga/'.$accion), //url to call.
            'success'=> 'js:function(data){$("#form2").html(data);'
                    . '$("html, body").scrollTop(300); $(".carga_matricula").select2("open");return false;}',
        ),
        'prompt' => 'Seleccionar',  
        
    ));
foreach( CHtml::listData(Prestaciontipo::model()->findAll(array('order' => 'nombre')), 'idprestaciontipo', 'nombrecompuesto') as $key=>$value)echo $value ."&nbsp;&nbsp;&nbsp;";
}



if ($model->mostrarCampo('periodofacturacion')){
    $model->periodofacturacion=Parametro::model()->getParametro('PERIODOCARGA', 'CARGA')->valoralfanumerico;
    echo TbHtml::badge('Periodo '.$model->periodofacturacion, array('color' => TbHtml::BADGE_COLOR_SUCCESS,'style'=>'padding:8px;margin-left:60px;'));
    echo CHtml::hiddenField('Carga[periodofacturacion]',$model->periodofacturacion);
} 
?>











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

示例3: array



echo TbHtml::Button(Yii::t('app', 'Save'), array(
    'color' => TbHtml::BUTTON_COLOR_PRIMARY,
    'size' => TbHtml::BUTTON_SIZE_SMALL,
    'style' => 'margin-left:30px;',
    'id'=>'guardar1',
));
echo TbHtml::Button(Yii::t('app', 'Cancel'), array(
    'submit' => array('/site/index'),
    'style' => 'margin-left:30px;',
    'color' => TbHtml::BUTTON_COLOR_DANGER,
    'size' => TbHtml::BUTTON_SIZE_SMALL,
));

  
$ayuda="<p>(*) Graba </p><p>(Enter) Avanza </p><p> (-) Retrocede</p>"  ;
$ayuda= "<p>".TbHtml::badge('Enter', array('color' => TbHtml::BADGE_COLOR_SUCCESS,'style'=>'margin-right:5px;'))."Avanza</p>";
$ayuda.= "<p>".TbHtml::badge('-', array('color' => TbHtml::BADGE_COLOR_IMPORTANT,'style'=>'margin-right:32px;'))."Retrocede</p>";
$ayuda.= "<p>".TbHtml::badge('*', array('color' => TbHtml::BADGE_COLOR_INFO,'style'=>'margin-right:32px;'))."Guarda</p>";

echo TbHtml::popover("Ayuda","Uso del Teclado",$ayuda,array('onclick'=>'return false','style' => 'margin-left:30px;',
'class' => 'btn  btn-success'));


     


?>
</div>
开发者ID:juankie,项目名称:gestcb9git,代码行数:28,代码来源:_formbotones.php

示例4: array

         <td>
            <?php 
echo TbHtml::badge('8', array('color' => TbHtml::BADGE_COLOR_INFO));
?>
         </td>
         <td>
            <code>&lt;?php echo TbHtml::badge('8', array('color' =>  TbHtml::BADGE_COLOR_INFO)); ?></code>
         </td>
      </tr>
      <tr>
         <td>
            Inverse
         </td>
         <td>
            <?php 
echo TbHtml::badge('10', array('color' => TbHtml::BADGE_COLOR_INVERSE));
?>
         </td>
         <td>
            <code>&lt;?php echo TbHtml::badge('10', array('color' =>  TbHtml::BADGE_COLOR_INVERSE)); ?></code>
         </td>
      </tr>
      </tbody>
   </table>

</section>

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

示例5: testBadge

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

示例6: foreach

<legend>Seleccione los ítems para la carga</legend>  

<fieldset>
  
    <?php
    $i = 0;
    foreach ($model_campos_carga->attributes as $key => $value) {
    if ($model_campos_carga->getMetaData()->columns[$key]->comment != "INTERNO") {

        echo "<div class='control-group'>";
        echo "<span class='control-label' style='width:170px;' >";
        echo TbHtml::badge($i + 1, array('color' => TbHtml::BADGE_COLOR_INVERSE, "style" => "margin-right:5px; float:left;"));
        echo TbHtml::labelTb($model_campos_carga->getAttributeLabel($key), array('color' => TbHtml::LABEL_COLOR_INFO, "class" => "centrado", "style" => "width:124px;"));
        echo "</span>";
        echo "<div class='controls'>";
        echo $form->inlineRadioButtonList($models_parametros_carga[$i], "[$i]idopcioncampocarga", CHtml::listData(Opcioncampocarga::model()->findAll(), 'idopcioncampocarga', 'nombre'), $model_campos_carga->getMetaData()->columns[$key]->comment == "NOEDITABLE" ? array('disabled' => 'disabled') : ARRAY());
        echo $form->error($models_parametros_carga[$i], "[$i]idopcioncampocarga");
        echo "</div>";
        echo "</div>";

        if ($key == 'nroafiliado')
            echo $form->textFieldControlGroup($models_parametros_carga[$i], "[$i]longitud", array('size' => 10, 'maxlength' => 10));
       
        echo $form->hiddenfield($models_parametros_carga[$i], "[$i]campo");
        echo $form->hiddenfield($models_parametros_carga[$i], "[$i]idosplan");
        $i++;
    }
}
?>

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

示例7: array

                'onclick'=>'js:{var p=cuenta();$("select." + p).val(this.value).trigger("change");'
                . '$(".b" + p).addClass("badge-warning");'
                . '$("#cargapractica").val("").trigger("change");'
                . '}',
             ),

    ));
        echo "</div>";
    
    
    
    for ($f = 1; $f <= $filas; $f++) {
        echo "<div style='margin:10px 0 10px 0;' >";
        for ($col = 1; $col <= 4; $col++) {
            if (isset($models_practicas[$i])) {
                echo TbHtml::badge(str_pad($i+1, 2, "0", STR_PAD_LEFT), array('color' => TbHtml::BADGE_COLOR_DEFAULT,'class' =>'b'.$i,'style'=>'margin-left:20px;'));
               
                $this->widget('yiiwheels.widgets.select2.WhSelect2', array(
                    'model' => $models_practicas[$i],
                    'attribute' => "[$i]idpractica",
                    'language' => 'es',
                    'data' => $data,
                    'htmlOptions' => array(
                        'style' => 'width:110px;margin-top:10px;',
                        'class'=>$i." "."sp",
                        'prompt' => '    '
                    ),
                )); 
               $i++; 
            }
开发者ID:juankie,项目名称:gestcb9git,代码行数:30,代码来源:_form.php

示例8: testBadge

 public function testBadge()
 {
     $I = $this->codeGuy;
     $html = TbHtml::badge('Badge text', array('class' => 'span'));
     $span = $I->createNode($html, 'span.badge');
     $I->seeNodeCssClass($span, 'span');
     $I->seeNodeText($span, 'Badge text');
 }
开发者ID:noonnightcoder,项目名称:bakou-pos-apsara,代码行数:8,代码来源:TbHtmlTest.php

示例9: array

        'allowClear' => true,
        'placeholder' => 'Buscar',
        'onclick' => 'js:{var codigocarga=this.value;'
        . 'procesa(codigocarga);'
        . '$("#cargapractica").val("").trigger("change");'
        . '}',
    ),
));

}
echo "</div>";
?>
<div style="clear: both;margin-top:15px;"></div>
<?php
// grilla form practicas 
$i = 0;
$columnas =6;
$filas = 4;
for ($f = 1; $f <= $filas; $f++) {
    echo "<div class='control-group centrado'>";
    for ($col = 1; $col <= $columnas; $col++) {
        echo TbHtml::badge(str_pad($i + 1, 2, "0", STR_PAD_LEFT), array('color' => TbHtml::BADGE_COLOR_WARNING, 'style' => 'margin-left:10px;'));
        echo Tbhtml::textField("codigocarga[$i]", $codigocarga[$i], array("style" => 'width:50px;', 'disabled' => true, 'class' => $i . ' ' . 'practicas', 'rel' => $i));
      if ($accion=='carga'){  echo $form->hiddenField($models_practicas[$i], "[$i]idpractica");}
        echo TbHtml::icon(TbHtml::ICON_REMOVE, array('rel' => $i));
        $i++;
    }
    echo "</div>";
}
echo "</div>";
开发者ID:juankie,项目名称:gestcb9git,代码行数:30,代码来源:_grillapracticas.php

示例10: ob_start

	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
</head>

<body>

<div class="container" id="page">

	<div id="header">
		<div id="logo"><?php //echo CHtml::encode(Yii::app()->name); ?></div>
	</div><!-- header -->

	<div id="mainmenu" >
            <?php 
                ob_start();
                echo TbHtml::badge('2', array('color' => TbHtml::BADGE_COLOR_SUCCESS));
                $indicatorCount = ob_get_contents();
                ob_clean();
            ?>
            <?php  $this->widget('bootstrap.widgets.TbNavbar', array(
                    'brandLabel' => '<strong><span style="color:#56AD56">EAMS </span>TANZANIA</strong>',
                    'display' => TbHtml::NAVBAR_DISPLAY_FIXEDTOP,
                    'items'=>array(
                        //!Yii::app()->user->isGuest?  EamsFacts::loadNotifier():"",
                        array(
                            'class' => 'bootstrap.widgets.TbNav',
			'items'=>array(
                               array('label'=>'EAC Decisions','icon'=>TbHtml::ICON_LIST_ALT, 'url'=>array('/eacDecision/admin'),'visible'=>!Yii::app()->user->isGuest,
                                       'items'=>array(
                                           array('label'=>'Decisions','icon'=>TbHtml::ICON_LIST_ALT, 'url'=>array('/eacDecision/admin'),'visible'=>!Yii::app()->user->isGuest),
                                
开发者ID:robertgunze,项目名称:eams,代码行数:29,代码来源:main.php


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