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


PHP TbHtml::b方法代码示例

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


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

示例1: testBold

 public function testBold()
 {
     $I = $this->codeGuy;
     $html = TbHtml::b('Bold text');
     $strong = $I->createNode($html, 'strong');
     $I->seeNodeText($strong, 'Bold text');
 }
开发者ID:AlexanderGrant1,项目名称:AC41004,代码行数:7,代码来源:TbHtmlTest.php

示例2: array

<div id="informacion">
<?php 
if (Yii::app()->user->hasFlash('save')) {
    echo TbHtml::alert(TbHtml::ALERT_COLOR_SUCCESS, Yii::app()->user->getFlash('save'));
} else {
    if (Yii::app()->user->hasFlash('error')) {
        echo TbHtml::alert(TbHtml::ALERT_COLOR_ERROR, Yii::app()->user->getFlash('error'));
    } else {
        if (Yii::app()->user->hasFlash('remove')) {
            echo TbHtml::alert(TbHtml::ALERT_COLOR_SUCCESS, Yii::app()->user->getFlash('remove'));
        }
    }
}
$data = Profile::model()->crearArrayStudentsRequirement($model->id);
if (empty($data)) {
    echo TbHtml::muted('No hay Estudiantes disponibles para asignar,' . TbHtml::b(' ya todos los Estudiantes activos tienen un Tutor asignado.'));
    echo "<br />";
} else {
    ?>

		<!-- Form asignar Students a Tutor -->
		<?php 
    echo TbHtml::beginFormTb(TbHtml::FORM_LAYOUT_INLINE);
    ?>
			<fieldset>

				<p>Estudiante:
				<?php 
    $this->widget('yiiwheels.widgets.select2.WhSelect2', array('name' => 'idProfile', 'asDropDownList' => true, 'data' => $data, 'pluginOptions' => array('allowClear' => true, 'minimumInputLength' => 1, 'removed' => true, 'width' => '50%'), 'htmlOptions' => array('prompt' => 'Seleccione un Estudiante...')));
    ?>
	
开发者ID:argenis1763,项目名称:vc,代码行数:30,代码来源:view.php

示例3: array

<?php

/*$box = $this->beginWidget('yiiwheels.widgets.box.WhBox', array(
              'title' => 'Cost History of <span class="text-info">' . $item->name .'</span>',
              'headerIcon' => 'icon-info-sign',
)); */
?>

<?php 
echo TbHtml::em(TbHtml::b($item->name) . ' Current Reference Cost: ' . $item->cost_price, array('color' => TbHtml::TEXT_COLOR_INFO));
echo TbHtml::muted('Average Cost: ' . Yii::app()->numberFormatter->formatCurrency($avg_cost, ''), array('color' => TbHtml::TEXT_COLOR_INFO));
echo TbHtml::muted('Total On-Hand Quantity: ' . $item->quantity, array('color' => TbHtml::TEXT_COLOR_INFO));
?>

<?php 
$this->widget('bootstrap.widgets.TbGridView', array('id' => 'costhistory-grid', 'dataProvider' => $model->costHistory($item_id), 'enableSorting' => false, 'columns' => array(array('name' => 'receive_time', 'header' => 'Date', 'value' => '$data["receive_time"]'), array('name' => 'supplier_id', 'header' => 'Supplier', 'value' => '$data["supplier_id"]'), array('name' => 'quantity', 'header' => 'Qty Received', 'value' => '$data["quantity"]'), array('name' => 'cost_price', 'header' => 'Cost', 'value' => '$data["cost_price"]'))));
?>

<?php 
//$this->endWidget();
开发者ID:noonnightcoder,项目名称:bakou-pos-apsara,代码行数:20,代码来源:_cost_history.php

示例4: array

		<p><?php 
echo TbHtml::b('Games');
?>
</p>
			<?php 
echo TbHtml::checkBoxList('checkGames', '', array('6.1, 6.2, 6.3, 6.4' => CHtml::encode('Does your app is a game?')));
?>
		<p><?php 
echo TbHtml::b('Contracts and Extensions');
?>
</p>
                        <?php 
echo TbHtml::checkBoxList('checkContracts', '', array('7.1, 7.2' => CHtml::encode('Does your app is a share source?')));
?>
		<p><?php 
echo TbHtml::b('Audio and Video');
?>
</p>
			<?php 
echo TbHtml::checkBoxList('checkAudioAndVideo', '', array('9.1, 9.2' => CHtml::encode('Does your app is a music app?'), '9.3' => CHtml::encode('Does your app use voice call?'), '9.4' => CHtml::encode('Does your app have sounds?')));
?>
                
	</div>

 <?php 
echo TbHtml::button('Back', array('onclick' => 'js:document.location.href="/mtcontrool/runs/create"', 'color' => TbHtml::BUTTON_COLOR_DEFAULT, 'size' => TbHtml::BUTTON_SIZE_LARGE));
?>
	 <?php 
echo TbHtml::link('Submit', array('runs/saveWPQuest', 'id' => $idRuns), array('class' => 'btn btn-success btn-large'));
?>
 
开发者ID:raphaelrocha,项目名称:mtcontrool_mtcontext,代码行数:30,代码来源:_questWP.php

示例5: array

		<p><?php 
echo TbHtml::b('Multiplayer');
?>
</p>
		<?php 
echo TbHtml::checkBoxList('checkMultiplayer', '', array('18.1, 18.2, 18.3, 18.4' => CHtml::encode('Does your app have Multiplayer function?')));
?>
                <p><?php 
echo TbHtml::b('Display');
?>
</p>
		<?php 
echo TbHtml::checkBoxList('checkDisplay', '', array('24.7' => CHtml::encode('Does your app produce assistive text which can be displayed on the device?'), '24.11' => CHtml::encode('Does your app address reading comprehension issues?')));
?>
                <p><?php 
echo TbHtml::b('External Devices');
?>
</p>
		<?php 
echo TbHtml::checkBoxList('checkExternalDevices', '', array('26.7' => CHtml::encode('Does your app produce assistive text-to-speech in conjunction with an external audio output device?'), '26.8' => CHtml::encode('Does your app produce assistive text which can be output through an external display? ')));
?>
	</div>
 <?php 
echo TbHtml::button('Back', array('onclick' => 'js:document.location.href="/mtcontrool/runs/create"', 'color' => TbHtml::BUTTON_COLOR_DEFAULT, 'size' => TbHtml::BUTTON_SIZE_LARGE));
?>
	 <?php 
echo TbHtml::link('Submit', array('runs/saveAndroidQuest', 'id' => $idRuns), array('class' => 'btn btn-success btn-large', 'confirm' => 'Are you sure?'));
?>
 
 
         <?php 
开发者ID:raphaelrocha,项目名称:mtcontrool_mtcontext,代码行数:31,代码来源:_questAndroid.php

示例6:

    <h3>Small</h3>

    <div class="bs-docs-example">
        <p><?php 
echo TbHtml::small('This line of text is meant to be treated as fine print.');
?>
</p>
    </div>
    <pre class="prettyprint linenums">
&lt;p>&lt;?php echo TbHtml::small('...'); ?>&lt;/p></pre>

    <h3>Bold</h3>

    <div class="bs-docs-example">
        <p>The following snippet of text is <?php 
echo TbHtml::b('rendered as bold text');
?>
.</p>
    </div>
    <pre class="prettyprint linenums">
&lt;p>The following snippet of text is &lt;?php echo TbHtml::b('rendered as bold text'); ?>.&lt;/p></pre>

    <h3>Italic</h3>

    <div class="bs-docs-example">
        <p>The following snippet of text is <?php 
echo TbHtml::i('rendered as italic text');
?>
.</p>
    </div>
    <pre class="prettyprint linenums">
开发者ID:crisu83,项目名称:yiistrap-docs,代码行数:31,代码来源:basics.php

示例7:

    ?>
</td>
                        <td colspan="2" style='text-align:right;'><?php 
    echo TbHtml::b(Yii::app()->numberFormatter->formatCurrency($amount_change, 'USD'));
    ?>
</td>  
                    </tr>    

                </tbody>

            </table>
        </div>
    
        <div id="return_policy" style="width:200px; margin:0 auto;">
            <div id="return_policy" align="center"><?php 
    echo TbHtml::b(Yii::t('app', Yii::app()->settings->get('site', 'returnPolicy')));
    ?>
</div>
        </div> 

        <div id="mybutton">
            <?php 
    /* echo TbHtml::linkButton(Yii::t( 'app', 'Print' ),array(
           'color'=>TbHtml::BUTTON_COLOR_SUCCESS,
           'size'=>TbHtml::BUTTON_SIZE_SMALL,
           'icon'=>'print white',
           //'url'=>Yii::app()->createUrl('SaleItem/Index'),
           'onclick'=>'{printpage();}',
       )); */
    ?>
 
开发者ID:noonnightcoder,项目名称:bakou-pos-apsara,代码行数:30,代码来源:_receipt.php

示例8:

</legend>
<div id="informacion">
<?php 
if (Yii::app()->user->hasFlash('save')) {
    echo TbHtml::alert(TbHtml::ALERT_COLOR_SUCCESS, Yii::app()->user->getFlash('save'));
} else {
    if (Yii::app()->user->hasFlash('error')) {
        echo TbHtml::alert(TbHtml::ALERT_COLOR_ERROR, Yii::app()->user->getFlash('error'));
    } else {
        if (Yii::app()->user->hasFlash('remove')) {
            echo TbHtml::alert(TbHtml::ALERT_COLOR_SUCCESS, Yii::app()->user->getFlash('remove'));
        }
    }
}
if (!empty($model->tutor_id)) {
    echo TbHtml::muted('El Estudiante ya tiene asignado un Tutor.' . TbHtml::b(' Un Estudiante solo puede tener un Tutor asignado.'));
    echo "<br />";
} else {
    $data = Profile::model()->crearArrayTutorStudents();
    ?>

<!-- Form agregar Students a Essay -->
<?php 
    echo TbHtml::beginFormTb(TbHtml::FORM_LAYOUT_INLINE);
    ?>
	<fieldset>
		
		<?php 
    /*this->widget('CAutoComplete',
    			array(
    				'name'=>'tutorStudents',
开发者ID:argenis1763,项目名称:vc,代码行数:31,代码来源:view.php

示例9: sprintf

<div class='controles' style="min-height:100%">

<?php 
echo sprintf("<h2>%s</h2>", $model->scenario == "insert" ? 'Nuevo Registro De Evento' : 'Actualizar Evento');
?>
	<p class="help-block">Los campos con <span class="required">*</span> son requeridos.</p>
	<?php 
echo $form->errorSummary($model);
?>
<br />
<?php 
if (Yii::app()->user->hasFlash('success')) {
    ?>
    <div class="alert alert-success">
        <?php 
    echo TbHtml::b(Yii::app()->user->getFlash('success'), array('style' => 'font-size:150%'));
    ?>
    </div>
<?php 
}
?>

		<div class='col-2 white-box box'>
		<h3>Información básica</h3>

			<?php 
echo $form->textFieldControlGroup($model, 'EventoNom', array('span' => 4, 'maxlength' => 150));
?>
            <?php 
echo $form->textFieldControlGroup($model, 'EventoDesBol', array('span' => 4, 'maxlength' => 75));
?>
开发者ID:cicb,项目名称:tpc,代码行数:31,代码来源:form.php

示例10: number_format

echo $total_discount . '% ' . Yii::t('app', 'Discount');
?>
</td>
                        <td colspan="2" style='text-align:right;'>
                            <?php 
echo Yii::app()->settings->get('site', 'currencySymbol') . number_format($discount_amount, Yii::app()->shoppingCart->getDecimalPlace(), '.', ',');
?>
                        </td>
                    </tr>
                    
                    <tr class="gift_receipt_element">
                        <td colspan="<?php 
echo $colspan;
?>
" style='text-align:right;'><?php 
echo TbHtml::b(Yii::t('app', 'Total'));
?>
</td>
                        <td colspan="2" style='text-align:right;'>
                            <span style="font-size:12px;font-weight:bold">
                            <?php 
echo Yii::app()->settings->get('site', 'currencySymbol') . number_format($total, Yii::app()->shoppingCart->getDecimalPlace(), '.', ',');
?>
                            <?php 
echo Yii::t('app', 'OR');
?>
                            <?php 
echo Yii::app()->settings->get('site', 'altcurrencySymbol') . number_format($total_khr_round, 0, '.', ',');
?>
                            </span>
                        </td>
开发者ID:soklux,项目名称:bakou-pos,代码行数:31,代码来源:_receipt.php

示例11: array

    		$criteria->condition = "essays_has_cruge_user_id_essay_cruge= :searched";
    		$criteria->params = array(":searched"=>$model->id_essay_cruge);
    
    		$essay=EssaysDetail::model()->find($criteria);*/
    ?>
	<?php 
    echo $form->textArea($model, 'content', array('id' => 'editor1', 'span' => 8, 'rows' => 5));
    ?>
	<?php 
}
?>
	
	<?php 
if (Yii::app()->user->checkAccess('Estudiante') && !Yii::app()->user->isSuperAdmin) {
    echo "<br />";
    echo TbHtml::muted('El límite de palabras permitidas para elaborar el Essay es de un máximo de ' . TbHtml::b('4000.'));
}
?>

	<?php 
if (Yii::app()->user->checkAccess('Tutor') || Yii::app()->user->checkAccess('College') || Yii::app()->user->isSuperAdmin) {
    echo $form->fileFieldControlGroup(new EssaysHistorical(), 'file_name', array('type' => 'pdf', 'required' => true, 'help' => 'Solo se permiten subir archivos con la extensión *.pdf.', 'disabled' => $essay->status == 8 ? false : true));
}
?>
	
	<?php 
echo CHtml::hiddenField('idEssay', $essay->id_essay_cruge);
?>
	
	<script type="text/javascript">
			CKEDITOR.replace( 'editor1', {
开发者ID:argenis1763,项目名称:vc,代码行数:31,代码来源:write.php

示例12: array

		<p><?php 
echo TbHtml::b('Multiplayer');
?>
</p>
		<?php 
echo TbHtml::checkBoxList('checkMultiplayer', '', array('18.1, 18.2, 18.3, 18.4' => CHtml::encode('Does your app have Multiplayer function?')));
?>
                <p><?php 
echo TbHtml::b('Privacy and User Permissions');
?>
</p>
		<?php 
echo TbHtml::checkBoxList('checkPrivacyandUserPermissions', '', array('20.2' => CHtml::encode('Does your app use location data?'), '20.3' => CHtml::encode('Does your app use push notification?')));
?>
                 <p><?php 
echo TbHtml::b('Platform Compliance for: In App Purchase, Adversiting and Multiplayer Game Lobby');
?>
</p>
		<?php 
echo TbHtml::checkBoxList('checkPlatformCompliance', '', array('21.1' => CHtml::encode('Does your app use in-app purchase?'), '21.2' => CHtml::encode('Does your app use advertising?'), '21.3' => CHtml::encode('Does your app use the multiplayer game lobby?'), '21.4' => CHtml::encode('Does your app use subscriptions or rental mechanisms?'), '21.5' => CHtml::encode('Does your app use enable charitable donations?')));
?>
                
                 
	</div>

<?php 
echo TbHtml::button('Back', array('onclick' => 'js:document.location.href="/mtcontrool/runs/create"', 'color' => TbHtml::BUTTON_COLOR_DEFAULT, 'size' => TbHtml::BUTTON_SIZE_LARGE));
?>
	 <?php 
echo TbHtml::link('Submit', array('runs/saveIOSQuest', 'id' => $idRuns), array('class' => 'btn btn-success btn-large'));
?>
开发者ID:raphaelrocha,项目名称:mtcontrool_mtcontext,代码行数:31,代码来源:_questIOS.php

示例13: array

<?php

/* $box = $this->beginWidget('yiiwheels.widgets.box.WhBox', array(
              'title' => 'Invoice #<span class="text-info"> ' . $sale_id . '</span>',
              'headerIcon' => 'icon-list-alt',
)); */
?>

<p class="text-info">Invoice No. <?php 
echo $receive_id;
?>
 </p>
<p class="text-info">Remarks: <?php 
echo TbHtml::b(ucwords($remark));
?>
 </p>

<?php 
$this->widget('yiiwheels.widgets.grid.WhGridView', array('id' => 'receive-item-grid', 'dataProvider' => $model->search($receive_id), 'columns' => array(array('name' => 'item_id', 'header' => 'Name', 'value' => '$data->item_id==null? "N/A" : $data->item->name'), 'cost_price', 'quantity', array('name' => 'sub_total', 'value' => '$data->cost_price*$data->quantity'))));
?>


<label class="text-info"> Cashier :  <?php 
echo TbHtml::b(ucwords($employee_id));
?>
 </label>
开发者ID:noonnightcoder,项目名称:bakou-pos-apsara,代码行数:26,代码来源:receive_item.php

示例14: foreach

                                                           
                                <?php 
    }
    ?>
                                    
                                <?php 
    if ($account !== null) {
        ?>
    
                                    <?php 
        foreach ($total_due as $id => $totaldue) {
            ?>
   
                                        <tr>
                                            <td><?php 
            echo TbHtml::b(Yii::t('app', 'Outstanding in ') . $totaldue["currency_id"]);
            ?>
 :</td>
                                            <td>
                                                <span class="badge badge-success bigger-140">
                                                    <?php 
            echo $totaldue['currency_symbol'] . $totaldue["total"];
            ?>
  
                                                </span>
                                            </td>
                                        </tr>
                                    <?php 
        }
        ?>
     
开发者ID:noonnightcoder,项目名称:bakou-pos-apsara,代码行数:29,代码来源:admin.php

示例15: number_format

            ?>
                                                 ~ 
                                                <?php 
            echo '៛' . number_format($amount_change_khr_round, 0, '.', ',');
            ?>
                                            </span>
                                        </td>
                                    </tr>
                                    <?php 
        } else {
            ?>
                                    <tr>
                                        <td> 
                                            <span class="label label-danger">
                                                <?php 
            echo TbHtml::b(Yii::t('app', 'Change Owe'));
            ?>
</td>
                                            </span>
                                        <td>
                                            <span class="badge badge-important bigger-120">
                                                <strong>
                                                <?php 
            echo Yii::app()->settings->get('site', 'currencySymbol') . number_format($amount_change, Yii::app()->shoppingCart->getDecimalPlace(), '.', ',');
            ?>
                                                </strong>
                                            </span>
                                                &nbsp; OR &nbsp;
                                            <span class="badge badge-important bigger-120">
                                                <strong>
                                                    <?php 
开发者ID:noonnightcoder,项目名称:bakou-pos-apsara,代码行数:31,代码来源:admin_dev.php


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