public function actionConciliar() { $this->perfil(); if (isset($_POST['desde']) and strlen($_POST['desde']) == 10) { $model = new Reportes(); $data = $model->conciliarFarmatodo($_FILES['archivo']['tmp_name'], $_POST['desde'], $_POST['hasta']); $this->widget('bootstrap.widgets.TbGridView', array('id' => 'evento-grid', 'dataProvider' => $data, 'summaryText' => '', 'type' => array('condensed table-hover table-striped'), 'emptyText' => 'No se encontraron resultados', 'columns' => array(array('name' => 'id', 'header' => 'VentasId'), array('name' => 'sucursal', 'header' => 'Sucursal'), array('name' => 'monto', 'header' => 'Monto en archivo', 'htmlOptions' => array('style' => 'text-align:right')), array('name' => 'total', 'header' => 'Total en TC', 'htmlOptions' => array('style' => 'text-align:right')), array('value' => '$data["total"]-$data["monto"]', 'header' => 'Diferencia', 'htmlOptions' => array('style' => 'text-align:right')), array('value' => 'date("d/M/Y H:i",$data["fecha"])', 'header' => 'Fecha', 'htmlOptions' => array('style' => 'text-align:center')), array('value' => 'TbHtml::i("",array("class"=>$data["farmatodo"]?"fa fa-check":"fa fa-times text-error"))', 'type' => 'raw', 'header' => 'Frmtd.'), array('value' => 'TbHtml::i("",array("class"=>$data["taquillacero"]?"fa fa-check":"fa fa-times text-error"))', 'type' => 'raw', 'header' => 'Tqllcr.')))); // echo "<pre>";print_r($data);echo "</pre>"; } }