Maaf, Silahkan masukan propinsi dengan benar."; }else{ $tv['menu_detail_badan_usaha_2007']= 'Badan Usaha | Kualifikasi Dan Klasifikasi | Administrasi | Pengurus | Keuangan | Tenaga Kerja | Peralatan | Pengalaman '; if (preg_match('/^(Kualifikasi|Klasifikasi)/i', $action)) { $ff = "/template/".$TEMPLATE ."/kualifikasi_klasifikasi.t.html"; $ct .= "Data Kualifikasi / Klasifikasi Badan Usaha

"; $sql = "SELECT *,a.Nama AS Nama_Badan_Usaha, b.Nama AS Nama_Kabupaten FROM badan_usaha AS a LEFT JOIN kabupaten AS b ON a.ID_Kabupaten=b.ID_Kabupaten WHERE ID_Badan_Usaha = '$sID_Badan_Usaha'"; $res = mysql_query($sql) or die("ERR20041124B: ".mysql_error()); $row = mysql_fetch_assoc($res); $ct .= "
Nama Badan Usaha : ".htmlentities($row['Nama_Badan_Usaha'])."
Alamat : ".htmlentities($row['Alamat1'])." ".htmlentities($row['Alamat2'])." ".htmlentities($row['Nama_Kabupaten'])." ".htmlentities($row['Kodepos'])."
Telepon : ".htmlentities($row['Telepon'])."
NPWP : ".htmlentities($row['NPWP'])."

"; $ct .= "
"; $where = array(); if ($sID_Badan_Usaha) $where[] = "(ID_Badan_Usaha = '$sID_Badan_Usaha')"; $where[]="(Proses<5)"; $where[] = "(drp8_$ID_Propinsi.ID_Asosiasi_Badan_Usaha!='87')"; $where[] = "(drp8_$ID_Propinsi.ID_Asosiasi_Badan_Usaha!='02')"; $where[] = "(drp8_$ID_Propinsi.ID_Asosiasi_Badan_Usaha!='14')"; $sql3 = "SELECT * FROM badan_usaha WHERE ID_Badan_Usaha = '$sID_Badan_Usaha'"; $res3 = mysql_query($sql3) or die("ERR20081124B: ".mysql_error()); $row3 = mysql_fetch_assoc($res3); $sql7 = "SELECT *,CPC AS kode_cpc FROM drp8_$ID_Propinsi ". (count($where) ? " WHERE (".join(" AND ", $where).")" : "") . " ORDER BY CPC, ID_Asosiasi_Badan_Usaha "; #echo $sql; $res7 = mysql_query($sql7) or die("ERR20080717E: ".mysql_error()); $entries = array(); while ($row7 = mysql_fetch_assoc($res7)) { $entries[] = $row7; } # -- get total number of entries $sql2 = "SELECT COUNT(ID_DRP) FROM drp8_$ID_Propinsi". (count($where) ? " WHERE (".join(" AND ", $where).")" : "") ; # "ORDER BY CPC, ID_Asosiasi_Badan_Usaha "; #echo $sql2; $res2 = mysql_query($sql2) or die("ERR20080827D: ".mysql_error()); #echo mysql_num_rows($res2); $row2 = mysql_fetch_row($res2); $total_entries = $row2[0]; #echo $total_entries; $no = 1; foreach ($entries as $e) { $sql5="SELECT Nama FROM asosiasi_badan_usaha WHERE ID_Asosiasi_Badan_Usaha='$e[ID_Asosiasi_Badan_Usaha]' AND ID_Asosiasi_Badan_Usaha!='87' AND ID_Asosiasi_Badan_Usaha!='02'"; $res5 = mysql_query($sql5) or die("ERR20070713G: ".mysql_error()); $row5 = mysql_fetch_assoc($res5); if ($e['ID_Asosiasi_Badan_Usaha']=='03'OR $e['ID_Asosiasi_Badan_Usaha']=='24'){ $sql6="SELECT sub_bidang FROM cpc_gapenri WHERE kode='$e[kode_cpc]'"; #echo $sql6; $res6 = mysql_query($sql6) or die("ERR20070713H: ".mysql_error()); $row6 = mysql_fetch_assoc($res6); }else{ if (substr($e['kode_cpc'],0,1)==2) { $sql6="SELECT sub_bidang FROM cpc08 WHERE kode='$e[kode_cpc]'"; #echo $sql6; $res6 = mysql_query($sql6) or die("ERR20070713H: ".mysql_error()); $row6 = mysql_fetch_assoc($res6); }else{ $sql6="SELECT sub_bidang FROM cpc_k WHERE kode='$e[kode_cpc]'"; #echo $sql6; $res6 = mysql_query($sql6) or die("ERR20080713H: ".mysql_error()); $row6 = mysql_fetch_assoc($res6); } } $ct .= ""; $no++; } $ct .= "
No
Sub Bidang Klasifikasi/Layanan
Nomor
Kode
Gred
Kemampuan Dasar
Asosiasi
Proses
Tahun
Nilai (Juta)
".$no." ".$row6['sub_bidang']." ".$e['kode_cpc']." Grade - ".$e['Kualifikasi']."
".$e['Tahun_KD']."
".number_format($e['Kemampuan_Dasar'],'','','.')."
".$row5['Nama']."
".$e['Proses']."


"; $ct .= "Catatan Proses (*)

0 = Permohonan Registrasi
1 = Menunggu Asessor
2 = Sudah di Setujui Pusat
3 = Sudah Cetak SBU
4 = Selesai


"; }elseif (preg_match('/^(Administrasi)/i', $action)) { $ct .= "Data Administrasi Badan Usaha

"; $sql = "SELECT *,a.Nama AS Nama_Badan_Usaha, b.Nama AS Nama_Kabupaten FROM badan_usaha AS a LEFT JOIN kabupaten AS b ON a.ID_Kabupaten=b.ID_Kabupaten WHERE ID_Badan_Usaha = '$sID_Badan_Usaha'"; $res = mysql_query($sql) or die("ERR20041124B: ".mysql_error()); $row = mysql_fetch_assoc($res); $ct .= "
Nama Badan Usaha : ".htmlentities($row['Nama_Badan_Usaha'])."
Alamat : ".htmlentities($row['Alamat1'])." ".htmlentities($row['Alamat2'])." ".htmlentities($row['Nama_Kabupaten'])." ".htmlentities($row['Kodepos'])."
Telepon : ".htmlentities($row['Telepon'])."
NPWP : ".htmlentities($row['NPWP'])."

"; $sql = "SELECT *,UNIX_TIMESTAMP(Tgl_Pengesahan_Menteri) AS cTgl_Pengesahan_Menteri, ". "UNIX_TIMESTAMP(Tgl_Akte_Pendirian) AS cTgl_Akte_Pendirian, ". "UNIX_TIMESTAMP(Tgl_Pengesahan_PN) AS cTgl_Pengesahan_PN, ". "UNIX_TIMESTAMP(Tgl_Pengesahan_LN) AS cTgl_Pengesahan_LN ". "FROM akte_pendirian WHERE ID_Badan_Usaha = '$sID_Badan_Usaha' "; $res = mysql_query($sql) or die("ERR20080713H: ".mysql_error()); $row = mysql_fetch_assoc($res); if (isset($row['Kabupaten_Akte_Pendirian'])){ $sql2 = "SELECT a.Nama AS Nama_Kabupaten, b.Nama AS Nama_Propinsi ". "FROM kabupaten AS a LEFT JOIN propinsi AS b ON a.ID_Propinsi=b.ID_Propinsi ". "WHERE a.ID_Kabupaten = ".$row['Kabupaten_Akte_Pendirian']; $res2 = mysql_query($sql2) or die("ERR20070713I: ".mysql_error()); $row2 = mysql_fetch_assoc($res2); } $ct .= "
Akte Pendirian
No Akte : ".$row['No_Akte_Pendirian']."
Nama Notaris : ".$row['Nama_Notaris']."
Alamat : ".$row['Alamat']."
Kota / Kabupaten : ".(isset($row['Kabupaten_Akte_Pendirian']) ? $row2['Nama_Kabupaten'] : '-')."
Propinsi : ".(isset($row['Kabupaten_Akte_Pendirian']) ? $row2['Nama_Propinsi'] : '-')."
Tanggal Akte : ".($row['cTgl_Akte_Pendirian']==0 ? '-' : iddate('l, d F Y ',$row['cTgl_Akte_Pendirian']))."


"; $ct .= "
Pengesahan
Menteri Kehakiman dan HAM
Pengadilan Negeri
Lembar Negara
Nomor
Tanggal
Nomor
Tanggal
Nomor
Tanggal
".$row['No_Pengesahan_Menteri']."
".($row['cTgl_Pengesahan_Menteri']==0 ? "-" : iddate('l, d F Y ',$row['cTgl_Pengesahan_Menteri']))."
".$row['No_Pengesahan_PN']."
".($row['cTgl_Pengesahan_PN']==0 ? "-" : iddate('l, d F Y ',$row['cTgl_Pengesahan_PN']))."
".$row['No_Pengesahan_LN']."
".($row['cTgl_Pengesahan_LN']==0 ? "-" : iddate('l, d F Y ',$row['cTgl_Pengesahan_LN']))."


"; $ct .= "
"; $sql = "SELECT *,UNIX_TIMESTAMP(Tanggal) AS cTanggal FROM akte_perubahan WHERE ID_Badan_Usaha = '$sID_Badan_Usaha' ORDER BY Tanggal ASC"; $res = mysql_query($sql) or die("ERR20070713H: ".mysql_error()); $no=1; while($row = mysql_fetch_assoc($res)){ if (isset($row['Kabupaten_Akte_Pendirian'])){ $sql2 = "SELECT a.Nama AS Nama_Kabupaten, b.Nama AS Nama_Propinsi ". "FROM kabupaten AS a LEFT JOIN propinsi AS b ON a.ID_Propinsi=b.ID_Propinsi ". "WHERE a.ID_Kabupaten = ".$row['Kabupaten']; $res2 = mysql_query($sql2) or die("ERR20070713I: ".mysql_error()); $row2 = mysql_fetch_assoc($res2); } $ct .= " "; $no++; } $ct .= "
Akte Perubahan
No
No Akte
Nama Notaris
Alamat
Kota / Kabupaten
Propinsi
Tanggal Akte
".$no." ".$row['Nomer']." ".$row['Nama_Notaris']." ".$row['Alamat']." ".$row2['Nama_Kabupaten']." ".$row2['Nama_Propinsi']." ".($row['cTanggal']==0 ? "-" : iddate('l, d F Y ',$row['cTanggal']))."
"; }elseif (preg_match('/^(Pengurus)/i', $action)) { $ct .= "Data Pengurus Badan Usaha

"; $sql = "SELECT *,a.Nama AS Nama_Badan_Usaha, b.Nama AS Nama_Kabupaten FROM badan_usaha AS a LEFT JOIN kabupaten AS b ON a.ID_Kabupaten=b.ID_Kabupaten WHERE ID_Badan_Usaha = '$sID_Badan_Usaha'"; $res = mysql_query($sql) or die("ERR20041124B: ".mysql_error()); $row = mysql_fetch_assoc($res); $ct .= "
Nama Badan Usaha : ".htmlentities($row['Nama_Badan_Usaha'])."
Alamat : ".htmlentities($row['Alamat1'])." ".htmlentities($row['Alamat2'])." ".htmlentities($row['Nama_Kabupaten'])." ".htmlentities($row['Kodepos'])."
Telepon : ".htmlentities($row['Telepon'])."
NPWP : ".htmlentities($row['NPWP'])."

"; $ct .= "
"; $sql = "SELECT *,UNIX_TIMESTAMP(b.Tgl_Lahir) AS cTgl_Lahir ". "FROM pengurus AS a INNER JOIN person_badan_usaha AS b ON a.ID_Person=b.ID_Person ". "WHERE a.ID_Badan_Usaha = '$sID_Badan_Usaha' "; $res = mysql_query($sql) or die("ERR20070713H: ".mysql_error()); $no=1; while ($row = mysql_fetch_assoc($res)){ $ct .= ""; $no++; } $ct .= "
No
Nama
Tempat / Tanggal Lahir
Alamat
No. KTP
Jabatan
Pendidikan
".$no."
".$row['Nama']." ".($row['Tgl_Lahir']==0 ? "
-
" : $row['Tempat_Lahir'].", ".date($row['Tgl_Lahir']))."
".$row['Alamat1']." ".$row['Alamat2']." ".(isset($row['No_KTP']) ? $row['No_KTP'] : "
-
")."
".(isset($row['Jabatan']) ? $row['Jabatan'] : "
-
")."
".(isset($row['Pend_Akhir']) ? $row['Pend_Akhir'] : "-")."


"; $ct .= " "; }elseif (preg_match('/^(Keuangan)/i', $action)) { $ct .= "Data Keuangan Badan Usaha

"; $sql = "SELECT *,a.Nama AS Nama_Badan_Usaha, b.Nama AS Nama_Kabupaten FROM badan_usaha AS a LEFT JOIN kabupaten AS b ON a.ID_Kabupaten=b.ID_Kabupaten WHERE ID_Badan_Usaha = '$sID_Badan_Usaha'"; $res = mysql_query($sql) or die("ERR20041124B: ".mysql_error()); $row = mysql_fetch_assoc($res); $ct .= "
Nama Badan Usaha : ".htmlentities($row['Nama_Badan_Usaha'])."
Alamat : ".htmlentities($row['Alamat1'])." ".htmlentities($row['Alamat2'])." ".htmlentities($row['Nama_Kabupaten'])." ".htmlentities($row['Kodepos'])."
Telepon : ".htmlentities($row['Telepon'])."
NPWP : ".htmlentities($row['NPWP'])."

"; $sql = "SELECT * FROM keuangan_badan_usaha WHERE ID_Badan_Usaha = '$sID_Badan_Usaha' "; $res = mysql_query($sql) or die("ERR20070713H: ".mysql_error()); $row = mysql_fetch_assoc($res); $ct .= "
SPT PPh 2 tahun Terakhir
Tahun ".$row['Tahun_SPT1']." Pembayaran Wajib Pajak
".number_format($row['SPT1'],'','','.')."
Tahun ".$row['Tahun_SPT2']." Pembayaran Wajib Pajak
".number_format($row['SPT2'],'','','.')."


Omset 5 tahun Terakhir
Tahun ".$row['Tahun_Omset1']." Nilai Omset pada Tahun Bersangkutan (Rp)
".number_format($row['Omset1'],'','','.')."
Tahun ".$row['Tahun_Omset2']." Nilai Omset pada Tahun Bersangkutan (Rp)
".number_format($row['Omset2'],'','','.')."
Tahun ".$row['Tahun_Omset3']." Nilai Omset pada Tahun Bersangkutan (Rp)
".number_format($row['Omset3'],'','','.')."
Tahun ".$row['Tahun_Omset4']." Nilai Omset pada Tahun Bersangkutan (Rp)
".number_format($row['Omset4'],'','','.')."
Tahun ".$row['Tahun_Omset5']." Nilai Omset pada Tahun Bersangkutan (Rp)
".number_format($row['Omset5'],'','','.')."


"; $sql2 = "SELECT * FROM pemilik_saham AS a LEFT JOIN person_badan_usaha AS c ON a.ID_Terkait=c.ID_Person WHERE ID_Badan_Usaha = '$sID_Badan_Usaha' "; $res2 = mysql_query($sql2) or die("ERR20070713J: ".mysql_error()); $no =1; while($row2 = mysql_fetch_assoc($res2)){ $ct .=" "; $no++; } $ct .="
Pemilik Saham
No
Nama
Nomor KTP / NPWP
Alamat
Jumlah Saham
Nilai Satuan Saham
Modal Dasar
Modal diSetor
".$no." ".$row2['Nama']." ".$row2['No_KTP']." ".$row2['Alamat1']." ".$row2['Alamat2']."
".number_format($row2['Jumlah_Lembar'],'','','.')."
".number_format($row2['Nilai_Per_Lembar'],'','','.')."
".number_format($row2['Modal_Dasar'],'','','.')."
".number_format($row2['Modal_Disetor'],'','','.')."
"; }elseif (preg_match('/^(Tenaga_Kerja)/i', $action)) { $ct .= "Data Tenaga Kerja Badan Usaha

"; $sql = "SELECT *,a.Nama AS Nama_Badan_Usaha, b.Nama AS Nama_Kabupaten FROM badan_usaha AS a LEFT JOIN kabupaten AS b ON a.ID_Kabupaten=b.ID_Kabupaten WHERE ID_Badan_Usaha = '$sID_Badan_Usaha'"; $res = mysql_query($sql) or die("ERR20041124B: ".mysql_error()); $row = mysql_fetch_assoc($res); $ct .= "
Nama Badan Usaha : ".htmlentities($row['Nama_Badan_Usaha'])."
Alamat : ".htmlentities($row['Alamat1'])." ".htmlentities($row['Alamat2'])." ".htmlentities($row['Nama_Kabupaten'])." ".htmlentities($row['Kodepos'])."
Telepon : ".htmlentities($row['Telepon'])."
NPWP : ".htmlentities($row['NPWP'])."

"; $ct .= "
"; $sql = "SELECT *,UNIX_TIMESTAMP(b.Tgl_Lahir) AS cTgl_Lahir ". "FROM penanggung_jawab AS a INNER JOIN person_badan_usaha AS b ON a.ID_Person=b.ID_Person ". "WHERE a.ID_Badan_Usaha = '$sID_Badan_Usaha' "; $res = mysql_query($sql) or die("ERR20070713H: ".mysql_error()); $no=1; while ($row = mysql_fetch_assoc($res)){ $ct .= ""; $no++; } $ct .= "
No
Nama
Tempat / Tanggal Lahir
Alamat
No. KTP
Jabatan
Pendidikan
No. Registrasi
Jenis Sertifikat
".$no."
".$row['Nama']." ".($row['Tgl_Lahir']==0 ? "
-
" : $row['Tempat_Lahir'].", ".date($row['Tgl_Lahir']))."
".$row['Alamat1']." ".$row['Alamat2']." ".(isset($row['No_KTP']) ? $row['No_KTP'] : "
-
")."
".(isset($row['Jabatan']) ? $row['Jabatan'] : "
-
")."
".(isset($row['Pend_Akhir']) ? $row['Pend_Akhir'] : "-")."
".(isset($row['Noreg']) ? $row['Noreg'] : "-")."
".(isset($row['JTK']) ? ($row['JTK']==1 ? "Sertifikat Keahlian" : "Sertifikat Ketrampilan") : "-")."


"; $ct .= " "; }elseif (preg_match('/^(Peralatan)/i', $action)) { $ct .= "Data Peralatan Badan Usaha

"; $sql = "SELECT *,a.Nama AS Nama_Badan_Usaha, b.Nama AS Nama_Kabupaten FROM badan_usaha AS a LEFT JOIN kabupaten AS b ON a.ID_Kabupaten=b.ID_Kabupaten WHERE ID_Badan_Usaha = '$sID_Badan_Usaha'"; $res = mysql_query($sql) or die("ERR20041124B: ".mysql_error()); $row = mysql_fetch_assoc($res); $ct .= "
Nama Badan Usaha : ".htmlentities($row['Nama_Badan_Usaha'])."
Alamat : ".htmlentities($row['Alamat1'])." ".htmlentities($row['Alamat2'])." ".htmlentities($row['Nama_Kabupaten'])." ".htmlentities($row['Kodepos'])."
Telepon : ".htmlentities($row['Telepon'])."
NPWP : ".htmlentities($row['NPWP'])."

"; $ct .= "
"; $sql = "SELECT *,b.Nama AS Nama_Propinsi FROM alat_konstruksi AS a INNER JOIN propinsi AS b ON a.Lokasi=b.ID_Propinsi ". "WHERE a.ID_Badan_Usaha = '$sID_Badan_Usaha' "; $res = mysql_query($sql) or die("ERR20070713H: ".mysql_error()); $no=1; while ($row = mysql_fetch_assoc($res)){ $ct .= ""; $no++; } $ct .= "
No
Jenis
Kapasitas
Merk
Tahun
Kondisi
Lokasi
Jumlah
Harga (Rp.)
".$no."
".$row['Jenis']." ".$row['Kapasitas']." ".$row['Merk']."
".$row['Tahun']."
".$row['Kondisi']." ".$row['Nama_Propinsi']."
".$row['Jumlah']."
".number_format($row['Harga'],'','','.')."


"; $ct .= " "; }elseif (preg_match('/^(Pengalaman)/i', $action)) { $ct .= "Data Pengalaman Badan Usaha

"; $sql = "SELECT *,a.Nama AS Nama_Badan_Usaha, b.Nama AS Nama_Kabupaten FROM badan_usaha AS a LEFT JOIN kabupaten AS b ON a.ID_Kabupaten=b.ID_Kabupaten WHERE ID_Badan_Usaha = '$sID_Badan_Usaha'"; $res = mysql_query($sql) or die("ERR20041124B: ".mysql_error()); $row = mysql_fetch_assoc($res); $ct .= "
Nama Badan Usaha : ".htmlentities($row['Nama_Badan_Usaha'])."
Alamat : ".htmlentities($row['Alamat1'])." ".htmlentities($row['Alamat2'])." ".htmlentities($row['Nama_Kabupaten'])." ".htmlentities($row['Kodepos'])."
Telepon : ".htmlentities($row['Telepon'])."
NPWP : ".htmlentities($row['NPWP'])."

"; $ct .= "
"; $sql = "SELECT *,UNIX_TIMESTAMP(a.Tgl_Selesai) AS cTgl_Selesai, ". "UNIX_TIMESTAMP(a.Tgl_BA_Serah_Terima) AS cTgl_BA_Serah_Terima, ". "UNIX_TIMESTAMP(a.Tgl_Kontrak) AS cTgl_Kontrak, ". "UNIX_TIMESTAMP(a.Tgl_Mulai) AS cTgl_Mulai, ". "UNIX_TIMESTAMP(a.Tgl_Selesai) AS cTgl_Selesai ". "FROM pengalaman_badan_usaha AS a ". "LEFT JOIN cpc08 AS b ON a.ID_Subbid_Klasifikasi=b.kode ". "WHERE a.ID_Badan_Usaha = '$sID_Badan_Usaha' ORDER BY a.Tgl_Selesai DESC"; $res = mysql_query($sql) or die("ERR20080713H: ".mysql_error()); $no=1; while ($row = mysql_fetch_assoc($res)){ $ct .= ""; $no++; } $ct .= "
No
Proyek
Pemberi Tugas
Sub Bidang Kualifikasi
Nomor
Tanggal
Tahun
Nama
Nilai (Rp)
Kontrak
NKPK
Berita Acara Serah Terima
Berita Acara Serah Terima
Kontrak
Mulai
Selesai
".$no."
".($row['cTgl_Selesai']==0 ? "-" : iddate('Y ',$row['cTgl_Selesai']))."
".$row['Nama_Paket']."
".number_format($row['Nilai_Kontrak'],'','','.')."
".$row['Pemberi_Tugas']." ".$row['ID_Subbid_Klasifikasi']."
".$row['sub_bidang']."
".(isset($row['Nomor_Kontrak']) && $row['Nomor_Kontrak']!=NULL ? $row['Nomor_Kontrak'] : "
-
")."
".(isset($row['NKPK']) && $row['NKPK']!=NULL ? $row['NKPK'] : "
-
")."
".(isset($row['Nomor_BA_Serah_Terima']) && $row['Nomor_BA_Serah_Terima']!=NULL ? $row['Nomor_BA_Serah_Terima'] : "
-
")."
".($row['cTgl_BA_Serah_Terima']==0 ? "-" : iddate('Y ',$row['cTgl_BA_Serah_Terima']))."
".($row['cTgl_Kontrak']==0 ? "-" : iddate('l, d F Y ',$row['cTgl_Kontrak']))."
".($row['cTgl_Mulai']==0 ? "-" : iddate('d F Y ',$row['cTgl_Mulai']))."
".($row['cTgl_Selesai']==0 ? "-" : iddate('d F Y ',$row['cTgl_Selesai']))."


"; $ct .= " "; }else{ $ff = "/template/".$TEMPLATE ."/badan_usaha.t.html"; $sql = "SELECT *,a.Nama AS Nama_Badan_Usaha, b.Nama AS Nama_Kabupaten FROM badan_usaha AS a LEFT JOIN kabupaten AS b ON a.ID_Kabupaten=b.ID_Kabupaten WHERE ID_Badan_Usaha = '$sID_Badan_Usaha'"; $res = mysql_query($sql) or die("ERR20041124B: ".mysql_error()); $row = mysql_fetch_assoc($res); if ($row['Bentuk_BU']==1){ $Bentuk_BU = "Badan Usaha Nasional"; }else if ($row['Bentuk_BU']==3){ $Bentuk_BU = "Badan Usaha PMDN"; } if ($row['Jenis_BU']==1){ $Jenis_BU = "Usaha Perencana "; }else if ($row['Jenis_BU']==2){ $Jenis_BU = "Pelaksana "; }else if ($row['Jenis_BU']==3){ $Jenis_BU = "Pengawasan"; }else if ($row['Jenis_BU']==4){ $Jenis_BU = "Perencana dan Pengawasan "; }else if ($row['Jenis_BU']==5){ $Jenis_BU = "Terintegrasi"; } $fv = array( 'ID_Badan_Usaha' => (isset($sID_Badan_Usaha) ? $sID_Badan_Usaha : $row['ID_Badan_Usaha']), 'Nama_Badan_Usaha' => (isset($Nama_Badan_Usaha) ? $Nama_Badan_Usaha : (is_null($row['Nama_Badan_Usaha']) ? "" : $row['Nama_Badan_Usaha'])), 'ID_Propinsi' => (isset($ID_Propinsi) ? $ID_Propinsi : (is_null($row['ID_Propinsi_Registrasi']) ? "" : $row['ID_Propinsi_Registrasi'])), 'Alamat1' => (isset($Alamat1) ? $Alamat1 : (is_null($row['Alamat1']) ? "" : $row['Alamat1'])), 'Alamat2' => (isset($Alamat2) ? $Alamat2 : (is_null($row['Alamat2']) ? "" : $row['Alamat2'])), 'Kodepos' => (isset($Kodepos) ? $Kodepos : (is_null($row['Kodepos']) ? "" : $row['Kodepos'])), 'Telepon' => (isset($Telepon) ? $Telepon : (is_null($row['Telepon']) ? "" : $row['Telepon'])), 'Fax' => (isset($Fax) ? $Fax : (is_null($row['Fax']) ? "" : $row['Fax'])), 'Email' => (isset($Email) ? $Email : (is_null($row['Email']) ? "" : $row['Email'])), 'Website' => (isset($Website) ? $Website : (is_null($row['Website']) ? "" : $row['Website'])), 'NPWP' => (isset($NPWP) ? $NPWP : (is_null($row['NPWP']) ? "" : $row['NPWP'])), 'Bentuk_BU' => (isset($Bentuk_BU) ? $Bentuk_BU : "-"), 'Jenis_BU' => (isset($Jenis_BU) ? $Jenis_BU : "-"), 'Golongan_BU' => (isset($Golongan_BU) ? $Golongan_BU : (is_null($row['Golongan_BU']) ? "" : $row['Golongan_BU'])), 'NO_SPT' => (isset($NO_SPT) ? $NO_SPT : (is_null($row['NO_SPT']) ? "" : $row['NO_SPT'])), 'Kekayaan_Bersih' => (isset($Kekayaan_Bersih) ? number_format($Kekayaan_Bersih,'','','.') : (is_null($row['Kekayaan_Bersih']) ? "" : number_format($row['Kekayaan_Bersih'],'','','.'))), 'ID_Kabupaten' => (isset($ID_Kabupaten) ? $ID_Kabupaten : (is_null($row['ID_Kabupaten']) ? "" : $row['ID_Kabupaten'])), 'Kabupaten' => (isset($Nama_Kabupaten) ? $Nama_Kabupaten : (is_null($row['Nama_Kabupaten']) ? "" : $row['Nama_Kabupaten'])), 'Pemilik_BU' => (isset($Pemilik_BU) ? $Pemilik_BU : (is_null($row['Pemilik_BU']) ? "" : $row['Pemilik_BU'])), 'Pimpinan_BU' => (isset($Pimpinan_BU) ? $Pimpinan_BU : (is_null($row['Pimpinan_BU']) ? "" : $row['Pimpinan_BU'])), 'Telepon' => (isset($Telepon) ? $Telepon : (is_null($row['Telepon']) ? "" : $row['Telepon'])), 'propinsi_registrasi' => $propinsi_select, 'golongan_bu' => $golongan_bu_select, 'kabupaten' => $kabupaten_select, ); $tv['link_klasifikasi'] = "/modules/data_badan_usaha_2007/kualifikasi_dan_klasifikasi.php?ID_Badan_Usaha=$sID_Badan_Usaha"; } } $tv['content'] = $ct ? $ct : filltemplatefile($ff, $fv); displaytemplatefile($tf, $tv); ?>