Guest User

Untitled

a guest
Dec 11th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.80 KB | None | 0 0
  1. <?php
  2.  
  3. if($caraPrint=='EXCEL')
  4. {
  5. header('Content-Type: application/vnd.ms-excel');
  6. header('Content-Disposition: attachment;filename="'.$judulLaporan.'-'.date("Y/m/d").'.xls"');
  7. header('Cache-Control: max-age=0');
  8. }
  9. echo $this->renderPartial('application.views.headerReport.headerLaporanTransaksi',array('judulLaporan'=>$judulLaporan, 'periode'=>'Periode : '.$periode));
  10.  
  11. if ($caraPrint != 'GRAFIK'){
  12. //$this->renderPartial('pembayaranPelayanan/_table', array('model'=>$model, 'caraPrint'=>$caraPrint));
  13. $this->widget('ext.bootstrap.widgets.HeaderGroupGridView',array(
  14. 'id'=>'tableLaporan',
  15. 'dataProvider'=>$model->searchPrint(),
  16. 'template'=>"\n{items}",
  17. 'itemsCssClass'=>'table table-striped table-bordered table-condensed',
  18. 'columns'=>array(
  19. array(
  20. 'header'=>'Cara Bayar<br/>Penjamin',
  21. 'type'=>'raw',
  22. 'value'=>'$data->carabayar_nama.\'<br/>\'.$data->penjamin_nama',
  23. ),
  24. array(
  25. 'header'=>'No Bukti Bayar<br/>Tanggal Bukti',
  26. 'type'=>'raw',
  27. 'value'=>'$data->nobuktibayar.\'<br/>\'.$data->tglbuktibayar',
  28. ),
  29. array(
  30. 'header'=>'No Pembayaran<br/>Tgl Pembayaran',
  31. 'type'=>'raw',
  32. 'value'=>'$data->nopembayaran.\'<br/>\'.$data->tglpembayaran',
  33. ),
  34. array(
  35. 'header'=>'No Rekam Medik<br/>No Pendaftaran',
  36. 'type'=>'raw',
  37. 'value'=>'$data->no_rekam_medik.\'<br/>\'.$data->no_pendaftaran',
  38. ),
  39. 'nama_pasien',
  40. 'totalbiayaoa',
  41. 'totalbiayapelayanan',
  42. 'totalsubsidiasuransi',
  43. 'totalsubsidipemerintah',
  44. 'totalsubsidirs',
  45. 'totaliurbiaya',
  46. 'totalpembebasan',
  47. ),
  48. 'afterAjaxUpdate'=>'function(id, data){jQuery(\''.Params::TOOLTIP_SELECTOR.'\').tooltip({"placement":"'.Params::TOOLTIP_PLACEMENT.'"});}',
  49. ));
  50.  
  51. }
  52.  
  53. if ($caraPrint == 'GRAFIK')
  54. echo $this->renderPartial('_grafik', array('model'=>$model, 'data'=>$data, 'caraPrint'=>$caraPrint), true);
  55.  
  56.  
  57. ?>
  58. <table width="100%" style='margin-top:100px;margin-left:auto;margin-right:auto;'>
  59. <tr>
  60. <td width="50%">
  61. <label style='float:left;'>Petugas : <?php echo $data['nama_pegawai']; ?></label>
  62.  
  63. </td>
  64. <td width="50%">
  65.  
  66. <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>
  67.  
  68. </td>
  69. </tr>
  70. </table>
Add Comment
Please, Sign In to add comment