Add export to pdf and excel
							parent
							
								
									c3f1605f35
								
							
						
					
					
						commit
						4a12d026fd
					
				|  | @ -0,0 +1,280 @@ | ||||||
|  | <?php | ||||||
|  | defined('BASEPATH') OR exit('No direct script access allowed'); | ||||||
|  | 
 | ||||||
|  | class LaporanExcel extends CI_Controller { | ||||||
|  | 
 | ||||||
|  | 	public function __construct() | ||||||
|  |     { | ||||||
|  | 		 | ||||||
|  |         parent::__construct(); | ||||||
|  |         $this->load->model("UserModel"); | ||||||
|  |         $this->load->model("LaporanModel"); | ||||||
|  |         $this->load->model("KategoriModel"); | ||||||
|  |         $this->load->model("JenisModel"); | ||||||
|  | 
 | ||||||
|  | 		if($this->UserModel->isNotLogin()) { | ||||||
|  | 			redirect(site_url('login')); | ||||||
|  | 		} elseif(!($this->UserModel->isAdmin())) { | ||||||
|  | 			redirect(site_url('dashboard')); | ||||||
|  | 		}  | ||||||
|  | 			 | ||||||
|  | 		 | ||||||
|  |     } | ||||||
|  | 
 | ||||||
|  | 	public function index() | ||||||
|  | 	{ | ||||||
|  | 			 | ||||||
|  | 			//cek ada laporan tahunan atau tidak
 | ||||||
|  | 			$countlaporan = $this->LaporanModel->getLaporanCount(); | ||||||
|  | 			if($countlaporan>0){ | ||||||
|  | 				$year = $this->LaporanModel->getLastYearLaporan()->tahun; | ||||||
|  | 				$data['tahun'] = $year; | ||||||
|  | 				$lap_bulan = $this->LaporanModel->getBulanLaporanByYear($year); | ||||||
|  | 
 | ||||||
|  | 				$omset_jen1=0; | ||||||
|  | 				$omset_jen2=0; | ||||||
|  | 				$omset_jen3=0; | ||||||
|  | 				 | ||||||
|  | 				 | ||||||
|  | 
 | ||||||
|  | 				foreach($lap_bulan as $bulan){ | ||||||
|  | 					$umkm_jen1=0; | ||||||
|  | 					$umkm_jen2=0; | ||||||
|  | 					$umkm_jen3=0; | ||||||
|  | 
 | ||||||
|  | 					$umkm_jen1_ket1=0; | ||||||
|  | 					$umkm_jen1_ket2=0; | ||||||
|  | 					$umkm_jen1_ket3=0; | ||||||
|  | 					$umkm_jen2_ket1=0; | ||||||
|  | 					$umkm_jen2_ket2=0; | ||||||
|  | 					$umkm_jen2_ket3=0; | ||||||
|  | 					$umkm_jen3_ket1=0; | ||||||
|  | 					$umkm_jen3_ket2=0; | ||||||
|  | 					$umkm_jen3_ket3=0; | ||||||
|  | 					 | ||||||
|  | 					$aset_jen1=0; | ||||||
|  | 					$aset_jen2=0; | ||||||
|  | 					$aset_jen3=0; | ||||||
|  | 					$naker_jen1_l=0; | ||||||
|  | 					$naker_jen1_p=0; | ||||||
|  | 					$naker_jen2_l=0; | ||||||
|  | 					$naker_jen2_p=0; | ||||||
|  | 					$naker_jen3_l=0; | ||||||
|  | 					$naker_jen3_p=0; | ||||||
|  | 					$lap_kelurahan = $this->LaporanModel->getKelurahanByBulanAndYear($bulan->bulan,$year); | ||||||
|  | 					 | ||||||
|  | 					foreach($lap_kelurahan as $kelurahan){ | ||||||
|  | 						$laporan = $this->LaporanModel->getLaporanByBulanByYearByKelurahan($bulan->bulan,$year,$kelurahan->kelurahan); | ||||||
|  | 						$umkm_jen1= $umkm_jen1+$laporan->umkm_jen1_kat1+$laporan->umkm_jen1_kat2+$laporan->umkm_jen1_kat3; | ||||||
|  | 						$umkm_jen2= $umkm_jen2+$laporan->umkm_jen2_kat1+$laporan->umkm_jen2_kat2+$laporan->umkm_jen2_kat3; | ||||||
|  | 						$umkm_jen3= $umkm_jen3+$laporan->umkm_jen3_kat1+$laporan->umkm_jen3_kat2+$laporan->umkm_jen3_kat3; | ||||||
|  | 						$omset_jen1= $omset_jen1+$laporan->omset_jenis1; | ||||||
|  | 						$omset_jen2= $omset_jen2+$laporan->omset_jenis2; | ||||||
|  | 						$omset_jen3= $omset_jen3+$laporan->omset_jenis3; | ||||||
|  | 						$aset_jen1= $aset_jen1+$laporan->aset_jenis1; | ||||||
|  | 						$aset_jen2= $aset_jen2+$laporan->aset_jenis2; | ||||||
|  | 						$aset_jen3= $aset_jen3+$laporan->aset_jenis3; | ||||||
|  | 						$naker_jen1_l = $naker_jen1_l + $laporan->karyawan_jen1_l; | ||||||
|  | 						$naker_jen1_p = $naker_jen1_p + $laporan->karyawan_jen1_p; | ||||||
|  | 						$naker_jen2_l = $naker_jen2_l + $laporan->karyawan_jen2_l; | ||||||
|  | 						$naker_jen2_p = $naker_jen2_p + $laporan->karyawan_jen2_p; | ||||||
|  | 						$naker_jen3_l = $naker_jen3_l + $laporan->karyawan_jen3_l; | ||||||
|  | 						$naker_jen3_p = $naker_jen3_p + $laporan->karyawan_jen3_p; | ||||||
|  | 
 | ||||||
|  | 						$umkm_jen1_ket1=$umkm_jen1_ket1+$laporan->umkm_jen1_kat1; | ||||||
|  | 						$umkm_jen1_ket2=$umkm_jen1_ket2+$laporan->umkm_jen1_kat2; | ||||||
|  | 						$umkm_jen1_ket3=$umkm_jen1_ket3+$laporan->umkm_jen1_kat3; | ||||||
|  | 						$umkm_jen2_ket1=$umkm_jen2_ket1+$laporan->umkm_jen2_kat1; | ||||||
|  | 						$umkm_jen2_ket2=$umkm_jen2_ket2+$laporan->umkm_jen2_kat2; | ||||||
|  | 						$umkm_jen2_ket3=$umkm_jen2_ket3+$laporan->umkm_jen2_kat3; | ||||||
|  | 						$umkm_jen3_ket1=$umkm_jen3_ket1+$laporan->umkm_jen3_kat1; | ||||||
|  | 						$umkm_jen3_ket2=$umkm_jen3_ket2+$laporan->umkm_jen3_kat2; | ||||||
|  | 						$umkm_jen3_ket3=$umkm_jen3_ket3+$laporan->umkm_jen3_kat3; | ||||||
|  | 						 | ||||||
|  | 					} | ||||||
|  | 					 | ||||||
|  | 					 | ||||||
|  | 				} | ||||||
|  | 
 | ||||||
|  | 				$data['umkm_jen1_ket1']=$umkm_jen1_ket1; | ||||||
|  | 				$data['umkm_jen1_ket2']=$umkm_jen1_ket2; | ||||||
|  | 				$data['umkm_jen1_ket3']=$umkm_jen1_ket3; | ||||||
|  | 				$data['umkm_jen2_ket1']=$umkm_jen2_ket1; | ||||||
|  | 				$data['umkm_jen2_ket2']=$umkm_jen2_ket2; | ||||||
|  | 				$data['umkm_jen2_ket3']=$umkm_jen2_ket3; | ||||||
|  | 				$data['umkm_jen3_ket1']=$umkm_jen3_ket1; | ||||||
|  | 				$data['umkm_jen3_ket2']=$umkm_jen3_ket2; | ||||||
|  | 				$data['umkm_jen3_ket3']=$umkm_jen3_ket3; | ||||||
|  | 
 | ||||||
|  | 				 | ||||||
|  | 				$omset_bln_jen1= $omset_jen1/12; | ||||||
|  | 				$omset_bln_jen2= $omset_jen2/12; | ||||||
|  | 				$omset_bln_jen3= $omset_jen3/12; | ||||||
|  | 
 | ||||||
|  | 				 | ||||||
|  | 
 | ||||||
|  | 				$data['umkm_jen1']=$umkm_jen1; | ||||||
|  | 				$data['umkm_jen2']=$umkm_jen2; | ||||||
|  | 				$data['umkm_jen3']=$umkm_jen3; | ||||||
|  | 
 | ||||||
|  | 				$data['omset_bln_jen1'] = $omset_bln_jen1; | ||||||
|  | 				$data['omset_bln_jen2'] = $omset_bln_jen2; | ||||||
|  | 				$data['omset_bln_jen3'] = $omset_bln_jen3; | ||||||
|  | 
 | ||||||
|  | 				$data['aset_jen1'] = $aset_jen1; | ||||||
|  | 				$data['aset_jen2'] = $aset_jen2; | ||||||
|  | 				$data['aset_jen3'] = $aset_jen3; | ||||||
|  | 				$data['naker_jen1_l'] = $naker_jen1_l; | ||||||
|  | 				$data['naker_jen1_p'] = $naker_jen1_p; | ||||||
|  | 				$data['naker_jen2_l'] = $naker_jen2_l; | ||||||
|  | 				$data['naker_jen2_p'] = $naker_jen2_p; | ||||||
|  | 				$data['naker_jen3_l'] = $naker_jen3_l; | ||||||
|  | 				$data['naker_jen3_p'] = $naker_jen3_p; | ||||||
|  | 
 | ||||||
|  | 				//komulatif
 | ||||||
|  | 				$data['omset_1'] = $omset_bln_jen1+$omset_bln_jen2+$omset_bln_jen3; | ||||||
|  | 				$data['aset_1'] = $aset_jen1+$aset_jen2+$aset_jen3; | ||||||
|  | 				$data['umkm_1'] = $umkm_jen1+$umkm_jen2+$umkm_jen3; | ||||||
|  | 				$naker_1 = $naker_jen1_l+$naker_jen2_l+$naker_jen3_l; | ||||||
|  | 				$data['naker_1'] = $naker_1+$naker_jen1_p+$naker_jen2_p+$naker_jen3_p; | ||||||
|  | 				$data['mikro_1'] = $umkm_jen1_ket1+$umkm_jen2_ket1+$umkm_jen3_ket1; | ||||||
|  | 				$data['kecil_1'] = $umkm_jen1_ket2+$umkm_jen2_ket2+$umkm_jen3_ket2; | ||||||
|  | 				$data['menengah_1'] = $umkm_jen1_ket3+$umkm_jen2_ket3+$umkm_jen3_ket3; | ||||||
|  | 				 | ||||||
|  | 				 | ||||||
|  | 				//cek ada laporan tahun sebelumnya atau tidak
 | ||||||
|  | 				$countlaporanbefore = $this->LaporanModel->getLaporanBeforeCount(); | ||||||
|  | 				if($countlaporanbefore>0){ | ||||||
|  | 					$yearbefore = $this->LaporanModel->getLastYearLaporanBefore()->tahun; | ||||||
|  | 					$data['tahun_0'] = $yearbefore; | ||||||
|  | 
 | ||||||
|  | 					$lap_bulan_0 = $this->LaporanModel->getBulanLaporanByYear($yearbefore); | ||||||
|  | 
 | ||||||
|  | 					$omset_jen1_0=0; | ||||||
|  | 					$omset_jen2_0=0; | ||||||
|  | 					$omset_jen3_0=0; | ||||||
|  | 					 | ||||||
|  | 					 | ||||||
|  | 
 | ||||||
|  | 					foreach($lap_bulan_0 as $bulan_0){ | ||||||
|  | 						$umkm_jen1_0=0; | ||||||
|  | 						$umkm_jen2_0=0; | ||||||
|  | 						$umkm_jen3_0=0; | ||||||
|  | 
 | ||||||
|  | 						$umkm_jen1_ket1_0=0; | ||||||
|  | 						$umkm_jen1_ket2_0=0; | ||||||
|  | 						$umkm_jen1_ket3_0=0; | ||||||
|  | 						$umkm_jen2_ket1_0=0; | ||||||
|  | 						$umkm_jen2_ket2_0=0; | ||||||
|  | 						$umkm_jen2_ket3_0=0; | ||||||
|  | 						$umkm_jen3_ket1_0=0; | ||||||
|  | 						$umkm_jen3_ket2_0=0; | ||||||
|  | 						$umkm_jen3_ket3_0=0; | ||||||
|  | 						 | ||||||
|  | 						$aset_jen1_0=0; | ||||||
|  | 						$aset_jen2_0=0; | ||||||
|  | 						$aset_jen3_0=0; | ||||||
|  | 						$naker_jen1_l_0=0; | ||||||
|  | 						$naker_jen1_p_0=0; | ||||||
|  | 						$naker_jen2_l_0=0; | ||||||
|  | 						$naker_jen2_p_0=0; | ||||||
|  | 						$naker_jen3_l_0=0; | ||||||
|  | 						$naker_jen3_p_0=0; | ||||||
|  | 						$lap_kelurahan_0 = $this->LaporanModel->getKelurahanByBulanAndYear($bulan_0->bulan,$yearbefore); | ||||||
|  | 						 | ||||||
|  | 						foreach($lap_kelurahan_0 as $kelurahan_0){ | ||||||
|  | 							$laporan_0 = $this->LaporanModel->getLaporanByBulanByYearByKelurahan($bulan_0->bulan,$yearbefore,$kelurahan_0->kelurahan); | ||||||
|  | 							$umkm_jen1_0= $umkm_jen1_0+$laporan_0->umkm_jen1_kat1+$laporan_0->umkm_jen1_kat2+$laporan_0->umkm_jen1_kat3; | ||||||
|  | 							$umkm_jen2_0= $umkm_jen2_0+$laporan_0->umkm_jen2_kat1+$laporan_0->umkm_jen2_kat2+$laporan_0->umkm_jen2_kat3; | ||||||
|  | 							$umkm_jen3_0= $umkm_jen3_0+$laporan_0->umkm_jen3_kat1+$laporan_0->umkm_jen3_kat2+$laporan_0->umkm_jen3_kat3; | ||||||
|  | 							$omset_jen1_0= $omset_jen1_0+$laporan_0->omset_jenis1; | ||||||
|  | 							$omset_jen2_0= $omset_jen2_0+$laporan_0->omset_jenis2; | ||||||
|  | 							$omset_jen3_0= $omset_jen3_0+$laporan_0->omset_jenis3; | ||||||
|  | 							$aset_jen1_0= $aset_jen1_0+$laporan_0->aset_jenis1; | ||||||
|  | 							$aset_jen2_0= $aset_jen2_0+$laporan_0->aset_jenis2; | ||||||
|  | 							$aset_jen3_0= $aset_jen3_0+$laporan_0->aset_jenis3; | ||||||
|  | 							$naker_jen1_l_0 = $naker_jen1_l_0 + $laporan_0->karyawan_jen1_l; | ||||||
|  | 							$naker_jen1_p_0 = $naker_jen1_p_0 + $laporan_0->karyawan_jen1_p; | ||||||
|  | 							$naker_jen2_l_0 = $naker_jen2_l_0 + $laporan_0->karyawan_jen2_l; | ||||||
|  | 							$naker_jen2_p_0 = $naker_jen2_p_0 + $laporan_0->karyawan_jen2_p; | ||||||
|  | 							$naker_jen3_l_0 = $naker_jen3_l_0 + $laporan_0->karyawan_jen3_l; | ||||||
|  | 							$naker_jen3_p_0 = $naker_jen3_p_0 + $laporan_0->karyawan_jen3_p; | ||||||
|  | 
 | ||||||
|  | 							$umkm_jen1_ket1_0=$umkm_jen1_ket1_0+$laporan_0->umkm_jen1_kat1; | ||||||
|  | 							$umkm_jen1_ket2_0=$umkm_jen1_ket2_0+$laporan_0->umkm_jen1_kat2; | ||||||
|  | 							$umkm_jen1_ket3_0=$umkm_jen1_ket3_0+$laporan_0->umkm_jen1_kat3; | ||||||
|  | 							$umkm_jen2_ket1_0=$umkm_jen2_ket1_0+$laporan_0->umkm_jen2_kat1; | ||||||
|  | 							$umkm_jen2_ket2_0=$umkm_jen2_ket2_0+$laporan_0->umkm_jen2_kat2; | ||||||
|  | 							$umkm_jen2_ket3_0=$umkm_jen2_ket3_0+$laporan_0->umkm_jen2_kat3; | ||||||
|  | 							$umkm_jen3_ket1_0=$umkm_jen3_ket1_0+$laporan_0->umkm_jen3_kat1; | ||||||
|  | 							$umkm_jen3_ket2_0=$umkm_jen3_ket2_0+$laporan_0->umkm_jen3_kat2; | ||||||
|  | 							$umkm_jen3_ket3_0=$umkm_jen3_ket3_0+$laporan_0->umkm_jen3_kat3; | ||||||
|  | 							 | ||||||
|  | 						} | ||||||
|  | 						 | ||||||
|  | 						 | ||||||
|  | 					} | ||||||
|  | 
 | ||||||
|  | 					$data['umkm_jen1_ket1_0']=$umkm_jen1_ket1_0; | ||||||
|  | 					$data['umkm_jen1_ket2_0']=$umkm_jen1_ket2_0; | ||||||
|  | 					$data['umkm_jen1_ket3_0']=$umkm_jen1_ket3_0; | ||||||
|  | 					$data['umkm_jen2_ket1_0']=$umkm_jen2_ket1_0; | ||||||
|  | 					$data['umkm_jen2_ket2_0']=$umkm_jen2_ket2_0; | ||||||
|  | 					$data['umkm_jen2_ket3_0']=$umkm_jen2_ket3_0; | ||||||
|  | 					$data['umkm_jen3_ket1_0']=$umkm_jen3_ket1_0; | ||||||
|  | 					$data['umkm_jen3_ket2_0']=$umkm_jen3_ket2_0; | ||||||
|  | 					$data['umkm_jen3_ket3_0']=$umkm_jen3_ket3_0; | ||||||
|  | 
 | ||||||
|  | 					 | ||||||
|  | 					$omset_bln_jen1_0= $omset_jen1_0/12; | ||||||
|  | 					$omset_bln_jen2_0= $omset_jen2_0/12; | ||||||
|  | 					$omset_bln_jen3_0= $omset_jen3_0/12; | ||||||
|  | 
 | ||||||
|  | 					 | ||||||
|  | 
 | ||||||
|  | 					$data['umkm_jen1_0']=$umkm_jen1_0; | ||||||
|  | 					$data['umkm_jen2_0']=$umkm_jen2_0; | ||||||
|  | 					$data['umkm_jen3_0']=$umkm_jen3_0; | ||||||
|  | 
 | ||||||
|  | 					$data['omset_bln_jen1_0'] = $omset_bln_jen1_0; | ||||||
|  | 					$data['omset_bln_jen2_0'] = $omset_bln_jen2_0; | ||||||
|  | 					$data['omset_bln_jen3_0'] = $omset_bln_jen3_0; | ||||||
|  | 					$data['aset_jen1_0'] = $aset_jen1_0; | ||||||
|  | 					$data['aset_jen2_0'] = $aset_jen2_0; | ||||||
|  | 					$data['aset_jen3_0'] = $aset_jen3_0; | ||||||
|  | 					$data['naker_jen1_l_0'] = $naker_jen1_l_0; | ||||||
|  | 					$data['naker_jen1_p_0'] = $naker_jen1_p_0; | ||||||
|  | 					$data['naker_jen2_l_0'] = $naker_jen2_l_0; | ||||||
|  | 					$data['naker_jen2_p_0'] = $naker_jen2_p_0; | ||||||
|  | 					$data['naker_jen3_l_0'] = $naker_jen3_l_0; | ||||||
|  | 					$data['naker_jen3_p_0'] = $naker_jen3_p_0; | ||||||
|  | 
 | ||||||
|  | 					//komulatif
 | ||||||
|  | 				$data['omset_0'] = $omset_bln_jen1_0+$omset_bln_jen2_0+$omset_bln_jen3_0; | ||||||
|  | 				$data['aset_0'] = $aset_jen1_0+$aset_jen2_0+$aset_jen3_0; | ||||||
|  | 				$data['umkm_0'] = $umkm_jen1_0+$umkm_jen2_0+$umkm_jen3_0; | ||||||
|  | 				$naker_0 = $naker_jen1_l_0+$naker_jen2_l_0+$naker_jen3_l_0; | ||||||
|  | 				$data['naker_0'] = $naker_0+$naker_jen1_p_0+$naker_jen2_p_0+$naker_jen3_p_0; | ||||||
|  | 				$data['mikro_0'] = $umkm_jen1_ket1_0+$umkm_jen2_ket1_0+$umkm_jen3_ket1_0; | ||||||
|  | 				$data['kecil_0'] = $umkm_jen1_ket2_0+$umkm_jen2_ket2_0+$umkm_jen3_ket2_0; | ||||||
|  | 				$data['menengah_0'] = $umkm_jen1_ket3_0+$umkm_jen2_ket3_0+$umkm_jen3_ket3_0; | ||||||
|  | 
 | ||||||
|  | 					 | ||||||
|  | 					 | ||||||
|  | 				} | ||||||
|  | 				 | ||||||
|  | 				$data['msg'] = 'found'; | ||||||
|  | 			} else { | ||||||
|  | 				$data['msg'] = 'empty'; | ||||||
|  | 			} | ||||||
|  | 			 | ||||||
|  | 
 | ||||||
|  | 			 | ||||||
|  | 			$data['user_logged'] = $this->session->userdata('user_logged'); | ||||||
|  | 			 | ||||||
|  | 			$this->load->view('admin/laporanexcel',$data); | ||||||
|  | 		 | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	 | ||||||
|  | } | ||||||
|  | @ -0,0 +1,280 @@ | ||||||
|  | <?php | ||||||
|  | defined('BASEPATH') OR exit('No direct script access allowed'); | ||||||
|  | 
 | ||||||
|  | class LaporanPdf extends CI_Controller { | ||||||
|  | 
 | ||||||
|  | 	public function __construct() | ||||||
|  |     { | ||||||
|  | 		 | ||||||
|  |         parent::__construct(); | ||||||
|  |         $this->load->model("UserModel"); | ||||||
|  |         $this->load->model("LaporanModel"); | ||||||
|  |         $this->load->model("KategoriModel"); | ||||||
|  |         $this->load->model("JenisModel"); | ||||||
|  | 
 | ||||||
|  | 		if($this->UserModel->isNotLogin()) { | ||||||
|  | 			redirect(site_url('login')); | ||||||
|  | 		} elseif(!($this->UserModel->isAdmin())) { | ||||||
|  | 			redirect(site_url('dashboard')); | ||||||
|  | 		}  | ||||||
|  | 			 | ||||||
|  | 		 | ||||||
|  |     } | ||||||
|  | 
 | ||||||
|  | 	public function index() | ||||||
|  | 	{ | ||||||
|  | 			 | ||||||
|  | 			//cek ada laporan tahunan atau tidak
 | ||||||
|  | 			$countlaporan = $this->LaporanModel->getLaporanCount(); | ||||||
|  | 			if($countlaporan>0){ | ||||||
|  | 				$year = $this->LaporanModel->getLastYearLaporan()->tahun; | ||||||
|  | 				$data['tahun'] = $year; | ||||||
|  | 				$lap_bulan = $this->LaporanModel->getBulanLaporanByYear($year); | ||||||
|  | 
 | ||||||
|  | 				$omset_jen1=0; | ||||||
|  | 				$omset_jen2=0; | ||||||
|  | 				$omset_jen3=0; | ||||||
|  | 				 | ||||||
|  | 				 | ||||||
|  | 
 | ||||||
|  | 				foreach($lap_bulan as $bulan){ | ||||||
|  | 					$umkm_jen1=0; | ||||||
|  | 					$umkm_jen2=0; | ||||||
|  | 					$umkm_jen3=0; | ||||||
|  | 
 | ||||||
|  | 					$umkm_jen1_ket1=0; | ||||||
|  | 					$umkm_jen1_ket2=0; | ||||||
|  | 					$umkm_jen1_ket3=0; | ||||||
|  | 					$umkm_jen2_ket1=0; | ||||||
|  | 					$umkm_jen2_ket2=0; | ||||||
|  | 					$umkm_jen2_ket3=0; | ||||||
|  | 					$umkm_jen3_ket1=0; | ||||||
|  | 					$umkm_jen3_ket2=0; | ||||||
|  | 					$umkm_jen3_ket3=0; | ||||||
|  | 					 | ||||||
|  | 					$aset_jen1=0; | ||||||
|  | 					$aset_jen2=0; | ||||||
|  | 					$aset_jen3=0; | ||||||
|  | 					$naker_jen1_l=0; | ||||||
|  | 					$naker_jen1_p=0; | ||||||
|  | 					$naker_jen2_l=0; | ||||||
|  | 					$naker_jen2_p=0; | ||||||
|  | 					$naker_jen3_l=0; | ||||||
|  | 					$naker_jen3_p=0; | ||||||
|  | 					$lap_kelurahan = $this->LaporanModel->getKelurahanByBulanAndYear($bulan->bulan,$year); | ||||||
|  | 					 | ||||||
|  | 					foreach($lap_kelurahan as $kelurahan){ | ||||||
|  | 						$laporan = $this->LaporanModel->getLaporanByBulanByYearByKelurahan($bulan->bulan,$year,$kelurahan->kelurahan); | ||||||
|  | 						$umkm_jen1= $umkm_jen1+$laporan->umkm_jen1_kat1+$laporan->umkm_jen1_kat2+$laporan->umkm_jen1_kat3; | ||||||
|  | 						$umkm_jen2= $umkm_jen2+$laporan->umkm_jen2_kat1+$laporan->umkm_jen2_kat2+$laporan->umkm_jen2_kat3; | ||||||
|  | 						$umkm_jen3= $umkm_jen3+$laporan->umkm_jen3_kat1+$laporan->umkm_jen3_kat2+$laporan->umkm_jen3_kat3; | ||||||
|  | 						$omset_jen1= $omset_jen1+$laporan->omset_jenis1; | ||||||
|  | 						$omset_jen2= $omset_jen2+$laporan->omset_jenis2; | ||||||
|  | 						$omset_jen3= $omset_jen3+$laporan->omset_jenis3; | ||||||
|  | 						$aset_jen1= $aset_jen1+$laporan->aset_jenis1; | ||||||
|  | 						$aset_jen2= $aset_jen2+$laporan->aset_jenis2; | ||||||
|  | 						$aset_jen3= $aset_jen3+$laporan->aset_jenis3; | ||||||
|  | 						$naker_jen1_l = $naker_jen1_l + $laporan->karyawan_jen1_l; | ||||||
|  | 						$naker_jen1_p = $naker_jen1_p + $laporan->karyawan_jen1_p; | ||||||
|  | 						$naker_jen2_l = $naker_jen2_l + $laporan->karyawan_jen2_l; | ||||||
|  | 						$naker_jen2_p = $naker_jen2_p + $laporan->karyawan_jen2_p; | ||||||
|  | 						$naker_jen3_l = $naker_jen3_l + $laporan->karyawan_jen3_l; | ||||||
|  | 						$naker_jen3_p = $naker_jen3_p + $laporan->karyawan_jen3_p; | ||||||
|  | 
 | ||||||
|  | 						$umkm_jen1_ket1=$umkm_jen1_ket1+$laporan->umkm_jen1_kat1; | ||||||
|  | 						$umkm_jen1_ket2=$umkm_jen1_ket2+$laporan->umkm_jen1_kat2; | ||||||
|  | 						$umkm_jen1_ket3=$umkm_jen1_ket3+$laporan->umkm_jen1_kat3; | ||||||
|  | 						$umkm_jen2_ket1=$umkm_jen2_ket1+$laporan->umkm_jen2_kat1; | ||||||
|  | 						$umkm_jen2_ket2=$umkm_jen2_ket2+$laporan->umkm_jen2_kat2; | ||||||
|  | 						$umkm_jen2_ket3=$umkm_jen2_ket3+$laporan->umkm_jen2_kat3; | ||||||
|  | 						$umkm_jen3_ket1=$umkm_jen3_ket1+$laporan->umkm_jen3_kat1; | ||||||
|  | 						$umkm_jen3_ket2=$umkm_jen3_ket2+$laporan->umkm_jen3_kat2; | ||||||
|  | 						$umkm_jen3_ket3=$umkm_jen3_ket3+$laporan->umkm_jen3_kat3; | ||||||
|  | 						 | ||||||
|  | 					} | ||||||
|  | 					 | ||||||
|  | 					 | ||||||
|  | 				} | ||||||
|  | 
 | ||||||
|  | 				$data['umkm_jen1_ket1']=$umkm_jen1_ket1; | ||||||
|  | 				$data['umkm_jen1_ket2']=$umkm_jen1_ket2; | ||||||
|  | 				$data['umkm_jen1_ket3']=$umkm_jen1_ket3; | ||||||
|  | 				$data['umkm_jen2_ket1']=$umkm_jen2_ket1; | ||||||
|  | 				$data['umkm_jen2_ket2']=$umkm_jen2_ket2; | ||||||
|  | 				$data['umkm_jen2_ket3']=$umkm_jen2_ket3; | ||||||
|  | 				$data['umkm_jen3_ket1']=$umkm_jen3_ket1; | ||||||
|  | 				$data['umkm_jen3_ket2']=$umkm_jen3_ket2; | ||||||
|  | 				$data['umkm_jen3_ket3']=$umkm_jen3_ket3; | ||||||
|  | 
 | ||||||
|  | 				 | ||||||
|  | 				$omset_bln_jen1= $omset_jen1/12; | ||||||
|  | 				$omset_bln_jen2= $omset_jen2/12; | ||||||
|  | 				$omset_bln_jen3= $omset_jen3/12; | ||||||
|  | 
 | ||||||
|  | 				 | ||||||
|  | 
 | ||||||
|  | 				$data['umkm_jen1']=$umkm_jen1; | ||||||
|  | 				$data['umkm_jen2']=$umkm_jen2; | ||||||
|  | 				$data['umkm_jen3']=$umkm_jen3; | ||||||
|  | 
 | ||||||
|  | 				$data['omset_bln_jen1'] = $omset_bln_jen1; | ||||||
|  | 				$data['omset_bln_jen2'] = $omset_bln_jen2; | ||||||
|  | 				$data['omset_bln_jen3'] = $omset_bln_jen3; | ||||||
|  | 
 | ||||||
|  | 				$data['aset_jen1'] = $aset_jen1; | ||||||
|  | 				$data['aset_jen2'] = $aset_jen2; | ||||||
|  | 				$data['aset_jen3'] = $aset_jen3; | ||||||
|  | 				$data['naker_jen1_l'] = $naker_jen1_l; | ||||||
|  | 				$data['naker_jen1_p'] = $naker_jen1_p; | ||||||
|  | 				$data['naker_jen2_l'] = $naker_jen2_l; | ||||||
|  | 				$data['naker_jen2_p'] = $naker_jen2_p; | ||||||
|  | 				$data['naker_jen3_l'] = $naker_jen3_l; | ||||||
|  | 				$data['naker_jen3_p'] = $naker_jen3_p; | ||||||
|  | 
 | ||||||
|  | 				//komulatif
 | ||||||
|  | 				$data['omset_1'] = $omset_bln_jen1+$omset_bln_jen2+$omset_bln_jen3; | ||||||
|  | 				$data['aset_1'] = $aset_jen1+$aset_jen2+$aset_jen3; | ||||||
|  | 				$data['umkm_1'] = $umkm_jen1+$umkm_jen2+$umkm_jen3; | ||||||
|  | 				$naker_1 = $naker_jen1_l+$naker_jen2_l+$naker_jen3_l; | ||||||
|  | 				$data['naker_1'] = $naker_1+$naker_jen1_p+$naker_jen2_p+$naker_jen3_p; | ||||||
|  | 				$data['mikro_1'] = $umkm_jen1_ket1+$umkm_jen2_ket1+$umkm_jen3_ket1; | ||||||
|  | 				$data['kecil_1'] = $umkm_jen1_ket2+$umkm_jen2_ket2+$umkm_jen3_ket2; | ||||||
|  | 				$data['menengah_1'] = $umkm_jen1_ket3+$umkm_jen2_ket3+$umkm_jen3_ket3; | ||||||
|  | 				 | ||||||
|  | 				 | ||||||
|  | 				//cek ada laporan tahun sebelumnya atau tidak
 | ||||||
|  | 				$countlaporanbefore = $this->LaporanModel->getLaporanBeforeCount(); | ||||||
|  | 				if($countlaporanbefore>0){ | ||||||
|  | 					$yearbefore = $this->LaporanModel->getLastYearLaporanBefore()->tahun; | ||||||
|  | 					$data['tahun_0'] = $yearbefore; | ||||||
|  | 
 | ||||||
|  | 					$lap_bulan_0 = $this->LaporanModel->getBulanLaporanByYear($yearbefore); | ||||||
|  | 
 | ||||||
|  | 					$omset_jen1_0=0; | ||||||
|  | 					$omset_jen2_0=0; | ||||||
|  | 					$omset_jen3_0=0; | ||||||
|  | 					 | ||||||
|  | 					 | ||||||
|  | 
 | ||||||
|  | 					foreach($lap_bulan_0 as $bulan_0){ | ||||||
|  | 						$umkm_jen1_0=0; | ||||||
|  | 						$umkm_jen2_0=0; | ||||||
|  | 						$umkm_jen3_0=0; | ||||||
|  | 
 | ||||||
|  | 						$umkm_jen1_ket1_0=0; | ||||||
|  | 						$umkm_jen1_ket2_0=0; | ||||||
|  | 						$umkm_jen1_ket3_0=0; | ||||||
|  | 						$umkm_jen2_ket1_0=0; | ||||||
|  | 						$umkm_jen2_ket2_0=0; | ||||||
|  | 						$umkm_jen2_ket3_0=0; | ||||||
|  | 						$umkm_jen3_ket1_0=0; | ||||||
|  | 						$umkm_jen3_ket2_0=0; | ||||||
|  | 						$umkm_jen3_ket3_0=0; | ||||||
|  | 						 | ||||||
|  | 						$aset_jen1_0=0; | ||||||
|  | 						$aset_jen2_0=0; | ||||||
|  | 						$aset_jen3_0=0; | ||||||
|  | 						$naker_jen1_l_0=0; | ||||||
|  | 						$naker_jen1_p_0=0; | ||||||
|  | 						$naker_jen2_l_0=0; | ||||||
|  | 						$naker_jen2_p_0=0; | ||||||
|  | 						$naker_jen3_l_0=0; | ||||||
|  | 						$naker_jen3_p_0=0; | ||||||
|  | 						$lap_kelurahan_0 = $this->LaporanModel->getKelurahanByBulanAndYear($bulan_0->bulan,$yearbefore); | ||||||
|  | 						 | ||||||
|  | 						foreach($lap_kelurahan_0 as $kelurahan_0){ | ||||||
|  | 							$laporan_0 = $this->LaporanModel->getLaporanByBulanByYearByKelurahan($bulan_0->bulan,$yearbefore,$kelurahan_0->kelurahan); | ||||||
|  | 							$umkm_jen1_0= $umkm_jen1_0+$laporan_0->umkm_jen1_kat1+$laporan_0->umkm_jen1_kat2+$laporan_0->umkm_jen1_kat3; | ||||||
|  | 							$umkm_jen2_0= $umkm_jen2_0+$laporan_0->umkm_jen2_kat1+$laporan_0->umkm_jen2_kat2+$laporan_0->umkm_jen2_kat3; | ||||||
|  | 							$umkm_jen3_0= $umkm_jen3_0+$laporan_0->umkm_jen3_kat1+$laporan_0->umkm_jen3_kat2+$laporan_0->umkm_jen3_kat3; | ||||||
|  | 							$omset_jen1_0= $omset_jen1_0+$laporan_0->omset_jenis1; | ||||||
|  | 							$omset_jen2_0= $omset_jen2_0+$laporan_0->omset_jenis2; | ||||||
|  | 							$omset_jen3_0= $omset_jen3_0+$laporan_0->omset_jenis3; | ||||||
|  | 							$aset_jen1_0= $aset_jen1_0+$laporan_0->aset_jenis1; | ||||||
|  | 							$aset_jen2_0= $aset_jen2_0+$laporan_0->aset_jenis2; | ||||||
|  | 							$aset_jen3_0= $aset_jen3_0+$laporan_0->aset_jenis3; | ||||||
|  | 							$naker_jen1_l_0 = $naker_jen1_l_0 + $laporan_0->karyawan_jen1_l; | ||||||
|  | 							$naker_jen1_p_0 = $naker_jen1_p_0 + $laporan_0->karyawan_jen1_p; | ||||||
|  | 							$naker_jen2_l_0 = $naker_jen2_l_0 + $laporan_0->karyawan_jen2_l; | ||||||
|  | 							$naker_jen2_p_0 = $naker_jen2_p_0 + $laporan_0->karyawan_jen2_p; | ||||||
|  | 							$naker_jen3_l_0 = $naker_jen3_l_0 + $laporan_0->karyawan_jen3_l; | ||||||
|  | 							$naker_jen3_p_0 = $naker_jen3_p_0 + $laporan_0->karyawan_jen3_p; | ||||||
|  | 
 | ||||||
|  | 							$umkm_jen1_ket1_0=$umkm_jen1_ket1_0+$laporan_0->umkm_jen1_kat1; | ||||||
|  | 							$umkm_jen1_ket2_0=$umkm_jen1_ket2_0+$laporan_0->umkm_jen1_kat2; | ||||||
|  | 							$umkm_jen1_ket3_0=$umkm_jen1_ket3_0+$laporan_0->umkm_jen1_kat3; | ||||||
|  | 							$umkm_jen2_ket1_0=$umkm_jen2_ket1_0+$laporan_0->umkm_jen2_kat1; | ||||||
|  | 							$umkm_jen2_ket2_0=$umkm_jen2_ket2_0+$laporan_0->umkm_jen2_kat2; | ||||||
|  | 							$umkm_jen2_ket3_0=$umkm_jen2_ket3_0+$laporan_0->umkm_jen2_kat3; | ||||||
|  | 							$umkm_jen3_ket1_0=$umkm_jen3_ket1_0+$laporan_0->umkm_jen3_kat1; | ||||||
|  | 							$umkm_jen3_ket2_0=$umkm_jen3_ket2_0+$laporan_0->umkm_jen3_kat2; | ||||||
|  | 							$umkm_jen3_ket3_0=$umkm_jen3_ket3_0+$laporan_0->umkm_jen3_kat3; | ||||||
|  | 							 | ||||||
|  | 						} | ||||||
|  | 						 | ||||||
|  | 						 | ||||||
|  | 					} | ||||||
|  | 
 | ||||||
|  | 					$data['umkm_jen1_ket1_0']=$umkm_jen1_ket1_0; | ||||||
|  | 					$data['umkm_jen1_ket2_0']=$umkm_jen1_ket2_0; | ||||||
|  | 					$data['umkm_jen1_ket3_0']=$umkm_jen1_ket3_0; | ||||||
|  | 					$data['umkm_jen2_ket1_0']=$umkm_jen2_ket1_0; | ||||||
|  | 					$data['umkm_jen2_ket2_0']=$umkm_jen2_ket2_0; | ||||||
|  | 					$data['umkm_jen2_ket3_0']=$umkm_jen2_ket3_0; | ||||||
|  | 					$data['umkm_jen3_ket1_0']=$umkm_jen3_ket1_0; | ||||||
|  | 					$data['umkm_jen3_ket2_0']=$umkm_jen3_ket2_0; | ||||||
|  | 					$data['umkm_jen3_ket3_0']=$umkm_jen3_ket3_0; | ||||||
|  | 
 | ||||||
|  | 					 | ||||||
|  | 					$omset_bln_jen1_0= $omset_jen1_0/12; | ||||||
|  | 					$omset_bln_jen2_0= $omset_jen2_0/12; | ||||||
|  | 					$omset_bln_jen3_0= $omset_jen3_0/12; | ||||||
|  | 
 | ||||||
|  | 					 | ||||||
|  | 
 | ||||||
|  | 					$data['umkm_jen1_0']=$umkm_jen1_0; | ||||||
|  | 					$data['umkm_jen2_0']=$umkm_jen2_0; | ||||||
|  | 					$data['umkm_jen3_0']=$umkm_jen3_0; | ||||||
|  | 
 | ||||||
|  | 					$data['omset_bln_jen1_0'] = $omset_bln_jen1_0; | ||||||
|  | 					$data['omset_bln_jen2_0'] = $omset_bln_jen2_0; | ||||||
|  | 					$data['omset_bln_jen3_0'] = $omset_bln_jen3_0; | ||||||
|  | 					$data['aset_jen1_0'] = $aset_jen1_0; | ||||||
|  | 					$data['aset_jen2_0'] = $aset_jen2_0; | ||||||
|  | 					$data['aset_jen3_0'] = $aset_jen3_0; | ||||||
|  | 					$data['naker_jen1_l_0'] = $naker_jen1_l_0; | ||||||
|  | 					$data['naker_jen1_p_0'] = $naker_jen1_p_0; | ||||||
|  | 					$data['naker_jen2_l_0'] = $naker_jen2_l_0; | ||||||
|  | 					$data['naker_jen2_p_0'] = $naker_jen2_p_0; | ||||||
|  | 					$data['naker_jen3_l_0'] = $naker_jen3_l_0; | ||||||
|  | 					$data['naker_jen3_p_0'] = $naker_jen3_p_0; | ||||||
|  | 
 | ||||||
|  | 					//komulatif
 | ||||||
|  | 				$data['omset_0'] = $omset_bln_jen1_0+$omset_bln_jen2_0+$omset_bln_jen3_0; | ||||||
|  | 				$data['aset_0'] = $aset_jen1_0+$aset_jen2_0+$aset_jen3_0; | ||||||
|  | 				$data['umkm_0'] = $umkm_jen1_0+$umkm_jen2_0+$umkm_jen3_0; | ||||||
|  | 				$naker_0 = $naker_jen1_l_0+$naker_jen2_l_0+$naker_jen3_l_0; | ||||||
|  | 				$data['naker_0'] = $naker_0+$naker_jen1_p_0+$naker_jen2_p_0+$naker_jen3_p_0; | ||||||
|  | 				$data['mikro_0'] = $umkm_jen1_ket1_0+$umkm_jen2_ket1_0+$umkm_jen3_ket1_0; | ||||||
|  | 				$data['kecil_0'] = $umkm_jen1_ket2_0+$umkm_jen2_ket2_0+$umkm_jen3_ket2_0; | ||||||
|  | 				$data['menengah_0'] = $umkm_jen1_ket3_0+$umkm_jen2_ket3_0+$umkm_jen3_ket3_0; | ||||||
|  | 
 | ||||||
|  | 					 | ||||||
|  | 					 | ||||||
|  | 				} | ||||||
|  | 				 | ||||||
|  | 				$data['msg'] = 'found'; | ||||||
|  | 			} else { | ||||||
|  | 				$data['msg'] = 'empty'; | ||||||
|  | 			} | ||||||
|  | 			 | ||||||
|  | 
 | ||||||
|  | 			 | ||||||
|  | 			$data['user_logged'] = $this->session->userdata('user_logged'); | ||||||
|  | 			 | ||||||
|  | 			$this->load->view('admin/laporanpdf',$data); | ||||||
|  | 		 | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	 | ||||||
|  | } | ||||||
|  | @ -90,81 +90,78 @@ | ||||||
|                              |                              | ||||||
|                         </ul> |                         </ul> | ||||||
| 
 | 
 | ||||||
|  |                          | ||||||
|  | 
 | ||||||
|                         <div class="mt-3"> |                         <div class="mt-3"> | ||||||
|                             <?php if(isset($tahun_0)){?>
 |                             <?php if(isset($tahun_0)){?>
 | ||||||
| 
 | 
 | ||||||
|                                 <div class="card"> |                                 <div class="card"> | ||||||
|                                     <div class="card-header bg-primary text-white"> |                                     <div class="card-header bg-primary text-white"> | ||||||
|                                         Laporan Tahunan |                                         <h6>Monografi Kota Magelang Tahun <?php echo $tahun ?></h6>
 | ||||||
|                                     </div> |                                     </div> | ||||||
| 
 | 
 | ||||||
|                                     <div class="card-body"> |                                     <div class="card-body"> | ||||||
|                                         <div class="row"> |                                         <div class="row"> | ||||||
|                                             <div class="col col-md-12 col-lg-12 col-sm-12 col-12"> |                                             <div class="col col-12 col-sm-12 col-md-5 col-lg-5"> | ||||||
|                                                 <h4>Monografi Kota Magelang Tahun <?php echo $tahun ?></h4>
 |  | ||||||
|                                             </div> |  | ||||||
|                                         </div> |  | ||||||
|                                         <div class="row"> |  | ||||||
|                                             <div class="col col-5"> |  | ||||||
|                                                 <div class="row"> |                                                 <div class="row"> | ||||||
|                                                     <canvas id="myChart" width="400" height="300"></canvas> |                                                     <canvas id="myChart" width="400" height="300"></canvas> | ||||||
|                                                 </div> |                                                 </div> | ||||||
|                                                 <div class="row"> |                                                 <div class="row"> | ||||||
|                                                     <table class="table text-center text-nowarp table-responsive-md table-sm table-bordered table-striped"> |                                                     <table class="table text-center text-nowarp  table-sm table-bordered table-striped"> | ||||||
|                                                         <thead> |                                                         <thead> | ||||||
|                                                             <tr> |                                                             <tr> | ||||||
|                                                                 <th></th> |                                                                 <th></th> | ||||||
|                                                                 <th><span class="badge">Aset</span></th> |                                                                 <th><small>Aset</small></th> | ||||||
|                                                                 <th><span class="badge">Omset</span></th> |                                                                 <th><small>Omset</small></th> | ||||||
|                                                             </tr> |                                                             </tr> | ||||||
|                                                         </thead> |                                                         </thead> | ||||||
|                                                         <tbody> |                                                         <tbody> | ||||||
|                                                             <tr> |                                                             <tr> | ||||||
|                                                                 <td><span class="badge"><?php echo $tahun ?></span></td>
 |                                                                 <td><small><?php echo $tahun ?></small></td>
 | ||||||
|                                                                 <td><span class="badge"><?php echo rupiah($aset_1) ?></span></td>
 |                                                                 <td><small><?php echo rupiah($aset_1) ?></small></td>
 | ||||||
|                                                                 <td><span class="badge"><?php echo rupiah($omset_1) ?></span></td>
 |                                                                 <td><small><?php echo rupiah($omset_1) ?></small></td>
 | ||||||
|                                                             </tr> |                                                             </tr> | ||||||
|                                                             <tr> |                                                             <tr> | ||||||
|                                                                 <td><span class="badge"><?php echo $tahun_0 ?></span></td>
 |                                                                 <td><small><?php echo $tahun_0 ?></small></td>
 | ||||||
|                                                                 <td><span class="badge"><?php echo rupiah($aset_0) ?></span></td>
 |                                                                 <td><small><?php echo rupiah($aset_0) ?></small></td>
 | ||||||
|                                                                 <td><span class="badge"><?php echo rupiah($omset_0) ?></span></td>
 |                                                                 <td><small><?php echo rupiah($omset_0) ?></small></td>
 | ||||||
|                                                             </tr> |                                                             </tr> | ||||||
|                                                         </tbody> |                                                         </tbody> | ||||||
|                                                     </table> |                                                     </table> | ||||||
|                                                 </div> |                                                 </div> | ||||||
|                                             </div> |                                             </div> | ||||||
|                                             <div class="col col-7"> |                                             <div class="col col col-12 col-sm-12 col-md-7 col-lg-7"> | ||||||
|                                                 <div class="row pl-2"> |                                                 <div class="row pl-2"> | ||||||
|                                                     <canvas id="myChart2" width="550" height="300"></canvas> |                                                     <canvas id="myChart2" width="550" height="300"></canvas> | ||||||
|                                                 </div> |                                                 </div> | ||||||
|                                                 <div class="row pl-2"> |                                                 <div class="row pl-2"> | ||||||
|                                                     <table class="table text-center table-responsive-md table-sm table-bordered table-striped"> |                                                     <table class="table text-center table-sm table-responsive-sm table-bordered table-striped"> | ||||||
|                                                         <thead> |                                                         <thead> | ||||||
|                                                             <tr> |                                                             <tr> | ||||||
|                                                                 <th></th> |                                                                 <th></th> | ||||||
|                                                                 <th><span class="badge">Jml UMKM</span></th> |                                                                 <th><small>Jml UMKM</small></th> | ||||||
|                                                                 <th><span class="badge">Tenaga Kerja</span></th> |                                                                 <th><small>Tenaga Kerja</small></th> | ||||||
|                                                                 <th><span class="badge">Mikro</span></th> |                                                                 <th><small>Mikro</small></th> | ||||||
|                                                                 <th><span class="badge">Kecil</span></th> |                                                                 <th><small>Kecil</small></th> | ||||||
|                                                                 <th><span class="badge">Menengah</span></th> |                                                                 <th><small>Menengah</small></th> | ||||||
|                                                             </tr> |                                                             </tr> | ||||||
|                                                         </thead> |                                                         </thead> | ||||||
|                                                         <tbody> |                                                         <tbody> | ||||||
|                                                             <tr> |                                                             <tr> | ||||||
|                                                                 <td><span class="badge"><?php echo $tahun ?></span></td>
 |                                                                 <td><small><?php echo $tahun ?></small></td>
 | ||||||
|                                                                 <td><span class="badge"><?php echo $umkm_1 ?></span></td>
 |                                                                 <td><small><?php echo $umkm_1 ?></small></td>
 | ||||||
|                                                                 <td><span class="badge"><?php echo $naker_1 ?></span></td>
 |                                                                 <td><small><?php echo $naker_1 ?></small></td>
 | ||||||
|                                                                 <td><span class="badge"><?php echo $mikro_1 ?></span></td>
 |                                                                 <td><small><?php echo $mikro_1 ?></small></td>
 | ||||||
|                                                                 <td><span class="badge"><?php echo $kecil_1 ?></span></td>
 |                                                                 <td><small><?php echo $kecil_1 ?></small></td>
 | ||||||
|                                                                 <td><span class="badge"><?php echo $menengah_1 ?></span></td>
 |                                                                 <td><small><?php echo $menengah_1 ?></small></td>
 | ||||||
|                                                             </tr> |                                                             </tr> | ||||||
|                                                             <tr> |                                                             <tr> | ||||||
|                                                             <td><span class="badge"><?php echo $tahun ?></span></td>
 |                                                             <td><small><?php echo $tahun ?></small></td>
 | ||||||
|                                                                 <td><span class="badge"><?php echo $umkm_0 ?></span></td>
 |                                                                 <td><small><?php echo $umkm_0 ?></small></td>
 | ||||||
|                                                                 <td><span class="badge"><?php echo $naker_0 ?></span></td>
 |                                                                 <td><small><?php echo $naker_0 ?></small></td>
 | ||||||
|                                                                 <td><span class="badge"><?php echo $mikro_0 ?></span></td>
 |                                                                 <td><small><?php echo $mikro_0 ?></small></td>
 | ||||||
|                                                                 <td><span class="badge"><?php echo $kecil_0 ?></span></td>
 |                                                                 <td><small><?php echo $kecil_0 ?></small></td>
 | ||||||
|                                                                 <td><span class="badge"><?php echo $menengah_0 ?></span></td>
 |                                                                 <td><small><?php echo $menengah_0 ?></small></td>
 | ||||||
|                                                             </tr> |                                                             </tr> | ||||||
|                                                         </tbody> |                                                         </tbody> | ||||||
|                                                     </table> |                                                     </table> | ||||||
|  | @ -181,58 +178,60 @@ | ||||||
|                              |                              | ||||||
|                             <div class="card"> |                             <div class="card"> | ||||||
|                                 <div class="card-header bg-primary text-white"> |                                 <div class="card-header bg-primary text-white"> | ||||||
|                                     Laporan Tahunan |                                     <div class="row"> | ||||||
|  |                                             <div class="col col-12 col-sm-12 col-md-8 col-lg-8"> | ||||||
|  |                                                 <h6>Data UMKM Kota Magelang Tahun <?php echo $tahun ?></h6>
 | ||||||
|  |                                             </div> | ||||||
|  |                                             <div class="col col-12 col-sm-12 col-md-4 col-lg-4 text-right"> | ||||||
|  |                                                     <a href="<?php echo base_url('index.php/')?>admin/laporanpdf" target="_blank" class="btn btn-sm btn-warning">Print / PDF</a> | ||||||
|  |                                                     <a href="<?php echo base_url('index.php/')?>admin/laporanexcel" target="_blank" class="btn btn-sm btn-success">Export Excel</a> | ||||||
|  |                                             </div> | ||||||
|  |                                         </div> | ||||||
|                                 </div> |                                 </div> | ||||||
|                                 <?php if($msg!=='empty'){?>
 |                                 <?php if($msg!=='empty'){?>
 | ||||||
| 
 | 
 | ||||||
|                                     <div class="card-body"> |                                     <div class="card-body"> | ||||||
|                                         <div class="row"> |  | ||||||
|                                             <div class="col col-md-12 col-lg-12 col-sm-12 col-12"> |  | ||||||
|                                                 <h4>Data UMKM Kota Magelang Tahun <?php echo $tahun ?></h4>
 |  | ||||||
|                                             </div> |  | ||||||
|                                         </div> |  | ||||||
|                                         <hr> |  | ||||||
|                                         <div class="row"> |                                         <div class="row"> | ||||||
|                                             <table class="table table-bordered table-sm text-center text-nowrap table-responsive-sm table-striped"> |                                             <table class="table table-bordered table-sm text-center text-nowrap table-responsive-sm table-striped"> | ||||||
|                                                     <thead class=""> |                                                 <thead class=""> | ||||||
|                                                         <tr> |                                                         <tr> | ||||||
|                                                             <th class="align-middle" colspan="3">Jumlah UMKM</th> |                                                             <th class="align-middle" colspan="3">Jumlah UMKM</th> | ||||||
|                                                             <th class="align-middle" colspan="3">Omset/Bulan</th> |                                                             <th class="align-middle" colspan="3">Omset/Bulan</th> | ||||||
|                                                         </tr> |                                                         </tr> | ||||||
|                                                      |                                                      | ||||||
|                                                         <tr> |                                                         <tr> | ||||||
|                                                             <th>P</th> |                                                             <th><small>P</small></th> | ||||||
|                                                             <th>J</th> |                                                             <th><small>J</small></th> | ||||||
|                                                             <th>I</th> |                                                             <th><small>I</small></th> | ||||||
| 
 | 
 | ||||||
|                                                             <th>P</th> |                                                             <th><small>P</small></th> | ||||||
|                                                             <th>J</th> |                                                             <th><small>J</small></th> | ||||||
|                                                             <th>I</th> |                                                             <th><small>I</small></th> | ||||||
|                                                         </tr> |                                                         </tr> | ||||||
|                                                     </thead> |                                                     </thead> | ||||||
|                                                     <tbody> |                                                     <tbody> | ||||||
|                                                         <tr> |                                                         <tr> | ||||||
|                                                             <td><?php echo $umkm_jen1 ?></td>
 |                                                             <td><small><?php echo $umkm_jen1 ?></small></td>
 | ||||||
|                                                             <td><?php echo $umkm_jen2 ?></td>
 |                                                             <td><small><?php echo $umkm_jen2 ?></small></td>
 | ||||||
|                                                             <td><?php echo $umkm_jen3 ?></td>
 |                                                             <td><small><?php echo $umkm_jen3 ?></small></td>
 | ||||||
| 
 | 
 | ||||||
|                                                             <td><?php echo rupiah($omset_bln_jen1) ?></td>
 |                                                             <td><small><?php echo rupiah($omset_bln_jen1) ?></small></td>
 | ||||||
|                                                             <td><?php echo rupiah($omset_bln_jen2) ?></td>
 |                                                             <td><small><?php echo rupiah($omset_bln_jen2) ?></small></td>
 | ||||||
|                                                             <td><?php echo rupiah($omset_bln_jen3) ?></td>
 |                                                             <td><small><?php echo rupiah($omset_bln_jen3) ?></small></td>
 | ||||||
|                                                         </tr> |                                                         </tr> | ||||||
|                                                     </tbody> |                                                     </tbody> | ||||||
|                                                     <tfoot> |                                                     <tfoot> | ||||||
|                                                         <tr> |                                                         <tr> | ||||||
|                                                             <th class="align-middle" colspan="3">Total</th> |                                                             <th class="align-middle" colspan="3"><small>Total</small></th> | ||||||
|                                                             <th class="align-middle" colspan="3">Total</th> |                                                             <th class="align-middle" colspan="3"><small>Total</small></th> | ||||||
|                                                         </tr> |                                                         </tr> | ||||||
|                                                         <?php  |                                                         <?php  | ||||||
|                                                             $umkm = $umkm_jen1+$umkm_jen2+$umkm_jen3; |                                                             $umkm = $umkm_jen1+$umkm_jen2+$umkm_jen3; | ||||||
|                                                             $omset = $omset_bln_jen1+$omset_bln_jen2+$omset_bln_jen3; |                                                             $omset = $omset_bln_jen1+$omset_bln_jen2+$omset_bln_jen3; | ||||||
|                                                         ?>
 |                                                         ?>
 | ||||||
|                                                         <tr> |                                                         <tr> | ||||||
|                                                             <th class="align-middle" colspan="3" ><?php echo $umkm ?></th>
 |                                                             <th class="align-middle" colspan="3" ><small><?php echo $umkm ?></small></th>
 | ||||||
|                                                             <th class="align-middle" colspan="3" ><?php echo rupiah($omset) ?></th>
 |                                                             <th class="align-middle" colspan="3" ><small><?php echo rupiah($omset) ?></small></th>
 | ||||||
|                                                         </tr> |                                                         </tr> | ||||||
|                                                     </tfoot> |                                                     </tfoot> | ||||||
|                                             </table> |                                             </table> | ||||||
|  | @ -246,46 +245,46 @@ | ||||||
|                                                         <th class="align-middle" colspan="6" >Jumlah Naker</th> |                                                         <th class="align-middle" colspan="6" >Jumlah Naker</th> | ||||||
|                                                     </tr> |                                                     </tr> | ||||||
|                                                     <tr> |                                                     <tr> | ||||||
|                                                         <th colspan="2" >P</th> |                                                         <th colspan="2" ><small>P</small></th> | ||||||
|                                                         <th colspan="2" >J</th> |                                                         <th colspan="2" ><small>J</small></th> | ||||||
|                                                         <th colspan="2" >I</th> |                                                         <th colspan="2" ><small>I</small></th> | ||||||
|                                                     </tr> |                                                     </tr> | ||||||
|                                                     <tr> |                                                     <tr> | ||||||
|                                                         <th>P</th> |                                                         <th><small>P</small></th> | ||||||
|                                                         <th>J</th> |                                                         <th><small>J</small></th> | ||||||
|                                                         <th>I</th> |                                                         <th><small>I</small></th> | ||||||
| 
 | 
 | ||||||
|                                                         <th>L</th> |                                                         <th><small>L</small></th> | ||||||
|                                                         <th>P</th> |                                                         <th><small>P</small></th> | ||||||
| 
 | 
 | ||||||
|                                                         <th>L</th> |                                                         <th><small>L</small></th> | ||||||
|                                                         <th>P</th> |                                                         <th><small>P</small></th> | ||||||
| 
 | 
 | ||||||
|                                                         <th>L</th> |                                                         <th><small>L</small></th> | ||||||
|                                                         <th>P</th> |                                                         <th><small>P</small></th> | ||||||
| 
 | 
 | ||||||
|                                                     </tr> |                                                     </tr> | ||||||
|                                                 </thead> |                                                 </thead> | ||||||
|                                                 <tbody> |                                                 <tbody> | ||||||
|                                                     <tr> |                                                     <tr> | ||||||
|                                                         <td><?php echo rupiah($aset_jen1) ?></td>
 |                                                         <td><small><?php echo rupiah($aset_jen1) ?></small></td>
 | ||||||
|                                                         <td><?php echo rupiah($aset_jen2) ?></td>
 |                                                         <td><small><?php echo rupiah($aset_jen2) ?></small></td>
 | ||||||
|                                                         <td><?php echo rupiah($aset_jen3) ?></td>
 |                                                         <td><small><?php echo rupiah($aset_jen3) ?></small></td>
 | ||||||
| 
 | 
 | ||||||
|                                                         <td><?php echo $naker_jen1_l ?></td>
 |                                                         <td><small><?php echo $naker_jen1_l ?></small></td>
 | ||||||
|                                                         <td><?php echo $naker_jen1_p ?></td>
 |                                                         <td><small><?php echo $naker_jen1_p ?></small></td>
 | ||||||
| 
 | 
 | ||||||
|                                                         <td><?php echo $naker_jen2_l ?></td>
 |                                                         <td><small><?php echo $naker_jen2_l ?></small></td>
 | ||||||
|                                                         <td><?php echo $naker_jen2_p ?></td>
 |                                                         <td><small><?php echo $naker_jen2_p ?></small></td>
 | ||||||
| 
 | 
 | ||||||
|                                                         <td><?php echo $naker_jen3_l ?></td>
 |                                                         <td><small><?php echo $naker_jen3_l ?></small></td>
 | ||||||
|                                                         <td><?php echo $naker_jen3_p ?></td>
 |                                                         <td><small><?php echo $naker_jen3_p ?></small></td>
 | ||||||
|                                                     </tr> |                                                     </tr> | ||||||
|                                                 </tbody> |                                                 </tbody> | ||||||
|                                                 <tfoot> |                                                 <tfoot> | ||||||
|                                                         <tr> |                                                         <tr> | ||||||
|                                                             <th class="align-middle" colspan="3">Total</th> |                                                             <th class="align-middle" colspan="3"><small>Total</small></th> | ||||||
|                                                             <th class="align-middle" colspan="6">Total</th> |                                                             <th class="align-middle" colspan="6"><small>Total</small></th> | ||||||
|                                                         </tr> |                                                         </tr> | ||||||
|                                                         <?php  |                                                         <?php  | ||||||
|                                                             $naker = $naker_jen1_l+$naker_jen2_l+$naker_jen3_l; |                                                             $naker = $naker_jen1_l+$naker_jen2_l+$naker_jen3_l; | ||||||
|  | @ -293,8 +292,8 @@ | ||||||
|                                                             $aset = $aset_jen1+$aset_jen2+$aset_jen3; |                                                             $aset = $aset_jen1+$aset_jen2+$aset_jen3; | ||||||
|                                                         ?>
 |                                                         ?>
 | ||||||
|                                                         <tr> |                                                         <tr> | ||||||
|                                                             <th class="align-middle" colspan="3" ><?php echo rupiah($aset) ?></th>
 |                                                             <th class="align-middle" colspan="3" ><small><?php echo rupiah($aset) ?></small></th>
 | ||||||
|                                                             <th class="align-middle" colspan="6" ><?php echo $naker ?></th>
 |                                                             <th class="align-middle" colspan="6" ><small><?php echo $naker ?></small></th>
 | ||||||
|                                                         </tr> |                                                         </tr> | ||||||
|                                                     </tfoot> |                                                     </tfoot> | ||||||
|                                             </table> |                                             </table> | ||||||
|  | @ -307,43 +306,43 @@ | ||||||
|                                                         <th class="align-middle" colspan="9" >Klasifikasi</th> |                                                         <th class="align-middle" colspan="9" >Klasifikasi</th> | ||||||
|                                                     </tr> |                                                     </tr> | ||||||
|                                                     <tr> |                                                     <tr> | ||||||
|                                                         <th colspan="3" >P</th> |                                                         <th colspan="3" ><small>P</small></th> | ||||||
|                                                         <th colspan="3" >J</th> |                                                         <th colspan="3" ><small>J</small></th> | ||||||
|                                                         <th colspan="3" >I</th> |                                                         <th colspan="3" ><small>I</small></th> | ||||||
|                                                     </tr> |                                                     </tr> | ||||||
|                                                     <tr> |                                                     <tr> | ||||||
|                                                         <th>M</th> |                                                         <th><small>M</small></th> | ||||||
|                                                         <th>K</th> |                                                         <th><small>K</small></th> | ||||||
|                                                         <th>MN</th> |                                                         <th><small>MN</small></th> | ||||||
| 
 | 
 | ||||||
|                                                         <th>M</th> |                                                         <th><small>M</small></th> | ||||||
|                                                         <th>K</th> |                                                         <th><small>K</small></th> | ||||||
|                                                         <th>MN</th> |                                                         <th><small>MN</small></th> | ||||||
| 
 | 
 | ||||||
|                                                         <th>M</th> |                                                         <th><small>M</small></th> | ||||||
|                                                         <th>K</th> |                                                         <th><small>K</small></th> | ||||||
|                                                         <th>MN</th> |                                                         <th><small>MN</small></th> | ||||||
| 
 | 
 | ||||||
|                                                     </tr> |                                                     </tr> | ||||||
|                                                 </thead> |                                                 </thead> | ||||||
|                                                 <tbody> |                                                 <tbody> | ||||||
|                                                     <tr> |                                                     <tr> | ||||||
|                                                         <td><?php echo $umkm_jen1_ket1?></td>
 |                                                         <td><small><?php echo $umkm_jen1_ket1?></small></td>
 | ||||||
|                                                         <td><?php echo $umkm_jen1_ket2?></td>
 |                                                         <td><small><?php echo $umkm_jen1_ket2?></small></td>
 | ||||||
|                                                         <td><?php echo $umkm_jen1_ket3?></td>
 |                                                         <td><small><?php echo $umkm_jen1_ket3?></small></td>
 | ||||||
|                                                         <td><?php echo $umkm_jen2_ket1?></td>
 |                                                         <td><small><?php echo $umkm_jen2_ket1?></small></td>
 | ||||||
|                                                         <td><?php echo $umkm_jen2_ket2?></td>
 |                                                         <td><small><?php echo $umkm_jen2_ket2?></small></td>
 | ||||||
|                                                         <td><?php echo $umkm_jen2_ket3?></td>
 |                                                         <td><small><?php echo $umkm_jen2_ket3?></small></td>
 | ||||||
|                                                         <td><?php echo $umkm_jen3_ket1?></td>
 |                                                         <td><small><?php echo $umkm_jen3_ket1?></small></td>
 | ||||||
|                                                         <td><?php echo $umkm_jen3_ket2?></td>
 |                                                         <td><small><?php echo $umkm_jen3_ket2?></small></td>
 | ||||||
|                                                         <td><?php echo $umkm_jen3_ket3?></td>
 |                                                         <td><small><?php echo $umkm_jen3_ket3?></small></td>
 | ||||||
|                                                     </tr> |                                                     </tr> | ||||||
|                                                 </tbody> |                                                 </tbody> | ||||||
|                                                 <tfoot> |                                                 <tfoot> | ||||||
|                                                     <tr> |                                                     <tr> | ||||||
|                                                         <th class="align-middle" colspan="3">Mikro</th> |                                                         <th class="align-middle" colspan="3"><small>Mikro</small></th> | ||||||
|                                                         <th class="align-middle" colspan="3">Kecil</th> |                                                         <th class="align-middle" colspan="3"><small>Kecil</small></th> | ||||||
|                                                         <th class="align-middle" colspan="3">Menengah</th> |                                                         <th class="align-middle" colspan="3"><small>Menengah</small></th> | ||||||
|                                                     </tr> |                                                     </tr> | ||||||
|                                                     <?php  |                                                     <?php  | ||||||
|                                                         $mikro = $umkm_jen1_ket1+$umkm_jen2_ket1+$umkm_jen3_ket1; |                                                         $mikro = $umkm_jen1_ket1+$umkm_jen2_ket1+$umkm_jen3_ket1; | ||||||
|  | @ -351,9 +350,9 @@ | ||||||
|                                                         $menengah = $umkm_jen1_ket3+$umkm_jen2_ket3+$umkm_jen3_ket3; |                                                         $menengah = $umkm_jen1_ket3+$umkm_jen2_ket3+$umkm_jen3_ket3; | ||||||
|                                                     ?>
 |                                                     ?>
 | ||||||
|                                                     <tr> |                                                     <tr> | ||||||
|                                                         <th class="align-middle" colspan="3" ><?php echo $mikro ?></th>
 |                                                         <th class="align-middle" colspan="3" ><small><?php echo $mikro ?></small></th>
 | ||||||
|                                                         <th class="align-middle" colspan="3" ><?php echo $kecil ?></th>
 |                                                         <th class="align-middle" colspan="3" ><small><?php echo $kecil ?></small></th>
 | ||||||
|                                                         <th class="align-middle" colspan="3" ><?php echo $menengah ?></th>
 |                                                         <th class="align-middle" colspan="3" ><small><?php echo $menengah ?></small></th>
 | ||||||
|                                                     </tr> |                                                     </tr> | ||||||
|                                                 </tfoot> |                                                 </tfoot> | ||||||
|                                             </table> |                                             </table> | ||||||
|  |  | ||||||
|  | @ -0,0 +1,269 @@ | ||||||
|  | <?php | ||||||
|  |     function rupiah($angka){ | ||||||
|  | 	 | ||||||
|  |         $hasil_rupiah = "Rp " . number_format($angka,2,',','.'); | ||||||
|  |         return $hasil_rupiah; | ||||||
|  |       | ||||||
|  |     } | ||||||
|  | ?>
 | ||||||
|  | <!doctype html> | ||||||
|  | <html lang="en"> | ||||||
|  | <head> | ||||||
|  | <!-- Required meta tags --> | ||||||
|  | <meta charset="utf-8"> | ||||||
|  | <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||||||
|  | 
 | ||||||
|  | <link rel="icon" type="image/png" href="../../assets/images/favicon.png" /> | ||||||
|  | 
 | ||||||
|  | <title>Aplikasi UMKM</title> | ||||||
|  | <style> | ||||||
|  |     table{ | ||||||
|  |         border:solid 1px black; | ||||||
|  |         padding-right:5px; | ||||||
|  |         padding-left:5px; | ||||||
|  |         margin-top:10px; | ||||||
|  |         margin-bottom:20px; | ||||||
|  |         text-align: center; | ||||||
|  |         width:1500px; | ||||||
|  |     } | ||||||
|  |     th{ | ||||||
|  |         padding-right:1px; | ||||||
|  |         padding-left:1px; | ||||||
|  |         padding-top:2px; | ||||||
|  |         padding-bottom:2px; | ||||||
|  |         border:solid 1px black; | ||||||
|  |     } | ||||||
|  |     thead{ | ||||||
|  |         background-color: #ccc;
 | ||||||
|  |     } | ||||||
|  |     td{ | ||||||
|  |         padding-right:1px; | ||||||
|  |         padding-left:1px; | ||||||
|  |         padding-top:2px; | ||||||
|  |         padding-bottom:2px; | ||||||
|  |         text-align: center; | ||||||
|  |         border:solid 1px black; | ||||||
|  |     } | ||||||
|  |     .judul{ | ||||||
|  |         font-weight: bold; | ||||||
|  |         text-align: center; | ||||||
|  |         width: 1500px; | ||||||
|  |         font-size: 20px; | ||||||
|  |     } | ||||||
|  |     .spasi{ | ||||||
|  |         height:40px; | ||||||
|  |         content: ' '; | ||||||
|  |         min-height: 40px; | ||||||
|  |     } | ||||||
|  | </style> | ||||||
|  | </head> | ||||||
|  | <body>   | ||||||
|  |     <?php | ||||||
|  |         header("Content-type: application/vnd-ms-excel"); | ||||||
|  |         header("Content-Disposition: attachment; filename=Rekap_Data_UMKM_Kota_MGL_". $tahun.".xls"); | ||||||
|  | 	?>   
 | ||||||
|  |         <div class="spasi"> </div>             | ||||||
|  |         <div class="judul"> | ||||||
|  |             REKAP DATA UMKM TAHUN <?php echo $tahun ?> <br>
 | ||||||
|  |             KOTA MAGELANG | ||||||
|  |         </div> | ||||||
|  |         <div class="spasi"> </div> | ||||||
|  |         <?php if($msg!=='empty'){?>
 | ||||||
|  |             <div> | ||||||
|  |                 <table> | ||||||
|  |                     <thead> | ||||||
|  |                             <tr> | ||||||
|  |                                 <th colspan="3">Jumlah UMKM</th> | ||||||
|  |                                 <th colspan="3">Omset/Bulan</th> | ||||||
|  |                                 <th colspan="3">Aset</th> | ||||||
|  |                                 <th colspan="6" >Jumlah Naker</th> | ||||||
|  |                                 <th colspan="9" >Klasifikasi</th> | ||||||
|  |                             </tr> | ||||||
|  | 
 | ||||||
|  |                              | ||||||
|  |                          | ||||||
|  |                             <tr> | ||||||
|  |                                 <th rowspan="2">P</th> | ||||||
|  |                                 <th rowspan="2">J</th> | ||||||
|  |                                 <th rowspan="2">I</th> | ||||||
|  | 
 | ||||||
|  |                                 <th rowspan="2">P</th> | ||||||
|  |                                 <th rowspan="2">J</th> | ||||||
|  |                                 <th rowspan="2">I</th> | ||||||
|  | 
 | ||||||
|  |                                 <th rowspan="2">P</th> | ||||||
|  |                                 <th rowspan="2">J</th> | ||||||
|  |                                 <th rowspan="2">I</th> | ||||||
|  | 
 | ||||||
|  |                                 <th colspan="2">P</th> | ||||||
|  |                                 <th colspan="2">J</th> | ||||||
|  |                                 <th colspan="2">I</th> | ||||||
|  | 
 | ||||||
|  |                                 <th colspan="3">P</th> | ||||||
|  |                                 <th colspan="3">J</th> | ||||||
|  |                                 <th colspan="3">I</th> | ||||||
|  |                             </tr> | ||||||
|  | 
 | ||||||
|  |                             <tr> | ||||||
|  |                                 <th>L</th> | ||||||
|  |                                 <th>P</th> | ||||||
|  | 
 | ||||||
|  |                                 <th>L</th> | ||||||
|  |                                 <th>P</th> | ||||||
|  | 
 | ||||||
|  |                                 <th>L</th> | ||||||
|  |                                 <th>P</th> | ||||||
|  | 
 | ||||||
|  |                                 <th>MK</th> | ||||||
|  |                                 <th>K</th> | ||||||
|  |                                 <th>MN</th> | ||||||
|  | 
 | ||||||
|  |                                 <th>MK</th> | ||||||
|  |                                 <th>K</th> | ||||||
|  |                                 <th>MN</th> | ||||||
|  | 
 | ||||||
|  |                                 <th>MK</th> | ||||||
|  |                                 <th>K</th> | ||||||
|  |                                 <th>MN</th> | ||||||
|  |                             </tr> | ||||||
|  |                         </thead> | ||||||
|  |                         <tbody> | ||||||
|  |                             <tr> | ||||||
|  |                                 <td><?php echo $umkm_jen1 ?></td>
 | ||||||
|  |                                 <td><?php echo $umkm_jen2 ?></td>
 | ||||||
|  |                                 <td><?php echo $umkm_jen3 ?></td>
 | ||||||
|  | 
 | ||||||
|  |                                 <td><?php echo rupiah($omset_bln_jen1) ?></td>
 | ||||||
|  |                                 <td><?php echo rupiah($omset_bln_jen2) ?></td>
 | ||||||
|  |                                 <td><?php echo rupiah($omset_bln_jen3) ?></td>
 | ||||||
|  | 
 | ||||||
|  |                                 <td><?php echo rupiah($aset_jen1) ?></td>
 | ||||||
|  |                                 <td><?php echo rupiah($aset_jen2) ?></td>
 | ||||||
|  |                                 <td><?php echo rupiah($aset_jen3) ?></td>
 | ||||||
|  | 
 | ||||||
|  |                                 <td><?php echo $naker_jen1_l ?></td>
 | ||||||
|  |                                 <td><?php echo $naker_jen1_p ?></td>
 | ||||||
|  | 
 | ||||||
|  |                                 <td><?php echo $naker_jen2_l ?></td>
 | ||||||
|  |                                 <td><?php echo $naker_jen2_p ?></td>
 | ||||||
|  | 
 | ||||||
|  |                                 <td><?php echo $naker_jen3_l ?></td>
 | ||||||
|  |                                 <td><?php echo $naker_jen3_p ?></td>
 | ||||||
|  | 
 | ||||||
|  |                                 <td><?php echo $umkm_jen1_ket1?></td>
 | ||||||
|  |                                 <td><?php echo $umkm_jen1_ket2?></td>
 | ||||||
|  |                                 <td><?php echo $umkm_jen1_ket3?></td>
 | ||||||
|  |                                 <td><?php echo $umkm_jen2_ket1?></td>
 | ||||||
|  |                                 <td><?php echo $umkm_jen2_ket2?></td>
 | ||||||
|  |                                 <td><?php echo $umkm_jen2_ket3?></td>
 | ||||||
|  |                                 <td><?php echo $umkm_jen3_ket1?></td>
 | ||||||
|  |                                 <td><?php echo $umkm_jen3_ket2?></td>
 | ||||||
|  |                                 <td><?php echo $umkm_jen3_ket3?></td>
 | ||||||
|  | 
 | ||||||
|  |                             </tr> | ||||||
|  |                         </tbody> | ||||||
|  |                         <tfoot> | ||||||
|  |                             <tr> | ||||||
|  |                                 <th colspan="3">Total</th> | ||||||
|  |                                 <th colspan="3">Total</th> | ||||||
|  |                                 <th colspan="3">Total</th> | ||||||
|  |                                 <th colspan="6">Total</th> | ||||||
|  |                                 <th colspan="3">Mikro</th> | ||||||
|  |                                 <th colspan="3">Kecil</th> | ||||||
|  |                                 <th colspan="3">Menengah</th> | ||||||
|  |                             </tr> | ||||||
|  |                             <?php  | ||||||
|  |                                 $umkm = $umkm_jen1+$umkm_jen2+$umkm_jen3; | ||||||
|  |                                 $omset = $omset_bln_jen1+$omset_bln_jen2+$omset_bln_jen3; | ||||||
|  | 
 | ||||||
|  |                                 $naker = $naker_jen1_l+$naker_jen2_l+$naker_jen3_l; | ||||||
|  |                                 $naker = $naker+$naker_jen1_p+$naker_jen2_p+$naker_jen3_p; | ||||||
|  |                                 $aset = $aset_jen1+$aset_jen2+$aset_jen3; | ||||||
|  | 
 | ||||||
|  |                                 $mikro = $umkm_jen1_ket1+$umkm_jen2_ket1+$umkm_jen3_ket1; | ||||||
|  |                                 $kecil = $umkm_jen1_ket2+$umkm_jen2_ket2+$umkm_jen3_ket2; | ||||||
|  |                                 $menengah = $umkm_jen1_ket3+$umkm_jen2_ket3+$umkm_jen3_ket3; | ||||||
|  |                             ?>
 | ||||||
|  |                             <tr> | ||||||
|  |                                 <th colspan="3"><?php echo $umkm ?></th>
 | ||||||
|  |                                 <th  colspan="3"><?php echo rupiah($omset) ?></th>
 | ||||||
|  |                                 <th colspan="3"><?php echo rupiah($aset) ?></th>
 | ||||||
|  |                                 <th colspan="6" ><?php echo $naker ?></th>
 | ||||||
|  |                                 <th colspan="3"><?php echo $mikro ?></th>
 | ||||||
|  |                                 <th colspan="3"><?php echo $kecil ?></th>
 | ||||||
|  |                                 <th colspan="3"><?php echo $menengah ?></th>
 | ||||||
|  |                             </tr> | ||||||
|  |                         </tfoot> | ||||||
|  |                 </table> | ||||||
|  |             </div> | ||||||
|  |             <div class="spasi"> </div> | ||||||
|  |             <?php if(isset($tahun_0)){?>
 | ||||||
|  |             <div class="judul"> | ||||||
|  |                PERBANDINGAN DENGAN TAHUN <?php echo $tahun_0 ?>
 | ||||||
|  |             </div> | ||||||
|  |             <div class="spasi"> </div> | ||||||
|  |             <div> | ||||||
|  |                 <table> | ||||||
|  |                     <thead> | ||||||
|  |                         <tr> | ||||||
|  |                             <th></th> | ||||||
|  |                             <th>Aset</th> | ||||||
|  |                             <th>Omset</th> | ||||||
|  |                         </tr> | ||||||
|  |                     </thead> | ||||||
|  |                     <tbody> | ||||||
|  |                         <tr> | ||||||
|  |                             <td><?php echo $tahun ?></td>
 | ||||||
|  |                             <td><?php echo rupiah($aset_1) ?></td>
 | ||||||
|  |                             <td><?php echo rupiah($omset_1) ?></td>
 | ||||||
|  |                         </tr> | ||||||
|  |                         <tr> | ||||||
|  |                             <td><?php echo $tahun_0 ?></td>
 | ||||||
|  |                             <td><?php echo rupiah($aset_0) ?></td>
 | ||||||
|  |                             <td><?php echo rupiah($omset_0) ?></td>
 | ||||||
|  |                         </tr> | ||||||
|  |                     </tbody> | ||||||
|  |                 </table> | ||||||
|  |             </div> | ||||||
|  |             <div class="spasi"> </div> | ||||||
|  |             <div> | ||||||
|  |                 <table> | ||||||
|  |                     <thead> | ||||||
|  |                         <tr> | ||||||
|  |                             <th></th> | ||||||
|  |                             <th>Jml UMKM</th> | ||||||
|  |                             <th>Tenaga Kerja</th> | ||||||
|  |                             <th>Mikro</th> | ||||||
|  |                             <th>Kecil</th> | ||||||
|  |                             <th>Menengah</th> | ||||||
|  |                         </tr> | ||||||
|  |                     </thead> | ||||||
|  |                     <tbody> | ||||||
|  |                         <tr> | ||||||
|  |                             <td><?php echo $tahun ?></td>
 | ||||||
|  |                             <td><?php echo $umkm_1 ?></td>
 | ||||||
|  |                             <td><?php echo $naker_1 ?></td>
 | ||||||
|  |                             <td><?php echo $mikro_1 ?></td>
 | ||||||
|  |                             <td><?php echo $kecil_1 ?></td>
 | ||||||
|  |                             <td><?php echo $menengah_1 ?></td>
 | ||||||
|  |                         </tr> | ||||||
|  |                         <tr> | ||||||
|  |                             <td><?php echo $tahun ?></td>
 | ||||||
|  |                             <td><?php echo $umkm_0 ?></td>
 | ||||||
|  |                             <td><?php echo $naker_0 ?></td>
 | ||||||
|  |                             <td><?php echo $mikro_0 ?></td>
 | ||||||
|  |                             <td><?php echo $kecil_0 ?></td>
 | ||||||
|  |                             <td><?php echo $menengah_0 ?></td>
 | ||||||
|  |                         </tr> | ||||||
|  |                     </tbody> | ||||||
|  |                 </table> | ||||||
|  |             </div> | ||||||
|  |         <?php } ?>
 | ||||||
|  | 
 | ||||||
|  |         <?php } else {?>      
 | ||||||
|  |             <div>Tidak ada laporan yang sudah dibuat saat ini.</div> | ||||||
|  |         <?php } ?>
 | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | </body> | ||||||
|  | </html> | ||||||
|  | @ -0,0 +1,286 @@ | ||||||
|  | <?php | ||||||
|  |     function rupiah($angka){ | ||||||
|  | 	 | ||||||
|  |         $hasil_rupiah = "Rp " . number_format($angka,2,',','.'); | ||||||
|  |         return $hasil_rupiah; | ||||||
|  |       | ||||||
|  |     } | ||||||
|  | ?>
 | ||||||
|  | <!doctype html> | ||||||
|  | <html lang="en"> | ||||||
|  | <head> | ||||||
|  | <!-- Required meta tags --> | ||||||
|  | <meta charset="utf-8"> | ||||||
|  | <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||||||
|  | 
 | ||||||
|  | <link rel="icon" type="image/png" href="../../assets/images/favicon.png" /> | ||||||
|  | 
 | ||||||
|  | <title>Aplikasi UMKM</title> | ||||||
|  | <style> | ||||||
|  |     table{ | ||||||
|  |         border:solid 1px black; | ||||||
|  |         padding-right:5px; | ||||||
|  |         padding-left:5px; | ||||||
|  |         margin-top:10px; | ||||||
|  |         margin-bottom:20px; | ||||||
|  |         text-align: center; | ||||||
|  |         width:1500px; | ||||||
|  |         font-size: 14px; | ||||||
|  |     } | ||||||
|  |     th{ | ||||||
|  |         padding-right:1px; | ||||||
|  |         padding-left:1px; | ||||||
|  |         padding-top:2px; | ||||||
|  |         padding-bottom:2px; | ||||||
|  |         border:solid 1px black; | ||||||
|  |     } | ||||||
|  |     thead{ | ||||||
|  |         background-color: #ccc;
 | ||||||
|  |     } | ||||||
|  |     td{ | ||||||
|  |         padding-right:1px; | ||||||
|  |         padding-left:1px; | ||||||
|  |         padding-top:2px; | ||||||
|  |         padding-bottom:2px; | ||||||
|  |         text-align: center; | ||||||
|  |         border:solid 1px black; | ||||||
|  |     } | ||||||
|  |     .judul{ | ||||||
|  |         font-weight: bold; | ||||||
|  |         text-align: center; | ||||||
|  |         width: 1500px; | ||||||
|  |         font-size: 20px; | ||||||
|  |     } | ||||||
|  |     .spasi{ | ||||||
|  |         height:40px; | ||||||
|  |         content: ' '; | ||||||
|  |         min-height: 40px; | ||||||
|  |     } | ||||||
|  | </style> | ||||||
|  | </head> | ||||||
|  | <body>   | ||||||
|  |       | ||||||
|  |         <div class="spasi"> </div>             | ||||||
|  |         <div class="judul"> | ||||||
|  |             REKAP DATA UMKM TAHUN <?php echo $tahun ?> <br>
 | ||||||
|  |             KOTA MAGELANG | ||||||
|  |         </div> | ||||||
|  |         <div class="spasi"> </div> | ||||||
|  |         <?php if($msg!=='empty'){?>
 | ||||||
|  |             <div> | ||||||
|  |                 <table> | ||||||
|  |                     <thead> | ||||||
|  |                             <tr> | ||||||
|  |                                 <th colspan="3">Jumlah UMKM</th> | ||||||
|  |                                 <th colspan="3">Omset/Bulan</th> | ||||||
|  |                                 <th colspan="3">Aset</th> | ||||||
|  |                                 <th colspan="6" >Jumlah Naker</th> | ||||||
|  |                                 <th colspan="9" >Klasifikasi</th> | ||||||
|  |                             </tr> | ||||||
|  | 
 | ||||||
|  |                              | ||||||
|  |                          | ||||||
|  |                             <tr> | ||||||
|  |                                 <th rowspan="2">P</th> | ||||||
|  |                                 <th rowspan="2">J</th> | ||||||
|  |                                 <th rowspan="2">I</th> | ||||||
|  | 
 | ||||||
|  |                                 <th rowspan="2">P</th> | ||||||
|  |                                 <th rowspan="2">J</th> | ||||||
|  |                                 <th rowspan="2">I</th> | ||||||
|  | 
 | ||||||
|  |                                 <th rowspan="2">P</th> | ||||||
|  |                                 <th rowspan="2">J</th> | ||||||
|  |                                 <th rowspan="2">I</th> | ||||||
|  | 
 | ||||||
|  |                                 <th colspan="2">P</th> | ||||||
|  |                                 <th colspan="2">J</th> | ||||||
|  |                                 <th colspan="2">I</th> | ||||||
|  | 
 | ||||||
|  |                                 <th colspan="3">P</th> | ||||||
|  |                                 <th colspan="3">J</th> | ||||||
|  |                                 <th colspan="3">I</th> | ||||||
|  |                             </tr> | ||||||
|  | 
 | ||||||
|  |                             <tr> | ||||||
|  |                                 <th>L</th> | ||||||
|  |                                 <th>P</th> | ||||||
|  | 
 | ||||||
|  |                                 <th>L</th> | ||||||
|  |                                 <th>P</th> | ||||||
|  | 
 | ||||||
|  |                                 <th>L</th> | ||||||
|  |                                 <th>P</th> | ||||||
|  | 
 | ||||||
|  |                                 <th>MK</th> | ||||||
|  |                                 <th>K</th> | ||||||
|  |                                 <th>MN</th> | ||||||
|  | 
 | ||||||
|  |                                 <th>MK</th> | ||||||
|  |                                 <th>K</th> | ||||||
|  |                                 <th>MN</th> | ||||||
|  | 
 | ||||||
|  |                                 <th>MK</th> | ||||||
|  |                                 <th>K</th> | ||||||
|  |                                 <th>MN</th> | ||||||
|  |                             </tr> | ||||||
|  |                         </thead> | ||||||
|  |                         <tbody> | ||||||
|  |                             <tr> | ||||||
|  |                                 <td><?php echo $umkm_jen1 ?></td>
 | ||||||
|  |                                 <td><?php echo $umkm_jen2 ?></td>
 | ||||||
|  |                                 <td><?php echo $umkm_jen3 ?></td>
 | ||||||
|  | 
 | ||||||
|  |                                 <td><?php echo rupiah($omset_bln_jen1) ?></td>
 | ||||||
|  |                                 <td><?php echo rupiah($omset_bln_jen2) ?></td>
 | ||||||
|  |                                 <td><?php echo rupiah($omset_bln_jen3) ?></td>
 | ||||||
|  | 
 | ||||||
|  |                                 <td><?php echo rupiah($aset_jen1) ?></td>
 | ||||||
|  |                                 <td><?php echo rupiah($aset_jen2) ?></td>
 | ||||||
|  |                                 <td><?php echo rupiah($aset_jen3) ?></td>
 | ||||||
|  | 
 | ||||||
|  |                                 <td><?php echo $naker_jen1_l ?></td>
 | ||||||
|  |                                 <td><?php echo $naker_jen1_p ?></td>
 | ||||||
|  | 
 | ||||||
|  |                                 <td><?php echo $naker_jen2_l ?></td>
 | ||||||
|  |                                 <td><?php echo $naker_jen2_p ?></td>
 | ||||||
|  | 
 | ||||||
|  |                                 <td><?php echo $naker_jen3_l ?></td>
 | ||||||
|  |                                 <td><?php echo $naker_jen3_p ?></td>
 | ||||||
|  | 
 | ||||||
|  |                                 <td><?php echo $umkm_jen1_ket1?></td>
 | ||||||
|  |                                 <td><?php echo $umkm_jen1_ket2?></td>
 | ||||||
|  |                                 <td><?php echo $umkm_jen1_ket3?></td>
 | ||||||
|  |                                 <td><?php echo $umkm_jen2_ket1?></td>
 | ||||||
|  |                                 <td><?php echo $umkm_jen2_ket2?></td>
 | ||||||
|  |                                 <td><?php echo $umkm_jen2_ket3?></td>
 | ||||||
|  |                                 <td><?php echo $umkm_jen3_ket1?></td>
 | ||||||
|  |                                 <td><?php echo $umkm_jen3_ket2?></td>
 | ||||||
|  |                                 <td><?php echo $umkm_jen3_ket3?></td>
 | ||||||
|  | 
 | ||||||
|  |                             </tr> | ||||||
|  |                         </tbody> | ||||||
|  |                         <tfoot> | ||||||
|  |                             <tr> | ||||||
|  |                                 <th colspan="3">Total</th> | ||||||
|  |                                 <th colspan="3">Total</th> | ||||||
|  |                                 <th colspan="3">Total</th> | ||||||
|  |                                 <th colspan="6">Total</th> | ||||||
|  |                                 <th colspan="3">Mikro</th> | ||||||
|  |                                 <th colspan="3">Kecil</th> | ||||||
|  |                                 <th colspan="3">Menengah</th> | ||||||
|  |                             </tr> | ||||||
|  |                             <?php  | ||||||
|  |                                 $umkm = $umkm_jen1+$umkm_jen2+$umkm_jen3; | ||||||
|  |                                 $omset = $omset_bln_jen1+$omset_bln_jen2+$omset_bln_jen3; | ||||||
|  | 
 | ||||||
|  |                                 $naker = $naker_jen1_l+$naker_jen2_l+$naker_jen3_l; | ||||||
|  |                                 $naker = $naker+$naker_jen1_p+$naker_jen2_p+$naker_jen3_p; | ||||||
|  |                                 $aset = $aset_jen1+$aset_jen2+$aset_jen3; | ||||||
|  | 
 | ||||||
|  |                                 $mikro = $umkm_jen1_ket1+$umkm_jen2_ket1+$umkm_jen3_ket1; | ||||||
|  |                                 $kecil = $umkm_jen1_ket2+$umkm_jen2_ket2+$umkm_jen3_ket2; | ||||||
|  |                                 $menengah = $umkm_jen1_ket3+$umkm_jen2_ket3+$umkm_jen3_ket3; | ||||||
|  |                             ?>
 | ||||||
|  |                             <tr> | ||||||
|  |                                 <th colspan="3"><?php echo $umkm ?></th>
 | ||||||
|  |                                 <th  colspan="3"><?php echo rupiah($omset) ?></th>
 | ||||||
|  |                                 <th colspan="3"><?php echo rupiah($aset) ?></th>
 | ||||||
|  |                                 <th colspan="6" ><?php echo $naker ?></th>
 | ||||||
|  |                                 <th colspan="3"><?php echo $mikro ?></th>
 | ||||||
|  |                                 <th colspan="3"><?php echo $kecil ?></th>
 | ||||||
|  |                                 <th colspan="3"><?php echo $menengah ?></th>
 | ||||||
|  |                             </tr> | ||||||
|  |                         </tfoot> | ||||||
|  |                 </table> | ||||||
|  |             </div> | ||||||
|  |             <div class="spasi"> </div> | ||||||
|  |             <?php if(isset($tahun_0)){?>
 | ||||||
|  |             <div class="judul"> | ||||||
|  |                PERBANDINGAN DENGAN TAHUN <?php echo $tahun_0 ?>
 | ||||||
|  |             </div> | ||||||
|  |             <div class="spasi"> </div> | ||||||
|  |             <div> | ||||||
|  |                 <table> | ||||||
|  |                     <thead> | ||||||
|  |                         <tr> | ||||||
|  |                             <th></th> | ||||||
|  |                             <th>Aset</th> | ||||||
|  |                             <th>Omset</th> | ||||||
|  |                         </tr> | ||||||
|  |                     </thead> | ||||||
|  |                     <tbody> | ||||||
|  |                         <tr> | ||||||
|  |                             <td><?php echo $tahun ?></td>
 | ||||||
|  |                             <td><?php echo rupiah($aset_1) ?></td>
 | ||||||
|  |                             <td><?php echo rupiah($omset_1) ?></td>
 | ||||||
|  |                         </tr> | ||||||
|  |                         <tr> | ||||||
|  |                             <td><?php echo $tahun_0 ?></td>
 | ||||||
|  |                             <td><?php echo rupiah($aset_0) ?></td>
 | ||||||
|  |                             <td><?php echo rupiah($omset_0) ?></td>
 | ||||||
|  |                         </tr> | ||||||
|  |                     </tbody> | ||||||
|  |                 </table> | ||||||
|  |             </div> | ||||||
|  |             <div class="spasi"> </div> | ||||||
|  |             <div> | ||||||
|  |                 <table> | ||||||
|  |                     <thead> | ||||||
|  |                         <tr> | ||||||
|  |                             <th></th> | ||||||
|  |                             <th>Jml UMKM</th> | ||||||
|  |                             <th>Tenaga Kerja</th> | ||||||
|  |                             <th>Mikro</th> | ||||||
|  |                             <th>Kecil</th> | ||||||
|  |                             <th>Menengah</th> | ||||||
|  |                         </tr> | ||||||
|  |                     </thead> | ||||||
|  |                     <tbody> | ||||||
|  |                         <tr> | ||||||
|  |                             <td><?php echo $tahun ?></td>
 | ||||||
|  |                             <td><?php echo $umkm_1 ?></td>
 | ||||||
|  |                             <td><?php echo $naker_1 ?></td>
 | ||||||
|  |                             <td><?php echo $mikro_1 ?></td>
 | ||||||
|  |                             <td><?php echo $kecil_1 ?></td>
 | ||||||
|  |                             <td><?php echo $menengah_1 ?></td>
 | ||||||
|  |                         </tr> | ||||||
|  |                         <tr> | ||||||
|  |                             <td><?php echo $tahun ?></td>
 | ||||||
|  |                             <td><?php echo $umkm_0 ?></td>
 | ||||||
|  |                             <td><?php echo $naker_0 ?></td>
 | ||||||
|  |                             <td><?php echo $mikro_0 ?></td>
 | ||||||
|  |                             <td><?php echo $kecil_0 ?></td>
 | ||||||
|  |                             <td><?php echo $menengah_0 ?></td>
 | ||||||
|  |                         </tr> | ||||||
|  |                     </tbody> | ||||||
|  |                 </table> | ||||||
|  |             </div> | ||||||
|  |         <?php } ?>
 | ||||||
|  | 
 | ||||||
|  |         <?php } else {?>      
 | ||||||
|  |             <div>Tidak ada laporan yang sudah dibuat saat ini.</div> | ||||||
|  |         <?php } ?>
 | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | </body> | ||||||
|  | </html> | ||||||
|  | 
 | ||||||
|  |     <script> | ||||||
|  | 		var css = '@page { size: landscape; }', | ||||||
|  |             head = document.head || document.getElementsByTagName('head')[0], | ||||||
|  |             style = document.createElement('style'); | ||||||
|  | 
 | ||||||
|  |         style.type = 'text/css'; | ||||||
|  |         style.media = 'print'; | ||||||
|  | 
 | ||||||
|  |         if (style.styleSheet){ | ||||||
|  |         style.styleSheet.cssText = css; | ||||||
|  |         } else { | ||||||
|  |         style.appendChild(document.createTextNode(css)); | ||||||
|  |         } | ||||||
|  | 
 | ||||||
|  |         head.appendChild(style); | ||||||
|  | 
 | ||||||
|  |         window.print(); | ||||||
|  | 	</script> | ||||||
|  | @ -0,0 +1,486 @@ | ||||||
|  | <?php | ||||||
|  |     function rupiah($angka){ | ||||||
|  | 	 | ||||||
|  |         $hasil_rupiah = "Rp " . number_format($angka,2,',','.'); | ||||||
|  |         return $hasil_rupiah; | ||||||
|  |       | ||||||
|  |     } | ||||||
|  | ?> | ||||||
|  | <!doctype html> | ||||||
|  | <html lang="en"> | ||||||
|  |   <head> | ||||||
|  |     <!-- Required meta tags --> | ||||||
|  |     <meta charset="utf-8"> | ||||||
|  |     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||||||
|  | 
 | ||||||
|  |     <!-- Bootstrap CSS --> | ||||||
|  |     <link rel="stylesheet" href="<?php echo base_url()?>assets/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous"> | ||||||
|  |     <link rel="stylesheet" href="<?php echo base_url()?>assets/css/dataTables.bootstrap4.min.css"> | ||||||
|  | 
 | ||||||
|  |     <link data-require="sweet-alert@*" data-semver="0.4.2" rel="stylesheet" href="<?php echo base_url()?>assets/css/sweetalert.min.css" /> | ||||||
|  | 
 | ||||||
|  |     <link rel="icon" type="image/png" href="../../assets/images/favicon.png" /> | ||||||
|  | 
 | ||||||
|  |     <title>Aplikasi UMKM</title> | ||||||
|  |   </head> | ||||||
|  |   <body> | ||||||
|  | 
 | ||||||
|  |     <div class="container"> | ||||||
|  |        <div class="row"> | ||||||
|  |            <div class="col col-md-12 col-lg-12 col-sm-12 col-12"> | ||||||
|  |                 <div class="card"> | ||||||
|  |                     <div class="text-center"> | ||||||
|  |                         <h4 class="card-header">Rekap Data UMKM Tahun <?php echo $tahun ?> <br>KOTA MAGELANG</h4> | ||||||
|  | 
 | ||||||
|  |                     </div> | ||||||
|  | 
 | ||||||
|  |                     <div class="card-body"> | ||||||
|  |                         <div> | ||||||
|  |                          | ||||||
|  | 
 | ||||||
|  |                         <div class="mt-3"> | ||||||
|  |                             <?php if(isset($tahun_0)){?> | ||||||
|  | 
 | ||||||
|  |                                 <div class="card"> | ||||||
|  |                                     <div class="card-header"> | ||||||
|  |                                         <h6>Monografi Kota Magelang Tahun <?php echo $tahun ?></h6> | ||||||
|  |                                     </div> | ||||||
|  | 
 | ||||||
|  |                                     <div class="card-body"> | ||||||
|  |                                         <div class="row"> | ||||||
|  |                                             <div class="col col-12 col-sm-12 col-md-7 col-lg-7"> | ||||||
|  |                                                 <div class="row"> | ||||||
|  |                                                     <canvas id="myChart" width="500" height="400"></canvas> | ||||||
|  |                                                 </div> | ||||||
|  |                                             </div> | ||||||
|  |                                             <div class="col col-5"></div> | ||||||
|  |                                             <div class="col col-12"> | ||||||
|  |                                                 <div class="row"> | ||||||
|  |                                                     <table class="table text-center text-nowarp  table-sm table-bordered table-striped"> | ||||||
|  |                                                         <thead> | ||||||
|  |                                                             <tr> | ||||||
|  |                                                                 <th></th> | ||||||
|  |                                                                 <th><small>Aset</small></th> | ||||||
|  |                                                                 <th><small>Omset</small></th> | ||||||
|  |                                                             </tr> | ||||||
|  |                                                         </thead> | ||||||
|  |                                                         <tbody> | ||||||
|  |                                                             <tr> | ||||||
|  |                                                                 <td><small><?php echo $tahun ?></small></td> | ||||||
|  |                                                                 <td><small><?php echo rupiah($aset_1) ?></small></td> | ||||||
|  |                                                                 <td><small><?php echo rupiah($omset_1) ?></small></td> | ||||||
|  |                                                             </tr> | ||||||
|  |                                                             <tr> | ||||||
|  |                                                                 <td><small><?php echo $tahun_0 ?></small></td> | ||||||
|  |                                                                 <td><small><?php echo rupiah($aset_0) ?></small></td> | ||||||
|  |                                                                 <td><small><?php echo rupiah($omset_0) ?></small></td> | ||||||
|  |                                                             </tr> | ||||||
|  |                                                         </tbody> | ||||||
|  |                                                     </table> | ||||||
|  |                                                 </div> | ||||||
|  |                                             </div> | ||||||
|  |                                             <div class="col col col-12 col-sm-12 col-md-7 col-lg-7" style="margin-top:50px;"> | ||||||
|  |                                                 <div class="row pl-2"> | ||||||
|  |                                                     <canvas id="myChart2" width="450" height="400"></canvas> | ||||||
|  |                                                 </div> | ||||||
|  |                                                  | ||||||
|  |                                             </div> | ||||||
|  |                                             <div class="col col-5"></div> | ||||||
|  |                                             <div class="col col-12"> | ||||||
|  |                                             <div class="row pl-2"> | ||||||
|  |                                                     <table class="table text-center table-sm table-responsive-sm table-bordered table-striped"> | ||||||
|  |                                                         <thead> | ||||||
|  |                                                             <tr> | ||||||
|  |                                                                 <th></th> | ||||||
|  |                                                                 <th><small>Jml UMKM</small></th> | ||||||
|  |                                                                 <th><small>Tenaga Kerja</small></th> | ||||||
|  |                                                                 <th><small>Mikro</small></th> | ||||||
|  |                                                                 <th><small>Kecil</small></th> | ||||||
|  |                                                                 <th><small>Menengah</small></th> | ||||||
|  |                                                             </tr> | ||||||
|  |                                                         </thead> | ||||||
|  |                                                         <tbody> | ||||||
|  |                                                             <tr> | ||||||
|  |                                                                 <td><small><?php echo $tahun ?></small></td> | ||||||
|  |                                                                 <td><small><?php echo $umkm_1 ?></small></td> | ||||||
|  |                                                                 <td><small><?php echo $naker_1 ?></small></td> | ||||||
|  |                                                                 <td><small><?php echo $mikro_1 ?></small></td> | ||||||
|  |                                                                 <td><small><?php echo $kecil_1 ?></small></td> | ||||||
|  |                                                                 <td><small><?php echo $menengah_1 ?></small></td> | ||||||
|  |                                                             </tr> | ||||||
|  |                                                             <tr> | ||||||
|  |                                                             <td><small><?php echo $tahun ?></small></td> | ||||||
|  |                                                                 <td><small><?php echo $umkm_0 ?></small></td> | ||||||
|  |                                                                 <td><small><?php echo $naker_0 ?></small></td> | ||||||
|  |                                                                 <td><small><?php echo $mikro_0 ?></small></td> | ||||||
|  |                                                                 <td><small><?php echo $kecil_0 ?></small></td> | ||||||
|  |                                                                 <td><small><?php echo $menengah_0 ?></small></td> | ||||||
|  |                                                             </tr> | ||||||
|  |                                                         </tbody> | ||||||
|  |                                                     </table> | ||||||
|  |                                                 </div> | ||||||
|  |                                             </div> | ||||||
|  |                                              | ||||||
|  |                                         </div> | ||||||
|  |                                         | ||||||
|  |                                     </div> | ||||||
|  |                             </div> | ||||||
|  | 
 | ||||||
|  |                              | ||||||
|  |                             <?php } ?> | ||||||
|  |                              | ||||||
|  |                             <div class="card"> | ||||||
|  |                                 <div class="card-header"> | ||||||
|  |                                     <div class="row"> | ||||||
|  |                                             <div class="col col-12 col-sm-12 col-md-8 col-lg-8"> | ||||||
|  |                                                 <h6>Data UMKM Kota Magelang Tahun <?php echo $tahun ?></h6> | ||||||
|  |                                             </div> | ||||||
|  |                                         </div> | ||||||
|  |                                 </div> | ||||||
|  |                                 <?php if($msg!=='empty'){?> | ||||||
|  | 
 | ||||||
|  |                                     <div class="card-body"> | ||||||
|  |                                         <div class="row"> | ||||||
|  |                                             <table class="table table-bordered table-sm text-center text-nowrap table-responsive-sm table-striped"> | ||||||
|  |                                                 <thead class=""> | ||||||
|  |                                                         <tr> | ||||||
|  |                                                             <th class="align-middle" colspan="3">Jumlah UMKM</th> | ||||||
|  |                                                             <th class="align-middle" colspan="3">Omset/Bulan</th> | ||||||
|  |                                                         </tr> | ||||||
|  |                                                      | ||||||
|  |                                                         <tr> | ||||||
|  |                                                             <th><small>P</small></th> | ||||||
|  |                                                             <th><small>J</small></th> | ||||||
|  |                                                             <th><small>I</small></th> | ||||||
|  | 
 | ||||||
|  |                                                             <th><small>P</small></th> | ||||||
|  |                                                             <th><small>J</small></th> | ||||||
|  |                                                             <th><small>I</small></th> | ||||||
|  |                                                         </tr> | ||||||
|  |                                                     </thead> | ||||||
|  |                                                     <tbody> | ||||||
|  |                                                         <tr> | ||||||
|  |                                                             <td><small><?php echo $umkm_jen1 ?></small></td> | ||||||
|  |                                                             <td><small><?php echo $umkm_jen2 ?></small></td> | ||||||
|  |                                                             <td><small><?php echo $umkm_jen3 ?></small></td> | ||||||
|  | 
 | ||||||
|  |                                                             <td><small><?php echo rupiah($omset_bln_jen1) ?></small></td> | ||||||
|  |                                                             <td><small><?php echo rupiah($omset_bln_jen2) ?></small></td> | ||||||
|  |                                                             <td><small><?php echo rupiah($omset_bln_jen3) ?></small></td> | ||||||
|  |                                                         </tr> | ||||||
|  |                                                     </tbody> | ||||||
|  |                                                     <tfoot> | ||||||
|  |                                                         <tr> | ||||||
|  |                                                             <th class="align-middle" colspan="3"><small>Total</small></th> | ||||||
|  |                                                             <th class="align-middle" colspan="3"><small>Total</small></th> | ||||||
|  |                                                         </tr> | ||||||
|  |                                                         <?php  | ||||||
|  |                                                             $umkm = $umkm_jen1+$umkm_jen2+$umkm_jen3; | ||||||
|  |                                                             $omset = $omset_bln_jen1+$omset_bln_jen2+$omset_bln_jen3; | ||||||
|  |                                                         ?> | ||||||
|  |                                                         <tr> | ||||||
|  |                                                             <th class="align-middle" colspan="3" ><small><?php echo $umkm ?></small></th> | ||||||
|  |                                                             <th class="align-middle" colspan="3" ><small><?php echo rupiah($omset) ?></small></th> | ||||||
|  |                                                         </tr> | ||||||
|  |                                                     </tfoot> | ||||||
|  |                                             </table> | ||||||
|  |                                         </div> | ||||||
|  |                                         <hr> | ||||||
|  |                                         <div class="row"> | ||||||
|  |                                             <table class="table table-bordered table-sm text-center text-nowrap table-responsive-md table-striped"> | ||||||
|  |                                                 <thead class=""> | ||||||
|  |                                                     <tr> | ||||||
|  |                                                         <th class="align-middle" colspan="3" rowspan="2">Aset</th> | ||||||
|  |                                                         <th class="align-middle" colspan="6" >Jumlah Naker</th> | ||||||
|  |                                                     </tr> | ||||||
|  |                                                     <tr> | ||||||
|  |                                                         <th colspan="2" ><small>P</small></th> | ||||||
|  |                                                         <th colspan="2" ><small>J</small></th> | ||||||
|  |                                                         <th colspan="2" ><small>I</small></th> | ||||||
|  |                                                     </tr> | ||||||
|  |                                                     <tr> | ||||||
|  |                                                         <th><small>P</small></th> | ||||||
|  |                                                         <th><small>J</small></th> | ||||||
|  |                                                         <th><small>I</small></th> | ||||||
|  | 
 | ||||||
|  |                                                         <th><small>L</small></th> | ||||||
|  |                                                         <th><small>P</small></th> | ||||||
|  | 
 | ||||||
|  |                                                         <th><small>L</small></th> | ||||||
|  |                                                         <th><small>P</small></th> | ||||||
|  | 
 | ||||||
|  |                                                         <th><small>L</small></th> | ||||||
|  |                                                         <th><small>P</small></th> | ||||||
|  | 
 | ||||||
|  |                                                     </tr> | ||||||
|  |                                                 </thead> | ||||||
|  |                                                 <tbody> | ||||||
|  |                                                     <tr> | ||||||
|  |                                                         <td><small><?php echo rupiah($aset_jen1) ?></small></td> | ||||||
|  |                                                         <td><small><?php echo rupiah($aset_jen2) ?></small></td> | ||||||
|  |                                                         <td><small><?php echo rupiah($aset_jen3) ?></small></td> | ||||||
|  | 
 | ||||||
|  |                                                         <td><small><?php echo $naker_jen1_l ?></small></td> | ||||||
|  |                                                         <td><small><?php echo $naker_jen1_p ?></small></td> | ||||||
|  | 
 | ||||||
|  |                                                         <td><small><?php echo $naker_jen2_l ?></small></td> | ||||||
|  |                                                         <td><small><?php echo $naker_jen2_p ?></small></td> | ||||||
|  | 
 | ||||||
|  |                                                         <td><small><?php echo $naker_jen3_l ?></small></td> | ||||||
|  |                                                         <td><small><?php echo $naker_jen3_p ?></small></td> | ||||||
|  |                                                     </tr> | ||||||
|  |                                                 </tbody> | ||||||
|  |                                                 <tfoot> | ||||||
|  |                                                         <tr> | ||||||
|  |                                                             <th class="align-middle" colspan="3"><small>Total</small></th> | ||||||
|  |                                                             <th class="align-middle" colspan="6"><small>Total</small></th> | ||||||
|  |                                                         </tr> | ||||||
|  |                                                         <?php  | ||||||
|  |                                                             $naker = $naker_jen1_l+$naker_jen2_l+$naker_jen3_l; | ||||||
|  |                                                             $naker = $naker+$naker_jen1_p+$naker_jen2_p+$naker_jen3_p; | ||||||
|  |                                                             $aset = $aset_jen1+$aset_jen2+$aset_jen3; | ||||||
|  |                                                         ?> | ||||||
|  |                                                         <tr> | ||||||
|  |                                                             <th class="align-middle" colspan="3" ><small><?php echo rupiah($aset) ?></small></th> | ||||||
|  |                                                             <th class="align-middle" colspan="6" ><small><?php echo $naker ?></small></th> | ||||||
|  |                                                         </tr> | ||||||
|  |                                                     </tfoot> | ||||||
|  |                                             </table> | ||||||
|  |                                         </div> | ||||||
|  |                                         <hr> | ||||||
|  |                                         <div class="row">     | ||||||
|  |                                             <table class="table table-bordered table-sm text-center text-nowrap table-responsive-sm table-striped"> | ||||||
|  |                                                 <thead class=""> | ||||||
|  |                                                     <tr> | ||||||
|  |                                                         <th class="align-middle" colspan="9" >Klasifikasi</th> | ||||||
|  |                                                     </tr> | ||||||
|  |                                                     <tr> | ||||||
|  |                                                         <th colspan="3" ><small>P</small></th> | ||||||
|  |                                                         <th colspan="3" ><small>J</small></th> | ||||||
|  |                                                         <th colspan="3" ><small>I</small></th> | ||||||
|  |                                                     </tr> | ||||||
|  |                                                     <tr> | ||||||
|  |                                                         <th><small>M</small></th> | ||||||
|  |                                                         <th><small>K</small></th> | ||||||
|  |                                                         <th><small>MN</small></th> | ||||||
|  | 
 | ||||||
|  |                                                         <th><small>M</small></th> | ||||||
|  |                                                         <th><small>K</small></th> | ||||||
|  |                                                         <th><small>MN</small></th> | ||||||
|  | 
 | ||||||
|  |                                                         <th><small>M</small></th> | ||||||
|  |                                                         <th><small>K</small></th> | ||||||
|  |                                                         <th><small>MN</small></th> | ||||||
|  | 
 | ||||||
|  |                                                     </tr> | ||||||
|  |                                                 </thead> | ||||||
|  |                                                 <tbody> | ||||||
|  |                                                     <tr> | ||||||
|  |                                                         <td><small><?php echo $umkm_jen1_ket1?></small></td> | ||||||
|  |                                                         <td><small><?php echo $umkm_jen1_ket2?></small></td> | ||||||
|  |                                                         <td><small><?php echo $umkm_jen1_ket3?></small></td> | ||||||
|  |                                                         <td><small><?php echo $umkm_jen2_ket1?></small></td> | ||||||
|  |                                                         <td><small><?php echo $umkm_jen2_ket2?></small></td> | ||||||
|  |                                                         <td><small><?php echo $umkm_jen2_ket3?></small></td> | ||||||
|  |                                                         <td><small><?php echo $umkm_jen3_ket1?></small></td> | ||||||
|  |                                                         <td><small><?php echo $umkm_jen3_ket2?></small></td> | ||||||
|  |                                                         <td><small><?php echo $umkm_jen3_ket3?></small></td> | ||||||
|  |                                                     </tr> | ||||||
|  |                                                 </tbody> | ||||||
|  |                                                 <tfoot> | ||||||
|  |                                                     <tr> | ||||||
|  |                                                         <th class="align-middle" colspan="3"><small>Mikro</small></th> | ||||||
|  |                                                         <th class="align-middle" colspan="3"><small>Kecil</small></th> | ||||||
|  |                                                         <th class="align-middle" colspan="3"><small>Menengah</small></th> | ||||||
|  |                                                     </tr> | ||||||
|  |                                                     <?php  | ||||||
|  |                                                         $mikro = $umkm_jen1_ket1+$umkm_jen2_ket1+$umkm_jen3_ket1; | ||||||
|  |                                                         $kecil = $umkm_jen1_ket2+$umkm_jen2_ket2+$umkm_jen3_ket2; | ||||||
|  |                                                         $menengah = $umkm_jen1_ket3+$umkm_jen2_ket3+$umkm_jen3_ket3; | ||||||
|  |                                                     ?> | ||||||
|  |                                                     <tr> | ||||||
|  |                                                         <th class="align-middle" colspan="3" ><small><?php echo $mikro ?></small></th> | ||||||
|  |                                                         <th class="align-middle" colspan="3" ><small><?php echo $kecil ?></small></th> | ||||||
|  |                                                         <th class="align-middle" colspan="3" ><small><?php echo $menengah ?></small></th> | ||||||
|  |                                                     </tr> | ||||||
|  |                                                 </tfoot> | ||||||
|  |                                             </table> | ||||||
|  |                                         </div> | ||||||
|  |                                     </div> | ||||||
|  | 
 | ||||||
|  |                                 <?php } else {?> | ||||||
|  |                                     <div class="card-body text-center"> | ||||||
|  |                                         <img src="<?php echo base_url()?>assets/images/search.png" width="150" /><br> | ||||||
|  |                                         <div class="alert alert-warning" role="alert"> | ||||||
|  |                                             Tidak ada <strong>laporan yang sudah dibuat</strong> saat ini. | ||||||
|  |                                         </div> | ||||||
|  |                                     </div> | ||||||
|  |                                 <?php } ?> | ||||||
|  | 
 | ||||||
|  |                             </div> | ||||||
|  | 
 | ||||||
|  |                         </div> | ||||||
|  |                          | ||||||
|  | 
 | ||||||
|  |                         </div> | ||||||
|  |                     </div> | ||||||
|  |                 </div> | ||||||
|  |            </div> | ||||||
|  | 
 | ||||||
|  |        </div> | ||||||
|  |     </div> | ||||||
|  |      | ||||||
|  | 
 | ||||||
|  |     <!-- Optional JavaScript --> | ||||||
|  |     <!-- jQuery first, then Popper.js, then Bootstrap JS --> | ||||||
|  |     <script src="<?php echo base_url()?>assets/js/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script> | ||||||
|  |     <script src="<?php echo base_url()?>assets/js/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script> | ||||||
|  |     <script src="<?php echo base_url()?>assets/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script> | ||||||
|  |     <script src="<?php echo base_url()?>assets/js/jquery.dataTables.min.js"></script> | ||||||
|  |     <script src="<?php echo base_url()?>assets/js/dataTables.bootstrap4.min.js"></script> | ||||||
|  |     <script src="<?php echo base_url()?>assets/js/sweetalert.min.js"></script> | ||||||
|  |     <script src="<?php echo base_url()?>assets/js/chart.js"></script> | ||||||
|  | 
 | ||||||
|  |     <script> | ||||||
|  |         var ctx = document.getElementById('myChart').getContext('2d'); | ||||||
|  |         var myChart = new Chart(ctx, { | ||||||
|  |             type: 'bar', | ||||||
|  |             data: { | ||||||
|  |                 labels: ['Aset', 'Omset'], | ||||||
|  |                 datasets: [ | ||||||
|  |                     { | ||||||
|  |                         label: '<?php echo $tahun ?>', | ||||||
|  |                         data: [<?php echo $aset_1 ?>, <?php echo $omset_1 ?>], | ||||||
|  |                         backgroundColor: [ | ||||||
|  |                             'rgba(255, 99, 132, 0.2)', | ||||||
|  |                             'rgba(255, 99, 132, 0.2)' | ||||||
|  |                              | ||||||
|  |                         ], | ||||||
|  |                         borderColor: [ | ||||||
|  |                             'rgba(255, 99, 132, 1)', | ||||||
|  |                             'rgba(255, 99, 132, 1)' | ||||||
|  |                         ], | ||||||
|  |                         borderWidth: 1 | ||||||
|  |                     }, | ||||||
|  |                     { | ||||||
|  |                         label: '<?php echo $tahun_0 ?>', | ||||||
|  |                         data: [<?php echo $aset_0 ?>, <?php echo $omset_0 ?>], | ||||||
|  |                         backgroundColor: [ | ||||||
|  |                             'rgba(54, 162, 235, 0.2)', | ||||||
|  |                             'rgba(54, 162, 235, 0.2)' | ||||||
|  |                              | ||||||
|  |                         ], | ||||||
|  |                         borderColor: [ | ||||||
|  |                             'rgba(54, 162, 235, 1)', | ||||||
|  |                             'rgba(54, 162, 235, 1)' | ||||||
|  |                         ], | ||||||
|  |                         borderWidth: 1 | ||||||
|  |                     } | ||||||
|  |                 ] | ||||||
|  |             }, | ||||||
|  |             options: { | ||||||
|  |                 scales: { | ||||||
|  |                     y: { | ||||||
|  |                         beginAtZero: true | ||||||
|  |                     } | ||||||
|  |                 } | ||||||
|  |             } | ||||||
|  |         }); | ||||||
|  |     </script> | ||||||
|  | 
 | ||||||
|  | <script> | ||||||
|  |         var ctx = document.getElementById('myChart2').getContext('2d'); | ||||||
|  |         var myChart = new Chart(ctx, { | ||||||
|  |             type: 'bar', | ||||||
|  |             data: { | ||||||
|  |                 labels: ['Jml UMKM', 'Tenaga Kerja', 'Mikro', 'Kecil','Menengah'], | ||||||
|  |                 datasets: [ | ||||||
|  |                     { | ||||||
|  |                         label: '<?php echo $tahun ?>', | ||||||
|  |                         data: [<?php echo $umkm_1 ?>, <?php echo $naker_1 ?>, <?php echo $mikro_1 ?>, <?php echo $kecil_1 ?>, <?php echo $menengah_1 ?>], | ||||||
|  |                         backgroundColor: [ | ||||||
|  |                             'rgba(255, 99, 132, 0.2)', | ||||||
|  |                             'rgba(255, 99, 132, 0.2)' | ||||||
|  |                              | ||||||
|  |                         ], | ||||||
|  |                         borderColor: [ | ||||||
|  |                             'rgba(255, 99, 132, 1)', | ||||||
|  |                             'rgba(255, 99, 132, 1)' | ||||||
|  |                         ], | ||||||
|  |                         borderWidth: 1 | ||||||
|  |                     }, | ||||||
|  |                     { | ||||||
|  |                         label: '<?php echo $tahun_0 ?>', | ||||||
|  |                         data: [<?php echo $umkm_0 ?>, <?php echo $naker_0 ?>, <?php echo $mikro_0 ?>, <?php echo $kecil_0 ?>, <?php echo $menengah_0 ?>], | ||||||
|  |                         backgroundColor: [ | ||||||
|  |                             'rgba(54, 162, 235, 0.2)', | ||||||
|  |                             'rgba(54, 162, 235, 0.2)' | ||||||
|  |                              | ||||||
|  |                         ], | ||||||
|  |                         borderColor: [ | ||||||
|  |                             'rgba(54, 162, 235, 1)', | ||||||
|  |                             'rgba(54, 162, 235, 1)' | ||||||
|  |                         ], | ||||||
|  |                         borderWidth: 1 | ||||||
|  |                     } | ||||||
|  |                 ] | ||||||
|  |             }, | ||||||
|  |             options: { | ||||||
|  |                 scales: { | ||||||
|  |                     y: { | ||||||
|  |                         beginAtZero: true | ||||||
|  |                     } | ||||||
|  |                 } | ||||||
|  |             } | ||||||
|  |         }); | ||||||
|  |     </script> | ||||||
|  | 
 | ||||||
|  |     <script> | ||||||
|  |         $(document).ready(function() { | ||||||
|  |             $('#tabeldata').DataTable(); | ||||||
|  |         } ); | ||||||
|  |     </script> | ||||||
|  | 
 | ||||||
|  | <script> | ||||||
|  |     const element = document.querySelectorAll('#btn_hapus') | ||||||
|  |     element.forEach(function(el){ | ||||||
|  |    | ||||||
|  |       el.addEventListener('click', function (e) {   | ||||||
|  |        | ||||||
|  |       e.preventDefault(); | ||||||
|  | 
 | ||||||
|  |       var urlToRedirect = e.currentTarget.getAttribute('href'); //use currentTarget because the click may be on the nested i tag and not a tag causing the href to be empty | ||||||
|  |       console.log(urlToRedirect); // verify if this is the right URL | ||||||
|  |        | ||||||
|  |       swal({ | ||||||
|  |           title: "Kamu yakin ?", | ||||||
|  |           text: "Data yang dihapus tidak bisa dikembalikan.", | ||||||
|  |           icon: "warning", | ||||||
|  |           buttons: [ | ||||||
|  |             'Batal', | ||||||
|  |             'Hapus' | ||||||
|  |           ], | ||||||
|  |           dangerMode: true, | ||||||
|  |         }).then(function(isConfirm) { | ||||||
|  |           if (isConfirm) { | ||||||
|  |             swal({ | ||||||
|  |               title: 'Berhasil', | ||||||
|  |               text: 'Data berhasil terhapus', | ||||||
|  |               icon: 'success' | ||||||
|  |             }).then(function() { | ||||||
|  |                 window.location.href = urlToRedirect; | ||||||
|  |             }); | ||||||
|  |           } else { | ||||||
|  |             swal("Batal", "Data tidak terhapus.)", "error"); | ||||||
|  |           } | ||||||
|  |         }); | ||||||
|  |     }); | ||||||
|  | }); | ||||||
|  |   </script> | ||||||
|  | 
 | ||||||
|  |     <script> | ||||||
|  | 		window.print(); | ||||||
|  | 	</script> | ||||||
|  | 
 | ||||||
|  |   </body> | ||||||
|  | </html> | ||||||
|  | @ -1,11 +1,11 @@ | ||||||
| -- phpMyAdmin SQL Dump | -- phpMyAdmin SQL Dump | ||||||
| -- version 5.0.4 | -- version 5.1.1 | ||||||
| -- https://www.phpmyadmin.net/ | -- https://www.phpmyadmin.net/ | ||||||
| -- | -- | ||||||
| -- Host: 127.0.0.1 | -- Host: 127.0.0.1 | ||||||
| -- Generation Time: Sep 16, 2021 at 10:36 AM | -- Generation Time: Sep 18, 2021 at 04:05 PM | ||||||
| -- Server version: 10.4.16-MariaDB | -- Server version: 10.4.21-MariaDB | ||||||
| -- PHP Version: 7.4.12 | -- PHP Version: 7.4.23 | ||||||
| 
 | 
 | ||||||
| SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; | SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; | ||||||
| START TRANSACTION; | START TRANSACTION; | ||||||
|  | @ -55,8 +55,19 @@ INSERT INTO `tb_absen` (`id_absen`, `bulan`, `tahun`, `jumlah_umkm`, `omset`, `a | ||||||
| (43, 9, 2020, 0, 0, 0, 0, 0, 'close'), | (43, 9, 2020, 0, 0, 0, 0, 0, 'close'), | ||||||
| (44, 10, 2020, 0, 0, 0, 0, 0, 'close'), | (44, 10, 2020, 0, 0, 0, 0, 0, 'close'), | ||||||
| (45, 11, 2020, 0, 0, 0, 0, 0, 'close'), | (45, 11, 2020, 0, 0, 0, 0, 0, 'close'), | ||||||
| (46, 12, 2020, 4, 30000000, 150000000, 30, 30, 'close'), | (46, 12, 2020, 4, 0, 0, 0, 0, 'close'), | ||||||
| (48, 1, 2021, 4, 0, 145000000, 58, 34, 'open'); | (74, 1, 2021, 5, 54000000, 155000000, 59, 34, 'close'), | ||||||
|  | (75, 2, 2021, 5, 102000000, 155000000, 59, 36, 'close'), | ||||||
|  | (76, 3, 2021, 5, 0, 155000000, 59, 36, 'close'), | ||||||
|  | (77, 4, 2021, 5, 0, 155000000, 59, 36, 'close'), | ||||||
|  | (78, 5, 2021, 5, 0, 155000000, 59, 36, 'close'), | ||||||
|  | (79, 6, 2021, 5, 0, 155000000, 59, 36, 'close'), | ||||||
|  | (80, 7, 2021, 5, 0, 155000000, 59, 36, 'close'), | ||||||
|  | (81, 8, 2021, 5, 0, 155000000, 59, 36, 'close'), | ||||||
|  | (82, 9, 2021, 5, 0, 155000000, 59, 36, 'close'), | ||||||
|  | (83, 10, 2021, 5, 0, 155000000, 59, 36, 'close'), | ||||||
|  | (84, 11, 2021, 5, 0, 155000000, 59, 36, 'close'), | ||||||
|  | (85, 12, 2021, 5, 0, 155000000, 59, 36, 'close'); | ||||||
| 
 | 
 | ||||||
| -- -------------------------------------------------------- | -- -------------------------------------------------------- | ||||||
| 
 | 
 | ||||||
|  | @ -69,6 +80,8 @@ CREATE TABLE `tb_absensi` ( | ||||||
|   `id_absen` varchar(20) NOT NULL, |   `id_absen` varchar(20) NOT NULL, | ||||||
|   `id_umkm` varchar(20) NOT NULL, |   `id_umkm` varchar(20) NOT NULL, | ||||||
|   `id_pemilik` varchar(20) NOT NULL, |   `id_pemilik` varchar(20) NOT NULL, | ||||||
|  |   `id_jenis` bigint(20) NOT NULL, | ||||||
|  |   `id_kategori` bigint(20) NOT NULL, | ||||||
|   `kecamatan` varchar(50) NOT NULL, |   `kecamatan` varchar(50) NOT NULL, | ||||||
|   `kelurahan` varchar(50) NOT NULL, |   `kelurahan` varchar(50) NOT NULL, | ||||||
|   `aset` bigint(20) NOT NULL, |   `aset` bigint(20) NOT NULL, | ||||||
|  | @ -84,59 +97,115 @@ CREATE TABLE `tb_absensi` ( | ||||||
| -- Dumping data for table `tb_absensi` | -- Dumping data for table `tb_absensi` | ||||||
| -- | -- | ||||||
| 
 | 
 | ||||||
| INSERT INTO `tb_absensi` (`id_absensi`, `id_absen`, `id_umkm`, `id_pemilik`, `kecamatan`, `kelurahan`, `aset`, `omset`, `karyawan_l`, `karyawan_p`, `bulan`, `tahun`, `signed`) VALUES | INSERT INTO `tb_absensi` (`id_absensi`, `id_absen`, `id_umkm`, `id_pemilik`, `id_jenis`, `id_kategori`, `kecamatan`, `kelurahan`, `aset`, `omset`, `karyawan_l`, `karyawan_p`, `bulan`, `tahun`, `signed`) VALUES | ||||||
| (121, '35', '1', '2', '', '', 0, 0, 0, 0, '1', '2020', 1), | (121, '35', '1', '2', 0, 0, 'Magelang Selatan', 'Jurangombo Selatan', 0, 0, 0, 0, '1', '2020', 1), | ||||||
| (122, '35', '2', '2', '', '', 0, 0, 0, 0, '1', '2020', 1), | (122, '35', '2', '2', 0, 0, 'Magelang Selatan', 'Magersari', 0, 0, 0, 0, '1', '2020', 1), | ||||||
| (123, '35', '3', '2', '', '', 0, 0, 0, 0, '1', '2020', 1), | (123, '35', '3', '2', 0, 0, 'Magelang Tengah', 'Rejowinangun Utara', 0, 0, 0, 0, '1', '2020', 1), | ||||||
| (124, '35', '4', '6', '', '', 0, 0, 0, 0, '1', '2020', 1), | (124, '35', '4', '6', 0, 0, 'Magelang Utara', 'Potrobangsan', 0, 0, 0, 0, '1', '2020', 1), | ||||||
| (125, '36', '1', '2', '', '', 0, 0, 0, 0, '2', '2020', 1), | (125, '36', '1', '2', 0, 0, 'Magelang Selatan', 'Jurangombo Selatan', 0, 0, 0, 0, '2', '2020', 1), | ||||||
| (126, '36', '2', '2', '', '', 0, 0, 0, 0, '2', '2020', 1), | (126, '36', '2', '2', 0, 0, 'Magelang Selatan', 'Magersari', 0, 0, 0, 0, '2', '2020', 1), | ||||||
| (127, '36', '3', '2', '', '', 0, 0, 0, 0, '2', '2020', 1), | (127, '36', '3', '2', 0, 0, 'Magelang Tengah', 'Rejowinangun Utara', 0, 0, 0, 0, '2', '2020', 1), | ||||||
| (128, '36', '4', '6', '', '', 0, 0, 0, 0, '2', '2020', 1), | (128, '36', '4', '6', 0, 0, 'Magelang Utara', 'Potrobangsan', 0, 0, 0, 0, '2', '2020', 1), | ||||||
| (129, '37', '1', '2', '', '', 0, 0, 0, 0, '3', '2020', 1), | (129, '37', '1', '2', 0, 0, 'Magelang Selatan', 'Jurangombo Selatan', 0, 0, 0, 0, '3', '2020', 1), | ||||||
| (130, '37', '2', '2', '', '', 0, 0, 0, 0, '3', '2020', 1), | (130, '37', '2', '2', 0, 0, 'Magelang Selatan', 'Magersari', 0, 0, 0, 0, '3', '2020', 1), | ||||||
| (131, '37', '3', '2', '', '', 0, 0, 0, 0, '3', '2020', 1), | (131, '37', '3', '2', 0, 0, 'Magelang Tengah', 'Rejowinangun Utara', 0, 0, 0, 0, '3', '2020', 1), | ||||||
| (132, '37', '4', '6', '', '', 0, 0, 0, 0, '3', '2020', 1), | (132, '37', '4', '6', 0, 0, 'Magelang Utara', 'Potrobangsan', 0, 0, 0, 0, '3', '2020', 1), | ||||||
| (133, '38', '1', '2', '', '', 0, 0, 0, 0, '4', '2020', 1), | (133, '38', '1', '2', 0, 0, 'Magelang Selatan', 'Jurangombo Selatan', 0, 0, 0, 0, '4', '2020', 1), | ||||||
| (134, '38', '2', '2', '', '', 0, 0, 0, 0, '4', '2020', 1), | (134, '38', '2', '2', 0, 0, 'Magelang Selatan', 'Magersari', 0, 0, 0, 0, '4', '2020', 1), | ||||||
| (135, '38', '3', '2', '', '', 0, 0, 0, 0, '4', '2020', 1), | (135, '38', '3', '2', 0, 0, 'Magelang Tengah', 'Rejowinangun Utara', 0, 0, 0, 0, '4', '2020', 1), | ||||||
| (136, '38', '4', '6', '', '', 0, 0, 0, 0, '4', '2020', 1), | (136, '38', '4', '6', 0, 0, 'Magelang Utara', 'Potrobangsan', 0, 0, 0, 0, '4', '2020', 1), | ||||||
| (137, '39', '1', '2', '', '', 0, 0, 0, 0, '5', '2020', 1), | (137, '39', '1', '2', 0, 0, 'Magelang Selatan', 'Jurangombo Selatan', 0, 0, 0, 0, '5', '2020', 1), | ||||||
| (138, '39', '2', '2', '', '', 0, 0, 0, 0, '5', '2020', 1), | (138, '39', '2', '2', 0, 0, 'Magelang Selatan', 'Magersari', 0, 0, 0, 0, '5', '2020', 1), | ||||||
| (139, '39', '3', '2', '', '', 0, 0, 0, 0, '5', '2020', 1), | (139, '39', '3', '2', 0, 0, 'Magelang Tengah', 'Rejowinangun Utara', 0, 0, 0, 0, '5', '2020', 1), | ||||||
| (140, '39', '4', '6', '', '', 0, 0, 0, 0, '5', '2020', 1), | (140, '39', '4', '6', 0, 0, 'Magelang Utara', 'Potrobangsan', 0, 0, 0, 0, '5', '2020', 1), | ||||||
| (141, '40', '1', '2', '', '', 0, 0, 0, 0, '6', '2020', 1), | (141, '40', '1', '2', 0, 0, 'Magelang Selatan', 'Jurangombo Selatan', 0, 0, 0, 0, '6', '2020', 1), | ||||||
| (142, '40', '2', '2', '', '', 0, 0, 0, 0, '6', '2020', 1), | (142, '40', '2', '2', 0, 0, 'Magelang Selatan', 'Magersari', 0, 0, 0, 0, '6', '2020', 1), | ||||||
| (143, '40', '3', '2', '', '', 0, 0, 0, 0, '6', '2020', 1), | (143, '40', '3', '2', 0, 0, 'Magelang Tengah', 'Rejowinangun Utara', 0, 0, 0, 0, '6', '2020', 1), | ||||||
| (144, '40', '4', '6', '', '', 0, 0, 0, 0, '6', '2020', 1), | (144, '40', '4', '6', 0, 0, 'Magelang Utara', 'Potrobangsan', 0, 0, 0, 0, '6', '2020', 1), | ||||||
| (145, '41', '1', '2', '', '', 0, 0, 0, 0, '7', '2020', 1), | (145, '41', '1', '2', 0, 0, 'Magelang Selatan', 'Jurangombo Selatan', 0, 0, 0, 0, '7', '2020', 1), | ||||||
| (146, '41', '2', '2', '', '', 0, 0, 0, 0, '7', '2020', 1), | (146, '41', '2', '2', 0, 0, 'Magelang Selatan', 'Magersari', 0, 0, 0, 0, '7', '2020', 1), | ||||||
| (147, '41', '3', '2', '', '', 0, 0, 0, 0, '7', '2020', 1), | (147, '41', '3', '2', 0, 0, 'Magelang Tengah', 'Rejowinangun Utara', 0, 0, 0, 0, '7', '2020', 1), | ||||||
| (148, '41', '4', '6', '', '', 0, 0, 0, 0, '7', '2020', 1), | (148, '41', '4', '6', 0, 0, 'Magelang Utara', 'Potrobangsan', 0, 0, 0, 0, '7', '2020', 1), | ||||||
| (149, '42', '1', '2', '', '', 0, 0, 0, 0, '8', '2020', 1), | (149, '42', '1', '2', 0, 0, 'Magelang Selatan', 'Jurangombo Selatan', 0, 0, 0, 0, '8', '2020', 1), | ||||||
| (150, '42', '2', '2', '', '', 0, 0, 0, 0, '8', '2020', 1), | (150, '42', '2', '2', 0, 0, 'Magelang Selatan', 'Magersari', 0, 0, 0, 0, '8', '2020', 1), | ||||||
| (151, '42', '3', '2', '', '', 0, 0, 0, 0, '8', '2020', 1), | (151, '42', '3', '2', 0, 0, 'Magelang Tengah', 'Rejowinangun Utara', 0, 0, 0, 0, '8', '2020', 1), | ||||||
| (152, '42', '4', '6', '', '', 0, 0, 0, 0, '8', '2020', 1), | (152, '42', '4', '6', 0, 0, 'Magelang Utara', 'Potrobangsan', 0, 0, 0, 0, '8', '2020', 1), | ||||||
| (153, '43', '1', '2', '', '', 0, 0, 0, 0, '9', '2020', 1), | (153, '43', '1', '2', 0, 0, 'Magelang Selatan', 'Jurangombo Selatan', 0, 0, 0, 0, '9', '2020', 1), | ||||||
| (154, '43', '2', '2', '', '', 0, 0, 0, 0, '9', '2020', 1), | (154, '43', '2', '2', 0, 0, 'Magelang Selatan', 'Magersari', 0, 0, 0, 0, '9', '2020', 1), | ||||||
| (155, '43', '3', '2', '', '', 0, 0, 0, 0, '9', '2020', 1), | (155, '43', '3', '2', 0, 0, 'Magelang Tengah', 'Rejowinangun Utara', 0, 0, 0, 0, '9', '2020', 1), | ||||||
| (156, '43', '4', '6', '', '', 0, 0, 0, 0, '9', '2020', 1), | (156, '43', '4', '6', 0, 0, 'Magelang Utara', 'Potrobangsan', 0, 0, 0, 0, '9', '2020', 1), | ||||||
| (157, '44', '1', '2', '', '', 0, 0, 0, 0, '10', '2020', 1), | (157, '44', '1', '2', 0, 0, 'Magelang Selatan', 'Jurangombo Selatan', 0, 0, 0, 0, '10', '2020', 1), | ||||||
| (158, '44', '2', '2', '', '', 0, 0, 0, 0, '10', '2020', 1), | (158, '44', '2', '2', 0, 0, 'Magelang Selatan', 'Magersari', 0, 0, 0, 0, '10', '2020', 1), | ||||||
| (159, '44', '3', '2', '', '', 0, 0, 0, 0, '10', '2020', 1), | (159, '44', '3', '2', 0, 0, 'Magelang Tengah', 'Rejowinangun Utara', 0, 0, 0, 0, '10', '2020', 1), | ||||||
| (160, '44', '4', '6', '', '', 0, 0, 0, 0, '10', '2020', 1), | (160, '44', '4', '6', 0, 0, 'Magelang Utara', 'Potrobangsan', 0, 0, 0, 0, '10', '2020', 1), | ||||||
| (161, '45', '1', '2', '', '', 0, 0, 0, 0, '11', '2020', 1), | (161, '45', '1', '2', 0, 0, 'Magelang Selatan', 'Jurangombo Selatan', 0, 0, 0, 0, '11', '2020', 1), | ||||||
| (162, '45', '2', '2', '', '', 0, 0, 0, 0, '11', '2020', 1), | (162, '45', '2', '2', 0, 0, 'Magelang Selatan', 'Magersari', 0, 0, 0, 0, '11', '2020', 1), | ||||||
| (163, '45', '3', '2', '', '', 0, 0, 0, 0, '11', '2020', 1), | (163, '45', '3', '2', 0, 0, 'Magelang Tengah', 'Rejowinangun Utara', 0, 0, 0, 0, '11', '2020', 1), | ||||||
| (164, '45', '4', '6', '', '', 0, 0, 0, 0, '11', '2020', 1), | (164, '45', '4', '6', 0, 0, 'Magelang Utara', 'Potrobangsan', 0, 0, 0, 0, '11', '2020', 1), | ||||||
| (165, '46', '1', '2', '', '', 0, 0, 0, 0, '12', '2020', 1), | (165, '46', '1', '2', 0, 0, 'Magelang Selatan', 'Jurangombo Selatan', 0, 0, 0, 0, '12', '2020', 1), | ||||||
| (166, '46', '2', '2', '', '', 0, 0, 0, 0, '12', '2020', 1), | (166, '46', '2', '2', 0, 0, 'Magelang Selatan', 'Magersari', 0, 0, 0, 0, '12', '2020', 1), | ||||||
| (167, '46', '3', '2', '', '', 0, 0, 0, 0, '12', '2020', 1), | (167, '46', '3', '2', 0, 0, 'Magelang Tengah', 'Rejowinangun Utara', 0, 0, 0, 0, '12', '2020', 1), | ||||||
| (168, '46', '4', '6', '', '', 0, 0, 0, 0, '12', '2020', 1), | (168, '46', '4', '6', 0, 0, 'Magelang Utara', 'Potrobangsan', 0, 0, 0, 0, '12', '2020', 1), | ||||||
| (173, '48', '1', '2', 'Magelang Utara', 'Kramat Utara', 100000000, 5000000, 20, 8, '1', '2021', 1), | (301, '74', '1', '2', 1, 1, 'Magelang Utara', 'Kramat Utara', 100000000, 0, 20, 8, '1', '2021', 3), | ||||||
| (174, '48', '2', '2', 'Magelang Selatan', 'Tidar Selatan', 30000000, 0, 30, 12, '1', '2021', 0), | (302, '74', '2', '2', 2, 1, 'Magelang Selatan', 'Tidar Selatan', 30000000, 0, 30, 12, '1', '2021', 3), | ||||||
| (175, '48', '3', '2', 'Magelang Selatan', 'Rejowinangun Selatan', 5000000, 0, 5, 8, '1', '2021', 0), | (303, '74', '3', '2', 2, 1, 'Magelang Selatan', 'Rejowinangun Selatan', 5000000, 0, 5, 8, '1', '2021', 3), | ||||||
| (176, '48', '4', '6', 'Magelang Tengah', 'Cacaban', 10000000, 0, 3, 6, '1', '2021', 0); | (304, '74', '4', '6', 3, 1, 'Magelang Tengah', 'Cacaban', 10000000, 0, 3, 6, '1', '2021', 3), | ||||||
|  | (305, '74', '14', '16', 3, 1, 'Magelang Selatan', 'Rejowinangun Selatan', 10000000, 54000000, 1, 0, '1', '2021', 1), | ||||||
|  | (306, '75', '1', '2', 1, 1, 'Magelang Utara', 'Kramat Utara', 100000000, 0, 20, 8, '2', '2021', 3), | ||||||
|  | (307, '75', '2', '2', 2, 1, 'Magelang Selatan', 'Tidar Selatan', 30000000, 0, 30, 12, '2', '2021', 3), | ||||||
|  | (308, '75', '3', '2', 2, 1, 'Magelang Selatan', 'Rejowinangun Selatan', 5000000, 0, 5, 8, '2', '2021', 3), | ||||||
|  | (309, '75', '4', '6', 3, 1, 'Magelang Tengah', 'Cacaban', 10000000, 0, 3, 6, '2', '2021', 3), | ||||||
|  | (310, '75', '14', '16', 3, 1, 'Magelang Selatan', 'Rejowinangun Selatan', 10000000, 102000000, 1, 2, '2', '2021', 1), | ||||||
|  | (311, '76', '1', '2', 1, 1, 'Magelang Utara', 'Kramat Utara', 100000000, 0, 20, 8, '3', '2021', 3), | ||||||
|  | (312, '76', '2', '2', 2, 1, 'Magelang Selatan', 'Tidar Selatan', 30000000, 0, 30, 12, '3', '2021', 3), | ||||||
|  | (313, '76', '3', '2', 2, 1, 'Magelang Selatan', 'Rejowinangun Selatan', 5000000, 0, 5, 8, '3', '2021', 3), | ||||||
|  | (314, '76', '4', '6', 3, 1, 'Magelang Tengah', 'Cacaban', 10000000, 0, 3, 6, '3', '2021', 3), | ||||||
|  | (315, '76', '14', '16', 3, 1, 'Magelang Selatan', 'Rejowinangun Selatan', 10000000, 0, 1, 2, '3', '2021', 3), | ||||||
|  | (316, '77', '1', '2', 1, 1, 'Magelang Utara', 'Kramat Utara', 100000000, 0, 20, 8, '4', '2021', 3), | ||||||
|  | (317, '77', '2', '2', 2, 1, 'Magelang Selatan', 'Tidar Selatan', 30000000, 0, 30, 12, '4', '2021', 3), | ||||||
|  | (318, '77', '3', '2', 2, 1, 'Magelang Selatan', 'Rejowinangun Selatan', 5000000, 0, 5, 8, '4', '2021', 3), | ||||||
|  | (319, '77', '4', '6', 3, 1, 'Magelang Tengah', 'Cacaban', 10000000, 0, 3, 6, '4', '2021', 3), | ||||||
|  | (320, '77', '14', '16', 3, 1, 'Magelang Selatan', 'Rejowinangun Selatan', 10000000, 0, 1, 2, '4', '2021', 3), | ||||||
|  | (321, '78', '1', '2', 1, 1, 'Magelang Utara', 'Kramat Utara', 100000000, 0, 20, 8, '5', '2021', 3), | ||||||
|  | (322, '78', '2', '2', 2, 1, 'Magelang Selatan', 'Tidar Selatan', 30000000, 0, 30, 12, '5', '2021', 3), | ||||||
|  | (323, '78', '3', '2', 2, 1, 'Magelang Selatan', 'Rejowinangun Selatan', 5000000, 0, 5, 8, '5', '2021', 3), | ||||||
|  | (324, '78', '4', '6', 3, 1, 'Magelang Tengah', 'Cacaban', 10000000, 0, 3, 6, '5', '2021', 3), | ||||||
|  | (325, '78', '14', '16', 3, 1, 'Magelang Selatan', 'Rejowinangun Selatan', 10000000, 0, 1, 2, '5', '2021', 3), | ||||||
|  | (326, '79', '1', '2', 1, 1, 'Magelang Utara', 'Kramat Utara', 100000000, 0, 20, 8, '6', '2021', 3), | ||||||
|  | (327, '79', '2', '2', 2, 1, 'Magelang Selatan', 'Tidar Selatan', 30000000, 0, 30, 12, '6', '2021', 3), | ||||||
|  | (328, '79', '3', '2', 2, 1, 'Magelang Selatan', 'Rejowinangun Selatan', 5000000, 0, 5, 8, '6', '2021', 3), | ||||||
|  | (329, '79', '4', '6', 3, 1, 'Magelang Tengah', 'Cacaban', 10000000, 0, 3, 6, '6', '2021', 3), | ||||||
|  | (330, '79', '14', '16', 3, 1, 'Magelang Selatan', 'Rejowinangun Selatan', 10000000, 0, 1, 2, '6', '2021', 3), | ||||||
|  | (331, '80', '1', '2', 1, 1, 'Magelang Utara', 'Kramat Utara', 100000000, 0, 20, 8, '7', '2021', 3), | ||||||
|  | (332, '80', '2', '2', 2, 1, 'Magelang Selatan', 'Tidar Selatan', 30000000, 0, 30, 12, '7', '2021', 3), | ||||||
|  | (333, '80', '3', '2', 2, 1, 'Magelang Selatan', 'Rejowinangun Selatan', 5000000, 0, 5, 8, '7', '2021', 3), | ||||||
|  | (334, '80', '4', '6', 3, 1, 'Magelang Tengah', 'Cacaban', 10000000, 0, 3, 6, '7', '2021', 3), | ||||||
|  | (335, '80', '14', '16', 3, 1, 'Magelang Selatan', 'Rejowinangun Selatan', 10000000, 0, 1, 2, '7', '2021', 3), | ||||||
|  | (336, '81', '1', '2', 1, 1, 'Magelang Utara', 'Kramat Utara', 100000000, 0, 20, 8, '8', '2021', 3), | ||||||
|  | (337, '81', '2', '2', 2, 1, 'Magelang Selatan', 'Tidar Selatan', 30000000, 0, 30, 12, '8', '2021', 3), | ||||||
|  | (338, '81', '3', '2', 2, 1, 'Magelang Selatan', 'Rejowinangun Selatan', 5000000, 0, 5, 8, '8', '2021', 3), | ||||||
|  | (339, '81', '4', '6', 3, 1, 'Magelang Tengah', 'Cacaban', 10000000, 0, 3, 6, '8', '2021', 3), | ||||||
|  | (340, '81', '14', '16', 3, 1, 'Magelang Selatan', 'Rejowinangun Selatan', 10000000, 0, 1, 2, '8', '2021', 3), | ||||||
|  | (341, '82', '1', '2', 1, 1, 'Magelang Utara', 'Kramat Utara', 100000000, 0, 20, 8, '9', '2021', 3), | ||||||
|  | (342, '82', '2', '2', 2, 1, 'Magelang Selatan', 'Tidar Selatan', 30000000, 0, 30, 12, '9', '2021', 3), | ||||||
|  | (343, '82', '3', '2', 2, 1, 'Magelang Selatan', 'Rejowinangun Selatan', 5000000, 0, 5, 8, '9', '2021', 3), | ||||||
|  | (344, '82', '4', '6', 3, 1, 'Magelang Tengah', 'Cacaban', 10000000, 0, 3, 6, '9', '2021', 3), | ||||||
|  | (345, '82', '14', '16', 3, 1, 'Magelang Selatan', 'Rejowinangun Selatan', 10000000, 0, 1, 2, '9', '2021', 3), | ||||||
|  | (346, '83', '1', '2', 1, 1, 'Magelang Utara', 'Kramat Utara', 100000000, 0, 20, 8, '10', '2021', 3), | ||||||
|  | (347, '83', '2', '2', 2, 1, 'Magelang Selatan', 'Tidar Selatan', 30000000, 0, 30, 12, '10', '2021', 3), | ||||||
|  | (348, '83', '3', '2', 2, 1, 'Magelang Selatan', 'Rejowinangun Selatan', 5000000, 0, 5, 8, '10', '2021', 3), | ||||||
|  | (349, '83', '4', '6', 3, 1, 'Magelang Tengah', 'Cacaban', 10000000, 0, 3, 6, '10', '2021', 3), | ||||||
|  | (350, '83', '14', '16', 3, 1, 'Magelang Selatan', 'Rejowinangun Selatan', 10000000, 0, 1, 2, '10', '2021', 3), | ||||||
|  | (351, '84', '1', '2', 1, 1, 'Magelang Utara', 'Kramat Utara', 100000000, 0, 20, 8, '11', '2021', 3), | ||||||
|  | (352, '84', '2', '2', 2, 1, 'Magelang Selatan', 'Tidar Selatan', 30000000, 0, 30, 12, '11', '2021', 3), | ||||||
|  | (353, '84', '3', '2', 2, 1, 'Magelang Selatan', 'Rejowinangun Selatan', 5000000, 0, 5, 8, '11', '2021', 3), | ||||||
|  | (354, '84', '4', '6', 3, 1, 'Magelang Tengah', 'Cacaban', 10000000, 0, 3, 6, '11', '2021', 3), | ||||||
|  | (355, '84', '14', '16', 3, 1, 'Magelang Selatan', 'Rejowinangun Selatan', 10000000, 0, 1, 2, '11', '2021', 3), | ||||||
|  | (356, '85', '1', '2', 1, 1, 'Magelang Utara', 'Kramat Utara', 100000000, 0, 20, 8, '12', '2021', 3), | ||||||
|  | (357, '85', '2', '2', 2, 1, 'Magelang Selatan', 'Tidar Selatan', 30000000, 0, 30, 12, '12', '2021', 3), | ||||||
|  | (358, '85', '3', '2', 2, 1, 'Magelang Selatan', 'Rejowinangun Selatan', 5000000, 0, 5, 8, '12', '2021', 3), | ||||||
|  | (359, '85', '4', '6', 3, 1, 'Magelang Tengah', 'Cacaban', 10000000, 0, 3, 6, '12', '2021', 3), | ||||||
|  | (360, '85', '14', '16', 3, 1, 'Magelang Selatan', 'Rejowinangun Selatan', 10000000, 0, 1, 2, '12', '2021', 3); | ||||||
| 
 | 
 | ||||||
| -- -------------------------------------------------------- | -- -------------------------------------------------------- | ||||||
| 
 | 
 | ||||||
|  | @ -154,9 +223,9 @@ CREATE TABLE `tb_jenis` ( | ||||||
| -- | -- | ||||||
| 
 | 
 | ||||||
| INSERT INTO `tb_jenis` (`id_jenis`, `jenis`) VALUES | INSERT INTO `tb_jenis` (`id_jenis`, `jenis`) VALUES | ||||||
| (1, 'Industri'), | (1, 'Perdaganan'), | ||||||
| (2, 'Perdagangan'), | (2, 'Jasa'), | ||||||
| (3, 'Jasa'); | (3, 'Industri'); | ||||||
| 
 | 
 | ||||||
| -- -------------------------------------------------------- | -- -------------------------------------------------------- | ||||||
| 
 | 
 | ||||||
|  | @ -222,18 +291,139 @@ INSERT INTO `tb_kelurahan` (`id_kelurahan`, `kelurahan`, `kecamatan`) VALUES | ||||||
| CREATE TABLE `tb_laporan` ( | CREATE TABLE `tb_laporan` ( | ||||||
|   `id_laporan` int(11) NOT NULL, |   `id_laporan` int(11) NOT NULL, | ||||||
|   `tahun` int(11) NOT NULL, |   `tahun` int(11) NOT NULL, | ||||||
|   `jml_umkm` bigint(20) NOT NULL, |   `bulan` bigint(20) NOT NULL, | ||||||
|   `total_aset` bigint(20) NOT NULL, |   `kelurahan` varchar(50) NOT NULL, | ||||||
|   `total_omset` bigint(20) NOT NULL, |   `kecamatan` varchar(50) NOT NULL, | ||||||
|   `jml_karyawan` int(11) NOT NULL |   `aset` bigint(20) NOT NULL, | ||||||
|  |   `omset` bigint(20) NOT NULL, | ||||||
|  |   `jumlah_umkm` bigint(20) NOT NULL, | ||||||
|  |   `karyawan_jenis1` bigint(20) NOT NULL, | ||||||
|  |   `karyawan_jenis2` bigint(20) NOT NULL, | ||||||
|  |   `karyawan_jenis3` bigint(20) NOT NULL, | ||||||
|  |   `omset_jenis1` bigint(20) NOT NULL, | ||||||
|  |   `omset_jenis2` bigint(20) NOT NULL, | ||||||
|  |   `omset_jenis3` bigint(20) NOT NULL, | ||||||
|  |   `aset_jenis1` bigint(20) NOT NULL, | ||||||
|  |   `aset_jenis2` bigint(20) NOT NULL, | ||||||
|  |   `aset_jenis3` bigint(20) NOT NULL, | ||||||
|  |   `karyawan_jen1_l` int(11) NOT NULL, | ||||||
|  |   `karyawan_jen1_p` int(11) NOT NULL, | ||||||
|  |   `karyawan_jen2_l` int(11) NOT NULL, | ||||||
|  |   `karyawan_jen2_p` int(11) NOT NULL, | ||||||
|  |   `karyawan_jen3_l` int(11) NOT NULL, | ||||||
|  |   `karyawan_jen3_p` int(11) NOT NULL, | ||||||
|  |   `umkm_jen1_kat1` bigint(20) NOT NULL, | ||||||
|  |   `umkm_jen1_kat2` bigint(20) NOT NULL, | ||||||
|  |   `umkm_jen1_kat3` bigint(20) NOT NULL, | ||||||
|  |   `umkm_jen2_kat1` bigint(20) NOT NULL, | ||||||
|  |   `umkm_jen2_kat2` bigint(20) NOT NULL, | ||||||
|  |   `umkm_jen2_kat3` bigint(20) NOT NULL, | ||||||
|  |   `umkm_jen3_kat1` bigint(20) NOT NULL, | ||||||
|  |   `umkm_jen3_kat2` bigint(20) NOT NULL, | ||||||
|  |   `umkm_jen3_kat3` bigint(20) NOT NULL | ||||||
| ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; | ||||||
| 
 | 
 | ||||||
| -- | -- | ||||||
| -- Dumping data for table `tb_laporan` | -- Dumping data for table `tb_laporan` | ||||||
| -- | -- | ||||||
| 
 | 
 | ||||||
| INSERT INTO `tb_laporan` (`id_laporan`, `tahun`, `jml_umkm`, `total_aset`, `total_omset`, `jml_karyawan`) VALUES | INSERT INTO `tb_laporan` (`id_laporan`, `tahun`, `bulan`, `kelurahan`, `kecamatan`, `aset`, `omset`, `jumlah_umkm`, `karyawan_jenis1`, `karyawan_jenis2`, `karyawan_jenis3`, `omset_jenis1`, `omset_jenis2`, `omset_jenis3`, `aset_jenis1`, `aset_jenis2`, `aset_jenis3`, `karyawan_jen1_l`, `karyawan_jen1_p`, `karyawan_jen2_l`, `karyawan_jen2_p`, `karyawan_jen3_l`, `karyawan_jen3_p`, `umkm_jen1_kat1`, `umkm_jen1_kat2`, `umkm_jen1_kat3`, `umkm_jen2_kat1`, `umkm_jen2_kat2`, `umkm_jen2_kat3`, `umkm_jen3_kat1`, `umkm_jen3_kat2`, `umkm_jen3_kat3`) VALUES | ||||||
| (1, 2019, 0, 0, 0, 0); | (61, 2020, 1, 'Jurangombo Selatan', 'Magelang Selatan', 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), | ||||||
|  | (62, 2020, 2, 'Jurangombo Selatan', 'Magelang Selatan', 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), | ||||||
|  | (63, 2020, 3, 'Jurangombo Selatan', 'Magelang Selatan', 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), | ||||||
|  | (64, 2020, 4, 'Jurangombo Selatan', 'Magelang Selatan', 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), | ||||||
|  | (65, 2020, 5, 'Jurangombo Selatan', 'Magelang Selatan', 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), | ||||||
|  | (66, 2020, 6, 'Jurangombo Selatan', 'Magelang Selatan', 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), | ||||||
|  | (67, 2020, 7, 'Jurangombo Selatan', 'Magelang Selatan', 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), | ||||||
|  | (68, 2020, 8, 'Jurangombo Selatan', 'Magelang Selatan', 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), | ||||||
|  | (69, 2020, 9, 'Jurangombo Selatan', 'Magelang Selatan', 0, 0, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), | ||||||
|  | (70, 2020, 10, 'Jurangombo Selatan', 'Magelang Selatan', 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), | ||||||
|  | (71, 2020, 11, 'Jurangombo Selatan', 'Magelang Selatan', 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), | ||||||
|  | (72, 2020, 12, 'Jurangombo Selatan', 'Magelang Selatan', 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), | ||||||
|  | (73, 2020, 1, 'Magersari', 'Magelang Selatan', 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), | ||||||
|  | (74, 2020, 2, 'Magersari', 'Magelang Selatan', 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), | ||||||
|  | (75, 2020, 3, 'Magersari', 'Magelang Selatan', 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), | ||||||
|  | (76, 2020, 4, 'Magersari', 'Magelang Selatan', 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), | ||||||
|  | (77, 2020, 5, 'Magersari', 'Magelang Selatan', 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), | ||||||
|  | (78, 2020, 6, 'Magersari', 'Magelang Selatan', 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), | ||||||
|  | (79, 2020, 7, 'Magersari', 'Magelang Selatan', 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), | ||||||
|  | (80, 2020, 8, 'Magersari', 'Magelang Selatan', 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), | ||||||
|  | (81, 2020, 9, 'Magersari', 'Magelang Selatan', 0, 0, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), | ||||||
|  | (82, 2020, 10, 'Magersari', 'Magelang Selatan', 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), | ||||||
|  | (83, 2020, 11, 'Magersari', 'Magelang Selatan', 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), | ||||||
|  | (84, 2020, 12, 'Magersari', 'Magelang Selatan', 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), | ||||||
|  | (85, 2020, 1, 'Potrobangsan', 'Magelang Utara', 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), | ||||||
|  | (86, 2020, 2, 'Potrobangsan', 'Magelang Utara', 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), | ||||||
|  | (87, 2020, 3, 'Potrobangsan', 'Magelang Utara', 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), | ||||||
|  | (88, 2020, 4, 'Potrobangsan', 'Magelang Utara', 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), | ||||||
|  | (89, 2020, 5, 'Potrobangsan', 'Magelang Utara', 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), | ||||||
|  | (90, 2020, 6, 'Potrobangsan', 'Magelang Utara', 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), | ||||||
|  | (91, 2020, 7, 'Potrobangsan', 'Magelang Utara', 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), | ||||||
|  | (92, 2020, 8, 'Potrobangsan', 'Magelang Utara', 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), | ||||||
|  | (93, 2020, 9, 'Potrobangsan', 'Magelang Utara', 0, 0, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), | ||||||
|  | (94, 2020, 10, 'Potrobangsan', 'Magelang Utara', 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), | ||||||
|  | (95, 2020, 11, 'Potrobangsan', 'Magelang Utara', 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), | ||||||
|  | (96, 2020, 12, 'Potrobangsan', 'Magelang Utara', 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), | ||||||
|  | (97, 2020, 1, 'Rejowinangun Utara', 'Magelang Tengah', 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), | ||||||
|  | (98, 2020, 2, 'Rejowinangun Utara', 'Magelang Tengah', 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), | ||||||
|  | (99, 2020, 3, 'Rejowinangun Utara', 'Magelang Tengah', 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), | ||||||
|  | (100, 2020, 4, 'Rejowinangun Utara', 'Magelang Tengah', 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), | ||||||
|  | (101, 2020, 5, 'Rejowinangun Utara', 'Magelang Tengah', 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), | ||||||
|  | (102, 2020, 6, 'Rejowinangun Utara', 'Magelang Tengah', 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), | ||||||
|  | (103, 2020, 7, 'Rejowinangun Utara', 'Magelang Tengah', 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), | ||||||
|  | (104, 2020, 8, 'Rejowinangun Utara', 'Magelang Tengah', 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), | ||||||
|  | (105, 2020, 9, 'Rejowinangun Utara', 'Magelang Tengah', 0, 0, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), | ||||||
|  | (106, 2020, 10, 'Rejowinangun Utara', 'Magelang Tengah', 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), | ||||||
|  | (107, 2020, 11, 'Rejowinangun Utara', 'Magelang Tengah', 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), | ||||||
|  | (108, 2020, 12, 'Rejowinangun Utara', 'Magelang Tengah', 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), | ||||||
|  | (701, 2021, 1, 'Cacaban', 'Magelang Tengah', 10000000, 0, 1, 0, 0, 9, 0, 0, 0, 0, 0, 10000000, 0, 0, 0, 0, 3, 6, 0, 0, 0, 0, 0, 0, 1, 0, 0), | ||||||
|  | (702, 2021, 2, 'Cacaban', 'Magelang Tengah', 10000000, 0, 1, 0, 0, 9, 0, 0, 0, 0, 0, 10000000, 0, 0, 0, 0, 3, 6, 0, 0, 0, 0, 0, 0, 1, 0, 0), | ||||||
|  | (703, 2021, 3, 'Cacaban', 'Magelang Tengah', 10000000, 0, 1, 0, 0, 9, 0, 0, 0, 0, 0, 10000000, 0, 0, 0, 0, 3, 6, 0, 0, 0, 0, 0, 0, 1, 0, 0), | ||||||
|  | (704, 2021, 4, 'Cacaban', 'Magelang Tengah', 10000000, 0, 1, 0, 0, 9, 0, 0, 0, 0, 0, 10000000, 0, 0, 0, 0, 3, 6, 0, 0, 0, 0, 0, 0, 1, 0, 0), | ||||||
|  | (705, 2021, 5, 'Cacaban', 'Magelang Tengah', 10000000, 0, 1, 0, 0, 9, 0, 0, 0, 0, 0, 10000000, 0, 0, 0, 0, 3, 6, 0, 0, 0, 0, 0, 0, 1, 0, 0), | ||||||
|  | (706, 2021, 6, 'Cacaban', 'Magelang Tengah', 10000000, 0, 1, 0, 0, 9, 0, 0, 0, 0, 0, 10000000, 0, 0, 0, 0, 3, 6, 0, 0, 0, 0, 0, 0, 1, 0, 0), | ||||||
|  | (707, 2021, 7, 'Cacaban', 'Magelang Tengah', 10000000, 0, 1, 0, 0, 9, 0, 0, 0, 0, 0, 10000000, 0, 0, 0, 0, 3, 6, 0, 0, 0, 0, 0, 0, 1, 0, 0), | ||||||
|  | (708, 2021, 8, 'Cacaban', 'Magelang Tengah', 10000000, 0, 1, 0, 0, 9, 0, 0, 0, 0, 0, 10000000, 0, 0, 0, 0, 3, 6, 0, 0, 0, 0, 0, 0, 1, 0, 0), | ||||||
|  | (709, 2021, 9, 'Cacaban', 'Magelang Tengah', 10000000, 0, 1, 0, 0, 9, 0, 0, 0, 0, 0, 10000000, 0, 0, 0, 0, 3, 6, 0, 0, 0, 0, 0, 0, 1, 0, 0), | ||||||
|  | (710, 2021, 10, 'Cacaban', 'Magelang Tengah', 10000000, 0, 1, 0, 0, 9, 0, 0, 0, 0, 0, 10000000, 0, 0, 0, 0, 3, 6, 0, 0, 0, 0, 0, 0, 1, 0, 0), | ||||||
|  | (711, 2021, 11, 'Cacaban', 'Magelang Tengah', 10000000, 0, 1, 0, 0, 9, 0, 0, 0, 0, 0, 10000000, 0, 0, 0, 0, 3, 6, 0, 0, 0, 0, 0, 0, 1, 0, 0), | ||||||
|  | (712, 2021, 12, 'Cacaban', 'Magelang Tengah', 10000000, 0, 1, 0, 0, 9, 0, 0, 0, 0, 0, 10000000, 0, 0, 0, 0, 3, 6, 0, 0, 0, 0, 0, 0, 1, 0, 0), | ||||||
|  | (713, 2021, 1, 'Kramat Utara', 'Magelang Utara', 100000000, 0, 1, 28, 0, 0, 0, 0, 0, 100000000, 0, 0, 20, 8, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0), | ||||||
|  | (714, 2021, 2, 'Kramat Utara', 'Magelang Utara', 100000000, 0, 1, 28, 0, 0, 0, 0, 0, 100000000, 0, 0, 20, 8, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0), | ||||||
|  | (715, 2021, 3, 'Kramat Utara', 'Magelang Utara', 100000000, 0, 1, 28, 0, 0, 0, 0, 0, 100000000, 0, 0, 20, 8, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0), | ||||||
|  | (716, 2021, 4, 'Kramat Utara', 'Magelang Utara', 100000000, 0, 1, 28, 0, 0, 0, 0, 0, 100000000, 0, 0, 20, 8, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0), | ||||||
|  | (717, 2021, 5, 'Kramat Utara', 'Magelang Utara', 100000000, 0, 1, 28, 0, 0, 0, 0, 0, 100000000, 0, 0, 20, 8, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0), | ||||||
|  | (718, 2021, 6, 'Kramat Utara', 'Magelang Utara', 100000000, 0, 1, 28, 0, 0, 0, 0, 0, 100000000, 0, 0, 20, 8, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0), | ||||||
|  | (719, 2021, 7, 'Kramat Utara', 'Magelang Utara', 100000000, 0, 1, 28, 0, 0, 0, 0, 0, 100000000, 0, 0, 20, 8, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0), | ||||||
|  | (720, 2021, 8, 'Kramat Utara', 'Magelang Utara', 100000000, 0, 1, 28, 0, 0, 0, 0, 0, 100000000, 0, 0, 20, 8, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0), | ||||||
|  | (721, 2021, 9, 'Kramat Utara', 'Magelang Utara', 100000000, 0, 1, 28, 0, 0, 0, 0, 0, 100000000, 0, 0, 20, 8, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0), | ||||||
|  | (722, 2021, 10, 'Kramat Utara', 'Magelang Utara', 100000000, 0, 1, 28, 0, 0, 0, 0, 0, 100000000, 0, 0, 20, 8, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0), | ||||||
|  | (723, 2021, 11, 'Kramat Utara', 'Magelang Utara', 100000000, 0, 1, 28, 0, 0, 0, 0, 0, 100000000, 0, 0, 20, 8, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0), | ||||||
|  | (724, 2021, 12, 'Kramat Utara', 'Magelang Utara', 100000000, 0, 1, 28, 0, 0, 0, 0, 0, 100000000, 0, 0, 20, 8, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0), | ||||||
|  | (725, 2021, 1, 'Rejowinangun Selatan', 'Magelang Selatan', 15000000, 54000000, 2, 0, 13, 1, 0, 0, 54000000, 0, 5000000, 10000000, 0, 0, 5, 8, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0), | ||||||
|  | (726, 2021, 2, 'Rejowinangun Selatan', 'Magelang Selatan', 15000000, 102000000, 2, 0, 13, 3, 0, 0, 102000000, 0, 5000000, 10000000, 0, 0, 5, 8, 1, 2, 0, 0, 0, 1, 0, 0, 1, 0, 0), | ||||||
|  | (727, 2021, 3, 'Rejowinangun Selatan', 'Magelang Selatan', 15000000, 0, 2, 0, 13, 3, 0, 0, 0, 0, 5000000, 10000000, 0, 0, 5, 8, 1, 2, 0, 0, 0, 1, 0, 0, 1, 0, 0), | ||||||
|  | (728, 2021, 4, 'Rejowinangun Selatan', 'Magelang Selatan', 15000000, 0, 2, 0, 13, 3, 0, 0, 0, 0, 5000000, 10000000, 0, 0, 5, 8, 1, 2, 0, 0, 0, 1, 0, 0, 1, 0, 0), | ||||||
|  | (729, 2021, 5, 'Rejowinangun Selatan', 'Magelang Selatan', 15000000, 0, 2, 0, 13, 3, 0, 0, 0, 0, 5000000, 10000000, 0, 0, 5, 8, 1, 2, 0, 0, 0, 1, 0, 0, 1, 0, 0), | ||||||
|  | (730, 2021, 6, 'Rejowinangun Selatan', 'Magelang Selatan', 15000000, 0, 2, 0, 13, 3, 0, 0, 0, 0, 5000000, 10000000, 0, 0, 5, 8, 1, 2, 0, 0, 0, 1, 0, 0, 1, 0, 0), | ||||||
|  | (731, 2021, 7, 'Rejowinangun Selatan', 'Magelang Selatan', 15000000, 0, 2, 0, 13, 3, 0, 0, 0, 0, 5000000, 10000000, 0, 0, 5, 8, 1, 2, 0, 0, 0, 1, 0, 0, 1, 0, 0), | ||||||
|  | (732, 2021, 8, 'Rejowinangun Selatan', 'Magelang Selatan', 15000000, 0, 2, 0, 13, 3, 0, 0, 0, 0, 5000000, 10000000, 0, 0, 5, 8, 1, 2, 0, 0, 0, 1, 0, 0, 1, 0, 0), | ||||||
|  | (733, 2021, 9, 'Rejowinangun Selatan', 'Magelang Selatan', 15000000, 0, 2, 0, 13, 3, 0, 0, 0, 0, 5000000, 10000000, 0, 0, 5, 8, 1, 2, 0, 0, 0, 1, 0, 0, 1, 0, 0), | ||||||
|  | (734, 2021, 10, 'Rejowinangun Selatan', 'Magelang Selatan', 15000000, 0, 2, 0, 13, 3, 0, 0, 0, 0, 5000000, 10000000, 0, 0, 5, 8, 1, 2, 0, 0, 0, 1, 0, 0, 1, 0, 0), | ||||||
|  | (735, 2021, 11, 'Rejowinangun Selatan', 'Magelang Selatan', 15000000, 0, 2, 0, 13, 3, 0, 0, 0, 0, 5000000, 10000000, 0, 0, 5, 8, 1, 2, 0, 0, 0, 1, 0, 0, 1, 0, 0), | ||||||
|  | (736, 2021, 12, 'Rejowinangun Selatan', 'Magelang Selatan', 15000000, 0, 2, 0, 13, 3, 0, 0, 0, 0, 5000000, 10000000, 0, 0, 5, 8, 1, 2, 0, 0, 0, 1, 0, 0, 1, 0, 0), | ||||||
|  | (737, 2021, 1, 'Tidar Selatan', 'Magelang Selatan', 30000000, 0, 1, 0, 42, 0, 0, 0, 0, 0, 30000000, 0, 0, 0, 30, 12, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0), | ||||||
|  | (738, 2021, 2, 'Tidar Selatan', 'Magelang Selatan', 30000000, 0, 1, 0, 42, 0, 0, 0, 0, 0, 30000000, 0, 0, 0, 30, 12, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0), | ||||||
|  | (739, 2021, 3, 'Tidar Selatan', 'Magelang Selatan', 30000000, 0, 1, 0, 42, 0, 0, 0, 0, 0, 30000000, 0, 0, 0, 30, 12, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0), | ||||||
|  | (740, 2021, 4, 'Tidar Selatan', 'Magelang Selatan', 30000000, 0, 1, 0, 42, 0, 0, 0, 0, 0, 30000000, 0, 0, 0, 30, 12, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0), | ||||||
|  | (741, 2021, 5, 'Tidar Selatan', 'Magelang Selatan', 30000000, 0, 1, 0, 42, 0, 0, 0, 0, 0, 30000000, 0, 0, 0, 30, 12, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0), | ||||||
|  | (742, 2021, 6, 'Tidar Selatan', 'Magelang Selatan', 30000000, 0, 1, 0, 42, 0, 0, 0, 0, 0, 30000000, 0, 0, 0, 30, 12, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0), | ||||||
|  | (743, 2021, 7, 'Tidar Selatan', 'Magelang Selatan', 30000000, 0, 1, 0, 42, 0, 0, 0, 0, 0, 30000000, 0, 0, 0, 30, 12, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0), | ||||||
|  | (744, 2021, 8, 'Tidar Selatan', 'Magelang Selatan', 30000000, 0, 1, 0, 42, 0, 0, 0, 0, 0, 30000000, 0, 0, 0, 30, 12, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0), | ||||||
|  | (745, 2021, 9, 'Tidar Selatan', 'Magelang Selatan', 30000000, 0, 1, 0, 42, 0, 0, 0, 0, 0, 30000000, 0, 0, 0, 30, 12, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0), | ||||||
|  | (746, 2021, 10, 'Tidar Selatan', 'Magelang Selatan', 30000000, 0, 1, 0, 42, 0, 0, 0, 0, 0, 30000000, 0, 0, 0, 30, 12, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0), | ||||||
|  | (747, 2021, 11, 'Tidar Selatan', 'Magelang Selatan', 30000000, 0, 1, 0, 42, 0, 0, 0, 0, 0, 30000000, 0, 0, 0, 30, 12, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0), | ||||||
|  | (748, 2021, 12, 'Tidar Selatan', 'Magelang Selatan', 30000000, 0, 1, 0, 42, 0, 0, 0, 0, 0, 30000000, 0, 0, 0, 30, 12, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0); | ||||||
| 
 | 
 | ||||||
| -- -------------------------------------------------------- | -- -------------------------------------------------------- | ||||||
| 
 | 
 | ||||||
|  | @ -249,6 +439,13 @@ CREATE TABLE `tb_produk` ( | ||||||
|   `deskripsi` text NOT NULL |   `deskripsi` text NOT NULL | ||||||
| ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; | ||||||
| 
 | 
 | ||||||
|  | -- | ||||||
|  | -- Dumping data for table `tb_produk` | ||||||
|  | -- | ||||||
|  | 
 | ||||||
|  | INSERT INTO `tb_produk` (`id_produk`, `foto_produk`, `id_umkm`, `produk`, `deskripsi`) VALUES | ||||||
|  | (11, '11.png', 14, 'Aplikasi Dashboard UMKM', 'Aplikasi untuk pendataan UMKM'); | ||||||
|  | 
 | ||||||
| -- -------------------------------------------------------- | -- -------------------------------------------------------- | ||||||
| 
 | 
 | ||||||
| -- | -- | ||||||
|  | @ -278,10 +475,11 @@ CREATE TABLE `tb_umkm` ( | ||||||
| -- | -- | ||||||
| 
 | 
 | ||||||
| INSERT INTO `tb_umkm` (`id_umkm`, `id_pemilik`, `nama`, `id_kategori`, `kecamatan`, `kelurahan`, `alamat`, `telp`, `id_jenis`, `omset_awal`, `aset_awal`, `karyawan_l`, `karyawan_p`, `deskripsi`, `foto_umkm`) VALUES | INSERT INTO `tb_umkm` (`id_umkm`, `id_pemilik`, `nama`, `id_kategori`, `kecamatan`, `kelurahan`, `alamat`, `telp`, `id_jenis`, `omset_awal`, `aset_awal`, `karyawan_l`, `karyawan_p`, `deskripsi`, `foto_umkm`) VALUES | ||||||
| (1, '2', 'Meubel Rotan', 1, 'Magelang Utara', 'Kramat Utara', 'Jl. Jeruk Purut, Kupatan, Kramat Utara, Magelang', '08121212121', 1, 25000000, 100000000, 20, 8, 'Sedia berbagai furnitur dan Meubel', '1.jpg'), | (1, '2', 'Meubel Rotan', 1, 'Magelang Utara', 'Kramat Utara', 'Jl. Jeruk Purut, Kupatan, Kramat Utara, Magelang', '08121212121', 1, 0, 100000000, 20, 8, 'Sedia berbagai furnitur dan Meubel', '1.jpg'), | ||||||
| (2, '2', 'Percetakan Jaya Muya', 1, 'Magelang Selatan', 'Tidar Selatan', 'Kiringan III, Tidar Selatan, Kota Magelang', '0811111111', 2, 15000000, 30000000, 30, 12, 'Jasa Reklame, Baliho, Banner dan Printing Sepanduk', 'umkm.png'), | (2, '2', 'Percetakan Jaya Muya', 1, 'Magelang Selatan', 'Tidar Selatan', 'Kiringan III, Tidar Selatan, Kota Magelang', '0811111111', 2, 0, 30000000, 30, 12, 'Jasa Reklame, Baliho, Banner dan Printing Sepanduk', 'umkm.png'), | ||||||
| (3, '2', 'Frozen Food Magelang', 1, 'Magelang Selatan', 'Rejowinangun Selatan', 'Tanon, Jl. Singosari, Rejowinangun Selatan, Magelang', '08121212121', 2, 12000000, 5000000, 5, 8, 'Reseller Produk makanan beku : Sosis, Daging, Tempura, Nuget, dll', 'umkm.png'), | (3, '2', 'Frozen Food Magelang', 1, 'Magelang Selatan', 'Rejowinangun Selatan', 'Tanon, Jl. Singosari, Rejowinangun Selatan, Magelang', '08121212121', 2, 0, 5000000, 5, 8, 'Reseller Produk makanan beku : Sosis, Daging, Tempura, Nuget, dll', 'umkm.png'), | ||||||
| (4, '6', 'Putih Abu  Workshop', 1, 'Magelang Tengah', 'Cacaban', 'Cacaban Tengah', '+6233333923', 3, 16000000, 10000000, 3, 6, 'Souvenir Nikah Karakter', 'umkm.png'); | (4, '6', 'Putih Abu  Workshop', 1, 'Magelang Tengah', 'Cacaban', 'Cacaban Tengah', '+6233333923', 3, 0, 10000000, 3, 6, 'Souvenir Nikah Karakter', 'umkm.png'), | ||||||
|  | (14, '16', 'Mage Soft', 1, 'Magelang Selatan', 'Rejowinangun Selatan', 'Rejowinangun Selatan, Magelang Selatan', '081228868280', 3, 156000000, 10000000, 1, 0, 'Software Developer', 'umkm.png'); | ||||||
| 
 | 
 | ||||||
| -- -------------------------------------------------------- | -- -------------------------------------------------------- | ||||||
| 
 | 
 | ||||||
|  | @ -311,7 +509,8 @@ CREATE TABLE `tb_user` ( | ||||||
| INSERT INTO `tb_user` (`id_user`, `nama`, `username`, `password`, `alamat_user`, `kecamatan_user`, `kelurahan_user`, `kota_user`, `telp_user`, `npwp`, `foto_user`, `level`) VALUES | INSERT INTO `tb_user` (`id_user`, `nama`, `username`, `password`, `alamat_user`, `kecamatan_user`, `kelurahan_user`, `kota_user`, `telp_user`, `npwp`, `foto_user`, `level`) VALUES | ||||||
| (1, 'Admin', 'admin', '643ed2bde5b2f6bd70f7f32a9b0f4ebb', 'Kota Magelang', 'Magelang Selatan', '', 'Kota Magelang', '', '', 'user.png', 'admin'), | (1, 'Admin', 'admin', '643ed2bde5b2f6bd70f7f32a9b0f4ebb', 'Kota Magelang', 'Magelang Selatan', '', 'Kota Magelang', '', '', 'user.png', 'admin'), | ||||||
| (2, 'Yoga Ismail Pratama', 'yogaismail', '643ed2bde5b2f6bd70f7f32a9b0f4ebb', 'Magelang', 'Magelang Selatan', 'Tidar Selatan', 'Kota Magelang', '0812222999383', '6343266', 'user.png', 'pemilik'), | (2, 'Yoga Ismail Pratama', 'yogaismail', '643ed2bde5b2f6bd70f7f32a9b0f4ebb', 'Magelang', 'Magelang Selatan', 'Tidar Selatan', 'Kota Magelang', '0812222999383', '6343266', 'user.png', 'pemilik'), | ||||||
| (6, 'Prawira Setia ', 'prawira', '643ed2bde5b2f6bd70f7f32a9b0f4ebb', 'Jambe Wangi', 'Magelang Selatan', 'Kramat Utara', 'Kota Magelang', '082689625495', '', 'user.png', 'pemilik'); | (6, 'Prawira Setia ', 'prawira', '643ed2bde5b2f6bd70f7f32a9b0f4ebb', 'Jambe Wangi', 'Magelang Selatan', 'Kramat Utara', 'Kota Magelang', '082689625495', '', 'user.png', 'pemilik'), | ||||||
|  | (16, 'Hafidz Fachrisyah', 'hafidzfachrisyah', '643ed2bde5b2f6bd70f7f32a9b0f4ebb', 'Rejowinangun Selatan, Magelang Selatan, Magelang', 'Magelang Selatan', 'Rejowinangun Utara', 'Kota Magelang', '081228868280', '-', 'user.png', 'pemilik'); | ||||||
| 
 | 
 | ||||||
| -- | -- | ||||||
| -- Indexes for dumped tables | -- Indexes for dumped tables | ||||||
|  | @ -330,7 +529,12 @@ ALTER TABLE `tb_absensi` | ||||||
|   ADD PRIMARY KEY (`id_absensi`), |   ADD PRIMARY KEY (`id_absensi`), | ||||||
|   ADD KEY `id_absen` (`id_absen`), |   ADD KEY `id_absen` (`id_absen`), | ||||||
|   ADD KEY `id_umkm` (`id_umkm`), |   ADD KEY `id_umkm` (`id_umkm`), | ||||||
|   ADD KEY `aset` (`aset`); |   ADD KEY `aset` (`aset`), | ||||||
|  |   ADD KEY `id_pemilik` (`id_pemilik`), | ||||||
|  |   ADD KEY `id_jenis` (`id_jenis`), | ||||||
|  |   ADD KEY `id_kategori` (`id_kategori`), | ||||||
|  |   ADD KEY `kelurahan` (`kelurahan`), | ||||||
|  |   ADD KEY `kecamatan` (`kecamatan`); | ||||||
| 
 | 
 | ||||||
| -- | -- | ||||||
| -- Indexes for table `tb_jenis` | -- Indexes for table `tb_jenis` | ||||||
|  | @ -355,7 +559,8 @@ ALTER TABLE `tb_kelurahan` | ||||||
| -- Indexes for table `tb_laporan` | -- Indexes for table `tb_laporan` | ||||||
| -- | -- | ||||||
| ALTER TABLE `tb_laporan` | ALTER TABLE `tb_laporan` | ||||||
|   ADD PRIMARY KEY (`id_laporan`); |   ADD PRIMARY KEY (`id_laporan`), | ||||||
|  |   ADD KEY `tahun` (`tahun`); | ||||||
| 
 | 
 | ||||||
| -- | -- | ||||||
| -- Indexes for table `tb_produk` | -- Indexes for table `tb_produk` | ||||||
|  | @ -389,13 +594,13 @@ ALTER TABLE `tb_user` | ||||||
| -- AUTO_INCREMENT for table `tb_absen` | -- AUTO_INCREMENT for table `tb_absen` | ||||||
| -- | -- | ||||||
| ALTER TABLE `tb_absen` | ALTER TABLE `tb_absen` | ||||||
|   MODIFY `id_absen` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=49; |   MODIFY `id_absen` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=86; | ||||||
| 
 | 
 | ||||||
| -- | -- | ||||||
| -- AUTO_INCREMENT for table `tb_absensi` | -- AUTO_INCREMENT for table `tb_absensi` | ||||||
| -- | -- | ||||||
| ALTER TABLE `tb_absensi` | ALTER TABLE `tb_absensi` | ||||||
|   MODIFY `id_absensi` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=177; |   MODIFY `id_absensi` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=361; | ||||||
| 
 | 
 | ||||||
| -- | -- | ||||||
| -- AUTO_INCREMENT for table `tb_jenis` | -- AUTO_INCREMENT for table `tb_jenis` | ||||||
|  | @ -419,25 +624,25 @@ ALTER TABLE `tb_kelurahan` | ||||||
| -- AUTO_INCREMENT for table `tb_laporan` | -- AUTO_INCREMENT for table `tb_laporan` | ||||||
| -- | -- | ||||||
| ALTER TABLE `tb_laporan` | ALTER TABLE `tb_laporan` | ||||||
|   MODIFY `id_laporan` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; |   MODIFY `id_laporan` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=749; | ||||||
| 
 | 
 | ||||||
| -- | -- | ||||||
| -- AUTO_INCREMENT for table `tb_produk` | -- AUTO_INCREMENT for table `tb_produk` | ||||||
| -- | -- | ||||||
| ALTER TABLE `tb_produk` | ALTER TABLE `tb_produk` | ||||||
|   MODIFY `id_produk` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; |   MODIFY `id_produk` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12; | ||||||
| 
 | 
 | ||||||
| -- | -- | ||||||
| -- AUTO_INCREMENT for table `tb_umkm` | -- AUTO_INCREMENT for table `tb_umkm` | ||||||
| -- | -- | ||||||
| ALTER TABLE `tb_umkm` | ALTER TABLE `tb_umkm` | ||||||
|   MODIFY `id_umkm` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14; |   MODIFY `id_umkm` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15; | ||||||
| 
 | 
 | ||||||
| -- | -- | ||||||
| -- AUTO_INCREMENT for table `tb_user` | -- AUTO_INCREMENT for table `tb_user` | ||||||
| -- | -- | ||||||
| ALTER TABLE `tb_user` | ALTER TABLE `tb_user` | ||||||
|   MODIFY `id_user` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15; |   MODIFY `id_user` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17; | ||||||
| COMMIT; | COMMIT; | ||||||
| 
 | 
 | ||||||
| /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue