Add export to pdf and excel

This commit is contained in:
2021-09-18 21:06:20 +07:00
parent c3f1605f35
commit 4a12d026fd
7 changed files with 1997 additions and 192 deletions

View File

@@ -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);
}
}

View File

@@ -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);
}
}

View File

@@ -90,81 +90,78 @@
</ul>
<div class="mt-3">
<?php if(isset($tahun_0)){?>
<div class="card">
<div class="card-header bg-primary text-white">
Laporan Tahunan
<h6>Monografi Kota Magelang Tahun <?php echo $tahun ?></h6>
</div>
<div class="card-body">
<div class="row">
<div class="col col-md-12 col-lg-12 col-sm-12 col-12">
<h4>Monografi Kota Magelang Tahun <?php echo $tahun ?></h4>
</div>
</div>
<div class="row">
<div class="col col-5">
<div class="col col-12 col-sm-12 col-md-5 col-lg-5">
<div class="row">
<canvas id="myChart" width="400" height="300"></canvas>
</div>
<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>
<tr>
<th></th>
<th><span class="badge">Aset</span></th>
<th><span class="badge">Omset</span></th>
<th><small>Aset</small></th>
<th><small>Omset</small></th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="badge"><?php echo $tahun ?></span></td>
<td><span class="badge"><?php echo rupiah($aset_1) ?></span></td>
<td><span class="badge"><?php echo rupiah($omset_1) ?></span></td>
<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><span class="badge"><?php echo $tahun_0 ?></span></td>
<td><span class="badge"><?php echo rupiah($aset_0) ?></span></td>
<td><span class="badge"><?php echo rupiah($omset_0) ?></span></td>
<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-7">
<div class="col col col-12 col-sm-12 col-md-7 col-lg-7">
<div class="row pl-2">
<canvas id="myChart2" width="550" height="300"></canvas>
</div>
<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>
<tr>
<th></th>
<th><span class="badge">Jml UMKM</span></th>
<th><span class="badge">Tenaga Kerja</span></th>
<th><span class="badge">Mikro</span></th>
<th><span class="badge">Kecil</span></th>
<th><span class="badge">Menengah</span></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><span class="badge"><?php echo $tahun ?></span></td>
<td><span class="badge"><?php echo $umkm_1 ?></span></td>
<td><span class="badge"><?php echo $naker_1 ?></span></td>
<td><span class="badge"><?php echo $mikro_1 ?></span></td>
<td><span class="badge"><?php echo $kecil_1 ?></span></td>
<td><span class="badge"><?php echo $menengah_1 ?></span></td>
<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><span class="badge"><?php echo $tahun ?></span></td>
<td><span class="badge"><?php echo $umkm_0 ?></span></td>
<td><span class="badge"><?php echo $naker_0 ?></span></td>
<td><span class="badge"><?php echo $mikro_0 ?></span></td>
<td><span class="badge"><?php echo $kecil_0 ?></span></td>
<td><span class="badge"><?php echo $menengah_0 ?></span></td>
<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>
@@ -181,58 +178,60 @@
<div class="card">
<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>
<?php if($msg!=='empty'){?>
<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">
<table class="table table-bordered table-sm text-center text-nowrap table-responsive-sm table-striped">
<thead class="">
<thead class="">
<tr>
<th class="align-middle" colspan="3">Jumlah UMKM</th>
<th class="align-middle" colspan="3">Omset/Bulan</th>
</tr>
<tr>
<th>P</th>
<th>J</th>
<th>I</th>
<th><small>P</small></th>
<th><small>J</small></th>
<th><small>I</small></th>
<th>P</th>
<th>J</th>
<th>I</th>
<th><small>P</small></th>
<th><small>J</small></th>
<th><small>I</small></th>
</tr>
</thead>
<tbody>
<tr>
<td><?php echo $umkm_jen1 ?></td>
<td><?php echo $umkm_jen2 ?></td>
<td><?php echo $umkm_jen3 ?></td>
<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><?php echo rupiah($omset_bln_jen1) ?></td>
<td><?php echo rupiah($omset_bln_jen2) ?></td>
<td><?php echo rupiah($omset_bln_jen3) ?></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">Total</th>
<th class="align-middle" colspan="3">Total</th>
<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" ><?php echo $umkm ?></th>
<th class="align-middle" colspan="3" ><?php echo rupiah($omset) ?></th>
<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>
@@ -246,46 +245,46 @@
<th class="align-middle" colspan="6" >Jumlah Naker</th>
</tr>
<tr>
<th colspan="2" >P</th>
<th colspan="2" >J</th>
<th colspan="2" >I</th>
<th colspan="2" ><small>P</small></th>
<th colspan="2" ><small>J</small></th>
<th colspan="2" ><small>I</small></th>
</tr>
<tr>
<th>P</th>
<th>J</th>
<th>I</th>
<th><small>P</small></th>
<th><small>J</small></th>
<th><small>I</small></th>
<th>L</th>
<th>P</th>
<th><small>L</small></th>
<th><small>P</small></th>
<th>L</th>
<th>P</th>
<th><small>L</small></th>
<th><small>P</small></th>
<th>L</th>
<th>P</th>
<th><small>L</small></th>
<th><small>P</small></th>
</tr>
</thead>
<tbody>
<tr>
<td><?php echo rupiah($aset_jen1) ?></td>
<td><?php echo rupiah($aset_jen2) ?></td>
<td><?php echo rupiah($aset_jen3) ?></td>
<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><?php echo $naker_jen1_l ?></td>
<td><?php echo $naker_jen1_p ?></td>
<td><small><?php echo $naker_jen1_l ?></small></td>
<td><small><?php echo $naker_jen1_p ?></small></td>
<td><?php echo $naker_jen2_l ?></td>
<td><?php echo $naker_jen2_p ?></td>
<td><small><?php echo $naker_jen2_l ?></small></td>
<td><small><?php echo $naker_jen2_p ?></small></td>
<td><?php echo $naker_jen3_l ?></td>
<td><?php echo $naker_jen3_p ?></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">Total</th>
<th class="align-middle" colspan="6">Total</th>
<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;
@@ -293,8 +292,8 @@
$aset = $aset_jen1+$aset_jen2+$aset_jen3;
?>
<tr>
<th class="align-middle" colspan="3" ><?php echo rupiah($aset) ?></th>
<th class="align-middle" colspan="6" ><?php echo $naker ?></th>
<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>
@@ -307,43 +306,43 @@
<th class="align-middle" colspan="9" >Klasifikasi</th>
</tr>
<tr>
<th colspan="3" >P</th>
<th colspan="3" >J</th>
<th colspan="3" >I</th>
<th colspan="3" ><small>P</small></th>
<th colspan="3" ><small>J</small></th>
<th colspan="3" ><small>I</small></th>
</tr>
<tr>
<th>M</th>
<th>K</th>
<th>MN</th>
<th><small>M</small></th>
<th><small>K</small></th>
<th><small>MN</small></th>
<th>M</th>
<th>K</th>
<th>MN</th>
<th><small>M</small></th>
<th><small>K</small></th>
<th><small>MN</small></th>
<th>M</th>
<th>K</th>
<th>MN</th>
<th><small>M</small></th>
<th><small>K</small></th>
<th><small>MN</small></th>
</tr>
</thead>
<tbody>
<tr>
<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>
<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">Mikro</th>
<th class="align-middle" colspan="3">Kecil</th>
<th class="align-middle" colspan="3">Menengah</th>
<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;
@@ -351,9 +350,9 @@
$menengah = $umkm_jen1_ket3+$umkm_jen2_ket3+$umkm_jen3_ket3;
?>
<tr>
<th class="align-middle" colspan="3" ><?php echo $mikro ?></th>
<th class="align-middle" colspan="3" ><?php echo $kecil ?></th>
<th class="align-middle" colspan="3" ><?php echo $menengah ?></th>
<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>

View File

@@ -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: '&nbsp;';
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">&nbsp;</div>
<div class="judul">
REKAP DATA UMKM TAHUN <?php echo $tahun ?> <br>
KOTA MAGELANG
</div>
<div class="spasi">&nbsp;</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">&nbsp;</div>
<?php if(isset($tahun_0)){?>
<div class="judul">
PERBANDINGAN DENGAN TAHUN <?php echo $tahun_0 ?>
</div>
<div class="spasi">&nbsp;</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">&nbsp;</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>

View File

@@ -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: '&nbsp;';
min-height: 40px;
}
</style>
</head>
<body>
<div class="spasi">&nbsp;</div>
<div class="judul">
REKAP DATA UMKM TAHUN <?php echo $tahun ?> <br>
KOTA MAGELANG
</div>
<div class="spasi">&nbsp;</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">&nbsp;</div>
<?php if(isset($tahun_0)){?>
<div class="judul">
PERBANDINGAN DENGAN TAHUN <?php echo $tahun_0 ?>
</div>
<div class="spasi">&nbsp;</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">&nbsp;</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>

View File

@@ -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>