本文整理汇总了PHP中Evento::label方法的典型用法代码示例。如果您正苦于以下问题:PHP Evento::label方法的具体用法?PHP Evento::label怎么用?PHP Evento::label使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Evento
的用法示例。
在下文中一共展示了Evento::label方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
<?php
/** @var EventoController $this */
/** @var Evento $model */
$this->menu = array(array('label' => Yii::t('AweCrud.app', 'Create'), 'icon' => 'plus', 'url' => array('create')));
?>
<div id="flashMsg" class="flash-messages">
</div>
<br/>
<div class="panel panel-default">
<div class="panel-heading"><?php
echo Yii::t('AweCrud.app', 'Manage');
?>
<?php
echo Evento::label(2);
?>
</div>
<div class="panel-body">
<div style='overflow:auto'>
<?php
$this->widget('booster.widgets.TbGridView', array('id' => 'evento-grid', 'type' => 'striped hover advance', 'template' => "{items} {summary} {pager}", 'dataProvider' => $model->activos()->search(), 'columns' => array('nombre', array('name' => 'fecha_inicio', 'value' => 'Util::FormatDate($data->fecha_inicio, "d/m/Y")'), array('name' => 'fecha_fin', 'value' => 'Util::FormatDate($data->fecha_fin, "d/m/Y")'), array('htmlOptions' => array('nowrap' => 'nowrap'), 'class' => 'booster.widgets.TbButtonColumn', 'template' => '{view} {update} {delete}', 'afterDelete' => 'function(link,success,data){
if(success) {
$("#flashMsg").empty();
$("#flashMsg").css("display","");
$("#flashMsg").html(data).animate({opacity: 1.0}, 5500).fadeOut("slow");
}
}', 'buttons' => array('update' => array('label' => '<button class="btn btn-primary"><i class="icon-pencil"></i></button>', 'options' => array('title' => 'Actualizar'), 'imageUrl' => false), 'delete' => array('label' => '<button class="btn btn-danger"><i class="icon-trash"></i></button>', 'options' => array('title' => 'Eliminar'), 'imageUrl' => false)), 'htmlOptions' => array('width' => '80px')))));
?>
</div>
示例2: array
<?php
Util::tsRegisterAssetJs('_form.js');
/** @var EventoController $this */
/** @var Evento $model */
/** @var AweActiveForm $form */
?>
<div class="col-lg-12">
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title"><?php
echo Yii::t('AweCrud.app', $model->isNewRecord ? 'Create' : 'Update') . ' ' . Evento::label(1);
?>
</h3>
</div>
<div class="panel-body">
<?php
$form = $this->beginWidget('ext.AweCrud.components.AweActiveForm', array('type' => 'horizontal', 'id' => 'evento-form', 'enableAjaxValidation' => true, 'clientOptions' => array('validateOnSubmit' => true, 'validateOnChange' => false), 'enableClientValidation' => false));
?>
<?php
echo $form->textFieldGroup($model, 'nombre', array('maxlength' => 128));
?>
<?php
echo $form->datePickerGroup($model, 'fecha_inicio', array('widgetOptions' => array('options' => array('language' => 'es', 'format' => 'dd/mm/yyyy')), 'wrapperHtmlOptions' => array('class' => 'col-sm-5')));
?>
<?php
echo $form->datePickerGroup($model, 'fecha_fin', array('widgetOptions' => array('options' => array('language' => 'es', 'format' => 'dd/mm/yyyy')), 'wrapperHtmlOptions' => array('class' => 'col-sm-5')));
?>