Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if($caraPrint=='EXCEL')
- {
- header('Content-Type: application/vnd.ms-excel');
- header('Content-Disposition: attachment;filename="'.$judulLaporan.'-'.date("Y/m/d").'.xls"');
- header('Cache-Control: max-age=0');
- }
- echo $this->renderPartial('application.views.headerReport.headerLaporanTransaksi',array('judulLaporan'=>$judulLaporan, 'periode'=>'Periode : '.$periode));
- if ($caraPrint != 'GRAFIK'){
- //$this->renderPartial('pembayaranPelayanan/_table', array('model'=>$model, 'caraPrint'=>$caraPrint));
- $this->widget('ext.bootstrap.widgets.HeaderGroupGridView',array(
- 'id'=>'tableLaporan',
- 'dataProvider'=>$model->searchPrint(),
- 'template'=>"\n{items}",
- 'itemsCssClass'=>'table table-striped table-bordered table-condensed',
- 'columns'=>array(
- array(
- 'header'=>'Cara Bayar<br/>Penjamin',
- 'type'=>'raw',
- 'value'=>'$data->carabayar_nama.\'<br/>\'.$data->penjamin_nama',
- ),
- array(
- 'header'=>'No Bukti Bayar<br/>Tanggal Bukti',
- 'type'=>'raw',
- 'value'=>'$data->nobuktibayar.\'<br/>\'.$data->tglbuktibayar',
- ),
- array(
- 'header'=>'No Pembayaran<br/>Tgl Pembayaran',
- 'type'=>'raw',
- 'value'=>'$data->nopembayaran.\'<br/>\'.$data->tglpembayaran',
- ),
- array(
- 'header'=>'No Rekam Medik<br/>No Pendaftaran',
- 'type'=>'raw',
- 'value'=>'$data->no_rekam_medik.\'<br/>\'.$data->no_pendaftaran',
- ),
- 'nama_pasien',
- 'totalbiayaoa',
- 'totalbiayapelayanan',
- 'totalsubsidiasuransi',
- 'totalsubsidipemerintah',
- 'totalsubsidirs',
- 'totaliurbiaya',
- 'totalpembebasan',
- ),
- 'afterAjaxUpdate'=>'function(id, data){jQuery(\''.Params::TOOLTIP_SELECTOR.'\').tooltip({"placement":"'.Params::TOOLTIP_PLACEMENT.'"});}',
- ));
- }
- if ($caraPrint == 'GRAFIK')
- echo $this->renderPartial('_grafik', array('model'=>$model, 'data'=>$data, 'caraPrint'=>$caraPrint), true);
- ?>
- <table width="100%" style='margin-top:100px;margin-left:auto;margin-right:auto;'>
- <tr>
- <td width="50%">
- <label style='float:left;'>Petugas : <?php echo $data['nama_pegawai']; ?></label>
- </td>
- <td width="50%">
- <label style='float:right;'>Tanggal Print : <?php echo Yii::app()->dateFormatter->formatDateTime(CDateTimeParser::parse(date('Y-m-d H:i:s'), 'yyyy-mm-dd hh:mm:ss')); ?></label>
- </td>
- </tr>
- </table>
Add Comment
Please, Sign In to add comment