Exemplo n.º 1
0
 // // //pr($TglPerolehanTmp);
 // $TglPerolehan=$TglPerolehanTmp[2]."/".$TglPerolehanTmp[1]."/".$TglPerolehanTmp[0];
 if ($value['Status'] == 0) {
     if ($_SESSION['ses_ujabatan'] == 1) {
         $tindakan = "<a href=\"{$url_rewrite}/module/penghapusan/dftr_review_edit_penetapan_usulan_psb.php?id={$value[Penghapusan_ID]}\" class=\"btn btn-success btn-small\" style=\"margin-top:3px\"><i class=\"fa fa-pencil-square-o\"></i> View</a>&nbsp style=\"margin-top:3px\";<a href=\"{$url_rewrite}/module/penghapusan/penetapan_penghapusan_daftar_hapus_psb.php?id={$value[Penghapusan_ID]}\" class=\"btn btn-danger btn-small\" style=\"margin-top:3px\"> <i class=\"fa fa-trash\"></i>Hapus</a>";
     } else {
         $tindakan = "<a href=\"{$url_rewrite}/module/penghapusan/dftr_review_edit_penetapan_usulan_pmd.php?id={$value[Penghapusan_ID]}\" class=\"btn btn-success btn-small\" style=\"margin-top:3px\"><i class=\"fa fa-pencil-square-o\"></i> View</a>";
     }
 } elseif ($value['Status'] == 1) {
     if ($value['Usulan_ID'] != "") {
         $tindakan = "<a href=\"{$url_rewrite}/module/penghapusan/dftr_review_edit_penetapan_usulan_psb.php?id={$value[Penghapusan_ID]}\" class=\"btn btn-success btn-small\" style=\"margin-top:3px\"><i class=\"fa fa-pencil-square-o\"></i> View</a>&nbsp;\n              <a target=\"_blank\" href=\"{$url_rewrite}/report/template/PENGHAPUSAN/cetak_sk_penghapusan.php?idpenetapan={$value[Penghapusan_ID]}&sk={$value[NoSKHapus]}&tglHapus={$value[TglHapus]}\" class=\"btn btn-info btn-small\" style=\"margin-top:3px\"><i class=\"fa fa-file-pdf-o\"></i> Pdf</a>&nbsp;\n              <a target=\"_blank\" href=\"{$url_rewrite}/report/template/PENGHAPUSAN/cetak_sk_penghapusan.php?idpenetapan={$value[Penghapusan_ID]}&sk={$value[NoSKHapus]}&tglHapus={$value[TglHapus]}&tipe_file=2\" class=\"btn btn-info btn-small\" style=\"margin-top:3px\"><i class=\"fa fa-file-excel-o\"></i> Excel</a>&nbsp;";
     } else {
         $tindakan = " <a target=\"_blank\" href=\"{$url_rewrite}/report/template/PENGHAPUSAN/cetak_sk_penghapusan.php?idpenetapan={$value[Penghapusan_ID]}&sk={$value[NoSKHapus]}&tglHapus={$value[TglHapus]}\" class=\"btn btn-info btn-small\"  style=\"margin-top:3px\"><i class=\"fa fa-file-pdf-o\"></i> Pdf</a>&nbsp;\n                 <a target=\"_blank\" href=\"{$url_rewrite}/report/template/PENGHAPUSAN/cetak_sk_penghapusan.php?idpenetapan={$value[Penghapusan_ID]}&sk={$value[NoSKHapus]}&tglHapus={$value[TglHapus]}&tipe_file=2\" class=\"btn btn-info btn-small\" style=\"margin-top:3px\"><i class=\"fa fa-file-excel-o\"></i> Excel</a>&nbsp;";
     }
 }
 $NilaiASet = $PENGHAPUSAN->totalNilaiPenghapusanAset($value['Penghapusan_ID']);
 $Asetditerima = $PENGHAPUSAN->totalDataPenghapusanAset($value['Penghapusan_ID']);
 $TotalAset = count($Asetditerima);
 $row = array();
 // $checkbox="<input type=\"checkbox\" id=\"checkbox\" class=\"icheck-input checkbox\" onchange=\"return AreAnyCheckboxesChecked();\" name=\"penghapusanfilter[]\" value=\"{$value['Aset_ID']}\" {$value['checked']}>";
 $row[] = $no;
 // $row[]=$checkbox;
 $row[] = $value['NoSKHapus'];
 $row[] = $SatkerUsul;
 $row[] = $jmlUsul;
 $row[] = $TotalAset;
 $row[] = $change2;
 $row[] = number_format($NilaiASet['TotalNilaiPerolehan'], 4);
 // $row[]=number_format($totalNilaiPerolehan[TotalNilaiPerolehan]);
 $row[] = $value[AlasanHapus];
 $row[] = "<span class=\"label label-{$label}\" >{$text}</span>";