public function testBold() { $I = $this->codeGuy; $html = TbHtml::b('Bold text'); $strong = $I->createNode($html, 'strong'); $I->seeNodeText($strong, 'Bold text'); }
<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...'))); ?>
<?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();
<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')); ?>
<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
<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"> <p><?php echo TbHtml::small('...'); ?></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"> <p>The following snippet of text is <?php echo TbHtml::b('rendered as bold text'); ?>.</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">
?> </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();}', )); */ ?>
</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',
<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)); ?>
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>
$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', {
<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')); ?>
<?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>
<?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 } ?>
?> ~ <?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> OR <span class="badge badge-important bigger-120"> <strong> <?php
<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()->crearArrayStudentsEssay($model->id_essays); if (empty($data)) { echo TbHtml::muted('No hay Estudiantes disponibles para asignar,' . TbHtml::b(' ya todos los Estudiantes activos se encuentran asignados al Essay.')); echo "<br />"; } else { ?> <!-- Form agregar Students a Essay --> <?php echo TbHtml::beginFormTb(TbHtml::FORM_LAYOUT_INLINE); ?> <fieldset> <?php /* $this->widget('CAutoComplete', array( 'name'=>'studentsEssay', 'url'=>CHtml::normalizeUrl(array('/essays/essays/buscarStudents')),
), )); // Sólo dibujo la barra si hay boletas borradas if (count($dp->rawData) > 0) { $parametros = array("titulo" => "Boletas borradas por descuento de coseguro por: ". $tipocoseguro , "archivo" => "borradas"); $this->barraherramientas = $this->getBarraHerramientas($parametros, 0, array("Pdf eliminadas", "Excel eliminadas")); } ?> <?php $this->renderPartial('//mensajes/_success', array( 'message' => "Proceso finalizado correctamente"), false, true ); echo TbHtml::alert(TbHtml::ALERT_COLOR_INFO, "Total descontado: " . $totaldescontado, $htmlOptions = array('closeText' => false,'style' => 'font-size:15px;')); if (count($dp->rawData) > 0) { echo TbHtml::b("Detalle de boletas eliminadas:", $htmlOptions = array('style' => 'font-size:20px;')); // Agrego el dataprovider para exportar a excel y pdf Yii::app()->user->setState("dpreportes", $dp); $this->renderPartial('//mensajes/_tablaresultado', array( 'dp' => $dp, 'columnas' => $columnas), false, true ); echo TbHtml::alert(TbHtml::ALERT_COLOR_WARNING, "Total eliminado: " . $totalborrado, $htmlOptions = array('closeText' => false,'style' => 'font-size:12px;')); } ?>