Exemple #1
0
<div class="filainterior">
<?php 
$this->widget('zii.widgets.grid.CGridView', array('id' => 'detalle-grid', 'dataProvider' => VwOcompra::model()->search_detalle($ocompra->idguia), 'summaryText' => '', 'columns' => array('item', array('name' => 'cant', 'header' => 'Cantidad', 'htmlOptions' => array('width' => 30)), 'desum', array('name' => 'codart', 'header' => 'Codigo', 'htmlOptions' => array('width' => 60)), array('name' => 'descri', 'header' => 'Descripcion', 'type' => 'html', 'value' => '$data->descri.CHtml::openTag(\'br\').$data->detalle', 'htmlOptions' => array('width' => 400)), array('name' => 'punit', 'header' => 'P. unit', 'value' => 'Yii::app()->numberFormatter->format("#,##0.00",$data->punit,null)', 'htmlOptions' => array('width' => 45)), array('name' => 'potal', 'header' => 'P. total', 'value' => 'Yii::app()->numberFormatter->format("#,##0.00",$data->punit*$data->cant,null)', 'htmlOptions' => array('width' => 60)))));
?>

  </div>

<div class="filainterior">
    <div style="width 1200px; float:left;" >
         ..
        </div>
<div style="  float:right; width:400px;" >

    <?php 
$this->widget('zii.widgets.grid.CGridView', array('id' => 'resumen-grid', 'dataProvider' => VwOcosubtotal::model()->search($ocompra->idguia), 'summaryText' => '', 'columns' => array(array('name' => 'subtotal', 'header' => 'Subtotal', 'value' => 'Yii::app()->numberFormatter->format("#,##0.00",$data->subtotal+0,null)'), array('name' => 'destotal', 'header' => 'Descuento', 'value' => '$data->destotal'), array('name' => 'subtotaldes', 'header' => 'Valor neto', 'value' => 'Yii::app()->numberFormatter->format("#,##0.00",$data->subtotaldes+0,null)'), array('name' => 'impuesto', 'header' => 'I.G.V.', 'value' => 'Yii::app()->numberFormatter->format("#,##0.00",$data->impuesto+0,null)'), array('name' => 'total', 'header' => 'Total', 'type' => 'html', 'value' => '$data->simbolo."    ".Yii::app()->numberFormatter->format("#,##0.00",$data->total+0,null)', 'htmlOptions' => array('width' => 75)))));
?>
</div>
    </div>

<br>
<div class="filainterior">
    <div class="tenor"><?php 
echo $ocompra->ocompra_tenorinf->mensaje;
?>
</div>
</div>

<br>
<br>
<br>
Exemple #2
0
<div style="float:right;" >

<?php 
$this->widget('zii.widgets.grid.CGridView', array('id' => 'resumen-grid', 'dataProvider' => VwOcosubtotal::model()->search($id), 'summaryText' => '', 'columns' => array(array('name' => 'subtotal', 'header' => 'Sub'), 'destotal', 'subtotaldes', 'impuesto', 'total')));
?>
</div>