SINTAP Bantaeng - Sistem Pelayanan Perizinan Satu Atap Kab. Bantaeng
 
Home arrow Demo SIUP
Admin Tools
Aplikasi
 
load($Itemid); # Check for Mamblefish and use translated Menuname instead if( $mosConfig_mbf_content ) { $mname = MambelFish::translate( $mname, 'menu', $mosConfig_lang); } $menuname = $mname->name; # $menuname = $mname->siup_nama_author; echo ""; echo ""; echo "
$menuname
"; if ($viewlink) { echo "bullets "._SIUP_VIEW.""; } elseif ($fr_allowentry) { echo "bullets "._SIUP_SIGN.""; } echo "
"; return; } function SIUPFooter() { global $siup_version; # STOP! THE REMOVAL OF THE POWERED BY LINE IS NOT ALLOWED. # IF YOU WANT TO REMOVE IT, CONTACT ME AT www.konze.de FOR DETAILS! echo "
Powered by SIUP - SINTAP KAB. BANTAENG $siup_version
"; # echo "
"; return; } function is_email($email){ $rBool=false; if(preg_match("/[\w\.\-]+@\w+[\w\.\-]*?\.\w{1,4}/", $email)) { $rBool=true; } return $rBool; } function textwrap($text, $width = 75) { if ($text) return preg_replace("/([^\n\r ?&\.\/<>\"\\-]{".$width."})/i"," \\1\n",$text); } # Check if SIUP is offline if ($fr_offline == 1) { require($mosConfig_absolute_path."/components/com_siup/offline.php"); } else { # Get the right language if it exists if (file_exists($mosConfig_absolute_path.'/components/com_siup/languages/'.$mosConfig_lang.'.php')) { include($mosConfig_absolute_path.'/components/com_siup/languages/'.$mosConfig_lang.'.php'); } else { include($mosConfig_absolute_path.'/components/com_siup/languages/english.php'); } # Check for Editor rights $is_administrator = (strtolower($my->usertype) == 'manager' || strtolower($my->usertype) == 'administrator' || strtolower($my->usertype) == 'super administrator' ); $is_editor = (strtolower($my->usertype) == 'editor' || strtolower($my->usertype) == 'publisher'); $is_user = (strtolower($my->usertype) <> ''); switch ($func) { ######################################################################################### case 'ubah': include('components/com_siup/sub_write_entry_siup_edit.php'); break; ######################################################################################### case 'ubah_fr0': # $data = $HTTP_POST_VARS; $data = $_POST; include('components/com_siup/sub_write_entry_siup_edit_0.php'); break; ######################################################################################### case 'cetak': include('components/com_siup/sub_write_entry_siup_cetak.php'); break; ######################################################################################### case 'cetak_fr0': # $data = $HTTP_POST_VARS; $data = $_POST; include('components/com_siup/sub_write_entry_siup_cetak_0.php'); break; case 'cetak_fr1': # $data = $HTTP_POST_VARS; $data = $_POST; include('components/com_siup/smt_ctk_fr0.php'); break; ######################################################################################### case 'biaya': include('components/com_siup/sub_write_entry_siup_biaya.php'); break; ######################################################################################### case 'biaya_fr0': # $data = $HTTP_POST_VARS; $data = $_POST; include('components/com_siup/sub_write_entry_siup_biaya_0.php'); break; ######################################################################################### case 'biaya_fr1': # Clear any HTML # Clear dangerous sql injections if (($is_administrator) AND ($siup_id)) { $query1_bya = "UPDATE #__Mohon_SIUP SET Biaya = '$Biaya', "; $query1_bya.= "SK_No_Ijin = '$SK_No_Ijin', SK_Tanggal = '$tahun_sk-$bulan_sk-$tanggal_sk', SK_Berlaku = '$tahun_berlaku-$bulan_berlaku-$tanggal_berlaku' "; $query1_bya.= "WHERE siup_id = '$siup_id'"; $database->setQuery( $query1_bya ); $database->query(); echo ""; } else { ECHO "Maaf!!...
DIbutuhkan USER dengan level: MANAGER atau ADMINISTRATOR atau SUPER ADMINISTRATOR!!


"; } break; ######################################################################################### case 'update': include('components/com_siup/sub_write_entry_siup_update.php'); break; ######################################################################################### case 'update_fr0': # $data = $HTTP_POST_VARS; $data = $_POST; include('components/com_siup/sub_write_entry_siup_update_0.php'); break; ######################################################################################### case 'update_fr1': $Tgl_Bayar = $tahun_byr."-".$bulan_byr."-".$tanggal_byr; $Tgl_Ambil = $tahun_ambil."-".$bulan_ambil."-".$tanggal_ambil; # Clear any HTML # Clear dangerous sql injections if (($is_administrator) AND ($siup_id)) { $query4 = "UPDATE #__Mohon_SIUP SET Status_Permohonan = '$Status_Permohonan', Tgl_Bayar = '$Tgl_Bayar', Tgl_Ambil = '$Tgl_Ambil' "; $query4.= "WHERE siup_id = '$siup_id'"; $database->setQuery( $query4 ); $database->query(); echo ""; } else { ECHO "Maaf!!...
DIbutuhkan USER dengan level: MANAGER atau ADMINISTRATOR atau SUPER ADMINISTRATOR!!


"; } break; ######################################################################################### case 'laporan': include('components/com_siup/sub_write_entry_siup_laporan.php'); break; ######################################################################################### case 'laporan_fr0': # $data = $HTTP_POST_VARS; $data = $_POST; include('components/com_siup/sub_write_entry_siup_laporan_0.php'); break; ######################################################################################### case 'laporan_v0': # $data = $HTTP_POST_VARS; $data = $_POST; include('components/com_siup/sub_write_entry_siup_laporan_0.php'); break; ######################################################################################### case 'laporan_v1': # $data = $HTTP_POST_VARS; $data = $_POST; include('components/com_siup/sub_write_entry_siup_laporan_v1.php'); break; ######################################################################################### case 'show': include('components/com_siup/sub_show_entry_siup.php'); break; ######################################################################################### case 'show_fr0': # $data = $HTTP_POST_VARS; $data = $_POST; include('components/com_siup/sub_show_entry_siup_0.php'); break; ######################################################################################### case 'entry': $content=include('components/com_siup/sub_write_entry_siup.php'); break; ######################################################################################### case 'entry0a': # Clear any HTML require($mosConfig_absolute_path."/components/com_siup/clr_anyhtml.php"); # Clear dangerous sql injections require($mosConfig_absolute_path."/components/com_siup/clr_dgr_sql_inject.php"); if ($dl_Bank) {$dl_Bank = '1';} else {$$dl_Bank = '0';} if ($dl_Bank_0) {$dl_Bank_0 = '1';} else {$$dl_Bank_0 = '0';} if ($dl_Bank_1) {$dl_Bank_1 = '1';} else {$$dl_Bank_1 = '0';} if ($dl_Bank_2) {$dl_Bank_2 = '1';} else {$$dl_Bank_2 = '0';} if ($dl_Bank_3) {$dl_Bank_3 = '1';} else {$$dl_Bank_3 = '0';} if (($is_administrator) AND ($siup_id)) { $data=$HTTP_POST_VARS; if ($data) { while (list($key,$val)=each($data)) {if ($key <> 'func') {echo "\n";}} } echo "
Cek Hasil Capture HIDDEN.....
"; #break; /** $query1 = "UPDATE #__Mohon_SIUP SET siup_ip = '$siup_ip', No_Urut = '$No_Urut', No_Reg = '$No_Reg', Tanggal = '$Tanggal', Petugas = '$Petugas', Selesai = '$Selesai', NIK = '$NIK', Nama_Pemohon = '$Nama', "; $query1.= "NPWP = '$NPWP_Prsh', Nama_Prshn = '$Nama_Prsh', Jenis_Permohonan = '$Jenis_Permohonan', Kode_MPI = '$Kode_MPI', Pasangan = '$Pasangan', WN_Pasangan = '$Kd_WN', "; $query1.= "Nama_Notaris = '$Nama_Notaris', No_Tgl_Akta = '$No_Tgl_Akta', No_Tgl_Pengesahan = '$No_Tgl_Pengesahan', Data_Akte = '$Data_Akte', "; $query1.= "Ijin_Lain = '$Ijin_Lain', Modal = '$Modal', Lembaga = '$Lembaga', Barang_Jasa = '$Barang_Jasa', Lokasi = '$Lokasi', "; $query1.= "Hub = '$Hub', Bidang_Usaha = '$Bidang_Usaha', Jenis_Usaha = '$Jenis_Usaha', Biaya = '$Biaya', "; $query1.= "userid = '$userid', tgl = '$tgl', "; $query1.= "NIK_Ambil = '$NIK_Ambil', "; $query1.= "No_Tgl_Akta_Koperasi = '$No_Tgl_Akta_Koperasi', No_Tgl_Pengesahan_Koperasi = '$No_Tgl_Pengesahan_Koperasi', Ijin_Lain_Koperasi = '$Ijin_Lain_Koperasi', published = '$published' "; $query1.= "WHERE siup_id = '$siup_id'"; $database->setQuery( $query1 ); $database->query(); $query1a = "UPDATE #__Pemohon SET pemohon_id = '$pemohon_id', NIK = '$NIK', Nama = '$Nama', Tempat_Lahir = '$Tempat_Lahir', Tanggal_Lahir = '$tahun_lhr-$bulan_lhr-$tanggal_lhr', Pekerjaan = '$Pekerjaan', Alamat = '$Alamat', Telepon = '$Telepon', "; $query1a.= "Hp = '$Hp', Desa = '$Desa', RT = '$RT', RW = '$RW', Kd_agama = '$Kd_agama', Kd_WN = '$Kd_WN', Nama_Ortu = '$Nama_Ortu' "; $query1a.= "WHERE pemohon_id = '$pemohon_id'"; $database->setQuery( $query1a ); $database->query(); $query1b = "UPDATE #__Perusahaan SET perusahaan_id = '$perusahaan_id', NPWP_Prsh = '$NPWP_Prsh', Nama_Prsh = '$Nama_Prsh', Akte_Prsh = '$Akte_Prsh', Tanggal_Prsh = '$Tanggal_Prsh', Kode_BU_Prsh = '$Kode_BU_Prsh', Alamat_Prsh = '$Alamat_Prsh', "; $query1b.= "Lokasi_Prsh = '$Lokasi', Telepon_Prsh = '$Telepon_Prsh', Fax_Prsh = '$Fax_Prsh', Hp_Prsh = '$Hp_Prsh', Desa_Prsh = '$Desa_Prsh', RT_Prsh = '$RT_Prsh', "; $query1b.= "RW_Prsh = '$RW_Prsh', Status_Tm_Usaha_Prsh = '$Status_Tm_Usaha_Prsh', Merek_Prsh = '$Merek_Prsh' "; $query1b.= "WHERE perusahaan_id = '$perusahaan_id' "; $database->setQuery( $query1b ); $database->query(); **/ $database->setQuery( "SELECT * FROM #__M_Siup_Bank WHERE No_Reg_Bank = '$No_Reg' " . "\nORDER BY Kode_Bank ASC" ); $rows = $database->loadObjectList(); $naik=0; foreach ( $rows AS $row1a) { $Name_Bnk = '$Nama_Bank_'+$naik; if ($row1a->Nama_Bank == $Nama_Bank_.$naik ) { echo "Nama_Bank_$naik = ".$Name_Bnk; echo "
UPDATE #__M_Siup_Bank SET bank_id = '$No_Urut', No_Reg_Bank = '$No_Reg', Kode_Bank = '$Kode_Bank', Nama_Bank = '$Nama_Bank', "; echo "Alamat_Bank = '$Alamat_Bank', dl_Bank = '$dl_Bank' "; echo "WHERE bank_id = '$bank_id'
"; } //end if($row1a->Nama_Bank) else { echo "Nama_Bank_$naik = $Nama_Bank_".$naik; echo "
INSERT INTO #__M_Siup_Bank SET bank_id = '$No_Urut', No_Reg_Bank = '$No_Reg', Kode_Bank = '$Kode_Bank', Nama_Bank = '$Nama_Bank', "; echo "Alamat_Bank = '$Alamat_Bank', dl_Bank = '$dl_Bank' "; echo "WHERE bank_id = '$bank_id'
"; } $naik=$naik+1; } // end of foreach ( $rows AS $row1) break; # $query1c = "INSERT INTO #__M_Siup_Bank SET bank_id = '$No_Urut', No_Reg_Bank = '$No_Reg', Kode_Bank = '$Kode_Bank', Nama_Bank = '$Nama_Bank', "; # $query1c.= "Alamat_Bank = '$Alamat_Bank', dl_Bank = '$dl_Bank' "; # $query1c.= "WHERE bank_id = '$bank_id' "; # $database->setQuery( $query1c ); # $database->query(); echo ""; } elseif ($is_administrator) { $siup_ip = getenv('REMOTE_ADDR'); $query2 = "INSERT INTO #__Mohon_SIUP SET siup_ip = '$siup_ip', No_Urut = '$No_Urut', No_Reg = '$No_Reg', Tanggal = '$Tanggal', Petugas = '$Petugas', Selesai = '$Selesai', "; $query2.= "Jenis_Permohonan = '$Jenis_Permohonan', Kode_MPI = '$Kode_MPI', NPWP = '$NPWP_Prsh',Nama_Prshn = '$Nama_Prsh', NIK = '$NIK', Nama_Pemohon = '$Nama', Pasangan = '$Pasangan', WN_Pasangan = '$Kd_WN', "; $query2.= "Nama_Notaris = '$Nama_Notaris', No_Tgl_Akta = '$No_Tgl_Akta', No_Tgl_Pengesahan = '$No_Tgl_Pengesahan', Data_Akte = '$Data_Akte', "; $query2.= "Ijin_Lain = '$Ijin_Lain', Modal = '$Modal', Lembaga = '$Lembaga', Barang_Jasa = '$Barang_Jasa', Lokasi = '$Lokasi', "; $query2.= "Hub = '$Hub', Bidang_Usaha = '$Bidang_Usaha', Jenis_Usaha = '$Jenis_Usaha', Biaya = '$Biaya', "; $query2.= "userid = '$userid', tgl = '$tgl', Status_Permohonan = '$Status_Permohonan', "; $query2.= "SK_No_Ijin = '$SK_No_Ijin_1/$SK_No_Ijin_2/$SK_No_Ijin_3/$SK_No_Ijin_4', SK_Tanggal = '$tahun_sk-$bulan_sk-$tanggal_sk', SK_Berlaku = '$tahun_berlaku-$bulan_berlaku-$tanggal_berlaku', Tgl_Bayar = '$Tgl_Bayar', Tgl_Ambil = '$Tgl_Ambil', NIK_Ambil = '$NIK_Ambil', "; $query2.= "No_Tgl_Akta_Koperasi = '$No_Tgl_Akta_Koperasi', No_Tgl_Pengesahan_Koperasi = '$No_Tgl_Pengesahan_Koperasi', Ijin_Lain_Koperasi = '$Ijin_Lain_Koperasi'"; if ($fr_autopublish) { $query2 .= ", published='1'"; } $database->setQuery( $query2 ); $database->query(); $query2a = "INSERT INTO #__Pemohon SET pemohon_id = '$No_Reg', NIK = '$NIK', Nama = '$Nama', Tempat_Lahir = '$Tempat_Lahir', Tanggal_Lahir = '$tahun_lhr-$bulan_lhr-$tanggal_lhr', Pekerjaan = '$Pekerjaan', Alamat = '$Alamat', Telepon = '$Telepon', "; $query2a.= "Hp = '$Hp', Desa = '$Desa', RT = '$RT', RW = '$RW', Kd_agama = '$Kd_agama', Kd_WN = '$Kd_WN', Nama_Ortu = '$Nama_Ortu'"; $database->setQuery( $query2a ); $database->query(); $query2b = "INSERT INTO #__Perusahaan SET perusahaan_id = '$No_Reg', NPWP_Prsh = '$NPWP_Prsh', Nama_Prsh = '$Nama_Prsh', Akte_Prsh = '$Akte_Prsh', Tanggal_Prsh = '$Tanggal_Prsh', Kode_BU_Prsh = '$Kode_BU_Prsh', Alamat_Prsh = '$Alamat_Prsh', "; $query2b.= "Lokasi_Prsh = '$Lokasi', Telepon_Prsh = '$Telepon_Prsh', Fax_Prsh = '$Fax_Prsh', Hp_Prsh = '$Hp_Prsh', Desa_Prsh = '$Desa_Prsh', RT_Prsh = '$RT_Prsh', "; $query2b.= "RW_Prsh = '$RW_Prsh', Status_Tm_Usaha_Prsh = '$Status_Tm_Usaha_Prsh', Merek_Prsh = '$Merek_Prsh'"; $database->setQuery( $query2b ); $database->query(); if ($Nama_Bank_0) { $query3a0 = "INSERT INTO #__M_Siup_Bank SET No_Reg_Bank = '$No_Reg', Id_Detail = '$Id_Detail', Kode_Bank = '$Kode_Bank_0', Nama_Bank = '$Nama_Bank_0', "; $query3a0.= "Alamat_Bank = '$Alamat_Bank_0', dl_Bank = '$dl_Bank_0'"; $database->setQuery( $query3a0 ); $database->query(); } if ($Nama_Bank_1) { $query3a1 = "INSERT INTO #__M_Siup_Bank SET No_Reg_Bank = '$No_Reg', Id_Detail = '$Id_Detail', Kode_Bank = '$Kode_Bank_1', Nama_Bank = '$Nama_Bank_1', "; $query3a1.= "Alamat_Bank = '$Alamat_Bank_1', dl_Bank = '$dl_Bank_1'"; $database->setQuery( $query3a1 ); $database->query(); } if ($Nama_Bank_2) { $query3a2 = "INSERT INTO #__M_Siup_Bank SET No_Reg_Bank = '$No_Reg', Id_Detail = '$Id_Detail', Kode_Bank = '$Kode_Bank_2', Nama_Bank = '$Nama_Bank_2', "; $query3a2.= "Alamat_Bank = '$Alamat_Bank_2', dl_Bank = '$dl_Bank_2'"; $database->setQuery( $query3a2 ); $database->query(); } if ($Nama_Bank_3) { $query3a3 = "INSERT INTO #__M_Siup_Bank SET No_Reg_Bank = '$No_Reg', Id_Detail = '$Id_Detail', Kode_Bank = '$Kode_Bank_3', Nama_Bank = '$Nama_Bank_3', "; $query3a3.= "Alamat_Bank = '$Alamat_Bank_3', dl_Bank = '$dl_Bank_3'"; $database->setQuery( $query3a3 ); $database->query(); } # } if ($Ins_upd == 1) { $query3 = "INSERT INTO #__Counter_Register SET Kode_Ijin = '$Kode_Ijin', Blth = '$Blth', Nomor = '$Nomor'"; $database->setQuery( $query3 ); $database->query(); } else { $query3a = "UPDATE #__Counter_Register SET Kode_Ijin = '$Kode_Ijin', Blth = '$Blth', Nomor = '$Nomor' WHERE ((Kode_Ijin = '$Kode_Ijin') AND (Blth = '$Blth'))"; $database->setQuery( $query3a ); $database->query(); } echo ""; } else { ECHO "Maaf!!...
DIbutuhkan USER dengan level: MANAGER atau ADMINISTRATOR atau SUPER ADMINISTRATOR!!


"; } break; ######################################################################################### default: $content=include('components/com_siup/menu_siup.php'); break; } SIUPFooter(); # Close Offline Tag } ?>
 
 
 
Sabtu,  21 Oktober, 2017   02:24:34 WITA
up!