Exemplo n.º 1
0
<?php

/** @var CentroRecaudacionDepositosController $this */
/** @var CentroRecaudacionDepositos $model */
$this->menu = array(array('label' => Yii::t('AweCrud.app', 'Create'), 'icon' => 'plus', 'url' => array('create')));
?>
<div id="flashMsg"  class="flash-messages">

</div> 
<div class="widget blue">
    <div class="widget-title">
        <h4> <i class="icon-fire-extinguisher"></i> <?php 
echo Yii::t('AweCrud.app', 'Manage');
?>
 <?php 
echo CentroRecaudacionDepositos::label(2);
?>
 </h4>
        <span class="tools">
            <a href="javascript:;" class="icon-chevron-down"></a>
            <!--a href="javascript:;" class="icon-remove"></a-->
        </span>
    </div>
    <div class="widget-body">

            <?php 
$this->widget('bootstrap.widgets.TbGridView', array('id' => 'centro-recaudacion-depositos-grid', 'type' => 'striped bordered hover advance', 'dataProvider' => $model->search(), 'columns' => array('NRO_FACTURA', 'VALOR', 'PERSONA_ID', array('name' => 'CURSO_EDICION_ID', 'value' => 'isset($data->cURSOEDICION) ? $data->cURSOEDICION : null', 'filter' => CHtml::listData(CursoEdicion::model()->findAll(), 'ID', CursoEdicion::representingColumn())), array('class' => 'CButtonColumn', 'template' => '{update} {delete}', 'afterDelete' => 'function(link,success,data){ 
                    if(success) {
                         $("#flashMsg").empty();
                         $("#flashMsg").css("display","");
                         $("#flashMsg").html(data).animate({opacity: 1.0}, 5500).fadeOut("slow");
Exemplo n.º 2
0
<?php

/** @var CentroRecaudacionDepositosController $this */
/** @var CentroRecaudacionDepositos $model */
/** @var AweActiveForm $form */
$form = $this->beginWidget('ext.AweCrud.components.AweActiveForm', array('type' => 'horizontal', 'id' => 'centro-recaudacion-depositos-form', 'enableAjaxValidation' => true, 'clientOptions' => array('validateOnSubmit' => false, 'validateOnChange' => true), 'enableClientValidation' => false));
?>
<div class="widget blue">
    <div class="widget-title">
        <h4><i class="icon-plus"></i><?php 
echo Yii::t('AweCrud.app', $model->isNewRecord ? 'Create' : 'Update') . ' ' . CentroRecaudacionDepositos::label(1);
?>
</h4>
        <span class="tools">
            <a href="javascript:;" class="icon-chevron-down"></a>
            <!--a href="javascript:;" class="icon-remove"></a-->
        </span>
    </div>
    <div class="widget-body">
        
        
            
                                        <?php 
echo $form->textFieldRow($model, 'NRO_FACTURA', array('maxlength' => 20));
?>
                                
                                        <?php 
echo $form->textFieldRow($model, 'VALOR', array('maxlength' => 10));
?>
                                
                                        <?php