本文整理汇总了PHP中TbHtml::Button方法的典型用法代码示例。如果您正苦于以下问题:PHP TbHtml::Button方法的具体用法?PHP TbHtml::Button怎么用?PHP TbHtml::Button使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TbHtml
的用法示例。
在下文中一共展示了TbHtml::Button方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array('action' => Yii::app()->createUrl($this->route), 'method' => 'get'));
?>
<label>Challan Book No</label>
<?php
echo $form->textField($model, 'challan_number', array('span' => 5, 'maxlength' => 145, 'placeholder' => 'Challan Book Number'));
?>
<div class="form-actions">
<?php
echo TbHtml::submitButton('Search', array('color' => TbHtml::BUTTON_COLOR_PRIMARY));
?>
</div>
<?php
$this->endWidget();
?>
</div><!-- search-form -->
<?php
echo TbHtml::Button('Export to Excel', array('color' => TbHtml::BUTTON_COLOR_WARNING, 'id' => "excel"));
?>
<?php
$this->widget('bootstrap.widgets.TbGridView', array('id' => 'issue-return-grid', 'dataProvider' => $model->searchReport(), 'filter' => $model, 'columns' => array('challan_number', 'challan_form_number', 'name_person', 'date_fixed', 'vehicle_reg_no', 'scene_of_offence', array('header' => 'Place of Offence', 'value' => '$model->placeOfOffence->place'), 'date_time_offence', 'mobile', 'apperance_date', 'fine_amount', array('class' => 'bootstrap.widgets.TbButtonColumn', 'template' => ''))));
?>
<script>
$("#excel").click(function(){
$('table.table').tableExport({type:'excel',escape:'false'});
});
</script>
示例2: array
?>
<fieldset>
<?php echo $form->textFieldControlGroup($model,'nombre',array('size'=>60,'maxlength'=>100)); ?>
<?php echo $form->textFieldControlGroup($model,'extensionarchivo',array('size'=>5,'maxlength'=>5)); ?>
<?php echo $form->textFieldControlGroup($model,'longitudregistro'); ?>
</fieldset>
<div class="form-actions">
<?php
echo TbHtml::submitButton(Yii::t('app', 'Save'),array(
'color' => TbHtml::BUTTON_COLOR_PRIMARY,
'size' => TbHtml::BUTTON_SIZE_SMALL,
));
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,
));
?>
</div>
<?php
$this->endWidget(); ?>
示例3: array
<div class="infoblock shadow"><h1 style="color:#20B2AA;">Manage Brands</h1></div>
<HR WIDTH=1180 ALIGN=LEFT >
<?php
$this->widget('bootstrap.widgets.TbBreadcrumb', array('links' => array('Manage Brands')));
?>
<br/>
<div class="well-button">
<?php
echo TbHtml::Button('<i class="fa fa-arrow-left"></i> Back', array('onclick' => 'js:document.location.href="/mtcontrool"', 'id' => 'b1', 'title' => 'Back', 'color' => TbHtml::BUTTON_COLOR_DEFAULT, 'size' => TbHtml::BUTTON_SIZE_SMALL, 'style' => 'color: green;'));
?>
</div>
<div class="search-form" style="display:none">
<?php
$this->renderPartial('_search', array('model' => $model));
?>
</div><!-- search-form -->
<?php
$this->widget('bootstrap.widgets.TbGridView', array('id' => 'brand-grid', 'dataProvider' => $model->search(), 'filter' => $model, 'columns' => array('brand_name', array('class' => 'bootstrap.widgets.TbButtonColumn', 'template' => '{update}      {delete}', 'buttons' => array('update' => array('icon' => 'fa fa-pencil'), 'delete' => array('icon' => 'fa fa-trash-o'))))));
示例4: array
$this->widget('bootstrap.widgets.TbBreadcrumb', array('links' => array('App' => array(), 'Manage Apps' => array(), 'Runs')));
?>
<div class="search-form" style="display:none">
<?php
$this->renderPartial('_search', array('model' => $model));
?>
</div><!-- search-form -->
<br/><div class="well-button">
<?php
echo TbHtml::Button('<i class="fa fa-arrow-left"></i> Back', array('submit' => CHttpRequest::getUrlReferrer(), 'id' => 'b1', 'title' => 'Back', 'color' => TbHtml::BUTTON_COLOR_DEFAULT, 'size' => TbHtml::BUTTON_SIZE_SMALL, 'style' => 'color: green;'));
?>
</div>
<div class="group-div">
<div class="well-cinza">
<b><?php
echo $nomeApp;
?>
</b>
</div>
<?php
示例5: array
<h1>In stock as on date</h1>
<?php
if (!empty($list)) {
?>
<h3>Report</h3>
<?php
echo TbHtml::Button('Export to Excel', array('color' => TbHtml::BUTTON_COLOR_WARNING, 'id' => "excel"));
?>
<span style="margin-left:4px;">
<?php
echo TbHtml::Button('Export to PNG', array('color' => TbHtml::BUTTON_COLOR_INFO, 'id' => "pdf"));
?>
</span>
<span style="margin-left:4px;">
<?php
echo TbHtml::Button('Export to CSV', array('color' => TbHtml::BUTTON_COLOR_DANGER, 'id' => "csv"));
?>
</span>
<table class="items table">
<thead>
<tr>
<?php
foreach ($list[0] as $l => $Val) {
?>
<th><?php
echo $l;
?>
</th>
<?php
}
?>
示例6: array
));
?>
<div class="form-actions centrado">
<?php
echo TbHtml::submitButton(Yii::t('app', 'Accept'), array(
'color' => TbHtml::BUTTON_COLOR_PRIMARY,
'size' => TbHtml::BUTTON_SIZE_SMALL,
'name'=>'savebutton',
'value'=>'savebutton',
));
echo TbHtml::Button(Yii::t('app', 'Cancel'), array(
'onclick' => 'js:window.location="'.Yii::app()->baseUrl.'/index.php"',
'style' => 'margin-left:30px;',
'color' => TbHtml::BUTTON_COLOR_DANGER,
'size' => TbHtml::BUTTON_SIZE_SMALL,
));
?>
</div>
<?php
$this->endWidget(); ?>
示例7: array
<div class="well-button" align="right">
<?php
echo TbHtml::Button('<i class="fa fa-arrow-left"></i> Back', array('onclick' => 'js:document.location.href="/mtcontrool/index.php/testContext/admin"', 'id' => 'b1', 'title' => 'Back', 'color' => TbHtml::BUTTON_COLOR_DEFAULT, 'size' => TbHtml::BUTTON_SIZE_SMALL, 'style' => 'color: green;'));
?>
<?php
if ($notEdit != "true") {
?>
<?php
echo TbHtml::Button('<i class="fa fa-pencil-square-o"></i> Edit', array('submit' => array('/testContext/update/' . $idTestContext), 'name' => 'update', 'color' => TbHtml::BUTTON_COLOR_DEFAULT, 'size' => TbHtml::BUTTON_SIZE_SMALL));
?>
<?php
}
?>
<?php
echo TbHtml::Button($textBtn . ' <i class="fa fa-play"></i>', array('submit' => array('/testContext/mef?idTestContext=' . $idTestContext), 'name' => 'del', 'color' => TbHtml::BUTTON_COLOR_INFO, 'size' => TbHtml::BUTTON_SIZE_SMALL));
?>
</div>
<div class="all">
<div class="round">
<b>Round of Testing</b>
<?php
$this->widget('bootstrap.widgets.TbGridView', array('id' => 'users-grid', 'dataProvider' => $dataProvider, 'summaryText' => '', 'columns' => array('description', array('header' => 'App', 'filter' => CHtml::listData(App::model()->findAll(), 'name', 'name'), 'name' => 'id_app', 'value' => '$data->iDAPP->name'), array('header' => 'Platform', 'filter' => CHtml::listData(Platforms::model()->findAll(), 'name', 'name'), 'name' => 'id_platform', 'value' => '$data->iDPLATFORM->name'), array('header' => 'Device', 'filter' => CHtml::listData(Device::model()->findAll(), 'description', 'description'), 'name' => 'id_device', 'value' => '$data->iDDEVICE->description'), array('header' => 'User', 'name' => 'id_user', 'value' => '$data->iDUSER->name'))));
?>
</div>
<div class="variations">
示例8: array
));
echo $form->errorSummary($model);
?>
<fieldset>
<?php
echo $form->textFieldControlGroup($model, 'nombre', array('size' => 60, 'maxlength' => 100));
echo $form->textFieldControlGroup($model, 'mail', array('style' => 'text-transform:lowercase;'));
echo $form->textFieldControlGroup($model, 'telefono', array('size' => 60, 'maxlength' => 100));
echo $form->textAreaControlGroup($model, 'observaciones', array('size' => 60, 'maxlength' => 200));
?>
</fieldset>
<div class="form-actions">
<?php
echo TbHtml::submitButton(Yii::t('app', 'Save'), array(
'color' => TbHtml::BUTTON_COLOR_PRIMARY,
'size' => TbHtml::BUTTON_SIZE_SMALL,
));
echo TbHtml::Button(Yii::t('app', 'Cancel'), array(
'style' => 'margin-left:30px;',
'color' => TbHtml::BUTTON_COLOR_DANGER,
'size' => TbHtml::BUTTON_SIZE_SMALL,
'onclick' => ' updateDialog.close();',
));
?>
</div>
<?php $this->endWidget(); ?>
示例9: array
<?php
echo TbHtml::label('<b>Status Essay</b>', 'text');
?>
<?php
echo EssaysHasCrugeUser::model()->validarStatus($essay->status);
?>
<?php
if (Yii::app()->user->checkAccess('Tutor') || Yii::app()->user->checkAccess('College') || Yii::app()->user->isSuperAdmin) {
?>
<?php
echo "|";
?>
<?php
echo TbHtml::Button('Cambiar Status', array('name' => 'end', 'color' => TbHtml::BUTTON_COLOR_DANGER, 'size' => TbHtml::BUTTON_SIZE_MINI, 'onclick' => '$("#myModal").dialog("open"); return false;'));
?>
<?php
echo CHtml::hiddenField('idEssay', $essay->id_essay_cruge);
?>
<?php
if ($essay->status == 8) {
echo "| ";
echo TbHtml::submitButton('Finalizar Essay', array('name' => 'end', 'color' => TbHtml::BUTTON_COLOR_PRIMARY, 'size' => TbHtml::BUTTON_SIZE_MINI));
}
?>
<?php
}
echo TbHtml::endForm();
示例10: array
<?php
}
?>
</span>
</div>
</div>
<?php
if (!empty($list)) {
?>
<h3>Report</h3>
<?php
echo TbHtml::Button('Export to Excel', array('color' => TbHtml::BUTTON_COLOR_WARNING, 'id' => "excel"));
?>
<span style="margin-left:4px;">
<?php
echo TbHtml::Button('Export to PNG', array('color' => TbHtml::BUTTON_COLOR_INFO, 'id' => "pdf"));
?>
</span>
<table class="items table">
<thead>
<tr>
<?php
foreach ($list[0] as $l => $Val) {
?>
<th><?php
echo $l;
?>
</th>
<?php
}
?>
示例11: array
</div>
</div>
<br/>
<div class="well-button">
<?php
echo TbHtml::Button($model->isNewRecord ? '<i class="fa fa-arrow-left"></i>' : Share, array('submit' => CHttpRequest::getUrlReferrer(), 'id' => 'b1', 'title' => 'Back', 'color' => TbHtml::BUTTON_COLOR_DEFAULT, 'size' => TbHtml::BUTTON_SIZE_LARGE, 'style' => 'color: green;'));
?>
<?php
echo TbHtml::submitButton('<i class="fa fa-check fa-lg"></i>', array('color' => TbHtml::BUTTON_COLOR_SUCCESS, 'size' => TbHtml::BUTTON_SIZE_LARGE, 'class' => 'btn pull-right', 'style' => 'color: white; margin-left: 4px;', 'title' => 'Create'));
?>
<?php
echo TbHtml::button('<i class="fa fa-times fa-lg"></i>', array('onclick' => 'js:document.location.href="/mtcontrool"', 'color' => TbHtml::BUTTON_COLOR_DANGER, 'size' => TbHtml::BUTTON_SIZE_LARGE, 'title' => 'Cancel', 'class' => 'btn pull-right', 'style' => 'color: white;'));
?>
</div>
<?php
$this->endWidget();
?>
示例12: array
<div class="info_var">
<p><b>Variations:</b> It is the values that can be assigned to an element.
<br>
<b>E.g.:</b> Nominal Element: Connection - Variation "wi-fi";
<br>
<!-- -->
Interval Element: Localization - Variation "nearby" Start 1 End 10</p>
</div>
</div>
<div class="add-field" id="add-field<?php
echo $acc_id;
?>
">
<?php
echo TbHtml::Button('<i class="fa fa-plus"></i>', array('name' => 'buttonAdd', 'id' => 'buttonAdd' . $acc_id, 'onClick' => "exibir({$acc_id});", 'color' => TbHtml::BUTTON_COLOR_SUCCESS, 'size' => TbHtml::BUTTON_SIZE_SMALL, 'title' => "Add more element"));
?>
</div>
<br>
<!--input type="button" onClick="exibir(<?php
echo $acc_id;
?>
);">add</input-->
<?php
}
?>
</div>
<?php
echo $form->hiddenField($model, "[{$acc_id}]element_type", array('name' => 'element_type' . $acc_id, 'id' => "type_field" . $acc_id, 'disabled' => 'disabled', 'type' => 'hidden', 'onchange' => "Hab({$key})", 'style' => 'width:150px;'));