CREATE DATABASE  IF NOT EXISTS `eofficebdk_data` /*!40100 DEFAULT CHARACTER SET latin1 */;
USE `eofficebdk_data`;
--
-- Host: localhost    Database: eofficebdk_data
-- ------------------------------------------------------


--
-- Table structure for table `tb_agenda`
--

CREATE TABLE `tb_agenda` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tanggal` datetime DEFAULT NULL,
  `judul` varchar(245) DEFAULT NULL,
  `keterangan` mediumtext DEFAULT NULL,
  `status` int(11) DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_agenda`
--

INSERT INTO `tb_agenda` VALUES (5,'2021-07-12 14:07:52','Melatih Pegawai','<p>Tahukah Anda, minum air dalam jumlah cukup tidak hanya memaksimalkan fungsi organ tubuh. Tap</p>',1),(6,'2021-07-12 14:07:55','SMARTOFFICE BDK','<p>Tahukah Anda, minum air dalam jumlah cukup tidak hanya memaksimalkan fungsi organ tubuh. Tap</p>',1),(7,'2021-07-12 14:07:55','Berdedikasi Tinggi','<p>Tahukah Anda, minum air dalam jumlah cukup tidak hanya memaksimalkan fungsi organ tubuh. Tap</p>',1),(8,'2021-07-12 14:07:55','Penuh Integritas ','<p>Tahukah Anda, minum air dalam jumlah cukup tidak hanya memaksimalkan fungsi organ tubuh. Tap</p>',1),(9,'2021-07-12 14:07:55','Mendidik Pegawai','<p>Tahukah Anda, minum air dalam jumlah cukup tidak hanya memaksimalkan fungsi organ tubuh. Tap</p>',1);

--
-- Table structure for table `tb_album`
--

CREATE TABLE `tb_album` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tanggal` datetime DEFAULT NULL,
  `idkategori` int(11) DEFAULT NULL,
  `nama` varchar(245) DEFAULT NULL,
  `keterangan` mediumtext DEFAULT NULL,
  `idgambar` int(11) DEFAULT NULL,
  `status` int(11) DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=41 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_album`
--

DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_album_BEFORE_INSERT` BEFORE INSERT ON `tb_album` FOR EACH ROW
BEGIN
	set new.tanggal=now();
END */;;
DELIMITER ;

--
-- Table structure for table `tb_album_kategori`
--

CREATE TABLE `tb_album_kategori` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `nama` varchar(245) DEFAULT NULL,
  `status` int(1) DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  UNIQUE KEY `nama_UNIQUE` (`nama`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_album_kategori`
--

INSERT INTO `tb_album_kategori` VALUES (1,'Profile',1),(2,'Produk',1),(3,'Kegiatan',1);

--
-- Table structure for table `tb_banner`
--

CREATE TABLE `tb_banner` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `judul` varchar(200) DEFAULT NULL,
  `idgambar` int(11) DEFAULT NULL,
  `keterangan` mediumtext DEFAULT NULL,
  `tautan` varchar(200) DEFAULT NULL,
  `urutan` int(11) DEFAULT 0,
  `status` int(11) DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_banner`
--

INSERT INTO `tb_banner` VALUES (4,'Banner 01',154,'','',1,1),(10,'Banner 02',166,'','',2,1);

--
-- Table structure for table `tb_bulan`
--

CREATE TABLE `tb_bulan` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `nama` varchar(45) DEFAULT NULL,
  `rom` varchar(4) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  UNIQUE KEY `nama_UNIQUE` (`nama`)
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_bulan`
--

INSERT INTO `tb_bulan` VALUES (1,'Januari','I'),(2,'Februari','II'),(3,'Maret','III'),(4,'April','IV'),(5,'Mei','V'),(6,'Juni','VI'),(7,'Juli','VII'),(8,'Agustus','VIII'),(9,'September','IX'),(10,'Oktober','X'),(11,'November','XI'),(12,'Desember','XII');

--
-- Table structure for table `tb_cuti_pegawai`
--

CREATE TABLE `tb_cuti_pegawai` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tanggal_input` datetime DEFAULT NULL,
  `tanggal_surat` date DEFAULT NULL,
  `idsurat` int(11) DEFAULT NULL,
  `iduser` int(11) DEFAULT NULL,
  `idpegawai` int(11) DEFAULT NULL,
  `idjeniscuti` int(11) DEFAULT NULL,
  `keperluan` varchar(245) DEFAULT NULL,
  `waktu` int(11) DEFAULT NULL,
  `idkodewaktu` int(11) DEFAULT NULL,
  `tanggal_mulai` date DEFAULT NULL,
  `tanggal_selesai` date DEFAULT NULL,
  `alamat_cuti` varchar(245) DEFAULT NULL,
  `telp_cuti` varchar(45) DEFAULT NULL,
  `masa_kerja` int(11) DEFAULT 0,
  `keterangan` varchar(245) DEFAULT NULL,
  `jumlah_catatan` int(11) DEFAULT 0,
  `status` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  KEY `index3` (`idsurat`)
) ENGINE=InnoDB AUTO_INCREMENT=95 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_cuti_pegawai`
--

INSERT INTO `tb_cuti_pegawai` VALUES (85,'2021-10-07 10:49:04','2021-10-07',562,76,1,5,'nikah',7,3,'2021-10-07','2021-10-14','kudus','0987654321',27,NULL,0,28),(88,'2021-10-07 11:03:24','2021-10-07',568,76,2,4,'w',14,3,'2021-10-07','2021-10-21','gedog','123456789',26,NULL,0,28),(91,'2021-10-07 11:17:39','2021-10-07',571,76,4,3,'a',3,3,'2021-10-07','2021-10-10','undaan','123456789',26,NULL,0,28),(94,'2021-10-18 16:47:30','2021-10-18',613,1,38,1,'fgfgkkl',365,3,'2021-10-18','2023-03-17','bali','0987564',16,NULL,0,29);
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_cuti_pegawai_BEFORE_INSERT` BEFORE INSERT ON `tb_cuti_pegawai` FOR EACH ROW
BEGIN
	set new.tanggal_input=now();
END */;;
DELIMITER ;

--
-- Table structure for table `tb_dokumen`
--

CREATE TABLE `tb_dokumen` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `iduser` int(11) DEFAULT 0,
  `tanggal` datetime DEFAULT NULL,
  `nama_awal` varchar(100) DEFAULT NULL,
  `nama_baru` varchar(65) DEFAULT NULL,
  `idjenis` int(11) DEFAULT NULL,
  `ukuran` varchar(45) DEFAULT NULL,
  `tipefile` varchar(10) DEFAULT NULL,
  `folder` varchar(45) DEFAULT NULL,
  `label` varchar(145) DEFAULT NULL,
  `thumb` int(1) DEFAULT 0,
  `pesan` varchar(245) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `index2` (`id`,`nama_awal`)
) ENGINE=InnoDB AUTO_INCREMENT=395 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_dokumen`
--

INSERT INTO `tb_dokumen` VALUES (4,2,'2021-02-28 01:15:46','logoasdio.png','Rtd9F2Wc4Z681f0C5ogMbrlVsBPiHJOQ.png',3,'43566','png','profile/',NULL,0,NULL),(7,2,'2021-02-28 01:17:04','bg.jpg','8ZitIuEYQ7P1fTo2pUzgrcaMAxdeNWqy.jpg',3,'92898','jpg','profile/',NULL,1,NULL),(10,2,'2021-02-28 02:06:13','dbicon.png','2sQW4APYU7b6wMKBymGzSxNFaldDJrOg.png',6,'6785','png','icon/',NULL,0,NULL),(13,2,'2021-02-28 02:12:52','infoicon.png','m0iDF1fPNd6x4OSnMHqVzuZlykocj9ep.png',6,'5508','png','icon/',NULL,0,NULL),(16,2,'2021-02-28 02:14:48','infoicon.png','jthaqsTxo3kY6P5glym48rVIbQ2cXKZM.png',6,'6209','png','icon/',NULL,0,NULL),(19,2,'2021-02-28 02:16:59','galleryicon.png','HjUMqhlafNXbx4T7PSmzoD8FLvJ0yt1C.png',6,'4276','png','icon/',NULL,0,NULL),(22,2,'2021-02-28 02:19:11','configicon.png','Y1PUs4deb06jAHhmxDGcVuwkNrpMaJFO.png',6,'5803','png','icon/',NULL,0,NULL),(25,2,'2021-02-28 02:21:12','keluaricon.png','cpVOrxI0Wkb3jLud4z12RQmD56BGZNFt.png',6,'6035','png','icon/',NULL,0,NULL),(28,2,'2021-02-28 14:13:31','banner web1.jpg','ILgpVzislOxRdbeTQPXnMN167mJ5D3UZ.jpg',4,'369197','jpg','banner/',NULL,1,NULL),(31,2,'2021-02-28 14:52:31','banner web1.jpg','DiP2W0zfNaqHnoMFudQytv4wTB7bCkeJ.jpg',4,'369197','jpg','banner/',NULL,1,NULL),(34,2,'2021-02-28 14:53:15','banner web1.jpg','fECyMrut29iXmp3cwnBzvRSgHPD7JOFI.jpg',4,'369197','jpg','banner/',NULL,1,NULL),(37,2,'2021-02-28 15:04:14','bannerweb2.jpg','LCipqVjmJ7lgNcUfyHz8dZkQ5RIxW4rw.jpg',4,'792296','jpg','banner/',NULL,1,NULL),(40,2,'2021-02-28 15:04:30','bannerweb2.jpg','r6Bq0S3hT8aNHscUW1utPOilgkRIA5KF.jpg',4,'792296','jpg','banner/',NULL,1,NULL),(46,2,'2021-02-28 20:56:21','link01.jpg','XNwsDo5S2Tl1ZHEcULia7uWemQ649t8Y.jpg',2,'34247','jpg','gambar/',NULL,1,NULL),(49,2,'2021-02-28 21:12:36','downloadicon.png','VEiQePq6lwnT3uNIvByFcKs9tOdML52a.png',6,'4593','png','icon/',NULL,0,NULL),(52,2,'2021-02-28 21:51:20','compressed.tracemonkey-pldi-09.pdf','K8gVfMJo9aZzlec1UBEDyStxQILuv5Gp.pdf',10,'1016315','pdf','download/',NULL,0,NULL),(55,2,'2021-02-28 22:17:20','compressed.tracemonkey-pldi-09.pdf','GF7VXcQeUNxCTKjO0EfA9Pm8vlYwRZod.pdf',10,'1016315','pdf','download/',NULL,0,NULL),(58,2,'2021-02-28 22:52:47','gelas.jpg','7nByIQOgbdjk9SpPHWZF4AhwaDVuf2Eo.jpg',8,'272785','jpg','album/',NULL,1,NULL),(61,2,'2021-02-28 22:54:21','gelas.jpg','tV7OH0iEmSUXyBq5hCZJGu2DLz8rIY4p.jpg',8,'272785','jpg','album/',NULL,1,NULL),(64,2,'2021-03-01 00:13:16','marketing.png','1KMy7uYEgSw5zapGOeD08C6Xiqhjd3Zl.png',6,'8957','png','icon/',NULL,0,NULL),(67,2,'2021-03-01 12:05:44','peserta.png','jefmsF2X0UEziPABoGwHknN4W65Y8SgZ.png',6,'4800','png','icon/',NULL,0,NULL),(70,2,'2021-03-01 12:47:09','produk.png','nuR0HBgU5I9aTstWxEPAZSjovd8bm12z.png',6,'4858','png','icon/',NULL,0,NULL),(73,2,'2021-03-01 13:58:04','gelas.jpg','Gco4n65yYCz7ElNxivmqKRBA1eOVUhLw.jpg',11,'272785','jpg','produk/',NULL,1,NULL),(76,2,'2021-03-01 14:18:45','gelas.jpg','IaF4NDZP9UQ3tvCWlHxTyJhpKAjkL62S.jpg',11,'272785','jpg','produk/',NULL,1,NULL),(91,2,'2021-03-01 15:32:02','gelas.jpg','8Ph57uFpYy4mNUj6ZEOcQoJWSkfzGsIR.jpg',11,'272785','jpg','produk/',NULL,1,NULL),(94,2,'2021-03-02 10:36:26','owner.jpeg','avhPHlZtJfjM5cTioyFR0n2xuGwU9XYm.jpeg',2,'35844','jpeg','gambar/',NULL,1,NULL),(97,2,'2021-03-02 11:49:50','pabrik.jpeg','7DniXKdTSRhMzsOjbAor0q38N6pe9gJ4.jpeg',8,'45949','jpeg','album/',NULL,1,NULL),(100,2,'2021-03-02 11:50:34','pabrik4.jpeg','2S1mVMrJ3NftbDveuL7hpwYTOcAxKoXa.jpeg',8,'70086','jpeg','album/',NULL,1,NULL),(103,2,'2021-03-02 11:51:26','owner (1).jpeg','PzgBd2VIG08MYvtcRZONSA6bpFQi4KnD.jpeg',8,'39091','jpeg','album/',NULL,1,NULL),(106,2,'2021-03-02 11:52:14','pabrik1.jpeg','QlSFEd1riuRTJGoD9jPehMNKIgLHnfxt.jpeg',8,'105477','jpeg','album/',NULL,1,NULL),(109,2,'2021-03-02 11:52:43','jalan_pabrik.jpeg','YzDhy34apo6gneC0ukPRMtwfclTGEXWL.jpeg',8,'60136','jpeg','album/',NULL,1,NULL),(112,2,'2021-03-02 11:53:23','mesin.jpeg','ow6NKicd5xTFthe1QAPCVSbqaEsR9BJ8.jpeg',8,'36459','jpeg','album/',NULL,1,NULL),(115,2,'2021-03-02 11:54:05','torn.jpeg','sQycwJCAU0qWxLYj4Z36rHotuFTKpn5I.jpeg',8,'37669','jpeg','album/',NULL,1,NULL),(118,2,'2021-03-02 11:54:40','pemrosesan.jpeg','q9xbZHEwhRaDN1IGJW26TLVsFteuo0Ac.jpeg',8,'47084','jpeg','album/',NULL,1,NULL),(121,2,'2021-03-02 11:55:20','IMG-20181014-WA0006.jpg','Z4o5s2adV3kbexjgvGtFzBSCmUEAuJRh.jpg',8,'74521','jpg','album/',NULL,1,NULL),(124,2,'2021-03-02 11:55:49','IMG-20181014-WA0004.jpg','q20bMN3rmh1xezOXfPwoLjdiYWg4ACvk.jpg',8,'66605','jpg','album/',NULL,1,NULL),(127,2,'2021-03-02 11:56:18','owner1.jpeg','cWLxeuktSDGiRmY8UF4v0TnlgysJO29j.jpeg',8,'78386','jpeg','album/',NULL,1,NULL),(130,2,'2021-03-02 12:22:46','produk.jpg','0MpERIN3PsKn6ArouUk48twq1ZHGjQ7y.jpg',2,'60939','jpg','gambar/',NULL,1,NULL),(133,2,'2021-03-02 12:23:30','shutterstock_86123635-400x200.jpg','DonKwE2p5q6Txd0e8iz3VGC1jlgyAUNa.jpg',2,'30953','jpg','gambar/',NULL,1,NULL),(136,2,'2021-03-02 12:31:40','137437671p.jpg','Nhn69BgmoVb8Gl52FAweDjWLtHEzZrfI.jpg',2,'53048','jpg','gambar/',NULL,1,NULL),(139,2,'2021-03-02 12:32:11','banner.jpg','BVdIfHUSY9vxcre7azDmOpXigT6NMb42.jpg',2,'369197','jpg','gambar/',NULL,1,NULL),(142,2,'2021-03-02 12:39:26','produk.jpg','npO6S8kYwDuEMdacoWHTqNLzyR1U0xXb.jpg',2,'60939','jpg','gambar/',NULL,1,NULL),(145,2,'2021-03-03 13:50:50','web banner rencar1.jpg','n8E9hxH2SJoZ4qvsFuK0VTjOa7Q5rdgb.jpg',4,'495682','jpg','banner/',NULL,0,NULL),(148,1,'2021-03-08 21:06:05','63561dc0bf71922.jpg','zkJGTmK8tyv0o2fqxVwc1OY6aEMCSXd4.jpg',11,'45776','jpg','produk/',NULL,0,NULL),(149,1,'2021-07-10 11:49:30','KementerianAgama.png','Z35ga2dkNqyBvi0GObtrYJouW9Llh4x7.png',3,'133652','png','profile/',NULL,0,NULL),(150,2,'2021-07-12 13:11:06','logo-balitbang.png','dBfYpWrzMycqRtI92SJ5UVFoin4bwGQs.png',2,'14177','png','gambar/',NULL,0,NULL),(151,2,'2021-07-12 13:11:34','Logo KITA v2.png','ym3A1d7SN4kKiD5qwH29g8FthQ0zYaRE.png',2,'60652','png','gambar/',NULL,0,NULL),(152,2,'2021-07-12 13:12:53','logo-balitbang.png','KYP3WEkFI7qbVyi5Ganr1e4hR8j60C2u.png',2,'14177','png','gambar/',NULL,0,NULL),(153,2,'2021-07-12 13:16:02','EOffice.jpg','unc3T5yYgRPQWl8HSvUqbsVO6j9IFxGJ.jpg',4,'67067','jpg','banner/',NULL,0,NULL),(154,2,'2021-07-12 13:16:10','EOffice.jpg','cPaOVzHNdAt5iGr8CDxQ1sZUByh9E20q.jpg',4,'67067','jpg','banner/',NULL,0,NULL),(155,2,'2021-07-12 16:53:04','pegawai.png','0hulML9Cz5tvqYFTZyonJWkOQUAXsfE6.png',6,'4800','png','icon/',NULL,0,NULL),(156,2,'2021-07-12 17:45:26','new-logo-pusdiklat@2x.png','1sqcH32QSeziuCx54OY8wZNmbJjyFgLv.png',2,'20941','png','gambar/',NULL,0,NULL),(157,2,'2021-07-12 18:13:40','ICON SET-06.jpg','1TbFazVA72eMkinvg64L8cGQIZ0BNPur.jpg',2,'49264','jpg','gambar/',NULL,0,NULL),(158,2,'2021-07-14 08:30:58','pegawai.png','LPpjcr2h1R7zeKm9nXfwMiCxv5oHEdBW.png',11,'4800','png','produk/',NULL,0,NULL),(159,2,'2021-07-14 09:36:31','pegawai.png','vRPQu2MxbChmZFcSTygz3eDYjUkGWA9f.png',12,'4800','png','dokumensk/',NULL,0,NULL),(160,2,'2021-07-14 09:58:23','pegawai.png','aWSfZQhN26ixqMVCnsIkjAzbvLcXPmOp.png',12,'4800','png','dokumensk/',NULL,0,NULL),(161,2,'2021-07-15 23:55:34','pegawai.png','7VBwO2agIedKojbsJXhnmM1uGPS53rAv.png',12,'4800','png','dokumensk/',NULL,0,NULL),(162,2,'2021-07-15 23:58:35','pegawai.png','TbcWMq2mIxjSVvUneLGNfu6tODkr3R7h.png',12,'4800','png','dokumensk/',NULL,0,NULL),(163,2,'2021-07-16 22:10:02','dataeoffice.png','HvxfXeW9K83CgOac2YtNqlGk4S5mJTph.png',6,'9837','png','icon/',NULL,0,NULL),(164,2,'2021-07-17 13:05:04','kirimeoffice.png','W2QD6jun4lSIGVAhtCTx80ZsdP5rOq3U.png',6,'9115','png','icon/',NULL,0,NULL),(166,1,'2021-07-31 11:41:03','KITA.png','JvluPMCQZsfOG7q6wmy25hRKcrk3HAL4.png',4,'259803','png','banner/',NULL,0,NULL),(169,1,'2021-07-31 11:47:10','Slider 2.png','hM4KUeqILNz9S6pjTkglD75ntQCFi8u1.png',4,'783217','png','banner/',NULL,0,NULL),(172,1,'2021-07-31 15:58:18','KITA.png','eNHGaboPFJqvCX1Aw7SKc3xY5Ld4zTBs.png',2,'259803','png','gambar/',NULL,0,NULL),(175,1,'2021-07-31 15:58:57','KITA.png','LwNUqXIZsiAmQWyktBnOxH9VY2rg4lKM.png',2,'259803','png','gambar/',NULL,0,NULL),(178,1,'2021-07-31 15:59:04','EOffice.jpg','fwHjLOkBhTXSCqDKtdQWoGxYAapeJuzy.jpg',2,'67067','jpg','gambar/',NULL,0,NULL),(181,1,'2021-07-31 16:02:38','Slider 2.png','Of5MQsN7ZXWbaERg3LqVjwl4nT6hKkSJ.png',2,'783217','png','gambar/',NULL,0,NULL),(184,1,'2021-07-31 16:02:48','Logo KITA v2.png','bT1kcYqDeyhuntdlmRUap7OM5NgAZsoV.png',2,'60652','png','gambar/',NULL,0,NULL),(187,1,'2021-07-31 16:03:11','Logo KITA v2.png','fHLTcdWZAuimEIahJr1CxXwqBGDKPVRs.png',2,'60652','png','gambar/',NULL,0,NULL),(190,1,'2021-07-31 16:03:39','Logo KITA v2.png','PX3MFKEVwn2oqtDrbzGyuCgWdUk7m0Nj.png',3,'60652','png','profile/',NULL,0,NULL),(193,1,'2021-07-31 16:51:01','Itjen.png','dipcgkyY3PwsKJF4SBbovzfA5TOEt7rI.png',2,'179614','png','gambar/',NULL,0,NULL),(196,1,'2021-07-31 16:52:57','kemenag.png','AITa5NW6i0qDM2OHVxFX9pdnS1wsfvgu.png',2,'10018','png','gambar/',NULL,0,NULL),(199,2,'2021-08-02 21:03:53','cetademetodereq.jpg','boHDjnlCtz4vw7y30JSMBcGgx9NmaWPq.jpg',13,'120581','jpg','dokumensurat/',NULL,0,NULL),(202,58,'2021-08-02 21:41:37','11 ST Panitia. Tata Naskah Kota Surakarta.pdf','I9Fdm8T0RAvCKfxuyehBsGQjDUHVkiYt.pdf',13,'68997','pdf','dokumensurat/',NULL,0,NULL),(205,58,'2021-08-02 21:45:33','11 ST Panitia. Tata Naskah Kota Surakarta.pdf','BIqyEQNLzvUsP51hdCb6JVjxcimXRSrg.pdf',13,'68997','pdf','dokumensurat/',NULL,0,NULL),(208,58,'2021-08-02 21:57:15','11 ST Panitia. Tata Naskah Kota Surakarta.pdf','e28Mz396Nvmb1TALgDiwFBdyojfxQRtO.pdf',13,'68997','pdf','dokumensurat/',NULL,0,NULL),(211,1,'2021-08-02 21:58:38','11 ST Panitia. Tata Naskah Kota Surakarta.pdf','qmCUH6GKdej2yVochrLZ1zlbNfEX0ItF.pdf',13,'68997','pdf','dokumensurat/',NULL,0,NULL),(214,58,'2021-08-02 22:07:10','11 ST Panitia. Tata Naskah Kota Surakarta.pdf','2SDtd5JBepnRKNw0x4raVz8Osh1LCHE9.pdf',13,'68997','pdf','dokumensurat/',NULL,0,NULL),(217,1,'2021-08-02 22:07:54','11 ST Panitia. Tata Naskah Kota Surakarta.pdf','CEyKt0w4R8DeTbhrJIvAXqQPVSd6uZas.pdf',13,'68997','pdf','dokumensurat/',NULL,0,NULL),(220,1,'2021-08-03 14:28:52','Panduan Kode.pdf','u4OGWbZCrgLU8kAfhomDp6i5RqKwJjBH.pdf',12,'710316','pdf','dokumensk/',NULL,0,NULL),(223,1,'2021-08-03 14:32:04','SK Jabatan Penata.pdf','VfJNYeTlGrDytZ7C0xHzg8AU2vsiq4Ij.pdf',12,'91489','pdf','dokumensk/',NULL,0,NULL),(226,2,'2021-09-20 23:45:45','682386_720.jpg','mHwcLxIbo4BJdCzXtVh0KvnpZ71s6lU2.jpg',12,'18884','jpg','dokumensk/',NULL,0,NULL),(229,2,'2021-09-20 23:47:46','682386_720.jpg','qUMglS1kL32rtiX0FD9cIVzaZyH7dENB.jpg',12,'18884','jpg','dokumensk/',NULL,0,NULL),(232,2,'2021-09-20 23:49:03','2064777181.jpg','aH9csYVQuDWJ4nwUxkFEqSKNobZ3T8hA.jpg',12,'259861','jpg','dokumensk/',NULL,0,NULL),(235,2,'2021-09-20 23:51:10','home_klik.png','Ao6rTcPsx1pQMSCUzDGKjZYkJBbh57tl.png',12,'19679','png','dokumensk/',NULL,0,NULL),(238,2,'2021-09-20 23:56:47','bank_icon.png','eA1D24YpbgIvxfT0JdSGLi5KHQnRECN8.png',12,'116892','png','dokumensk/',NULL,0,NULL),(241,2,'2021-09-20 23:58:35','bank_icon.png','eac1nx6QSAiWU58dmkosCrGYgK0fyLHE.png',12,'116892','png','dokumensk/',NULL,0,NULL),(244,2,'2021-09-21 00:07:16','bank_icon.png','aXA3DNR81lInVGCmk95HsjvZJ4rbq6fz.png',12,'116892','png','dokumensk/',NULL,0,NULL),(247,2,'2021-09-21 00:07:30','682386_720.jpg','TMJZAtbKsE2ilUGfadIrXQWOL1V5F3zx.jpg',12,'18884','jpg','dokumensk/',NULL,0,NULL),(250,2,'2021-09-21 00:09:21','682386_720.jpg','DqvSM1Y2wlxHkgPBj0ztXAdraisNfyme.jpg',12,'18884','jpg','dokumensk/',NULL,0,NULL),(253,2,'2021-09-21 00:35:35','bank_icon.png','jrJUzMt0I9Z1oag5SQiLFubCXDkn4fcY.png',12,'116892','png','dokumensk/',NULL,0,NULL),(256,2,'2021-09-21 11:04:10','bank_icon.png','YZ2jJpmOGfST83WiqxM0FwV79lU1b6yv.png',12,'116892','png','dokumensk/',NULL,0,NULL),(259,2,'2021-09-21 11:05:26','bank_icon.png','2niFJEBKzqAs5vwQMVXk96ceo3CIaZrR.png',12,'116892','png','dokumensk/',NULL,0,NULL),(262,2,'2021-09-21 11:07:06','bank_icon.png','AY0P5bvSICEJOeoU9DlcQGKTp4jNr7Xm.png',12,'116892','png','dokumensk/',NULL,0,NULL),(265,2,'2021-09-21 11:33:50','bank_icon.png','bErLvlTBonMA5zghyUZWKxpd9Pc8Im0R.png',12,'116892','png','dokumensk/',NULL,0,NULL),(268,2,'2021-09-21 12:13:15','bank_icon.png','KLe0kUvy9udxWiHRlDA5hTVQnjNf6IcY.png',12,'116892','png','dokumensk/',NULL,0,NULL),(271,2,'2021-09-25 22:47:36','Analisa Kebutuhan Sistem.pdf','bFydamtUXhHjlN0i9g7vJs8KOMrGLq2p.pdf',13,'1022440','pdf','dokumensurat/',NULL,0,NULL),(274,2,'2021-09-29 10:25:06','Analisa Kebutuhan Sistem.pdf','2TCx64pYXIWHbda1RPQenBfkZmGoc0EO.pdf',13,'1022440','pdf','dokumensurat/',NULL,0,NULL),(277,2,'2021-09-29 10:25:59','Analisa Kebutuhan Sistem.pdf','zyTKvLfbn24ircd1ENRpoQCxXZlMYsaD.pdf',13,'1022440','pdf','dokumensurat/',NULL,0,NULL),(280,64,'2021-09-29 12:58:58','636610310195094174.jpg','C2FwDp6Wks87ctmqdPRbzLeVoy3Z0MQr.jpg',13,'73644','jpg','dokumensurat/',NULL,0,NULL),(283,2,'2021-09-29 22:04:52','Analisa Kebutuhan Sistem.pdf','INpgqtZ2jRmHvPfT68clUYd1brAEKBJW.pdf',13,'1022440','pdf','dokumensurat/',NULL,0,NULL),(286,2,'2021-09-29 22:06:36','Analisa Kebutuhan Sistem.pdf','jHry972cNkUPhM3WTKBtYxa0RFnqOCeD.pdf',13,'1022440','pdf','dokumensurat/',NULL,0,NULL),(289,2,'2021-09-30 13:52:41','Analisa Kebutuhan Sistem.pdf','vuqieFy5AYxRLrknQH8BC9MOc7m6pl4j.pdf',13,'1022440','pdf','dokumensurat/',NULL,0,NULL),(292,2,'2021-09-30 16:48:19','Analisa Kebutuhan Sistem.pdf','ehmlVKLX6DTP3Rfbvq8yUExGcja0Swtk.pdf',13,'1022440','pdf','dokumensurat/',NULL,0,NULL),(295,2,'2021-09-30 22:32:07','Analisa Kebutuhan Sistem.pdf','GD1VbEIu3a0nvpUQ9t7kKhPHeJX45q8m.pdf',13,'1022440','pdf','dokumensurat/',NULL,0,NULL),(298,2,'2021-09-30 22:36:01','Analisa Kebutuhan Sistem.pdf','MWCQfjNopTcKZxhlFzJHqut6sSdb4arG.pdf',13,'1022440','pdf','dokumensurat/',NULL,0,NULL),(301,76,'2021-10-04 20:22:05','_Bocahkampus.com_Surat_Resmi_Perusahaan - Pemberitahuan.pdf','OUDsHbVkd61itzPqpw8MFCu3EBl90RQj.pdf',13,'238051','pdf','dokumensurat/',NULL,0,NULL),(304,76,'2021-10-04 20:26:45','_Bocahkampus.com_Surat_Resmi_Perusahaan - Pemberitahuan.pdf','J5I9zfeCtwgkSpbNoyY237HDKZq4FnUr.pdf',13,'238051','pdf','dokumensurat/',NULL,0,NULL),(307,2,'2021-10-07 09:37:27','monitoring.png','mcJfh4SCiLlKTsuIz8qQe7DBgUPwNA0y.png',6,'10569','png','icon/',NULL,0,NULL),(310,76,'2021-10-07 10:03:01','_Bocahkampus.com_Surat_Resmi_Perusahaan - Pemberitahuan.pdf','acqo8yeKURjTvElZziMQ6Yk2PhI1nfp3.pdf',13,'238051','pdf','dokumensurat/',NULL,0,NULL),(313,76,'2021-10-07 10:22:07','_Bocahkampus.com_Surat_Resmi_Perusahaan - Pemberitahuan.pdf','biAQISl1wkXmzo3CfFYZqHLj2uyWKT8G.pdf',13,'238051','pdf','dokumensurat/',NULL,0,NULL),(316,76,'2021-10-07 10:32:21','_Bocahkampus.com_Surat_Resmi_Perusahaan - Pemberitahuan.pdf','jzw8eWxDdQ0aNfP4bUGF3y9oTlhEsHKn.pdf',13,'238051','pdf','dokumensurat/',NULL,0,NULL),(319,76,'2021-10-07 10:34:33','_Bocahkampus.com_Surat_Resmi_Perusahaan - Pemberitahuan.pdf','X3zuyfo5UvKEMcZ0mHTx9QRgdhBtbpPI.pdf',13,'238051','pdf','dokumensurat/',NULL,0,NULL),(322,76,'2021-10-07 10:38:32','_Bocahkampus.com_Surat_Resmi_Perusahaan - Pemberitahuan.pdf','sLG7v1udA6lfojEVcbeUS9JpkXK8IrPt.pdf',13,'238051','pdf','dokumensurat/',NULL,0,NULL),(325,76,'2021-10-07 10:43:09','_Bocahkampus.com_Surat_Resmi_Perusahaan - Pemberitahuan.pdf','wy01Pc2zsYRXujx6oaKqONFSgvApZhGJ.pdf',13,'238051','pdf','dokumensurat/',NULL,0,NULL),(328,64,'2021-10-07 13:57:34','WhatsApp Image 2021-09-01 at 11.01.05.jpeg','eDzSm8Na5T36CMqQHUrsRb7oGlwOX02I.jpeg',13,'127825','jpeg','dokumensurat/',NULL,1,NULL),(331,64,'2021-10-07 14:00:20','blue background - Google Search.jpeg','kGc4wmsTSzrI10ZHjPxle9EnBLJ5aYpd.jpeg',13,'78417','jpeg','dokumensurat/',NULL,1,NULL),(334,64,'2021-10-07 14:01:46','Penawaran Maintenance Server dan jaringan.docx','ixtsXVSe9vbQ7w0dNDqGOuhlny1zfU58.docx',13,'26298','docx','dokumensurat/',NULL,0,NULL),(337,64,'2021-10-07 14:07:16','blue background - Google Search.jpeg','CXFQpa2qsHgMZdjtI09Jl1RTonWLAm5D.jpeg',13,'78417','jpeg','dokumensurat/',NULL,1,NULL),(340,76,'2021-10-07 14:32:37','aaaaa.jpg','imFWb0DfZ7pG1wH5JhcXx4TNeIMLUAtz.jpg',13,'17322','jpg','dokumensurat/',NULL,1,NULL),(343,2,'2021-10-18 15:37:44','Blue-with-Lines-Print-Theme.jpg','kBY2gOlpJuTMfKm6D0Ra9e7LqSGovtdi.jpg',12,'283601','jpg','dokumensk/',NULL,1,NULL),(346,64,'2021-10-18 16:00:42','1.jpg','GxJ0VcdgzvBjDF83EknK6NYt7fTP2lbi.jpg',13,'42142','jpg','dokumensurat/',NULL,1,NULL),(349,64,'2021-10-18 16:08:23','Und. PraKom.pdf','8VUGTyv107hqcW62kFBzAYEMJwitmRsd.pdf',13,'116833','pdf','dokumensurat/',NULL,0,NULL),(352,49,'2021-10-18 16:23:47','1.jpeg','58kuTBAwbcySjZKfRea3N0qtOznh49WP.jpeg',13,'122772','jpeg','dokumensurat/',NULL,1,NULL),(355,64,'2021-10-18 16:34:44','2b.jpg','ZT3YwBGI1W4oP5qu8yl6D7ArfnpiUdLt.jpg',13,'19517','jpg','dokumensurat/',NULL,1,NULL),(358,2,'2021-10-26 18:53:11','Analisa Kebutuhan Sistem.pdf','0zuPgrYX3abKn6tD9B47JwHNiv1ITOWc.pdf',12,'1022440','pdf','dokumensk/',NULL,0,NULL),(361,2,'2021-10-26 19:02:21','Analisa Kebutuhan Sistem.pdf','ReI9WaPC05h2Vwi6McQ1DXKtrN8HkGpZ.pdf',12,'1022440','pdf','dokumensk/',NULL,0,NULL),(364,2,'2021-10-26 19:03:44','Analisa Kebutuhan Sistem.pdf','C48B2N6FcLJVGKayvsjXzgTQSubxO7p3.pdf',12,'1022440','pdf','dokumensk/',NULL,0,NULL),(367,2,'2021-10-26 19:18:14','Analisa Kebutuhan Sistem.pdf','Iko8mNcF5rhltLyDMxAuEjHVRngT2dzZ.pdf',12,'1022440','pdf','dokumensk/',NULL,0,NULL),(370,2,'2021-10-26 19:18:34','Analisa Kebutuhan Sistem.pdf','ZWuPrsNCLSvDVp3cMKt09bxjBF2ymoGA.pdf',12,'1022440','pdf','dokumensk/',NULL,0,NULL),(373,2,'2021-10-26 19:18:55','Analisa Kebutuhan Sistem.pdf','HfFzIKS46AdipanNr1tgyj7QwV5GYslP.pdf',12,'1022440','pdf','dokumensk/',NULL,0,NULL),(376,2,'2021-10-26 19:22:27','Analisa Kebutuhan Sistem.pdf','s0piFRTWk2Ev7tCb3Qg9lNGJnfj4MUZy.pdf',12,'1022440','pdf','dokumensk/',NULL,0,NULL),(379,2,'2021-10-26 19:29:39','Analisa Kebutuhan Sistem.pdf','9vW3gd2OoHJU74hxzqsAfMT5nLNlcBta.pdf',12,'1022440','pdf','dokumensk/',NULL,0,NULL),(382,1,'2021-10-28 03:50:40','wqkKeM.pdf','CFjJhQOPaEqlUXNsA0Kuw6LxBM8gWcYt.pdf',13,'116833','pdf','dokumensurat/',NULL,0,NULL),(385,1,'2021-11-22 09:05:24','5. Undangan TOT_Fas-IN dan Narsum_NTB_3 T.pdf','mH7foBIFu3CwnJL4WYEMivyZjDRrTSXk.pdf',13,'190308','pdf','dokumensurat/',NULL,0,NULL),(388,1,'2021-11-22 09:06:43','5. Undangan TOT_Fas-IN dan Narsum_NTB_3 T.pdf','iWtICjfBwTpkrKyaV3h6754SLPbzqDuG.pdf',13,'190308','pdf','dokumensurat/',NULL,0,NULL),(391,1,'2021-11-22 09:10:07','5. Undangan TOT_Fas-IN dan Narsum_NTB_3 T.pdf','Pb61OsJugQtrf3950wHKjqmWyihXBAnE.pdf',13,'190308','pdf','dokumensurat/',NULL,0,NULL),(394,1,'2021-11-22 09:15:28','11.10-15.2021 Pemanggilan Peserta Tenaga Pelatihan WB.pdf','4NlMtZrHX7zme96R5wPoG2QT8jvhbsCS.pdf',13,'193905','pdf','dokumensurat/',NULL,0,NULL);
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_dokumen_BEFORE_INSERT` BEFORE INSERT ON `tb_dokumen` FOR EACH ROW
BEGIN
	set new.tanggal=now();
END */;;
DELIMITER ;

--
-- Table structure for table `tb_dokumen_download`
--

CREATE TABLE `tb_dokumen_download` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tanggal` datetime DEFAULT NULL,
  `iddokumen` int(11) DEFAULT NULL,
  `url` mediumtext DEFAULT NULL,
  `query` mediumtext DEFAULT NULL,
  `data` mediumtext DEFAULT NULL,
  `filebaru` varchar(145) DEFAULT NULL,
  `status` int(1) DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  KEY `index3` (`iddokumen`,`filebaru`,`status`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_dokumen_download`
--

DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_dokumen_download_BEFORE_INSERT` BEFORE INSERT ON `tb_dokumen_download` FOR EACH ROW
BEGIN
	set new.tanggal=now();
END */;;
DELIMITER ;

--
-- Table structure for table `tb_download`
--

CREATE TABLE `tb_download` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tanggal` date DEFAULT NULL,
  `idkategori` int(11) DEFAULT NULL,
  `iddokumen` int(11) DEFAULT NULL,
  `nama` varchar(145) DEFAULT NULL,
  `keterangan` mediumtext DEFAULT NULL,
  `jumlah_download` int(11) DEFAULT 0,
  `status` int(11) DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_download`
--

DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_download_BEFORE_INSERT` BEFORE INSERT ON `tb_download` FOR EACH ROW
BEGIN
	set new.tanggal=now();
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_download_AFTER_INSERT` AFTER INSERT ON `tb_download` FOR EACH ROW
BEGIN
	update tb_download_kategori set jumlah_file=jumlah_file+1 where id=new.idkategori;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_download_AFTER_UPDATE` AFTER UPDATE ON `tb_download` FOR EACH ROW
BEGIN
	if new.idkategori!=old.idkategori then
		update tb_download_kategori set jumlah_file=jumlah_file+1 where id=new.idkategori;
		update tb_download_kategori set jumlah_file=jumlah_file-1 where id=old.idkategori;
	end if;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_download_AFTER_DELETE` AFTER DELETE ON `tb_download` FOR EACH ROW
BEGIN
	update tb_download_kategori set jumlah_file=jumlah_file-1 where id=old.idkategori;
END */;;
DELIMITER ;

--
-- Table structure for table `tb_download_kategori`
--

CREATE TABLE `tb_download_kategori` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tanggal` date DEFAULT NULL,
  `kategori` varchar(145) DEFAULT NULL,
  `keterangan` mediumtext DEFAULT NULL,
  `jumlah_file` int(11) DEFAULT 0,
  `status` int(11) DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_download_kategori`
--

INSERT INTO `tb_download_kategori` VALUES (9,'2016-11-15','Download','Download',0,1);

--
-- Table structure for table `tb_expor`
--

CREATE TABLE `tb_expor` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tanggal` datetime DEFAULT NULL,
  `iduser` int(11) DEFAULT NULL,
  `kode` varchar(64) DEFAULT NULL,
  `query` longtext DEFAULT NULL,
  `iddokumen` int(11) DEFAULT 0,
  `status` int(11) DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_expor`
--

DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_expor_BEFORE_INSERT` BEFORE INSERT ON `tb_expor` FOR EACH ROW
BEGIN
	set new.tanggal=now();
END */;;
DELIMITER ;

--
-- Table structure for table `tb_halaman`
--

CREATE TABLE `tb_halaman` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `nama` varchar(145) DEFAULT NULL,
  `halaman` varchar(145) DEFAULT NULL,
  `level` int(3) DEFAULT 0,
  `status` int(1) DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  UNIQUE KEY `nama_UNIQUE` (`nama`),
  UNIQUE KEY `halaman_UNIQUE` (`halaman`)
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_halaman`
--

INSERT INTO `tb_halaman` VALUES (1,'Halaman Utama','utama',0,1),(2,'Halaman Member','member',0,1),(3,'Halaman Hubungi Kami','hubungi',0,1),(4,'Halaman Kegiatan','agenda',0,1),(5,'Halaman Informasi','informasi',0,1),(6,'Halaman Download','download',0,1),(7,'Halaman Album','album',0,1),(8,'Halaman Pendaftaran Peserta','regpeserta',0,1);

--
-- Table structure for table `tb_hari`
--

CREATE TABLE `tb_hari` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `kode` int(11) DEFAULT NULL,
  `nama` varchar(145) DEFAULT NULL,
  `libur` int(1) DEFAULT 0,
  `urutan` int(2) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  UNIQUE KEY `nama_UNIQUE` (`nama`),
  UNIQUE KEY `kode_UNIQUE` (`kode`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_hari`
--

INSERT INTO `tb_hari` VALUES (1,1,'SENIN',0,3),(2,2,'SELASA',0,4),(3,3,'RABU',0,5),(4,4,'KAMIS',0,6),(5,5,'JUMAT',1,7),(6,6,'SABTU',0,1),(7,0,'AHAD',0,2);

--
-- Table structure for table `tb_hubungi_kami`
--

CREATE TABLE `tb_hubungi_kami` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tanggal` datetime DEFAULT NULL,
  `nama` varchar(145) DEFAULT NULL,
  `alamat` varchar(245) DEFAULT NULL,
  `telp` varchar(45) DEFAULT NULL,
  `email` varchar(45) DEFAULT NULL,
  `pesan` mediumtext DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_hubungi_kami`
--

DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_hubungi_kami_BEFORE_INSERT` BEFORE INSERT ON `tb_hubungi_kami` FOR EACH ROW
BEGIN
	set new.tanggal=now();
END */;;
DELIMITER ;

--
-- Table structure for table `tb_ipbrute`
--

CREATE TABLE `tb_ipbrute` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `ipaddress` varchar(82) DEFAULT NULL,
  `waktu` datetime DEFAULT NULL,
  `username` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=2108 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_ipbrute`
--

INSERT INTO `tb_ipbrute` VALUES (1824,'64.145.93.219','2021-02-25 09:18:13','admin'),(1823,'64.145.93.219','2021-02-25 09:17:58','\' or 1=1 limit 1 -- -+'),(1837,'36.65.203.215','2021-05-05 18:26:03','ninik71'),(1840,'36.65.203.215','2021-05-05 18:26:14','ninik71'),(1843,'36.81.10.12','2021-05-09 08:11:36','paksyihab'),(1846,'36.81.15.142','2021-05-09 08:11:45','paksyihab'),(1849,'36.81.12.179','2021-05-09 08:14:49','pakpsyihab'),(1852,'36.81.11.214','2021-05-09 08:16:16','pakpsyihab'),(1855,'36.81.12.179','2021-05-09 08:18:52','paksihab'),(1858,'36.81.15.142','2021-05-09 08:19:45','paksihab'),(1861,'36.81.11.214','2021-05-09 08:20:04','paksihab'),(1864,'36.81.11.214','2021-05-09 08:20:06','paksihab'),(1867,'36.81.11.214','2021-05-09 08:21:13','paksihab'),(1870,'36.81.12.179','2021-05-09 08:21:54','nuryuni30'),(1873,'182.2.72.110','2021-06-15 18:55:11','warjosukses'),(1876,'182.2.72.110','2021-06-15 18:55:22','warjosukses'),(1879,'182.2.72.110','2021-06-15 18:56:00','Suwarjo'),(1882,'182.2.72.110','2021-06-15 18:56:06','Suwarjo'),(1885,'182.2.72.110','2021-06-15 18:56:49','warjosukses1'),(1888,'36.81.9.52','2021-06-25 19:39:48','tondoharjono64@gmail.com'),(1891,'36.90.152.71','2021-06-25 19:41:03','suharjono'),(2107,'103.247.122.18','2022-03-22 10:02:14','197104011996032002'),(2104,'182.16.179.18','2021-12-15 15:03:31','198002242009122003'),(2101,'182.16.179.18','2021-12-15 15:03:14','195909191990022001'),(2098,'182.16.179.18','2021-12-15 15:03:07','195909191990022001');

--
-- Table structure for table `tb_jenis_kelamin`
--

CREATE TABLE `tb_jenis_kelamin` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `kode` varchar(45) DEFAULT NULL,
  `nama` varchar(245) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  UNIQUE KEY `kode_UNIQUE` (`kode`),
  UNIQUE KEY `nama_UNIQUE` (`nama`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_jenis_kelamin`
--

INSERT INTO `tb_jenis_kelamin` VALUES (1,'L','Laki Laki'),(2,'P','Perempuan');

--
-- Table structure for table `tb_jenis_konten`
--

CREATE TABLE `tb_jenis_konten` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `jenis` varchar(245) DEFAULT NULL,
  `tipefile` varchar(345) DEFAULT NULL,
  `folder` varchar(245) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  UNIQUE KEY `jenis_UNIQUE` (`jenis`)
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_jenis_konten`
--

INSERT INTO `tb_jenis_konten` VALUES (1,'Dokumen','pdf,docx,doc,xlsx,xls','dokumen/'),(2,'Gambar','jpg,jpeg,png,bmp,pdf','gambar/'),(3,'Profile','jpg,jpeg,png,bmp,pdf','profile/'),(4,'Bannner','jpg,jpeg,bmp,png,pdf','banner/'),(5,'Photo','pdf,jpg,jpeg,png,bmp','photo/'),(6,'Icon Png','png,jpg,jpeg,bmp','icon/'),(7,'Gambar Profile','jpg,jpeg,png,bmp,pdf','images/'),(8,'album','jpg,jpeg,png,bmp,pdf','album/'),(9,'Video','mp4','video/'),(10,'Download','rar,pdf,docx,doc,xlsx,xls.zip','download/'),(11,'Gambar Produk','jpeg,jpg,bmp,png','produk/'),(12,'SK Pegawai','jpg,jpeg,bmp,png,pdf','dokumensk/'),(13,'Dokumen Surat','pdf,docx,doc,xlsx,xls,jpg,jpeg,bmp','dokumensurat/');

--
-- Table structure for table `tb_kategori_lampiran`
--

CREATE TABLE `tb_kategori_lampiran` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `nama` varchar(145) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  UNIQUE KEY `nama_UNIQUE` (`nama`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_kategori_lampiran`
--


--
-- Table structure for table `tb_kategori_status`
--

CREATE TABLE `tb_kategori_status` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `nama` varchar(145) DEFAULT NULL,
  `status` int(11) DEFAULT 1,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  UNIQUE KEY `nama_UNIQUE` (`nama`)
) ENGINE=InnoDB AUTO_INCREMENT=102 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_kategori_status`
--

INSERT INTO `tb_kategori_status` VALUES (1,'Pegawai',1),(5,'Status SK',1),(20,'Surat Pengajuan',1),(40,'Surat Masuk',1),(50,'Surat Keluar',1),(60,'Surat Pengajuan PKL',1);

--
-- Table structure for table `tb_kirim_email`
--

CREATE TABLE `tb_kirim_email` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tanggal` datetime DEFAULT NULL,
  `tanggal_kirim` datetime DEFAULT NULL,
  `email` varchar(145) DEFAULT NULL,
  `subject` varchar(245) DEFAULT NULL,
  `pesan` mediumtext DEFAULT NULL,
  `status` int(11) DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=794 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_kirim_email`
--

INSERT INTO `tb_kirim_email` VALUES (4,'2021-10-04 17:19:26','2021-10-04 17:22:45','irulkampret@gmail.com','Tes Imap','Tes 123',1),(10,'2021-10-04 18:31:06','2021-10-04 18:32:51','irulkampret@gmail.com','Pesan Disposisi','Pegawai Dra. Hj. Siti Barokah Terdapat disposisi aktif baru',1),(13,'2021-10-04 18:33:07','2021-10-04 18:44:15','irulkampret@gmail.com','Pesan Disposisi','Pegawai Dra. Hj. Siti Barokah Terdapat disposisi aktif baru',1),(16,'2021-10-04 18:46:13','2021-10-04 18:46:13','irulkampret@gmail.com','Pesan Disposisi','Pegawai Dra. Hj. Siti Barokah Terdapat disposisi aktif baru',1),(19,'2021-10-04 19:11:28','2021-10-04 19:22:55','','Pesan Disposisi','Pegawai Ummul Hidayah, S.Sos Terdapat disposisi aktif baru',3),(22,'2021-10-04 19:29:38','2021-10-04 19:29:39','dummy@email.com','Pesan Disposisi','Pegawai Drs. H. Anshori Terdapat disposisi aktif baru',1),(25,'2021-10-04 19:29:38','2021-10-04 19:42:11','bdk_semarang@kemenag.go.id','Pesan Disposisi','Pegawai Fatma Widyastuti, S.Pd., M.Ed. Terdapat disposisi aktif baru',1),(28,'2021-10-04 19:42:09','2021-10-04 19:42:40','dummy@email.com','Pesan Disposisi','Pegawai Drs. H. Anshori Terdapat disposisi aktif baru',1),(31,'2021-10-04 19:42:09','2021-10-04 19:42:40','bdk_semarang@kemenag.go.id','Pesan Disposisi','Pegawai Fatma Widyastuti, S.Pd., M.Ed. Terdapat disposisi aktif baru',1),(34,'2021-10-04 19:42:40','2021-10-04 19:45:04','dummy@email.com','Pesan Disposisi','Pegawai Drs. H. Anshori Terdapat disposisi aktif baru',1),(37,'2021-10-04 19:42:40','2021-10-04 20:02:51','bdk_semarang@kemenag.go.id','Pesan Disposisi','Pegawai Fatma Widyastuti, S.Pd., M.Ed. Terdapat disposisi aktif baru',1),(40,'2021-10-04 19:45:03','2021-10-04 20:02:56','dummy@email.com','Pesan Disposisi','Pegawai Drs. H. Anshori Terdapat disposisi aktif baru',1),(43,'2021-10-04 19:45:03','2021-10-04 20:03:00','bdk_semarang@kemenag.go.id','Pesan Disposisi','Pegawai Fatma Widyastuti, S.Pd., M.Ed. Terdapat disposisi aktif baru',1),(46,'2021-10-04 20:02:50','2021-10-04 20:03:00','','Pesan Disposisi','Pegawai Ummul Hidayah, S.Sos Terdapat disposisi aktif baru',3),(49,'2021-10-04 20:02:55','2021-10-04 20:03:00','','Pesan Disposisi','Pegawai Ummul Hidayah, S.Sos Terdapat disposisi aktif baru',3),(52,'2021-10-04 20:03:00','2021-10-04 20:03:00','','Pesan Disposisi','Pegawai Ummul Hidayah, S.Sos Terdapat disposisi aktif baru',3),(55,'2021-10-04 20:08:41','2021-10-04 20:08:41','','Pesan Disposisi','Pegawai Ummul Hidayah, S.Sos Terdapat disposisi aktif baru',3),(58,'2021-10-04 20:11:33','2021-10-04 20:11:34','bdk_semarang@kemenag.go.id','Pesan Disposisi','Pegawai H. Abdul Wahib Amsa, S.H., MH Terdapat disposisi aktif baru',1),(61,'2021-10-04 20:22:23','2021-10-04 20:22:24','irulkampret@gmail.com','Pesan Disposisi','Pegawai Dra. Hj. Siti Barokah Terdapat disposisi aktif baru',1),(64,'2021-10-04 20:27:21','2021-10-04 20:27:21','irulkampret@gmail.com','Pesan Disposisi','Pegawai Dra. Hj. Siti Barokah Terdapat disposisi aktif baru',1),(67,'2021-10-04 20:33:06','2021-10-04 20:33:06','','Pesan Disposisi','Pegawai Ummul Hidayah, S.Sos Terdapat disposisi aktif baru',3),(70,'2021-10-04 20:33:24','2021-10-04 20:33:25','','Pesan Disposisi','Pegawai Ummul Hidayah, S.Sos Terdapat disposisi aktif baru',3),(73,'2021-10-04 20:34:32','2021-10-04 20:34:32','dummy@email.com','Pesan Disposisi','Pegawai Drs. H. Anshori Terdapat disposisi aktif baru',1),(76,'2021-10-04 20:34:32','2021-10-04 20:34:42','bdk_semarang@kemenag.go.id','Pesan Disposisi','Pegawai Fatma Widyastuti, S.Pd., M.Ed. Terdapat disposisi aktif baru',1),(79,'2021-10-04 20:34:42','2021-10-04 20:34:42','dummy@email.com','Pesan Disposisi','Pegawai Drs. H. Anshori Terdapat disposisi aktif baru',1),(82,'2021-10-04 20:34:42','2021-10-04 20:36:22','bdk_semarang@kemenag.go.id','Pesan Disposisi','Pegawai Fatma Widyastuti, S.Pd., M.Ed. Terdapat disposisi aktif baru',1),(85,'2021-10-04 20:36:22','2021-10-04 20:36:22','','Pesan Disposisi','Pegawai Ummul Hidayah, S.Sos Terdapat disposisi aktif baru',3),(88,'2021-10-04 20:36:28','2021-10-04 20:36:29','','Pesan Disposisi','Pegawai Ummul Hidayah, S.Sos Terdapat disposisi aktif baru',3),(91,'2021-10-04 20:37:35','2021-10-04 20:37:35','','Pesan Disposisi','Pegawai Ummul Hidayah, S.Sos Terdapat disposisi aktif baru',3),(94,'2021-10-04 20:37:49','2021-10-04 20:37:49','','Pesan Disposisi','Pegawai Ummul Hidayah, S.Sos Terdapat disposisi aktif baru',3),(277,'2021-10-04 22:58:32','2021-10-04 22:58:34','dummy@email.com','Pesan Disposisi','Pegawai Drs. H. Anshori Terdapat disposisi aktif baru',1),(280,'2021-10-04 22:58:32','2021-10-04 23:11:00','bdk_semarang@kemenag.go.id','Pesan Disposisi','Pegawai Fatma Widyastuti, S.Pd., M.Ed. Terdapat disposisi aktif baru',1),(283,'2021-10-04 22:58:32','2021-10-04 23:11:00','dummy@email.com','Pesan Disposisi','Pegawai Drs. H. Anshori Terdapat disposisi aktif baru',1),(286,'2021-10-04 22:58:32','2021-10-04 23:11:00','bdk_semarang@kemenag.go.id','Pesan Disposisi','Pegawai Fatma Widyastuti, S.Pd., M.Ed. Terdapat disposisi aktif baru',1),(289,'2021-10-04 22:58:33','2021-10-04 23:11:00','dummy@email.com','Pesan Disposisi','Pegawai Drs. H. Anshori Terdapat disposisi aktif baru',1),(292,'2021-10-04 22:58:33','2021-10-04 23:18:10','bdk_semarang@kemenag.go.id','Pesan Disposisi','Pegawai Fatma Widyastuti, S.Pd., M.Ed. Terdapat disposisi aktif baru',1),(295,'2021-10-04 22:58:33','2021-10-04 23:18:10','dummy@email.com','Pesan Disposisi','Pegawai Drs. H. Anshori Terdapat disposisi aktif baru',1),(298,'2021-10-04 22:58:33','2021-10-04 23:31:39','bdk_semarang@kemenag.go.id','Pesan Disposisi','Pegawai Fatma Widyastuti, S.Pd., M.Ed. Terdapat disposisi aktif baru',1),(301,'2021-10-04 22:58:33','2021-10-04 23:38:35','dummy@email.com','Pesan Disposisi','Pegawai Drs. H. Anshori Terdapat disposisi aktif baru',1),(304,'2021-10-04 22:58:33','2021-10-04 23:45:05','bdk_semarang@kemenag.go.id','Pesan Disposisi','Pegawai Fatma Widyastuti, S.Pd., M.Ed. Terdapat disposisi aktif baru',1),(307,'2021-10-04 22:58:33','2021-10-05 00:00:37','dummy@email.com','Pesan Disposisi','Pegawai Drs. H. Anshori Terdapat disposisi aktif baru',1),(412,'2021-10-05 00:02:22','2021-10-05 00:02:22','irulkampret@gmail.com','Pesan Update Status Pengajuan Surat Tugas','Pengajuan Surat Tugas pegawai Dra. Hj. Siti Barokah dengan nomor Kp.02.0.3/2 terdapat perubahan status menjadi Di Tangguhkan',1),(415,'2021-10-05 00:14:28','2021-10-05 00:14:29','dummy@email.com','Pesan Disposisi','Pegawai Drs. H. Anshori Terdapat disposisi aktif baru',1),(418,'2021-10-05 00:14:28','2021-10-05 00:27:59','bdk_semarang@kemenag.go.id','Pesan Disposisi','Pegawai Fatma Widyastuti, S.Pd., M.Ed. Terdapat disposisi aktif baru',1),(421,'2021-10-05 00:27:57','2021-10-05 00:35:40','irulkampret@gmail.com','Pesan Update Status Pengajuan Cuti','Pengajuan Cuti pegawai Dra. Hj. Siti Barokah dengan nomor 003/1 terdapat perubahan status menjadi Perubahan',1),(424,'2021-10-05 00:35:40','2021-10-05 00:37:58','dummy@email.com','Pesan Disposisi','Pegawai Drs. H. Anshori Terdapat disposisi aktif baru',1),(427,'2021-10-05 00:35:40','2021-10-05 00:40:08','bdk_semarang@kemenag.go.id','Pesan Disposisi','Pegawai Fatma Widyastuti, S.Pd., M.Ed. Terdapat disposisi aktif baru',1),(430,'2021-10-05 00:37:57','2021-10-05 00:42:42','dummy@email.com','Pesan Disposisi','Pegawai Drs. H. Anshori Terdapat disposisi aktif baru',1),(433,'2021-10-05 00:37:57','2021-10-05 00:43:17','bdk_semarang@kemenag.go.id','Pesan Disposisi','Pegawai Fatma Widyastuti, S.Pd., M.Ed. Terdapat disposisi aktif baru',1),(436,'2021-10-05 00:40:07','2021-10-05 00:43:17','dummy@email.com','Pesan Disposisi','Pegawai Drs. H. Anshori Terdapat disposisi aktif baru',1),(439,'2021-10-05 00:40:08','2021-10-05 00:48:41','bdk_semarang@kemenag.go.id','Pesan Disposisi','Pegawai Fatma Widyastuti, S.Pd., M.Ed. Terdapat disposisi aktif baru',1),(442,'2021-10-05 00:42:42','2021-10-05 00:48:51','dummy@email.com','Pesan Disposisi','Pegawai Drs. H. Anshori Terdapat disposisi aktif baru',1),(445,'2021-10-05 00:42:42','2021-10-05 00:55:38','bdk_semarang@kemenag.go.id','Pesan Disposisi','Pegawai Fatma Widyastuti, S.Pd., M.Ed. Terdapat disposisi aktif baru',1),(448,'2021-10-05 00:43:17','2021-10-05 01:02:13','dummy@email.com','Pesan Disposisi','Pegawai Drs. H. Anshori Terdapat disposisi aktif baru',1),(451,'2021-10-05 00:43:17','2021-10-05 01:02:17','bdk_semarang@kemenag.go.id','Pesan Disposisi','Pegawai Fatma Widyastuti, S.Pd., M.Ed. Terdapat disposisi aktif baru',1),(454,'2021-10-05 00:48:41','2021-10-05 01:04:16','dummy@email.com','Pesan Disposisi','Pegawai Drs. H. Anshori Terdapat disposisi aktif baru',1),(457,'2021-10-05 00:48:41','2021-10-05 01:05:37','bdk_semarang@kemenag.go.id','Pesan Disposisi','Pegawai Fatma Widyastuti, S.Pd., M.Ed. Terdapat disposisi aktif baru',1),(460,'2021-10-05 00:48:51','2021-10-05 01:06:52','dummy@email.com','Pesan Disposisi','Pegawai Drs. H. Anshori Terdapat disposisi aktif baru',1),(463,'2021-10-05 00:48:51','2021-10-05 01:06:52','bdk_semarang@kemenag.go.id','Pesan Disposisi','Pegawai Fatma Widyastuti, S.Pd., M.Ed. Terdapat disposisi aktif baru',1),(466,'2021-10-05 00:55:38','2021-10-05 01:06:52','bdk_semarang@kemenag.go.id','Pesan Disposisi','Pegawai H. Abdul Wahib Amsa, S.H., MH Terdapat disposisi aktif baru',1),(469,'2021-10-05 01:02:12','2021-10-05 01:06:52','bdk_semarang@kemenag.go.id','Pesan Update Status Pengajuan Cuti','Pengajuan Cuti pegawai Dra. Hj. Ade Ima Ani Astuti dengan nomor 003/4 terdapat perubahan status menjadi Di Setujui',1),(472,'2021-10-05 01:02:17','2021-10-05 01:06:52','dummy@email.com','Pesan Disposisi','Pegawai Drs. H. Anshori Terdapat disposisi aktif baru',1),(475,'2021-10-05 01:02:17','2021-10-05 01:06:52','bdk_semarang@kemenag.go.id','Pesan Disposisi','Pegawai Fatma Widyastuti, S.Pd., M.Ed. Terdapat disposisi aktif baru',1),(478,'2021-10-05 01:04:16','2021-10-05 01:06:52','bdk_semarang@kemenag.go.id','Pesan Update Status Pengajuan Cuti','Pengajuan Cuti pegawai Dra. Hj. Ade Ima Ani Astuti dengan nomor 003/4 terdapat perubahan status menjadi Ditolak',1),(481,'2021-10-07 10:04:25','2021-10-07 10:04:25','','Pesan Disposisi','Pegawai Ummul Hidayah, S.Sos Terdapat disposisi aktif baru',3),(484,'2021-10-07 10:11:23','2021-10-07 10:11:23','irulkampret@gmail.com','Pesan Disposisi','Pegawai Dra. Hj. Siti Barokah Terdapat disposisi aktif baru',1),(487,'2021-10-07 10:13:03','2021-10-07 10:16:18','','Pesan Disposisi','Pegawai Ummul Hidayah, S.Sos Terdapat disposisi aktif baru',3),(490,'2021-10-07 10:16:17','2021-10-07 10:16:19','dummy@email.com','Pesan Disposisi','Pegawai Drs. H. Anshori Terdapat disposisi aktif baru',1),(493,'2021-10-07 10:16:17','2021-10-07 10:16:19','bdk_semarang@kemenag.go.id','Pesan Disposisi','Pegawai Fatma Widyastuti, S.Pd., M.Ed. Terdapat disposisi aktif baru',1),(496,'2021-10-07 10:18:19','2021-10-07 10:18:19','','Pesan Disposisi','Pegawai Ummul Hidayah, S.Sos Terdapat disposisi aktif baru',3),(499,'2021-10-07 10:20:00','2021-10-07 10:20:01','','Pesan Disposisi','Pegawai Ummul Hidayah, S.Sos Terdapat disposisi aktif baru',3),(502,'2021-10-07 10:22:15','2021-10-07 10:22:15','dummy@email.com','Pesan Disposisi','Pegawai Drs. H. Anshori Terdapat disposisi aktif baru',1),(505,'2021-10-07 10:22:15','2021-10-07 10:22:15','bdk_semarang@kemenag.go.id','Pesan Disposisi','Pegawai Fatma Widyastuti, S.Pd., M.Ed. Terdapat disposisi aktif baru',1),(508,'2021-10-07 10:32:30','2021-10-07 10:32:31','dummy@email.com','Pesan Disposisi','Pegawai Drs. H. Anshori Terdapat disposisi aktif baru',1),(511,'2021-10-07 10:32:30','2021-10-07 10:32:31','bdk_semarang@kemenag.go.id','Pesan Disposisi','Pegawai Fatma Widyastuti, S.Pd., M.Ed. Terdapat disposisi aktif baru',1),(514,'2021-10-07 10:32:54','2021-10-07 10:32:54','','Pesan Update Status Pengajuan Surat Tugas','Pengajuan Surat Tugas pegawai Napis dengan nomor 1 terdapat perubahan status menjadi Pengajuan PKL Baru',3),(517,'2021-10-07 10:34:45','2021-10-07 10:34:45','dummy@email.com','Pesan Disposisi','Pegawai Drs. H. Anshori Terdapat disposisi aktif baru',1),(520,'2021-10-07 10:34:45','2021-10-07 10:34:45','bdk_semarang@kemenag.go.id','Pesan Disposisi','Pegawai Fatma Widyastuti, S.Pd., M.Ed. Terdapat disposisi aktif baru',1),(523,'2021-10-07 10:35:38','2021-10-07 10:35:38','','Pesan Update Status Pengajuan Surat Tugas','Pengajuan Surat Tugas pegawai Napis dengan nomor 2 terdapat perubahan status menjadi Pengajuan PKL Di Setujui',3),(526,'2021-10-07 10:38:37','2021-10-07 10:38:38','dummy@email.com','Pesan Disposisi','Pegawai Drs. H. Anshori Terdapat disposisi aktif baru',1),(529,'2021-10-07 10:38:37','2021-10-07 10:38:38','bdk_semarang@kemenag.go.id','Pesan Disposisi','Pegawai Fatma Widyastuti, S.Pd., M.Ed. Terdapat disposisi aktif baru',1),(532,'2021-10-07 10:39:46','2021-10-07 10:39:47','','Pesan Update Status Pengajuan Surat Tugas','Pengajuan Surat Tugas pegawai Napis dengan nomor 3 terdapat perubahan status menjadi Pengajuan PKL Di Tolak',3),(535,'2021-10-07 10:43:51','2021-10-07 10:43:51','dummy@email.com','Pesan Disposisi','Pegawai Drs. H. Anshori Terdapat disposisi aktif baru',1),(538,'2021-10-07 10:43:51','2021-10-07 10:43:52','bdk_semarang@kemenag.go.id','Pesan Disposisi','Pegawai Fatma Widyastuti, S.Pd., M.Ed. Terdapat disposisi aktif baru',1),(541,'2021-10-07 10:44:29','2021-10-07 10:44:29','','Pesan Update Status Pengajuan Surat Tugas','Pengajuan Surat Tugas pegawai Napis dengan nomor 4 terdapat perubahan status menjadi Review Pengajuan PKL',3),(544,'2021-10-07 10:49:04','2021-10-07 10:49:04','dummy@email.com','Pesan Disposisi','Pegawai Drs. H. Anshori Terdapat disposisi aktif baru',1),(547,'2021-10-07 10:49:04','2021-10-07 10:49:05','bdk_semarang@kemenag.go.id','Pesan Disposisi','Pegawai Fatma Widyastuti, S.Pd., M.Ed. Terdapat disposisi aktif baru',1),(550,'2021-10-07 10:49:33','2021-10-07 10:49:33','dummy@email.com','Pesan Update Status Pengajuan Cuti','Pengajuan Cuti pegawai Drs. H. Anshori dengan nomor 003/5 terdapat perubahan status menjadi Di Setujui',1),(553,'2021-10-07 10:52:27','2021-10-07 10:52:28','dummy@email.com','Pesan Disposisi','Pegawai Drs. H. Anshori Terdapat disposisi aktif baru',1),(556,'2021-10-07 10:52:27','2021-10-07 10:52:28','bdk_semarang@kemenag.go.id','Pesan Disposisi','Pegawai Fatma Widyastuti, S.Pd., M.Ed. Terdapat disposisi aktif baru',1),(559,'2021-10-07 10:52:56','2021-10-07 10:52:56','dummy@email.com','Pesan Update Status Pengajuan Surat Tugas','Pengajuan Surat Tugas pegawai Drs. H. Anshori dengan nomor Kp.02.0.3/6 terdapat perubahan status menjadi Di Setujui',1),(562,'2021-10-07 11:03:24','2021-10-07 11:03:25','dummy@email.com','Pesan Disposisi','Pegawai Drs. H. Anshori Terdapat disposisi aktif baru',1),(565,'2021-10-07 11:03:24','2021-10-07 11:03:25','bdk_semarang@kemenag.go.id','Pesan Disposisi','Pegawai Fatma Widyastuti, S.Pd., M.Ed. Terdapat disposisi aktif baru',1),(568,'2021-10-07 11:04:01','2021-10-07 11:04:02','dummy@email.com','Pesan Disposisi','Pegawai Drs. H. Anshori Terdapat disposisi aktif baru',1),(571,'2021-10-07 11:04:01','2021-10-07 11:04:03','bdk_semarang@kemenag.go.id','Pesan Disposisi','Pegawai Fatma Widyastuti, S.Pd., M.Ed. Terdapat disposisi aktif baru',1),(574,'2021-10-07 11:04:10','2021-10-07 11:04:10','dummy@email.com','Pesan Disposisi','Pegawai Drs. H. Anshori Terdapat disposisi aktif baru',1),(577,'2021-10-07 11:04:10','2021-10-07 11:04:11','bdk_semarang@kemenag.go.id','Pesan Disposisi','Pegawai Fatma Widyastuti, S.Pd., M.Ed. Terdapat disposisi aktif baru',1),(580,'2021-10-07 11:06:51','2021-10-07 11:06:51','irulkampret@gmail.com','Pesan Update Status Pengajuan Cuti','Pengajuan Cuti pegawai Dra. Hj. Siti Barokah dengan nomor 003/7 terdapat perubahan status menjadi Di Setujui',1),(583,'2021-10-07 11:07:09','2021-10-07 11:07:09','dummy@email.com','Pesan Disposisi','Pegawai Drs. H. Anshori Terdapat disposisi aktif baru',1),(586,'2021-10-07 11:07:09','2021-10-07 11:07:09','bdk_semarang@kemenag.go.id','Pesan Disposisi','Pegawai Fatma Widyastuti, S.Pd., M.Ed. Terdapat disposisi aktif baru',1),(589,'2021-10-07 11:17:39','2021-10-07 11:17:39','dummy@email.com','Pesan Disposisi','Pegawai Drs. H. Anshori Terdapat disposisi aktif baru',1),(592,'2021-10-07 11:17:39','2021-10-07 11:17:40','bdk_semarang@kemenag.go.id','Pesan Disposisi','Pegawai Fatma Widyastuti, S.Pd., M.Ed. Terdapat disposisi aktif baru',1),(595,'2021-10-07 11:18:05','2021-10-07 11:18:05','bdk_semarang@kemenag.go.id','Pesan Update Status Pengajuan Cuti','Pengajuan Cuti pegawai H. Abdul Wahib Amsa, S.H., MH dengan nomor 003/8 terdapat perubahan status menjadi Di Setujui',1),(598,'2021-10-07 11:18:16','2021-10-07 11:18:17','dummy@email.com','Pesan Disposisi','Pegawai Drs. H. Anshori Terdapat disposisi aktif baru',1),(601,'2021-10-07 11:18:16','2021-10-07 11:18:17','bdk_semarang@kemenag.go.id','Pesan Disposisi','Pegawai Fatma Widyastuti, S.Pd., M.Ed. Terdapat disposisi aktif baru',1),(604,'2021-10-07 14:09:15','2021-10-07 14:09:16','irulkampret@gmail.com','Pesan Disposisi','Pegawai Dra. Hj. Siti Barokah Terdapat disposisi aktif baru',1),(607,'2021-10-07 14:12:26','2021-10-07 14:12:26','','Pesan Disposisi','Pegawai Ummul Hidayah, S.Sos Terdapat disposisi aktif baru',3),(610,'2021-10-07 14:32:47','2021-10-07 14:32:49','irulkampret@gmail.com','Pesan Disposisi','Pegawai Dra. Hj. Siti Barokah Terdapat disposisi aktif baru',1),(613,'2021-10-07 14:32:47','2021-10-07 14:32:56','bdk_semarang@kemenag.go.id','Pesan Disposisi','Pegawai Drs. H. Khoirul Anwar, M.Pd. Terdapat disposisi aktif baru',1),(616,'2021-10-07 14:32:47','2021-10-07 14:33:14','bdk_semarang@kemenag.go.id','Pesan Disposisi','Pegawai dr. Hj. Elsi Cahya Huriyatiningsih Terdapat disposisi aktif baru',1),(619,'2021-10-07 14:32:47','2021-10-07 14:33:17','bdk_semarang@kemenag.go.id','Pesan Disposisi','Pegawai Hj. Sari Indarwati, S.E., MM Terdapat disposisi aktif baru',1),(622,'2021-10-07 14:32:47','2021-10-07 14:33:25','bdk_semarang@kemenag.go.id','Pesan Disposisi','Pegawai Nuruz Zaman Amsa, S.Pd.I., M.S.I. Terdapat disposisi aktif baru',1),(625,'2021-10-07 14:32:47','2021-10-07 14:33:29','bdk_semarang@kemenag.go.id','Pesan Disposisi','Pegawai Ananda Citra Aulia, S.Kom. Terdapat disposisi aktif baru',1),(628,'2021-10-07 14:32:47','2021-10-07 14:33:29','','Pesan Disposisi','Pegawai Puryanto Terdapat disposisi aktif baru',3),(631,'2021-10-07 14:32:47','2021-10-07 14:33:29','bdk_semarang@kemenag.go.id','Pesan Disposisi','Pegawai Izzi Safir, S.E., M.Si. Terdapat disposisi aktif baru',1),(634,'2021-10-07 14:32:47','2021-10-07 14:33:29','','Pesan Disposisi','Pegawai Eko Dwi Saputra Terdapat disposisi aktif baru',3),(637,'2021-10-07 14:32:47','2021-10-07 14:33:29','','Pesan Disposisi','Pegawai Moch. Imam Rifa\'i Terdapat disposisi aktif baru',3),(640,'2021-10-07 14:32:48','2021-10-07 14:33:29','','Pesan Disposisi','Pegawai Waichsan Terdapat disposisi aktif baru',3),(643,'2021-10-07 14:32:49','2021-10-07 14:33:29','','Pesan Disposisi','Pegawai Afiati Muthmainah, SE., S.Pd Terdapat disposisi aktif baru',3),(646,'2021-10-07 14:32:49','2021-10-07 14:33:29','','Pesan Disposisi','Pegawai Dwi Cahyani, SE Terdapat disposisi aktif baru',3),(649,'2021-10-07 14:32:50','2021-10-07 14:33:29','','Pesan Disposisi','Pegawai Fandy Akhmad, S.Sn Terdapat disposisi aktif baru',3),(652,'2021-10-07 14:32:50','2021-10-07 14:33:29','','Pesan Disposisi','Pegawai Nasyarudin Latif, S.Kom Terdapat disposisi aktif baru',3),(655,'2021-10-07 14:32:50','2021-10-07 14:33:29','','Pesan Disposisi','Pegawai Chilman Taris Azinuddin, S. Hum Terdapat disposisi aktif baru',3),(658,'2021-10-07 14:32:51','2021-10-07 14:33:29','bdk_semarang@kemenag.go.id','Pesan Disposisi','Pegawai Feri Kurniawati Terdapat disposisi aktif baru',1),(661,'2021-10-07 14:32:51','2021-10-07 14:33:29','','Pesan Disposisi','Pegawai Anang Aji Guritna, S.IP Terdapat disposisi aktif baru',3),(664,'2021-10-07 14:32:51','2021-10-07 14:33:29','bdk_semarang@kemenag.go.id','Pesan Disposisi','Pegawai Erma Kurniasari, S.Pd. Terdapat disposisi aktif baru',1),(667,'2021-10-07 14:32:51','2021-10-07 14:33:29','','Pesan Disposisi','Pegawai Sri Wahyunitaningsih, S.H. Terdapat disposisi aktif baru',3),(670,'2021-10-07 14:32:52','2021-10-07 14:33:29','bdk_semarang@kemenag.go.id','Pesan Disposisi','Pegawai Rukhana Fitriati, S.Sos. Terdapat disposisi aktif baru',1),(673,'2021-10-07 14:33:08','2021-10-07 14:33:29','','Pesan Disposisi','Pegawai Ghoni Nurrozak Terdapat disposisi aktif baru',3),(676,'2021-10-07 14:33:13','2021-10-07 14:33:28','bdk_semarang@kemenag.go.id','Pesan Disposisi','Pegawai H. Ndakwan, S.H. Terdapat disposisi aktif baru',1),(679,'2021-10-07 14:33:13','2021-10-07 14:33:28','','Pesan Disposisi','Pegawai Imron, S.Pd.I Terdapat disposisi aktif baru',3),(682,'2021-10-07 14:33:14','2021-10-07 14:33:29','bdk_semarang@kemenag.go.id','Pesan Disposisi','Pegawai Septiana Donna Ardhilla, S.E. Terdapat disposisi aktif baru',1),(685,'2021-10-07 14:33:14','2021-10-07 14:33:28','bdk_semarang@kemenag.go.id','Pesan Disposisi','Pegawai Muklasin, S.H. Terdapat disposisi aktif baru',1),(688,'2021-10-07 14:33:14','2021-10-07 14:33:28','','Pesan Disposisi','Pegawai Muhammad Yusuf, S.H.I. Terdapat disposisi aktif baru',3),(691,'2021-10-07 14:37:56','2021-10-07 14:37:57','dummy@email.com','Pesan Disposisi','Pegawai Drs. H. Anshori Terdapat disposisi aktif baru',1),(694,'2021-10-07 14:37:56','2021-10-07 14:37:57','bdk_semarang@kemenag.go.id','Pesan Disposisi','Pegawai Fatma Widyastuti, S.Pd., M.Ed. Terdapat disposisi aktif baru',1),(697,'2021-10-07 14:41:37','2021-10-07 14:41:37','bdk_semarang@kemenag.go.id','Pesan Update Status Pengajuan Cuti','Pengajuan Cuti pegawai H. Abdul Wahib Amsa, S.H., MH dengan nomor 003/8 terdapat perubahan status menjadi Di Setujui',1),(700,'2021-10-18 16:07:24','2021-10-18 16:07:24','irulkampret@gmail.com','Pesan Disposisi','Pegawai Dra. Hj. Siti Barokah Terdapat disposisi aktif baru',1),(703,'2021-10-18 16:16:48','2021-10-18 16:16:49','irulkampret@gmail.com','Pesan Disposisi','Pegawai Dra. Hj. Siti Barokah Terdapat disposisi aktif baru',1),(706,'2021-10-18 16:16:54','2021-10-18 16:16:54','','Pesan Disposisi','Pegawai Ummul Hidayah, S.Sos Terdapat disposisi aktif baru',3),(709,'2021-10-18 16:18:47','2021-10-18 16:18:47','','Pesan Disposisi','Pegawai Ummul Hidayah, S.Sos Terdapat disposisi aktif baru',3),(712,'2021-10-18 16:25:55','2021-10-18 16:25:55','irulkampret@gmail.com','Pesan Disposisi','Pegawai Dra. Hj. Siti Barokah Terdapat disposisi aktif baru',1),(715,'2021-10-18 16:26:32','2021-10-18 16:26:32','','Pesan Disposisi','Pegawai Ummul Hidayah, S.Sos Terdapat disposisi aktif baru',3),(718,'2021-10-18 16:29:48','2021-10-18 16:29:48','irulkampret@gmail.com','Pesan Disposisi','Pegawai Dra. Hj. Siti Barokah Terdapat disposisi aktif baru',1),(721,'2021-10-18 16:30:09','2021-10-18 16:30:09','','Pesan Disposisi','Pegawai Ummul Hidayah, S.Sos Terdapat disposisi aktif baru',3),(724,'2021-10-18 16:31:08','2021-10-18 16:31:08','irulkampret@gmail.com','Pesan Disposisi','Pegawai Dra. Hj. Siti Barokah Terdapat disposisi aktif baru',1),(727,'2021-10-18 16:36:38','2021-10-18 16:36:41','irulkampret@gmail.com','Pesan Disposisi','Pegawai Dra. Hj. Siti Barokah Terdapat disposisi aktif baru',1),(730,'2021-10-18 16:40:47','2021-10-18 16:40:47','','Pesan Disposisi','Pegawai Ummul Hidayah, S.Sos Terdapat disposisi aktif baru',3),(733,'2021-10-18 16:47:30','2021-10-18 16:47:32','dummy@email.com','Pesan Disposisi','Pegawai Drs. H. Anshori Terdapat disposisi aktif baru',1),(736,'2021-10-18 16:47:30','2021-10-18 16:47:33','bdk_semarang@kemenag.go.id','Pesan Disposisi','Pegawai Fatma Widyastuti, S.Pd., M.Ed. Terdapat disposisi aktif baru',1),(739,'2021-10-26 13:04:57','2021-10-26 13:04:58','irulkampret@gmail.com','Pesan Disposisi','Pegawai Dra. Hj. Siti Barokah Terdapat disposisi aktif baru',1),(742,'2021-10-26 13:06:47','2021-10-26 13:06:47','','Pesan Disposisi','Pegawai Ummul Hidayah, S.Sos Terdapat disposisi aktif baru',3),(745,'2021-10-26 13:11:01','2021-10-26 13:11:04','dummy@email.com','Pesan Disposisi','Pegawai Drs. H. Anshori Terdapat disposisi aktif baru',1),(748,'2021-10-26 13:11:01','2021-10-26 13:11:04','bdk_semarang@kemenag.go.id','Pesan Disposisi','Pegawai Fatma Widyastuti, S.Pd., M.Ed. Terdapat disposisi aktif baru',1),(751,'2021-10-26 13:11:08','2021-10-26 13:11:09','dummy@email.com','Pesan Disposisi','Pegawai Drs. H. Anshori Terdapat disposisi aktif baru',1),(754,'2021-10-26 13:11:08','2021-10-26 13:11:09','bdk_semarang@kemenag.go.id','Pesan Disposisi','Pegawai Fatma Widyastuti, S.Pd., M.Ed. Terdapat disposisi aktif baru',1),(757,'2021-10-28 04:17:19','2021-10-28 04:17:19','irulkampret@gmail.com','Pesan Disposisi','Pegawai Dra. Hj. Siti Barokah Terdapat disposisi aktif baru',1),(760,'2021-10-28 04:17:33','2021-10-28 04:17:34','irulkampret@gmail.com','Pesan Disposisi','Pegawai Dra. Hj. Siti Barokah Terdapat disposisi aktif baru',1),(763,'2021-10-28 08:24:23','2021-10-28 08:24:24','dummy@email.com','Pesan Disposisi','Pegawai Drs. H. Anshori Terdapat disposisi aktif baru',1),(766,'2021-10-28 08:24:23','2021-10-28 08:24:25','bdk_semarang@kemenag.go.id','Pesan Disposisi','Pegawai Fatma Widyastuti, S.Pd., M.Ed. Terdapat disposisi aktif baru',1),(769,'2021-10-28 09:14:57','2021-10-28 09:14:57','','Pesan Disposisi','Pegawai Ummul Hidayah, S.Sos Terdapat disposisi aktif baru',3),(772,'2021-10-28 09:15:58','2021-10-28 09:15:58','','Pesan Disposisi','Pegawai Ummul Hidayah, S.Sos Terdapat disposisi aktif baru',3),(775,'2021-10-28 09:22:16','2021-10-28 09:22:16','','Pesan Disposisi','Pegawai Ummul Hidayah, S.Sos Terdapat disposisi aktif baru',3),(778,'2021-10-28 09:22:40','2021-10-28 09:22:42','dummy@email.com','Pesan Disposisi','Pegawai Drs. H. Anshori Terdapat disposisi aktif baru',1),(781,'2021-10-28 09:22:40','2021-10-28 09:22:42','bdk_semarang@kemenag.go.id','Pesan Disposisi','Pegawai Fatma Widyastuti, S.Pd., M.Ed. Terdapat disposisi aktif baru',1),(784,'2021-10-28 09:23:10','2021-10-28 09:23:10','bdk_semarang@kemenag.go.id','Pesan Update Status Pengajuan Cuti','Pengajuan Cuti pegawai Achmad Subkhan, S.H.I., M.S.I. dengan nomor 003/9 terdapat perubahan status menjadi Ditolak',1),(787,'2021-10-28 09:25:10','2021-10-28 09:25:10','irulkampret@gmail.com','Pesan Disposisi','Pegawai Dra. Hj. Siti Barokah Terdapat disposisi aktif baru',1),(790,'2021-10-28 09:26:19','2021-10-28 09:26:19','','Pesan Disposisi','Pegawai Sri Wahyunitaningsih, S.H. Terdapat disposisi aktif baru',3),(793,'2021-10-28 09:26:26','2021-10-28 09:26:26','','Pesan Disposisi','Pegawai Ummul Hidayah, S.Sos Terdapat disposisi aktif baru',3);
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_kirim_email_BEFORE_INSERT` BEFORE INSERT ON `tb_kirim_email` FOR EACH ROW
BEGIN
	set new.tanggal=now();
END */;;
DELIMITER ;

--
-- Table structure for table `tb_kodewaktu`
--

CREATE TABLE `tb_kodewaktu` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `nama` varchar(145) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  UNIQUE KEY `nama_UNIQUE` (`nama`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_kodewaktu`
--

INSERT INTO `tb_kodewaktu` VALUES (2,'Bulan'),(3,'Hari'),(1,'Tahun');

--
-- Table structure for table `tb_konten`
--

CREATE TABLE `tb_konten` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tanggal` datetime DEFAULT NULL,
  `iduser` int(11) DEFAULT 0,
  `idkategori` int(11) DEFAULT 0,
  `judul` varchar(245) DEFAULT NULL,
  `konten` longtext DEFAULT NULL,
  `status` int(11) DEFAULT 0,
  `utama` int(11) DEFAULT 0,
  `dibaca` int(11) DEFAULT 0,
  `idgambar` int(11) DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  KEY `fx_kategori_idkonten_idx` (`idkategori`),
  CONSTRAINT `fx_kategori_idkonten` FOREIGN KEY (`idkategori`) REFERENCES `tb_konten_kategori` (`id`) ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_konten`
--

INSERT INTO `tb_konten` VALUES (7,'2021-03-02 10:03:35',1,1,'Profil BDK Semarang','<h2 class=\"blok-title\">Tugas dan Fungsi</h2>\n<p>&nbsp;</p>\n<p>Tugas&nbsp;:&nbsp;Menyelenggarakan Pendidikan dan Pelatihan Tenaga Teknis Pendidikan dan Keagamaan,&nbsp;Melaksanakan koordinasi dan pengembangan kemitraan dengan satuan organisasi kerja di lingkungan Kementerian Agama dan Pemerintah Daerah serta Lembaga Diklat lainnya.</p>\n<p>Fungsi&nbsp;:&nbsp;Penyelenggaraan Pendidikan dan Pelatihan Tenaga Administrasi dan Tenaga Teknis Pendidikan dan Keagamaan,&nbsp;Melakukan penyiapan dan penyajian laporan hasil pelaksanaan tugas.</p>',1,1,0,175),(10,'2021-03-02 12:03:22',1,2,'Terapi Air Putih','<p>Air adalah karunia yang telah Tuhan berikan berlimpah untuk kita. Walaupun terlihat sederhana, namun air memiliki kemampuan dan rahasia yang luar biasa. Air bisa menjadi obat dari berbagai macam penyakit yang diderita dengan biaya yang jauh lebih murah dibandingkan obat-obat atau operasi yang diberikan oleh dokter.</p>\n<p>Terapi air putih sudah dikenal dan diakui sejak lama mampu menyembuhkan banyak penyakit. Berikut beberapa penyakit yang mampu disembuhkan :</p>\n<p>Darah tinggi, Bronchitis, Sakit kepala/migren, Kencing manis, Asma, Reumatik, Batu ginjal, Asam urat, Lumpuh, Kegemukan, Gangguan saluran kencing, Radang persendian, Haid tidak lancar, Leukimia, Kanker peranakan, Gangguan jantung, Disentri, Ambeyen, Radang tenggorokan, Sembelit, Batuk, dan masih banyak lagi.</p>\n<p>&nbsp;</p>\n<p>Bagaimana Air minum itu bekerja?</p>\n<p>Meminum air minum biasa dengan metode yang benar, memurnikan tubuh manusia. Hal itu membuat usus besar bekerja dengan lebih efektif dengan cara membentuk darah baru, dalam istilah medis dikenal sebagai aematopaises. Bahwa mucousal fold pada usus besar dan usus kecil diaktifkan oleh metode ini, merupakan fakta yang tak terbantah, seperti teori yang menyatakan bahwa darah segar baru diproduksi oleh mucousal fold ini.</p>\n<p>Bila usus bersih, maka gizi makanan yang dimakan beberapa kali dalam sehari akan diserap dan dengan kerja mucousal fold, gizi makanan itu diubah menjadi darah baru. Darah merupakan hal penting dalam menyembuhkan penyakit dan memelihara kesehatan, dan karena itu air hendaknya dikonsumsi dengan teratur.</p>\n<p>Bagaimana melakukan terapi ini ?</p>\n<ul>\n<ul>\n<li>Pagi hari ketika anda baru bangun tidur ( bahkan tanpa gosok gigi terlebih dahulu) minumlah 1.5 liter air, yaitu 5 sampai 6 gelas. Lebih baik airnya ditakar dahulu sebanyak 1.5 liter. Ketahuilah bahwa nenek moyang kami menamakan terapi ini sebagai �usha paana chikitsa�. Setelah itu anda boleh mencuci muka.</li>\n<li>Hal sangat penting untuk diketahui bahwa jangan minum atau makan apapun satu jam sebelum dan sesudah minum 1.5 liter air ini.</li>\n<li>Juga telah diteliti dengan seksama bahwa tidak boleh minum minuman beralkohol pada malam sebelumnya.</li>\n<li>Bila perlu, gunakanlah air rebus atau air yang sudah disaring.</li>\n</ul>\n</ul>\n<p>Untuk permulaan, mungkin akan terasa sulit meminum 1.5 liter air sekaligus, tapi lambat laun akan terbiasa juga. Mula-mula, ketika latihan, anda boleh minum 4 gelas dulu dan sisanya yang 2 gelas diminum dua menit kemudian. Awalnya anda akan buang air kecil 2 sampai 3 kali dalam satu jam, tetapi setelah beberapa lama, akan normal kembali.</p>\n<p>Disarankan agar penderita radang/ sakit persendian dan rematik melaksakan terapi ini tiga kali sehari, yaitu pagi, siang, dan malam satu jam sebelum makan � selama satu minggu, setelah itu dua kali sehari sampai penyakitnya sembuh.</p>\n<p>Dari beberapa sumber�</p>\n<p>Ginjal yang masih sehat boleh diguyuri air 1,5 liter sekaligus, tapi kalau sedang apes akan terjadi bengkak di otak karena kadar natrium akan menjadi rendah dalam darah. Hal ini dikenal sebagai intoksikasi air. 500cc air adalah cukup reasonable untuk sekali tenggak.</p>\n<p>Terapi air putih model konvensional ini (enam gelas air) sebenarnya lebih diperuntukkan untuk orang yang relatif sehat bukan untuk orang yang mengalami gangguan yang cukup signifikan pada fungsi hati, fungsi ginjal dan fungsi jantungnya. Kalau penderita punya gangguan jantung berupa gagal jantung atau gagal jantung yang belum secara klinis memberikan gangguan yang nyata, maka setelah diguyur air sebanyak itu, ditambah lagi intake air sepanjang hari, maka dikhawatirkan akan mengalami gagal jantung yang secara klinis nyata benar, berupa sesak nafas, kaki bengkak. Demikian juga pada orang yang mengalami gagal fungsi lever, gangguan yang sama juga akan muncul kalo diguyur air sebanyak itu dan jangan lupa bahwa ke 3 organ yang disebutkan diatas saling berkaitan erat sekali, kegagalan satu organ akan merembet pada gangguan yang lainnya juga. Untuk umur diatas 60 tahun fungsi ginjal secara alamiah telah berkurang, jadi sebaiknya (terapi air putih model konvensional) jangan dilakukan. Yang reasonable adalah 500cc pagi-pagi, dan setiap 2-3 jam minum 200cc air, itu sudah baik.</p>\n<p>Selain itu, jika ternyata air tanah atau air yang biasa kita konsumsi justru tidak sehat. Air yang seharusnya bisa meringankan penyakit malah menjadi awal mula penyakit itu muncul perlahan-lahan di tubuh kita.</p>\n<p>Ada banyak kontaminan yang ikut larut di air tanah, hal ini di sebabkan oleh makin tingginya polusi air dan tanah dari limbah industri dan rumah tangga. Contoh kontaminan yang ada di air tanah adalah: 1. Kuprum Peroksida, menyerang system saraf dan karsinogen (bahan kanker); 2. Kalsium Karbonat, menyebabkan batu ginjal; 3. Arsenik, menyerang hati dan merupakan karsinogen; 4. Alumunium Sulfat, menyebabkan penyakit ginjal dan saraf; 5. Besi Peroksida, menyebabkan gangguan metabolisme, dan masih banyak kontaminan lain.</p>\n<p>Itulah sebabnya saat ini untuk lebih berhati-hati dalam memilih air minum untuk dikonsumsi sehari-hari, untuk menjamin kesehatan keluarga kita</p>',1,1,0,184),(13,'2021-03-02 12:03:23',1,2,'Kreativitas Tiada Batas','<p>Kebanyakan orang menghubungakan berpikir kreatif dengan hal-hal seperti penemuan-penemuan teknologi atau para pemenang hadiah Nobel. Memang betul, penciptaan ataupun penemuan para ahli adalah hasil dari berpikir kreatif. Akan tetapi, berpikir kreatif tak hanya diperuntukan bagi profesi-profesi tertentu, dan juga bukan hanya milik orang-orang yang luar biasa pintar.</p>\n<p>Orang tua yang hanya mengenyam pendidikan SMP dan berpenghasilan pas-pasan berkeinginan untuk dapat menyekolahkan putranya hingga universitas. Seorang manajer penjualan mengembangkan suatu rencana untuk membuat pameran di beberapa lokasi yang strategis agar dikunjungi oleh banyak calon pembeli. Seorang ibu rumah tangga merombak sudut halaman rumahnya yang gersang menjadi sebuah taman mungil yang asri. Ini senua adalah hasil dari berpikir kreatif.</p>\n<p>Mencari jawaban yang sederhana tetapi tepat; menyusun barang-barang agar memudahkan pengambilannya; membuat anak-anak bersikap jujur; semua ini merupakan berpikir kreatif.</p>\n<p>Percaya bahwa suatu hal dapat dilaksanakan, akan membuka jalan bagi pemecahan persoalan secara kreatif. Percaya bahwa sesuatu tidak dapat dilaksanakan, merupakan suatu pemikiran yang destruktif. Ini berlaku untuk semua situasi, baik yang kecil maupun yang besar. Jika kita sering menggunakan kata &ldquo;mustahil, tidak mungkin, tidak bias&rdquo;, maka itu semua akan menutup pikiran kita untuk berkreasi. Para pemimpin yang tidak percaya bahwa perdamaian dapat diwujudkan pasti akan gagal, karena pikirannya tertutup bagi cara-cara kreatif. Demikian juga halnya dengan Anda. Jika Anda percaya bahwa Anda dapat melaksanakan suatu tugas, maka akan muncul ide-ide kreatif dan cara-cara pemecahan masalah yang akan Anda hadapi.</p>\n<p>&ldquo;When you affirm big, believe big, and pray big, big things happen.&rdquo; (Norman Vincent Peale)</p>',1,1,0,187),(16,'2021-03-02 12:03:31',1,1,'Manfaat Air Putih Untuk Kesehatan','<p>Tahukah Anda, minum air dalam jumlah cukup tidak hanya memaksimalkan fungsi organ tubuh. Tapi, minum air juga memberi manfaat baik untuk kesehatan tubuh Anda.&nbsp;</p>\n<p>Berikut manfaat minum air untuk kesehatan tubuh.&nbsp; &nbsp;</p>\n<p>1. Menjaga keseimbangan cairan tubuh&nbsp;</p>\n<p>Tubuh manusia terdiri dari sekitar 60 persen air. Fungsi cairan tubuh ini bermacam-macam mulai dari pencernaan, penyerapan, sirkulasi, pembentukan air liur dan lendir, sirkulasi nutrisi, hingga penyeimbangan suhu tubuh.&nbsp;</p>\n<p>Inilah mengapa air sangat dibutuhkan untuk melakukan berbagai fungsi tubuh. Pada pembentukan air liur dan lendir misalnya, fungsi air menjadi penting untuk menjaga kelembapan mulut, hidung, dan mata.&nbsp;</p>\n<p>Tidak hanya itu, darah merupakan salah satu cairan tubuh yang 90 persennya terdiri dari air. Fungsi darah sendiri penting untuk sirkulasi oksigen dan nutrisi ke seluruh tubuh.&nbsp;</p>\n<p>2. Mempengaruhi tingkat energi dan fungsi otak&nbsp;</p>\n<p>Merangkum dari Healthline, fungsi otak sangat dipengaruhi oleh status hidrasi kita. Sebuah studi menunjukkan, bahkan dengan dehidrasi ringan dapat merusak banyak aspek fungsi otak.&nbsp;</p>\n<p>Dalam sebuah studi yang melibatkan para wanita muda, peneliti menemukan bahwa kehilangan cairan sebanyak 1,4% setelah berolahraga dapat mengganggu suasana hati dan konsentrasi.&nbsp;</p>\n<p>Dikutip dari Medical News Today, dehidrasi yang berkepanjangan juga dapat menyebabkan masalah dengan pemikiran dan penalaran.</p>\n<p>3. Mencegah dan mengobati sakit kepala&nbsp;</p>\n<p>Dehirasi diketahui juga dapat memicu sakit kepala dan migrain pada beberapa orang. Beberapa penelitian menunjukkan bahwa sakit kepala adalah salah satu gejala dehidrasi yang paling umum.&nbsp;</p>\n<p>Penelitian lainnya bahkan menunjukkan bahwa cukup minum dapat membantu meringankan sakit kepala pada orang yang kerap mengalaminya.&nbsp;</p>\n<p>Sebuah penelitian terhadap 102 orang pria menemukan bahwa minum 1,5 liter lebih banyak air menghasilkan peningkatan signifikan pada skala kualitas hidup khusus migrain.&nbsp;</p>\n<p>4. Meningkatkan kecantikan kulit&nbsp;</p>\n<p>Kulit mengandung banyak air. Ini mengapa asupan air yang cukup penting bagi kulit kita. Dehidrasi akan membuat kulit lebih rentan terhadap gangguan kulit dan kerutan dini.&nbsp;</p>\n<p>\"Dehidrasi membuat kulit Anda terlihat lebih kering dan kusut, yang dapat diperbaiki dengan hidrasi yang tepat,\" katan dokter spesialis kulit dari Atlanta, Kenneth Ellner.&nbsp;</p>\n<p>\"Tapi begitu Anda cukup terhidrasi, ginjal mengambil alih dan mengeluarkan kelebihan cairan (dari dalam tubuh),\" imbuhnya.&nbsp;</p>\n<p>5. Menjaga fungsi usus dan mencegah sembelit&nbsp;</p>\n<p>Hidrasi yang cukup akan menjaga fungsi saluran pencernaan tetap normal dan mencegah sembelit.&nbsp;</p>\n<p>Saat Anda tidak mendapatkan cukup asupan air, usus besar akan menarik air dari feses. Hasilnya, Anda akan mengalami sembelit. Meningkatkan asupan cairan sering direkomendasikan sebagai cara untuk mengatasi konstipasi.&nbsp;</p>\n<p>6. Mencegah batu ginjal&nbsp;</p>\n<p>Cairan tubuh juga berfungsi membantu untuk mengangkut limbah dan mengeluarkannya dari tubuh. Ketika mendapatkan cairan yang cukup, urine akan keluar dengan mudah, berwarna terang, dan bebas bau.&nbsp;</p>\n<p>Tapi jika tubuh tidak mendapatkan cukup air maka konsentrasi urine akan berwarna gelap dan bau. Saat Anda kerap kurang minum terus menerus, maka Anda lebih berisiko terkena batu ginjal.&nbsp;</p>\n<p>7. Memaksimalkan kinerja fisik&nbsp;</p>\n<p>Saat Anda tidak cukup terhidrasi, kinerja fisik akan menurun. Pada sel-sel yang tidak dapat mempertahankan keseimbangan cairan dan elektrolitnya akan terjadi kelelahan otot.&nbsp;</p>\n<p>Ini mengapa jumlah asupan air yang cukup sangat penting pada saat berolahraga. Beberapa ilmuwan percaya bahwa mengonsumsi lebih banyak air dapat meningkatkan kinerja selama aktivitas berat.&nbsp;</p>\n<p>8. Membantu menurunkan berat badan&nbsp;</p>\n<p>Air juga dipercaya dapat membantu menurunkan berat badan. Ini karena air dapat meningkatkan rasa kenyang dan meningkatkan laju metabolisme.&nbsp;</p>\n<p>Beberapa bukti menunjukkan peningkatan asupan air dapat membantu menurunkan berat badan dengan meningkatkan metabolisme sehingga jumlah kalori yang dibakar juga naik.&nbsp;</p>\n<p>Penelitian yang dilakukan terhadap 50 perempuan muda dengan kelebihan berat badan pada 2013 menunjukkan bahwa minuman tambahan sebanyak 500 ml selama 3 kali sehari sebelum makan dalam 8 minggu menyebabkan penurunan berat badan yang signifikan.</p>',1,1,0,181),(19,'2021-03-02 12:03:39',1,1,'Tentang E-OFFICE BDK Semarang','<h2 class=\"blok-title\">Visi dan Misi</h2>\n<p>&nbsp;</p>\n<p>&nbsp;&nbsp; 1.&nbsp; Visi&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</p>\n<p>&nbsp; &nbsp; &nbsp;Terwujudnya Pendidikan dan Pelatihan yang handal dan profesional dalam mewujudkan Sumber Daya Manusia&nbsp; Kementerian Agama yang berkualitas dan berakhlakul karimah.</p>\n<p>&nbsp; &nbsp;2.&nbsp; Misi</p>\n<p>a. Meningkatkan SDM, sarana dan prasarana kediklatan yang sesuai dengan perkembangan ilmu pengetahuan dan teknologi.</p>\n<p>b. Meningkatkan mutu pelayanan diklat yang mampu memberi solusi dalam&nbsp;pembinaan sumber daya aparatur di lingkungan Kementerian Agama.</p>\n<p>c. Mengembangkan kemitraan dengan instansi/lembaga yang berkompeten dalam membangun jaringan informasi dan kerjasama kediklatan.</p>\n<p>d. Meningkatkan mutu SDM aparatur tenaga administrasi dan tenaga teknis sesuai kebutuhan instansi pengguna dan sessuai persyaratan jabatan.</p>\n<p>e. Mengembangkan tradisi keilmuan dan kompetensi yang sehat sebagai pilar kemajuan diklat.</p>',1,1,0,178);

--
-- Table structure for table `tb_konten_kategori`
--

CREATE TABLE `tb_konten_kategori` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `nama` varchar(245) DEFAULT NULL,
  `status` int(1) DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  UNIQUE KEY `nama_UNIQUE` (`nama`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_konten_kategori`
--

INSERT INTO `tb_konten_kategori` VALUES (1,'Profile',1),(2,'Informasi dan Berita',1);

--
-- Table structure for table `tb_konten_video`
--

CREATE TABLE `tb_konten_video` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tanggal` date DEFAULT NULL,
  `nama` varchar(145) DEFAULT NULL,
  `idkonten` int(11) DEFAULT NULL,
  `status` int(11) DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  UNIQUE KEY `judul_UNIQUE` (`nama`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_konten_video`
--

DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_konten_video_BEFORE_INSERT` BEFORE INSERT ON `tb_konten_video` FOR EACH ROW
BEGIN
	set new.tanggal=now();
END */;;
DELIMITER ;

--
-- Table structure for table `tb_kota`
--

CREATE TABLE `tb_kota` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `kode` varchar(45) DEFAULT NULL,
  `idpropinsi` int(11) DEFAULT NULL,
  `kota` varchar(145) DEFAULT NULL,
  `lokasi` varchar(145) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  UNIQUE KEY `index3` (`idpropinsi`,`kota`),
  UNIQUE KEY `index4` (`kode`,`idpropinsi`)
) ENGINE=InnoDB AUTO_INCREMENT=516 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_kota`
--

INSERT INTO `tb_kota` VALUES (1,'1105',1,'Aceh Barat','4.179742403508695,96.13784579157709'),(2,'1112',1,'Aceh Barat Daya','3.7401835908011942,96.83350352167963'),(3,'1106',1,'Aceh Besar','5.299748080948918,95.60419348597406'),(4,'1114',1,'Aceh Jaya','4.635181270413668,95.58445242762446'),(5,'1101',1,'Aceh Selatan','3.259358669487964,97.17991618037104'),(6,'1110',1,'Aceh Singkil','2.2827306700945185,97.79841212153315'),(7,'1116',1,'Aceh Tamiang','4.337748319564805,98.07349947810053'),(8,'1104',1,'Aceh Tengah','4.634325770150026,96.84225825190424'),(9,'1102',1,'Aceh Tenggara','3.4803331286076555,97.81253126978754'),(10,'1103',1,'Aceh Timur','4.946833712710608,97.7772226703155'),(11,'1108',1,'Aceh Utara','5.043047906539397,97.32200888514399'),(12,'1117',1,'Bener Meriah','4.729707626996291,96.8621709716308'),(13,'1111',1,'Bireuen','5.209919162697997,96.70218256831049'),(14,'1113',1,'Gayo Lues','3.9959328109694887,97.34187868952631'),(15,'1115',1,'Nagan Raya','4.170326082413285,96.32375506281733'),(16,'1107',1,'Pidie','5.384522292883707,95.96180704951166'),(17,'1118',1,'Pidie Jaya','5.24889505044193,96.2330320250976'),(18,'1109',1,'Simeulue','2.4800564238330742,96.37950209498285'),(19,'1171',1,'Kota Banda Aceh','5.546004807571063,95.3211667907226'),(20,'1174',1,'Kota Langsa','4.473559103813664,97.97616747736811'),(21,'1173',1,'Kota Lhokseumawe','5.182993616723228,97.14215067744135'),(22,'1172',1,'Kota Sabang','5.8927421420882204,95.32477167963862'),(23,'1175',1,'Kota Subulussalam','2.671951304873587,97.99402026057123'),(24,'1209',2,'Asahan','2.9897369880400033,99.63776377558588'),(25,'1219',2,'Batu Bara','3.2629577206854488,99.41254404902338'),(26,'1211',2,'Dairi','2.7411393998427394,98.31322459101557'),(27,'1207',2,'Deli Serdang','3.5515241767710726,98.85704783320307'),(28,'1216',2,'Humbang Hasundutan','2.258545420579538,98.74787119746088'),(29,'1206',2,'Karo','3.0922459247577314,98.3365705382812'),(30,'1210',2,'Labuhanbatu','2.2911353780537893,100.1603010070312'),(31,'1222',2,'Labuhanbatu Selatan','1.7984393547439304,100.07515696406244'),(32,'1223',2,'Labuhanbatu Utara','2.5895549513654514,99.81105593562006'),(33,'1205',2,'Langkat','3.7982080980563544,98.25142649531244'),(34,'1213',2,'Mandailing Natal','0.6808598346628846,99.2319562804687'),(35,'1204',2,'Nias','1.1260929662203745,97.5239255797851'),(36,'1225',2,'Nias Barat','1.0049210123860282,97.48924998164057'),(37,'1214',2,'Nias Selatan','0.6492762695605434,97.79549387812494'),(38,'1224',2,'Nias Utara','1.3289500430707681,97.3478010070312'),(39,'1221',2,'Padang Lawas','1.3193395730384139,99.88426951289057'),(40,'1220',2,'Padang Lawas Utara','1.5417432382794112,99.64806345820307'),(41,'1215',2,'Pakpak Bharat','2.570348365139987,98.31734446406244'),(42,'1217',2,'Samosir','2.6231657752996917,98.78975657343744'),(43,'1218',2,'Serdang Bedagai','3.441865442828384,99.1330793273437'),(44,'1208',2,'Simalungun','2.907105740170976,98.8151624572265'),(45,'1203',2,'Tapanuli Selatan','1.6996084795847957,99.28963450312494'),(46,'1201',2,'Tapanuli Tengah','1.8149106548235154,98.6881330382812'),(47,'1202',2,'Tapanuli Utara','2.2094875830720415,99.150245465039'),(48,'1212',2,'Toba Samosir','2.328184112517608,99.13582590937494'),(49,'1275',2,'Kota Binjai','3.609603786222685,98.49810389399408'),(50,'1278',2,'Kota Gunung Sitoli','1.2944551484223181,97.6092412841308'),(51,'1271',2,'Kota Medan','3.5759386205174026,98.68727473139643'),(52,'1277',2,'Kota Padang Sidempuan','2.959222429602924,99.06293419718622'),(53,'1272',2,'Kota Pematangsiantar','2.965351123505437,99.0686204802978'),(54,'1273',2,'Kota Sibolga','1.7324025461802193,98.78497151255488'),(55,'1274',2,'Kota Tanjung Balai','2.959050997118107,99.80009106516718'),(56,'1276',2,'Kota Tebing Tinggi','3.3214190644945725,99.16406420588373'),(57,'1701',3,'Bengkulu Selatan','-4.461189334255569,102.90941504359125'),(58,'1709',3,'Bengkulu Tengah','-3.721678533582465,102.46416834711908'),(59,'1703',3,'Bengkulu Utara','-3.4389903749081916,102.19877985834955'),(61,'1704',3,'Kaur','-3.4595524234247748,102.24736002802729'),(62,'1708',3,'Kepahiang','-3.650415133315699,102.58712080836176'),(63,'1707',3,'Lebong','-3.118937995161711,102.20530299067377'),(64,'1706',3,'Mukomuko','-2.5011030270373302,101.11971644282221'),(65,'1702',3,'Rejang Lebong','-3.4677771180728914,102.5333478820312'),(66,'1705',3,'Seluma','-4.070672501143016,102.57707861781'),(67,'1771',3,'Kota Bengkulu','-3.794135165596936,102.2601488006103'),(68,'1504',4,'Batang Hari','-1.6727072814601607,103.28865794062494'),(69,'1508',4,'Bungo','-1.4944192999354553,102.11758402705073'),(70,'1501',4,'Kerinci','-1.7860379590868825,101.28107813715815'),(71,'1502',4,'Merangin','-2.074651128223291,102.2778728377807'),(72,'1505',4,'Muaro Jambi','-1.4852385208338654,103.5129335296142'),(73,'1503',4,'Sarolangun','-2.6218318672695062,102.75959757685541'),(74,'1506',4,'Tanjung Jabung Barat','-1.5963490566445016,103.62408427119135'),(75,'1507',4,'Tanjung Jabung Timur','-1.0576504950447798,103.91899851679682'),(76,'1509',4,'Tebo','-1.47571449473202,102.44992045283198'),(77,'1571',4,'Kota Jambi','-1.616082358241578,103.6209943664062'),(78,'1572',4,'Kota Sungai Penuh','-2.064572600975322,101.39488963007807'),(79,'1403',5,'Bengkalis','1.4736172685446762,102.11191920161127'),(80,'1404',5,'Indragiri Hilir','-0.31896418309755425,103.15519122004389'),(81,'1402',5,'Indragiri Hulu','0.08074765888089332,102.58724955439448'),(82,'1401',5,'Kampar','0.34609115439038857,101.02603224635004'),(83,'1409',5,'Kuantan Singingi','-0.5258962361824935,101.56573561549067'),(84,'1405',5,'Pelalawan','0.44397871603728556,102.0896461379516'),(85,'1407',5,'Rokan Hilir','2.1633442911950698,100.80746439814448'),(86,'1406',5,'Rokan Hulu','0.8913825780641617,100.3065994155395'),(87,'1408',5,'Siak','0.7974940133243643,102.05149439692377'),(88,'1471',5,'Kota Pekanbaru','0.5088644698500031,101.4457013976562'),(89,'1472',5,'Kota Dumai','1.6722403425281447,101.44329813837885'),(90,'1410',5,'Kepulauan Meranti','1.00629409189049,102.70732668757319'),(91,'1306',6,'Agam','-0.21038953690205528,100.05730418085932'),(92,'1310',6,'Dharmasraya','-1.0741271356329658,101.69014719843744'),(93,'1309',6,'Kepulauan Mentawai','-1.4365883408145954,98.96004465937494'),(94,'1307',6,'Lima Puluh Kota','-0.1128862745581949,100.53795603632807'),(95,'1305',6,'Padang Pariaman','-0.58185522805826,100.11360911249994'),(96,'1308',6,'Pasaman','0.3238184714772081,100.08477000117182'),(97,'1312',6,'Pasaman Barat','0.22219610327220887,99.59175852656244'),(98,'1301',6,'Pesisir Selatan','-1.6013252984770674,100.72335032343744'),(99,'1303',6,'Sijunjung','-0.6896519205191786,100.9897687804687'),(100,'1302',6,'Solok','-0.7871474738894602,100.65743235468744'),(101,'1311',6,'Solok Selatan','-1.529940829273234,101.30013254999994'),(102,'1304',6,'Tanah Datar','-0.45620428103933275,100.58602122187494'),(103,'1375',6,'Kota Bukittinggi','-0.3014764367212415,100.38170126795649'),(104,'1371',6,'Kota Padang','-0.9038644804321929,100.42122629999994'),(105,'1374',6,'Kota Padangpanjang','-0.46382150912364317,100.40410307764887'),(106,'1377',6,'Kota Pariaman','-0.6251114945024825,100.12322214960932'),(107,'1376',6,'Kota Payakumbuh','-0.2244656684230262,100.63168314814448'),(108,'1373',6,'Kota Sawahlunto','-0.5976472380856847,100.73296336054682'),(109,'1372',6,'Kota Solok','-0.789207215509305,100.6550290954101'),(110,'1607',7,'Banyuasin','-2.6991676931572877,104.95308665156244'),(111,'1611',7,'Empat Lawang','-3.806981455302765,102.9947736632812'),(112,'1604',7,'Lahat','-3.789853026549054,103.5392835509765'),(113,'1603',7,'Muara Enim','-3.664120075959236,103.78407267451166'),(114,'1606',7,'Musi Banyuasin','-2.490641616578896,103.93135813593744'),(115,'1605',7,'Musi Rawas','-3.049601553381351,103.03253916621088'),(116,'1610',7,'Ogan Ilir','-3.2367736916273935,104.64409617304682'),(117,'1602',7,'Ogan Komering Ilir','-3.3245202731287025,105.44197825312494'),(118,'1601',7,'Ogan Komering Ulu','-3.9467365642520447,104.2417219054687'),(119,'1609',7,'Ogan Komering Ulu Selatan','-4.5123587892226835,104.16945246577143'),(120,'1608',7,'Ogan Komering Ulu Timur','-4.309713852533036,104.35021189570307'),(121,'1673',7,'Kota Lubuklinggau','-3.300527833945606,102.85881785273432'),(122,'1672',7,'Kota Pagar Alam','-4.039893624129125,103.2419660460937'),(123,'1671',7,'Kota Palembang','-2.976232047357382,104.7580793273437'),(124,'1674',7,'Kota Prabumulih','-3.4218549956151953,104.24034861445307'),(125,'1804',8,'Lampung Barat','-5.018803737322934,104.06285075068354'),(126,'1801',8,'Lampung Selatan','-5.73508750054408,105.59278277277826'),(127,'1802',8,'Lampung Tengah','-4.980027604652274,105.21085766672968'),(128,'1807',8,'Lampung Timur','-5.066939366316911,105.54780749201655'),(129,'1803',8,'Lampung Utara','-4.817587823409062,104.89197520136713'),(130,'1811',8,'Mesuji','-3.924130692706635,105.33348826289057'),(131,'1809',8,'Pesawaran','-5.375459409809628,105.08651045679926'),(132,'1810',8,'Pringsewu','-5.353967546041531,104.97128275751948'),(133,'1806',8,'Tanggamus','-5.49234811392734,104.62285307764887'),(134,'1805',8,'Tulang Bawang','-4.474623802205519,105.2412631881225'),(135,'1812',8,'Tulang Bawang Barat','-4.499352846565487,105.14500407099604'),(136,'1808',8,'Way Kanan','-4.367569125406321,104.50333384394526'),(137,'1871',8,'Kota Bandar Lampung','-5.39848861665978,105.26632574915766'),(138,'1872',8,'Kota Metro','-5.11566983181077,105.3080823791015'),(139,'1901',9,'Bangka','-1.9870301581052614,105.99747446894526'),(140,'1905',9,'Bangka Barat','-2.058225240357587,105.170753277539'),(141,'1903',9,'Bangka Selatan','-3.0022890730281024,106.46919993281244'),(142,'1904',9,'Bangka Tengah','-2.4861826294701315,106.41358164667963'),(143,'1902',9,'Belitung','-2.874740966060574,107.94136790156244'),(144,'1906',9,'Belitung Timur','-2.8707548546639257,108.27984122156977'),(145,'1971',9,'Kota Pangkal Pinang','-2.13211894072604,106.11673621058344'),(146,'2101',10,'Bintan','1.1352750616634355,104.42728785395502'),(147,'2102',10,'Karimun','1.0488592659389278,103.37036875605463'),(148,'2105',10,'Kepulauan Anambas','3.25130360351029,106.26457957148432'),(149,'2104',10,'Lingga','-0.19905995836545623,104.60049418330073'),(150,'2103',10,'Natuna','3.931114383962668,108.18306712031244'),(151,'2171',10,'Kota Batam','1.1219738859551565,104.05117777705073'),(152,'2172',10,'Kota Tanjung Pinang','0.9149830846988104,104.45904520869135'),(153,'3602',11,'Lebak','-6.358269129933558,106.24788550257563'),(154,'3601',11,'Pandeglang','-6.328497616492028,106.11089972376703'),(155,'3604',11,'Serang','-6.109424302335336,106.2386587035644'),(156,'3603',11,'Tangerang','-6.268245580912879,106.48164538264155'),(157,'3672',11,'Kota Cilegon','-6.019593075010851,106.05455187678217'),(158,'3673',11,'Kota Serang','-6.116251715494591,106.16158274531244'),(159,'3671',11,'Kota Tangerang','-6.170867874355057,106.64498118281244'),(160,'3674',11,'Kota Tangerang Selatan','-6.284519651390458,106.71124247431635'),(161,'3204',12,'Bandung','-7.023653715942617,107.52674130320429'),(162,'3217',12,'Bandung Barat','-6.861856449685666,107.5150897872436'),(163,'3216',12,'Bekasi','-6.238788862940448,106.97723177790522'),(164,'3201',12,'Bogor','-6.490428606279207,106.83269289851069'),(165,'3207',12,'Ciamis','-7.330052639264512,108.33206919550776'),(166,'3203',12,'Cianjur','-6.815922873318895,107.14468745112299'),(167,'3209',12,'Cirebon','-6.7593307493868195,108.48759440302729'),(168,'3205',12,'Garut','-7.2068536731979425,107.89072779536127'),(169,'3212',12,'Indramayu','-6.349354917368916,108.334815777539'),(170,'3215',12,'Karawang','-6.258242001135573,107.4497297179687'),(171,'3208',12,'Kuningan','-6.98088808351083,108.49428919672846'),(172,'3210',12,'Majalengka','-6.838421503349392,108.2355955016601'),(173,'3214',12,'Purwakarta','-6.543001331284027,107.44878558039545'),(174,'3213',12,'Subang','-6.564787759728432,107.76258257746576'),(175,'3202',12,'Sukabumi','-6.932750775087446,106.93251398920893'),(176,'3211',12,'Sumedang','-6.8351405190396175,107.92980221629023'),(177,'3206',12,'Tasikmalaya','-7.348269926070721,108.21774271845698'),(178,'3273',12,'Kota Bandung','-6.918862459042211,107.61830119013666'),(179,'3279',12,'Kota Banjar','-7.371849136512214,108.53711871027826'),(180,'3275',12,'Kota Bekasi','-6.245273322676818,106.99757365107416'),(181,'3271',12,'Kota Bogor','-6.598382182892122,106.80290964960932'),(182,'3277',12,'Kota Cimahi','-6.884778972185981,107.54225520014643'),(183,'3274',12,'Kota Cirebon','-6.731799350472244,108.55291155695795'),(184,'3276',12,'Kota Depok','-6.407102618120116,106.79587153315424'),(185,'3272',12,'Kota Sukabumi','-6.929470442853429,106.93011072993158'),(186,'3278',12,'Kota Tasikmalaya','-7.353888191008218,108.22014597773432'),(187,'3101',13,'Administrasi Kepulauan Seribu','-5.741983595102635,106.60515574335932'),(188,'3173',13,'Kota Administrasi Jakarta Barat','-6.18439303979383,106.74407271265864'),(189,'3171',13,'Kota Administrasi Jakarta Pusat','-6.194760676890597,106.829688824414'),(190,'3174',13,'Kota Administrasi Jakarta Selatan','-6.24168981537643,106.80471209406733'),(191,'3175',13,'Kota Administrasi Jakarta Timur','-6.206536017706174,106.90727976679682'),(192,'3172',13,'Kota Administrasi Jakarta Utara','-6.122396312804496,106.91071299433588'),(193,'3304',14,'Banjarnegara','-7.441387712167957,109.54837588190912'),(194,'3302',14,'Banyumas','-7.422833817313106,109.2437627685058'),(195,'3325',14,'Batang','-6.9069335178781035,109.73351267695307'),(196,'3316',14,'Blora','-6.969216304685781,111.41339091181635'),(197,'3309',14,'Boyolali','-7.51746747481656,110.59353617548823'),(198,'3329',14,'Brebes','-6.870377962585493,109.03708247065424'),(199,'3301',14,'Cilacap','-7.699783125314617,109.02686861872553'),(200,'3321',14,'Demak','-6.8946208309459935,110.63829687952875'),(201,'3315',14,'Grobogan','-7.083663788232119,110.91415671229242'),(202,'3320',14,'Jepara','-6.588576938995009,110.6679513823974'),(203,'3313',14,'Karanganyar','-7.601233398036113,110.96483973383783'),(204,'3305',14,'Kebumen','-7.668225874066754,109.65214518427729'),(205,'3324',14,'Kendal','-6.922270672614782,110.20309237360834'),(206,'3310',14,'Klaten','-7.7560019409061915,110.62598017573237'),(207,'3319',14,'Kudus','-6.807911742356061,110.84175852656244'),(208,'3308',14,'Magelang','-7.480195154387839,110.21776942133783'),(209,'3318',14,'Pati','-6.75315123726633,111.03998450159906'),(210,'3326',14,'Pekalongan','-6.888869120112271,109.66776636958002'),(211,'3327',14,'Pemalang','-6.8898916515828015,109.3833234679687'),(212,'3303',14,'Purbalingga','-7.3897667947093995,109.36323908686518'),(213,'3306',14,'Purworejo','-7.711435748520992,110.0107887160766'),(214,'3317',14,'Rembang','-6.705012272408121,111.34195832133173'),(215,'3322',14,'Kab. Semarang','-7.1364270176913465,110.40779856562494'),(216,'3314',14,'Sragen','-7.4255573738803955,111.02277544855951'),(217,'3311',14,'Sukoharjo','-7.683111662121618,110.84059981226801'),(218,'3328',14,'Tegal','-6.871059677023143,109.12686137080073'),(219,'3323',14,'Temanggung','-7.3160912234679,110.17549780726313'),(220,'3312',14,'Wonogiri','-7.799457937051841,110.93986300349115'),(221,'3307',14,'Wonosobo','-7.367167443585047,109.9025991332519'),(222,'3371',14,'Kota Magelang','-7.554055910114901,110.2567365539062'),(223,'3375',14,'Kota Pekalongan','-6.890914180848278,109.67858103632807'),(224,'3373',14,'Kota Salatiga','-7.3247745944516485,110.50487307429194'),(225,'3374',14,'Kota Semarang','-6.990600144723053,110.42307642817377'),(226,'3372',14,'Kota Surakarta','-7.579580891509991,110.82562235712885'),(227,'3376',14,'Kota Tegal','-6.877109849816411,109.13767603754877'),(228,'3526',15,'Bangkalan','-7.025570410356778,112.75013951182245'),(229,'3510',15,'Banyuwangi','-8.218475018419328,114.36939982294916'),(230,'3505',15,'Blitar','-8.098423691766193,112.16492442011713'),(231,'3522',15,'Bojonegoro','-7.152437902422169,111.88297060847162'),(232,'3511',15,'Bondowoso','-7.914751704694699,113.82300166010737'),(233,'3525',15,'Gresik','-7.165212141882762,112.65038279414057'),(234,'3509',15,'Jember','-8.173959132273792,113.69957713007807'),(235,'3517',15,'Jombang','-7.570392072249491,112.23582056879877'),(236,'3506',15,'Kediri','-7.849201430336292,112.01815394282221'),(237,'3524',15,'Lamongan','-7.119649053398843,112.41486338496088'),(238,'3508',15,'Lumajang','-8.135131105758035,113.22441843867182'),(239,'3519',15,'Madiun','-7.631264339487617,111.529133595227'),(240,'3520',15,'Magetan','-7.656274335891236,111.32807520747065'),(241,'3507',15,'Malang','-8.131562476675706,112.5693586242187'),(242,'3516',15,'Mojokerto','-7.505426651896534,112.54172114252924'),(243,'3518',15,'Nganjuk','-7.601701318354384,111.90125254511713'),(244,'3521',15,'Ngawi','-7.403257758559544,111.4447191131103'),(245,'3501',15,'Pacitan','-8.194794716290174,111.10352066874384'),(246,'3528',15,'Pamekasan','-7.160613456888849,113.48259714960932'),(247,'3514',15,'Pasuruan','-7.602381928815969,112.78153208613276'),(248,'3502',15,'Ponorogo','-7.870500031102541,111.46231440424799'),(249,'3513',15,'Probolinggo','-7.761274728186188,113.41633585810541'),(250,'3527',15,'Sampang','-7.1928884316538815,113.25121907114863'),(251,'3515',15,'Sidoarjo','-7.449047348269457,112.70437029719233'),(252,'3512',15,'Situbondo','-7.706077282783258,114.0054347884643'),(253,'3529',15,'Sumenep','-7.007255007705919,113.85965136408686'),(254,'3503',15,'Trenggalek','-8.076499611293608,111.70607355952143'),(255,'3523',15,'Tuban','-6.892277549771599,112.04072741389155'),(256,'3504',15,'Tulungagung','-8.091455702417482,111.96296481013178'),(257,'3579',15,'Kota Batu','-7.87181787267061,112.52712992548823'),(258,'3572',15,'Kota Blitar','-8.097998817817873,112.16526774287104'),(259,'3571',15,'Kota Kediri','-7.846608112929887,112.0200422179687'),(260,'3577',15,'Kota Madiun','-7.631094198443022,111.52917651057123'),(261,'3573',15,'Kota Malang','-7.982161539346716,112.62918261408686'),(262,'3576',15,'Kota Mojokerto','-7.465983179279954,112.43374613642573'),(263,'3575',15,'Kota Pasuruan','-7.64181295198818,112.90611533045649'),(264,'3574',15,'Kota Probolinggo','-7.774583969561706,113.20765999674677'),(265,'3578',15,'Kota Surabaya','-7.257857203338109,112.75149134516596'),(266,'3402',16,'Bantul','-7.885676210748089,110.3284910094726'),(267,'3403',16,'Gunung Kidul','-7.9664364025257886,110.60074595332026'),(268,'3401',16,'Kulon Progo','-7.893497889902868,110.14326838374018'),(269,'3404',16,'Sleman','-7.718410157833119,110.3449705016601'),(270,'3471',16,'Kota Yogyakarta','-7.7959714186663565,110.36968973994135'),(271,'5103',17,'Badung','-8.578748501517774,115.17157343745112'),(272,'5106',17,'Bangli','-8.454478013741108,115.35533694147944'),(273,'5108',17,'Buleleng','-8.117160186734088,115.09080675959467'),(274,'5104',17,'Gianyar','-8.536989975123415,115.32684115290522'),(275,'5101',17,'Jembrana','-8.360059957453807,114.62242869257807'),(276,'5107',17,'Karangasem','-8.447410193354553,115.60883787989496'),(277,'5105',17,'Klungkung','-8.538560246423787,115.40222195505976'),(278,'5102',17,'Tabanan','-8.540130511262875,115.12359408259272'),(279,'5171',17,'Kota Denpasar','-8.670906528653406,115.2115705382812'),(280,'5206',18,'Bima','-8.561774043341387,118.66960314631342'),(281,'5205',18,'Dompu','-8.543589315071301,118.44429758906244'),(282,'5201',18,'Lombok Barat','-8.684312540730067,116.12532404780268'),(283,'5202',18,'Lombok Tengah','-8.72333997202737,116.28865984797358'),(284,'5203',18,'Lombok Timur','-8.65045719674402,116.53327731013178'),(285,'5208',18,'Lombok Utara','-8.358106823723963,116.15699557185053'),(286,'5204',18,'Sumbawa','-8.50390667850673,117.42840556025385'),(287,'5207',18,'Sumbawa Barat','-8.745312319137241,116.8512370955932'),(288,'5272',18,'Kota Bima','-8.462288547390887,118.74521998286127'),(289,'5271',18,'Kota Mataram','-8.584010429586458,116.10420969843744'),(290,'5301',19,'Kupang','-10.07118259102674,123.86630801081537'),(291,'5302',19,'Timor Tengah Selatan','-9.863247150651361,124.27134302973627'),(292,'5303',19,'Timor Tengah Utara','-9.445016563291562,124.4792249572265'),(293,'5304',19,'Belu','-9.100462864844904,124.89511755823969'),(294,'5305',19,'Alor','-8.216818505102577,124.52188280939936'),(295,'5306',19,'Flores Timur','-8.345305063838923,122.98156527399897'),(296,'5307',19,'Sikka','-8.625000045661976,122.22059038996576'),(297,'5308',19,'Ende','-8.851465398708102,121.65307787775873'),(298,'5309',19,'Ngada','-8.786199489017365,120.97553042292475'),(299,'5310',19,'Manggarai','-8.611125175645478,120.4653957259643'),(300,'5311',19,'Sumba Timur','-9.653911196409357,120.26622561335444'),(301,'5312',19,'Sumba Barat','-9.63241824712661,119.41139487147211'),(302,'5313',19,'Lembata','-8.370377436265263,123.39934615015864'),(303,'5314',19,'Rote Ndao','-10.682978351721149,123.10919550776362'),(304,'5315',19,'Manggarai Barat','-8.540342708718464,119.89749697565912'),(305,'5316',19,'Nagekeo','-8.557190809760455,121.27070216059565'),(306,'5317',19,'Sumba Tengah','-9.589809087051982,119.56786421656489'),(307,'5318',19,'Sumba Barat Daya','-9.427013745075806,119.2430487048614'),(308,'5319',19,'Manggarai Timur','-8.81584410948458,120.61276701807856'),(309,'5320',19,'Sabu Raijua','-10.455631517728605,121.87778262019037'),(310,'5371',19,'Kota Kupang','-10.176610338892917,123.60291508555292'),(311,'6107',20,'Bengkayang','1.2300977568529614,109.33663157343744'),(312,'6106',20,'Kapuas Hulu','0.8514759248399253,112.93345240473627'),(313,'6111',20,'Kayong Utara','-1.2299641107710455,109.97555521845698'),(314,'6104',20,'Ketapang','-1.8552683534361267,109.98070505976557'),(315,'6112',20,'Kubu Raya','-0.48521407442495584,109.3787315261352'),(316,'6108',20,'Landak','0.3976313955555195,109.94568613886713'),(317,'6110',20,'Melawi','-0.3784437459685066,111.78469447016596'),(318,'6102',20,'Mempawah','0.36364319345570506,108.95640162348627'),(319,'6101',20,'Sambas','1.3625005854948173,109.30195597529291'),(320,'6103',20,'Sanggau','0.12280462893802066,110.59533861994623'),(321,'6109',20,'Sekadau','0.016331753687730103,110.88763502955317'),(322,'6105',20,'Sintang','0.06306655104932447,111.48647574305414'),(323,'6171',20,'Kota Pontianak','-0.024995721799701696,109.34212473749994'),(324,'6172',20,'Kota Singkawang','0.9073022093871996,108.98777274012446'),(325,'6311',21,'Balangan','-2.422040161007568,115.55626658320307'),(326,'6303',21,'Banjar','-3.412087692209076,114.84919337153315'),(327,'6304',21,'Barito Kuala','-2.8836560895060526,114.629981793164'),(328,'6306',21,'Hulu Sungai Selatan','-2.633321087266307,115.11200693964838'),(329,'6307',21,'Hulu Sungai Tengah','-2.7759842185007892,115.48348215937494'),(330,'6308',21,'Hulu Sungai Utara','-2.448109128732331,115.15045908808588'),(331,'6302',21,'Kotabaru','-3.23797340363323,116.23029497980951'),(332,'6309',21,'Tabalong','-2.174532244159439,115.3078725707519'),(333,'6310',21,'Tanah Bumbu','-2.1304464001019627,115.33722666621088'),(334,'6301',21,'Tanah Laut','-3.7992737044369416,114.75065974116205'),(335,'6305',21,'Tapin','-2.956346007695592,115.03235606074213'),(336,'6372',21,'Kota Banjarbaru','-3.4592097262643344,114.81159952998041'),(337,'6371',21,'Kota Banjarmasin','-3.317279759025407,114.59210900187372'),(338,'6204',22,'Barito Selatan','-1.7152606966947197,114.84438685297846'),(339,'6213',22,'Barito Timur','-2.106258687195946,115.16058710932612'),(340,'6205',22,'Barito Utara','-0.9397370645254607,114.89837435603022'),(341,'6210',22,'Gunung Mas','-1.099142281668917,113.86763361811518'),(342,'6203',22,'Kapuas','-2.980817785846786,114.385578907727'),(343,'6206',22,'Katingan','-1.8768433238138449,113.4066799056518'),(344,'6201',22,'Kotawaringin Barat','-2.686478778288896,111.63243082880854'),(345,'6202',22,'Kotawaringin Timur','-2.5391321210195055,112.95898703455805'),(346,'6209',22,'Lamandau','-2.091891693853531,111.25945357203364'),(347,'6212',22,'Murung Raya','-0.6409033773067785,114.56509379267573'),(348,'6211',22,'Pulang Pisau','-2.751293730437199,114.26176813959955'),(349,'6208',22,'Sukamara','-2.382935770401761,111.279151715039'),(350,'6207',22,'Seruyan','-3.3803861126577077,112.55107668757319'),(351,'6271',22,'Kota Palangka Raya','-2.21484307605311,113.92016199946283'),(352,'6403',23,'Berau','2.147391077814632,117.49810007929682'),(353,'6407',23,'Kutai Barat','-0.1540848923302582,115.76775339960932'),(354,'6402',23,'Kutai Kartanegara','-0.4338889753848932,116.98689249873041'),(355,'6408',23,'Kutai Timur','0.5116109429730642,117.53655222773432'),(356,'6401',23,'Paser','-1.9017635843049503,116.19544772028803'),(357,'6409',23,'Penajam Paser Utara','-1.287285175203563,116.74622324824213'),(358,'6471',23,'Kota Balikpapan','-1.2379445136853302,116.84896258234858'),(359,'6474',23,'Kota Bontang','0.12014388357542907,117.48162058710932'),(360,'6472',23,'Kota Samarinda','-0.4961999996127552,117.14396265864252'),(361,'7502',24,'Boalemo','0.5253432908282285,122.34221247553705'),(362,'7503',24,'Bone Bolango','0.5354708780800871,123.1327131164062'),(363,'7501',24,'Gorontalo','0.6367457782050694,122.98800257563471'),(364,'7505',24,'Gorontalo Utara','0.8291623460332491,122.91641978144526'),(365,'7504',24,'Pohuwato','0.4676672362242568,121.94713381647944'),(366,'7571',24,'Kota Gorontalo','0.5449118341858017,123.0613019835937'),(367,'7303',25,'Bantaeng','-5.5712436015570095,120.10091570734858'),(368,'7311',25,'Barru','-4.409032182433443,119.61992052912592'),(369,'7308',25,'Bone','-4.537428797000115,120.32785204768061'),(370,'7302',25,'Bulukumba','-5.55091204160601,120.19704607844233'),(371,'7316',25,'Enrekang','-3.5664678251422615,119.77398661494135'),(372,'7306',25,'Gowa','-5.214358993496368,119.46739939570307'),(373,'7304',25,'Jeneponto','-5.677502933978875,119.7507264983642'),(374,'7301',25,'Kepulauan Selayar','-6.122524324497065,120.46513823389887'),(375,'7317',25,'Luwu','-3.3933239099986547,120.36930827021479'),(376,'7324',25,'Luwu Timur','-2.6736182570568747,121.15105418085932'),(377,'7322',25,'Luwu Utara','-2.369900725821933,120.30339030146479'),(378,'7309',25,'Maros','-5.01598217785725,119.57340029597162'),(379,'7310',25,'Pangkajene dan Kepulauan','-4.847393488276287,119.51930550455927'),(380,'7315',25,'Pinrang','-3.793278739484501,119.63734415888666'),(381,'7314',25,'Sidenreng Rappang','-3.8444058844505706,119.82119349360346'),(382,'7307',25,'Sinjai','-5.2526081078780145,120.1554181945312'),(383,'7312',25,'Soppeng','-4.235077479402109,119.85741404414057'),(384,'7305',25,'Takalar','-5.359052170622066,119.49997214197992'),(385,'7318',25,'Tana Toraja','-3.1353072457652273,119.68575266718744'),(386,'7326',25,'Toraja Utara','-2.915887105115671,119.9576642882812'),(387,'7313',25,'Wajo','-4.0529073674312475,120.1773908507812'),(388,'7371',25,'Kota Makassar','-5.148197492040174,119.43804530024408'),(389,'7373',25,'Kota Palopo','-3.003146201501486,120.19944933771967'),(390,'7372',25,'Kota Parepare','-4.008471424147872,119.62961939692377'),(391,'7406',26,'Bombana','-4.82032469660206,121.9516828429687'),(392,'7404',26,'Buton','-5.155506369799913,122.85118845820307'),(393,'7410',26,'Buton Utara','-4.653355491281415,123.12447337031244'),(394,'7401',26,'Kolaka','-4.0535922954936385,121.60698679804682'),(395,'7408',26,'Kolaka Utara','-3.149019509885175,121.13045481562494'),(396,'7402',26,'Konawe','-3.757650663422414,122.12471751093744'),(397,'7405',26,'Konawe Selatan','-4.256305076000254,122.67403391718744'),(398,'7409',26,'Konawe Utara','-3.624717802763482,122.17415598749994'),(399,'7403',26,'Muna','-4.901057469584428,122.60674265742182'),(400,'7407',26,'Wakatobi','-5.572524978846812,123.86605051874994'),(401,'7472',26,'Kota Bau-Bau','-5.4700060145749445,122.59747294306635'),(402,'7471',26,'Kota Kendari','-4.0015361161839555,122.51061228632807'),(403,'7201',27,'Banggai','-0.892879502781148,122.7701642882812'),(404,'7207',27,'Banggai Kepulauan','-1.3651985567938167,123.33870676874994'),(405,'7205',27,'Buol','1.2053841015790472,121.25679758906244'),(406,'7203',27,'Donggala','-0.6827859579126048,119.73931101679682'),(407,'7206',27,'Morowali','-2.650468979576689,121.87340525507807'),(408,'7208',27,'Parigi Moutong','0.5600173330739907,120.63607004999994'),(409,'7202',27,'Poso','-1.4146224858682837,120.76241282343744'),(410,'7209',27,'Tojo Una-Una','-0.8846407479805707,121.57540110468744'),(411,'7204',27,'Toli-Toli','1.03238249175971,120.87227610468744'),(412,'7210',27,'Sigi','-1.2773313087534428,119.8642804992187'),(413,'7271',27,'Kota Palu','-0.9052376003105777,119.87664011835932'),(414,'7101',28,'Bolaang Mongondow','0.8566251940392147,124.13933543085932'),(415,'7111',28,'Bolaang Mongondow Selatan','0.3979747100344743,124.02535227656244'),(416,'7110',28,'Bolaang Mongondow Timur','0.7368171587598439,124.4953611266601'),(417,'7108',28,'Bolaang Mongondow Utara','0.884087845226617,123.3249738585937'),(418,'7103',28,'Kepulauan Sangihe','3.5350761872145138,125.54695872187494'),(419,'7109',28,'Kepulauan Siau Tagulandang Biaro','2.756228221110663,125.40413645624994'),(420,'7104',28,'Kepulauan Talaud','4.261231630729549,126.82686594843744'),(421,'7102',28,'Minahasa','1.1490910567924915,124.83834055781244'),(422,'7105',28,'Minahasa Selatan','1.099662100942289,124.43184641718744'),(423,'7107',28,'Minahasa Tenggara','1.025517143905999,124.73946360468744'),(424,'7106',28,'Minahasa Utara','1.4662382583768072,124.94408396601557'),(425,'7172',28,'Kota Bitung','1.4401541213183504,125.12398508906244'),(426,'7174',28,'Kota Kotamobagu','0.7275482012893463,124.33296946406244'),(427,'7171',28,'Kota Manado','1.4751617094434821,124.84520701289057'),(428,'7173',28,'Kota Tomohon','1.3227718880402015,124.83868388056635'),(429,'7605',29,'Majene','-3.5441947961128,118.97198466181635'),(430,'7603',29,'Mamasa','-2.9427170072693873,119.3771913421142'),(431,'7602',29,'Mamuju','-2.6470822896240715,119.15480402827143'),(432,'7601',29,'Mamuju Utara','-1.1728992531999543,119.3786504638183'),(433,'7604',29,'Polewali Mandar','-3.432221936799399,119.34594897150873'),(434,'8104',30,'Buru','-3.3855269799813503,126.77828577875971'),(435,'8109',30,'Buru Selatan','-3.6699446130600655,126.65108469843744'),(436,'8107',30,'Kepulauan Aru','-5.755989028616828,134.21551493525385'),(437,'8108',30,'Maluku Barat Daya','-7.779303758925007,126.34896067499994'),(438,'8101',30,'Maluku Tengah','-3.28750312405457,128.97881296992182'),(439,'8102',30,'Maluku Tenggara','-5.7556474367797605,132.7292707335937'),(440,'8103',30,'Maluku Tenggara Barat','-7.591492032003003,131.38756541132807'),(441,'8106',30,'Seram Bagian Barat','-3.0661432898743954,128.1940629851806'),(442,'8105',30,'Seram Bagian Timur','-3.107282247704691,130.4982736480224'),(443,'8171',30,'Kota Ambon','-3.657096319029501,128.1929471862304'),(444,'8172',30,'Kota Tual','-5.632404881528485,132.74918345332026'),(445,'8201',31,'Halmahera Barat','1.0787231970911602,127.47935084223627'),(446,'8202',31,'Halmahera Tengah','0.33055607066152065,127.87061003565668'),(447,'8203',31,'Halmahera Utara','1.7283917913111586,127.99386290430903'),(448,'8204',31,'Halmahera Selatan','-0.6274287846548185,127.47977999567865'),(449,'8205',31,'Kepulauan Sula','-2.0570243855036976,125.97860125422358'),(450,'8206',31,'Halmahera Timur','0.6890560796809382,128.29122332453608'),(451,'8207',31,'Pulau Morotai','2.3693482300481943,128.40958384394526'),(452,'8271',31,'Kota Ternate','0.7743219076497513,127.37558153986811'),(453,'8272',31,'Kota Tidore Kepulauan','0.6741655090149685,127.44862345576166'),(454,'9118',32,'Asmat','-5.542454589435553,138.138921536206'),(455,'9106',32,'Biak Numfor','-1.1617006728620762,136.06383589625239'),(456,'9116',32,'Boven Digoel','-6.101487325087514,140.31884936213373'),(457,'9128',32,'Deiyai','-4.041809311632891,136.27883104205011'),(458,'9126',32,'Dogiyai','-4.016562542415559,135.89633730769037'),(459,'9127',32,'Intan Jaya','-3.5263759866029876,136.95797709345698'),(460,'9103',32,'Jayapura','-2.565370258100937,140.51269797205805'),(461,'9102',32,'Jayawijaya','-4.091262442651957,138.94560126185297'),(462,'9111',32,'Keerom','-3.1627315934622726,140.8756330382812'),(463,'9105',32,'Kepulauan Yapen','-1.8754278766273125,136.2386300933349'),(464,'9123',32,'Lanny Jaya','-3.9181366088495055,138.4431913268554'),(465,'9120',32,'Mamberamo Raya','-2.3039089432075786,138.03543118357538'),(466,'9121',32,'Mamberamo Tengah','-3.6696019942812907,139.06554964899897'),(467,'9117',32,'Mappi','-6.52850494227678,139.31935099482416'),(468,'9101',32,'Merauke','-8.500829510690508,140.40811327814936'),(469,'9109',32,'Mimika','-4.547311103784324,136.88742426752924'),(470,'9104',32,'Nabire','-3.3721178272472536,135.50404814600824'),(471,'9124',32,'Nduga','-4.596891707657148,138.37555674433588'),(472,'9108',32,'Paniai','-3.929696589202173,136.37737540125727'),(473,'9112',32,'Pegunungan Bintang','-4.90806981589792,140.6284406554687'),(474,'9125',32,'Puncak','-4.051195044737346,137.4863508117187'),(475,'9107',32,'Puncak Jaya','-3.7052336412145217,137.97103670954584'),(476,'9110',32,'Sarmi','-1.8768862161349495,138.7538125884521'),(477,'9119',32,'Supiori','-0.7348811970888012,135.73596266627192'),(478,'9114',32,'Tolikara','-3.687246690242362,138.47889689326166'),(479,'9115',32,'Waropen','-2.2414304724836556,136.38067988276362'),(480,'9113',32,'Yahukimo','-4.4824105466244415,139.54783228754877'),(481,'9122',32,'Yalimo','-3.7728955479497177,139.3855264556396'),(482,'9171',32,'Kota Jayapura','-2.605626743416246,140.67199972987055'),(483,'9203',33,'Fakfak','-2.9238589961677763,132.30011729121088'),(484,'9208',33,'Kaimana','-3.6634348338063067,133.7669208419311'),(485,'9202',33,'Manokwari','-0.8630568405099519,134.0492179763305'),(486,'9210',33,'Maybrat','-1.2869419390745704,132.4912622344482'),(487,'9205',33,'Raja Ampat','-0.3161318138790834,131.0590055358398'),(488,'9201',33,'Sorong','-0.8829243384223086,131.27924708247065'),(489,'9204',33,'Sorong Selatan','-1.4407927187570786,132.01430109858393'),(490,'9209',33,'Tambrauw','-0.7797667247497315,132.36689356684565'),(491,'9206',33,'Teluk Bintuni','-2.1195533988462607,133.5364225280273'),(492,'9207',33,'Teluk Wondama','-2.7581522508291547,134.5145490539062'),(493,'9271',33,'Kota Sorong','-0.9567292134788263,131.31340769648432'),(494,'6501',34,'Bulungan','2.7005015175054634,117.42720393061518'),(495,'6502',34,'Malinau','3.5802217893549995,116.65155199885248'),(496,'6503',34,'Nunukan','4.058862579075556,117.66873148798823'),(497,'6504',34,'Tana Tidung','3.5364468641708937,116.85265330195307'),(498,'6571',34,'Kota Tarakan','3.3272243086350968,117.5820424926269'),(499,'6411',23,'Mahakam Ulu','0.504508732736259,115.26351956248163'),(500,'1813',8,'Pesisir Barat','-5.192391408442808,103.93112210154413'),(501,'8208',31,'Pulau Taliabu','-1.9461130342039827,124.38489703059076'),(502,'9211',33,'Manokwari Selatan','-1.5024846256177227,134.1655614745605'),(503,'9212',33,'Pegunungan Arfak','-1.3054766236157271,133.93682268977045'),(504,'7606',29,'Mamuju Tengah','-2.079047061501071,119.47192696452021'),(505,'7211',27,'Banggai Laut','-1.6040708060426947,123.53646067499994'),(506,'7212',27,'Morowali Utara','-1.735850720595523,121.3858869445312'),(507,'7411',26,'Kolaka Timur','-3.9385163183379848,121.79512766718744'),(508,'7412',26,'Konawe Kepulauan','-4.075509686590732,123.13545969843744'),(509,'7413',26,'Muna Barat','-4.862060643122933,122.825782574414'),(510,'7414',26,'Buton Tengah','-5.261496952006659,122.48932627558588'),(511,'7415',26,'Buton Selatan','-5.326450021529514,122.87728098749994'),(512,'1612',7,'Penukal Arab Lematang I','-3.246714119603764,104.1157224547851'),(513,'1613',7,'Musi Rawas Utara','-2.630577402551973,102.7256086242187'),(514,'1010',88,'Luar Negeri','-76.31139795721143,22.49382761835932');

--
-- Table structure for table `tb_level`
--

CREATE TABLE `tb_level` (
  `id` int(11) NOT NULL,
  `nama` varchar(145) DEFAULT NULL,
  `sub` int(1) DEFAULT 0,
  `admin` int(1) DEFAULT 0,
  `peserta` int(1) DEFAULT 0,
  `pegawai` int(1) DEFAULT 0,
  `status` int(1) DEFAULT 1,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  UNIQUE KEY `nama_UNIQUE` (`nama`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_level`
--

INSERT INTO `tb_level` VALUES (10,'Member BDK',0,0,0,0,1),(15,'Pegawai Non Struktural',0,0,0,1,1),(30,'Pegawai Struktural',0,0,0,1,1),(32,'Fungsional',0,0,0,1,1),(35,'Bagian Kepegawaian',0,0,0,1,1),(80,'Admin Web',0,0,0,1,1),(90,'Admin Aplikasi',0,0,0,1,1),(100,'Super Admin',0,0,0,0,1);
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_level_AFTER_INSERT` AFTER INSERT ON `tb_level` FOR EACH ROW
BEGIN
	update tb_setting set setting=setting+1 where id=5;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_level_AFTER_UPDATE` AFTER UPDATE ON `tb_level` FOR EACH ROW
BEGIN
	update tb_setting set setting=setting+1 where id=5;
    
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_level_AFTER_DELETE` AFTER DELETE ON `tb_level` FOR EACH ROW
BEGIN
	update tb_setting set setting=setting+1 where id=5;
END */;;
DELIMITER ;

--
-- Table structure for table `tb_linkterkait`
--

CREATE TABLE `tb_linkterkait` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `judul` varchar(200) DEFAULT NULL,
  `idgambar` int(11) DEFAULT NULL,
  `keterangan` text DEFAULT NULL,
  `tautan` varchar(200) DEFAULT NULL,
  `urutan` int(11) DEFAULT 0,
  `jenis` int(11) DEFAULT 1,
  `status` int(11) DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_linkterkait`
--

INSERT INTO `tb_linkterkait` VALUES (4,'BDK',150,'','https://bdksemarang.kemenag.go.id/',4,1,1),(5,'BLC BDK',151,'','https://blc.bdksemarang.net/',5,1,1),(6,'Litbang',156,'','https://balitbangdiklat.kemenag.go.id/',3,1,1),(7,'Library',157,'','https://library.bdksemarang.net/',6,1,1),(10,'ITJEN',193,'','http://itjen.kemenag.go.id/web/',2,1,0),(13,'Kemenag',196,'','https://www.kemenag.go.id/',1,1,1);

--
-- Table structure for table `tb_marketing`
--

CREATE TABLE `tb_marketing` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tanggal` datetime DEFAULT NULL,
  `kode` varchar(10) DEFAULT '1',
  `urutan` int(11) DEFAULT 1,
  `nama` varchar(145) DEFAULT NULL,
  `idjeniskelamin` int(1) DEFAULT NULL,
  `nohp` varchar(145) DEFAULT NULL,
  `email` varchar(245) DEFAULT NULL,
  `nik` varchar(45) DEFAULT NULL,
  `alamat` varchar(245) DEFAULT NULL,
  `idpropinsi` int(11) DEFAULT NULL,
  `idkota` int(11) DEFAULT NULL,
  `omset` decimal(24,0) DEFAULT NULL,
  `point` decimal(24,2) DEFAULT NULL,
  `status` int(11) DEFAULT 10,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  UNIQUE KEY `no_UNIQUE` (`kode`),
  UNIQUE KEY `urutan_UNIQUE` (`urutan`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_marketing`
--

INSERT INTO `tb_marketing` VALUES (10,'2021-03-08 17:42:34','M',1,'Agung',1,'3311','','3311','kudus',14,207,NULL,NULL,11);
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_marketing_BEFORE_INSERT` BEFORE INSERT ON `tb_marketing` FOR EACH ROW
BEGIN
	set new.tanggal=now();
END */;;
DELIMITER ;

--
-- Table structure for table `tb_master_catatan`
--

CREATE TABLE `tb_master_catatan` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `idkategori` int(11) DEFAULT NULL,
  `nama` varchar(245) DEFAULT NULL,
  `catatan` mediumtext DEFAULT NULL,
  `status` int(11) DEFAULT 1,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  KEY `fx_idkategorictt_catatan_idx` (`idkategori`),
  CONSTRAINT `fx_idkategorictt_catatan` FOREIGN KEY (`idkategori`) REFERENCES `tb_master_catatan_kategori` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=44 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_master_catatan`
--

INSERT INTO `tb_master_catatan` VALUES (4,2,'Menimbang Surat Tugas sebagai pengajar pelatihan','sehubungan dengan penyeenggaraan Pelatihan Teknis Penyusunan Tata Naskah Dinas di Wilayah Kerj Kantor Kementrian Agama Kota Surakara Tahun Anggaran 2021, maka dipandang perlu menugaskan pegawai sebagai Pengajar Pelatihan;',1),(7,2,'Menimbang Surat Tugas sebagai Panitia','sehubungan dengan penyeenggaraan Pelatihan Teknis Penyusunan Tata Naskah Dinas di Wilayah Kerj Kantor Kementrian Agama Kota Surakara Tahun Anggaran 2021, maka dipandang perlu menugaskan Pegawai sebagai Panitia Penyelenggara Diklat;',1),(10,2,'Menimbang b.','sehubungan dengan pelaksanaan tugas dan fungsi organisasi di lingkungan Kementrian Agama, maka di pandang perlu membuat Surat Tugas Dinas pada Balai Diklat Keagamaan Semarang.',1),(19,3,'Catatan surat tugas untuk tugas pengajar','Melaksanakan tugas sebagai pengajar Pelatihan Teknis Penyusunan Tata Naskah Dinas di Wilayah Kerja Kantor Kementrian Agama Kota Surakara Tahun ANggaran 2021, yang dilaksanakan pada :&nbsp;',1),(22,3,'Catatan Tugas Surat Tugas Panitia Penyelenggara Diklat','<p>Melaksanakan tugas sebagai Panitia Pelaksana Pelatihan Teknis Penyusunan Tata Naskah Dinas di Wilayah Kerja Kantor Kementrian Agama Kota Surakara Tahun Anggaran 2021, yang dilaksanakan pada :&nbsp;</p>',1),(25,4,'Izin Mni Riset/KKL diterima','Dengan hormat, menindaklanjuti surat Ketua Jurusan Manajemen Pendidikan Islam Universitas Negeri Walisongo&nbsp; Nomor : B-184/Un.103/D/DA.04.09/06/2021 Tanggal 10 Juni 2021 Hal :Permohonan Izin Mini Riset,, Maka disampaikan bahwa kami menerima Mahasiswa Saudara :',1),(28,4,'Izin Mni Riset/KKL belum diterima','Dengan hormat, mnindaklanjuti surat Dekan Fakultas ilmu Tarbiyah dan Keguruab Universitas Islam Negeri Walisongo Nomor : B-1506/Un.10.3/D/DA.04.09/06/2021 Tanggal 7 Juni 2021 Hal: Permohonan Tempat Kuliah Kerja Lapangan, dengan memperhatikan kondisi saat ini, masa pandemi COvid-19 dan kondisi Kantor Balai DIklat Keagamaan Semrang yang sednag dilakukan renovasi gedung maka disampaikan bahwa kami belum dapat sepenuhnya memenuhi permintaan Saudara, dan hanya dapat menerima satu (1) mahasiswa untuk Kuliah Kerja Lapangan di Balai Diklat Keagamaan Semarang.',1),(31,1,'Dasar untuk surat tugas 1','<p>Surat Keputusan Kepala Balai Pendidikan dan Pelatihan Keagamaan Semarang Nomor: 570/Bdl.06/Kp.02.3/ 03/2021 Tanggal : 10 Maret 2021 Tentang Nama-nama Panitia Penyelenggara,Pengajar/Widyaiswara, dan Peserta Pelatihan Teknis Penyusunan Tata Naskah Dinas di Wilayah Kerja Kantor Kementerian Agama Kota Surakarta Tahun Anggaran 2021;</p>',1),(34,1,'Dasar Untuk surat tugas 2','<p>DIPA Balai Diklat Keagamaan Semarang Tahun Anggaran 2021, maka Kepala Balai Pendidikan dan Pelatihan Keagamaan Semarang,</p>',1),(37,2,'Latsar Golongan III Angkatan V-VIII','<p>bahwa untuk terlaksananya Pelatihan Dasar CPNS Golongan III Angkatan V-VIII&nbsp;Tahun 2021, maka Kepala Balai Diklat Keagamaan Semarang perlu menugaskan&nbsp;Pegawai Balai Diklat Keagamaan Semarang sebagai petugas monitoring habituasi&nbsp;Pelatihan Dasar CPNS.</p>',1),(40,1,'Latsar Golongan III Angkatan V-VIII','<p>Surat Keputusan Kepala Balai Diklat Keagamaan Semarang No:&nbsp;2242/Bdl.06/KP.02.1/08/2021 Tanggal 26 Agustus 2021 tentang Nama &ndash; Nama&nbsp;Panitia Penyelenggara, Widyaiswara, Pengajar, Penceramah, Coach, Mentor, Penguji&nbsp;Seminar Rancangan Aktualisasi dan Seminar Aktualisasi, Penyelenggara Senam&nbsp;Kebugaran, Korektor Evaluasi Akademik, Petugas Monitoring, dan Peserta Pelatihan&nbsp;Dasar CPNS Golongan III Angkatan VI Balai Diklat Keagamaan Semarang Tahun&nbsp;2021;</p>',1),(43,3,'Latsar Golongan III Angkatan V-VIII','<p>Menjadi Petugas Monitoring Habituasi dalam kegiatan Pelatihan Dasar CPNS&nbsp;Golongan III Tahun 2021 yang dilaksanakan pada : </p>',1);

--
-- Table structure for table `tb_master_catatan_kategori`
--

CREATE TABLE `tb_master_catatan_kategori` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `nama` varchar(245) DEFAULT NULL,
  `status` int(11) DEFAULT 1,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  UNIQUE KEY `nama_UNIQUE` (`nama`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_master_catatan_kategori`
--

INSERT INTO `tb_master_catatan_kategori` VALUES (1,'Catatan Dasar',1),(2,'Catatan Menimbang',1),(3,'Catatan Tugas',1),(4,'Catatan Balasan',1);

--
-- Table structure for table `tb_master_disposisi`
--

CREATE TABLE `tb_master_disposisi` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `idjenissurat` int(11) DEFAULT NULL,
  `nama` varchar(245) DEFAULT NULL,
  `jumlah_disposisi` int(11) DEFAULT 0,
  `status` int(1) DEFAULT 1,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  UNIQUE KEY `idjenissurat_UNIQUE` (`idjenissurat`),
  UNIQUE KEY `nama_UNIQUE` (`nama`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_master_disposisi`
--

INSERT INTO `tb_master_disposisi` VALUES (1,10,'Disposisi Cuti',2,1),(2,11,'Disposisi  Surat Tugas',2,1),(4,17,'Disposisi Surat Masuk',6,1),(7,14,'Disposisi Surat Balasan',2,1),(10,20,'Disposisi Pengajuan PKL',1,1);

--
-- Table structure for table `tb_master_disposisi_status`
--

CREATE TABLE `tb_master_disposisi_status` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `iddisposisi` int(11) DEFAULT NULL,
  `idstatus` int(11) DEFAULT NULL,
  `mode` int(2) DEFAULT 0,
  `urutan` int(11) DEFAULT 1,
  `nama` varchar(245) DEFAULT NULL,
  `jumlah_jabatan` int(11) DEFAULT 0,
  `keterangan` varchar(245) DEFAULT NULL,
  `status` int(1) DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  UNIQUE KEY `index3` (`iddisposisi`,`urutan`),
  CONSTRAINT `fx_iddisposisi_statusdis` FOREIGN KEY (`iddisposisi`) REFERENCES `tb_master_disposisi` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=80 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_master_disposisi_status`
--

INSERT INTO `tb_master_disposisi_status` VALUES (8,1,NULL,1,1,'Persetujuan Atasan',4,'',1),(9,1,NULL,0,2,'Persetujuan Kepala BDK',1,'',1),(10,2,NULL,0,2,'Persetujuan Kepala Surat Tugas',1,'',1),(19,4,NULL,0,1,'Disposisi Awal',1,'',1),(28,4,NULL,0,2,'Disposisi Surat',1,'',1),(34,4,NULL,0,3,'Dispoisi Ka Balai',1,'',1),(40,4,NULL,0,4,'Disposisi Kasubag TU',1,'',1),(46,4,NULL,0,6,'Pengarsipan',1,'',1),(58,10,NULL,0,1,'Disposisi Ketua',1,'',1),(61,7,NULL,0,1,'disposisi pertama',2,'',0),(67,7,NULL,0,2,'disposisi kedua',1,'',0),(73,4,NULL,2,5,'Disposisi Ke Bagian Dituju',0,'',1),(76,2,NULL,0,1,'Disposisi Surat Tugas',1,'',1);
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_master_disposisi_status_AFTER_INSERT` AFTER INSERT ON `tb_master_disposisi_status` FOR EACH ROW
BEGIN
	update tb_master_disposisi set jumlah_disposisi=jumlah_disposisi+1 where id=new.iddisposisi;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_master_disposisi_status_AFTER_DELETE` AFTER DELETE ON `tb_master_disposisi_status` FOR EACH ROW
BEGIN
	update tb_master_disposisi set jumlah_disposisi=jumlah_disposisi-1 where id=old.iddisposisi;
END */;;
DELIMITER ;

--
-- Table structure for table `tb_master_disposisi_status_jabatan`
--

CREATE TABLE `tb_master_disposisi_status_jabatan` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `iddisposisi` int(11) DEFAULT NULL,
  `idsubdisposisi` int(11) DEFAULT NULL,
  `mode` int(1) DEFAULT 1,
  `idjabatan` int(11) DEFAULT 0,
  `view` int(1) DEFAULT 0,
  `edit` int(1) DEFAULT 0,
  `hapus` int(1) DEFAULT 0,
  `jumlah_status` int(11) DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  KEY `fx_idstatusdisposisi_idjabatandis_idx` (`idsubdisposisi`),
  KEY `index3` (`iddisposisi`,`idsubdisposisi`,`idjabatan`),
  CONSTRAINT `fx_idstatusdisposisi_idjabatandis` FOREIGN KEY (`idsubdisposisi`) REFERENCES `tb_master_disposisi_status` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=98 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_master_disposisi_status_jabatan`
--

INSERT INTO `tb_master_disposisi_status_jabatan` VALUES (14,1,8,1,1,1,1,0,4),(15,1,8,1,20,1,1,0,4),(16,1,8,1,30,1,1,0,4),(17,1,8,1,40,1,1,0,4),(18,1,9,1,1,1,1,0,4),(20,2,10,1,1,1,1,0,4),(52,4,19,1,20,1,1,1,0),(70,4,34,1,1,1,1,0,1),(73,4,40,1,20,1,0,0,0),(76,4,46,2,6,1,0,0,0),(82,10,58,1,1,1,1,0,4),(85,7,61,1,20,1,1,0,2),(88,7,61,1,21,1,0,0,0),(91,7,67,1,1,1,1,0,2),(94,4,28,2,12,1,0,0,0),(97,2,76,1,20,1,1,0,0);
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_master_disposisi_status_level_AFTER_INSERT` AFTER INSERT ON `tb_master_disposisi_status_jabatan` FOR EACH ROW
BEGIN
	update tb_master_disposisi_status set jumlah_jabatan=jumlah_jabatan+1 where id=new.idsubdisposisi;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_master_disposisi_status_level_AFTER_DELETE` AFTER DELETE ON `tb_master_disposisi_status_jabatan` FOR EACH ROW
BEGIN
	update tb_master_disposisi_status set jumlah_jabatan=jumlah_jabatan-1 where id=old.idsubdisposisi;
END */;;
DELIMITER ;

--
-- Table structure for table `tb_master_disposisi_status_jabatan_idst`
--

CREATE TABLE `tb_master_disposisi_status_jabatan_idst` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `iddisposisi` int(11) DEFAULT NULL,
  `idsubdisposisi` int(11) DEFAULT NULL,
  `iddisposisijabatan` int(11) DEFAULT NULL,
  `idstatus` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  UNIQUE KEY `index3` (`iddisposisijabatan`,`idstatus`),
  KEY `fx_idjabatanst_idstatus_idx` (`idstatus`),
  CONSTRAINT `fx_iddisjabatan_idstatusjabatan` FOREIGN KEY (`iddisposisijabatan`) REFERENCES `tb_master_disposisi_status_jabatan` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `fx_idjabatanst_idstatus` FOREIGN KEY (`idstatus`) REFERENCES `tb_master_status` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=206 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_master_disposisi_status_jabatan_idst`
--

INSERT INTO `tb_master_disposisi_status_jabatan_idst` VALUES (32,1,8,14,28),(33,1,8,14,29),(34,1,8,15,29),(35,1,8,15,28),(36,1,8,16,29),(37,1,8,16,28),(38,1,8,17,29),(39,1,8,17,28),(40,1,9,18,29),(41,1,9,18,28),(42,1,8,14,22),(43,1,8,14,26),(44,1,8,15,22),(45,1,8,15,26),(46,1,8,16,22),(47,1,8,16,26),(48,1,8,17,22),(49,1,8,17,26),(50,2,10,20,22),(51,2,10,20,26),(52,2,10,20,28),(53,2,10,20,29),(54,1,9,18,26),(55,1,9,18,22),(169,4,34,70,41),(184,10,58,82,69),(187,10,58,82,68),(190,10,58,82,62),(193,10,58,82,61),(196,7,61,85,51),(199,7,61,85,50),(202,7,67,91,51),(205,7,67,91,52);
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_master_disposisi_status_jabatan_idst_AFTER_INSERT` AFTER INSERT ON `tb_master_disposisi_status_jabatan_idst` FOR EACH ROW
BEGIN
	update tb_master_disposisi_status_jabatan set jumlah_status=jumlah_status+1 where id=new.iddisposisijabatan;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_master_disposisi_status_jabatan_idst_AFTER_DELETE` AFTER DELETE ON `tb_master_disposisi_status_jabatan_idst` FOR EACH ROW
BEGIN
	update tb_master_disposisi_status_jabatan set jumlah_status=jumlah_status-1 where id=old.iddisposisijabatan;
END */;;
DELIMITER ;

--
-- Table structure for table `tb_master_golongan`
--

CREATE TABLE `tb_master_golongan` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `kode` varchar(8) DEFAULT NULL,
  `nama` varchar(145) DEFAULT NULL,
  `status` int(11) DEFAULT 1,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  UNIQUE KEY `kode_UNIQUE` (`kode`),
  UNIQUE KEY `nama_UNIQUE` (`nama`)
) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_master_golongan`
--

INSERT INTO `tb_master_golongan` VALUES (1,'I/a','Juru Muda',1),(2,'I/b','Juru Muda Tingkat I',1),(3,'I/c','Juru',1),(4,'I/d','Juru Tingkat I',1),(5,'II/a','Pengatur Muda',1),(6,'II/b','Pengatur Muda Tingkat I',1),(7,'II/c','Pengatur',1),(8,'II/d','Pengatur Tingkat I',1),(9,'III/a','Penata Muda',1),(10,'III/b','Penata Muda Tingkat I',1),(11,'III/c','Penata',1),(12,'III/d','Penata Tingkat I',1),(13,'IV/a','Pembina',1),(14,'IV/b','Pembina Tingkat I',1),(15,'IV/c','Pembina Utama Muda',1),(16,'IV/d','Pembina Utama Madya',1),(17,'IV/e','Pembina Utama',1),(30,'-','Tidak Ada',1);

--
-- Table structure for table `tb_master_jabatan`
--

CREATE TABLE `tb_master_jabatan` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `kode` varchar(245) DEFAULT NULL,
  `nama` varchar(245) DEFAULT NULL,
  `idparrent` int(11) DEFAULT 0,
  `jumlah_sub` int(11) DEFAULT 0,
  `status` int(1) DEFAULT 1,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  UNIQUE KEY `nama_UNIQUE` (`nama`),
  KEY `index4` (`idparrent`),
  KEY `index5` (`kode`)
) ENGINE=InnoDB AUTO_INCREMENT=21112 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_master_jabatan`
--

INSERT INTO `tb_master_jabatan` VALUES (1,'1-','Kepala BDK Semarang',0,4,1),(20,'1-20-','Kepala Sub Bagian Tata Usaha',1,1,1),(21,'1-20-21-','Sub Bagian Tata Usaha',20,0,1),(30,'1-30-','Kasi Diklat Tenaga Administrasi',1,1,1),(31,'1-30-31-','Seksi Diklat Tenaga Administrasi',30,0,1),(40,'1-40-','Kasi Diklat Tenaga Teknis Pendidikan dan Keagamaan',1,1,1),(41,'1-40-41-','Seksi Diklat Tenaga Teknis Pendidikan dan Keagamaan',40,0,1),(50,'1-50-','Kelompok Jabatan Fungsional',1,0,1);

--
-- Table structure for table `tb_master_jabatan_fungsional`
--

CREATE TABLE `tb_master_jabatan_fungsional` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `nama` varchar(245) DEFAULT NULL,
  `status` int(1) DEFAULT 1,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  UNIQUE KEY `nama_UNIQUE` (`nama`)
) ENGINE=InnoDB AUTO_INCREMENT=39 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_master_jabatan_fungsional`
--

INSERT INTO `tb_master_jabatan_fungsional` VALUES (1,'Widyaiswara Ahli Utama',1),(2,'Widyaiswara Ahli Madya',1),(3,'Widyaiswara Ahli Muda',1),(4,'Bendahara Penerimaan/Pengeluaran',1),(5,'Verifikator Keuangan',1),(6,'Arsiparis Ahli Pertama',1),(7,'Arsiparis Ahli Madya',1),(8,'Arsiparis Ahli Muda',1),(9,'Statistisi Ahli Muda',1),(10,'Analis Kepegawaian Muda',1),(11,'Perencana Ahli Muda',1),(12,'Sekretaris Pimpinan',1),(13,'Pengadministrasi',1),(14,'Pengadministrasi Umum',1),(15,'Calon Ahli Pertama - Pustakawan',1),(16,'Calon Ahli Pertama - Pranata Komputer',1),(17,'Pranata Humas Ahli Muda',1),(18,'Penyusun Bahan Penyelenggaraan Pelatihan',1),(19,'Penyusun Bahan Kerumahtanggaan',1),(20,'Penyusun Program Anggaran dan Pelaporan',1),(21,'Penyusun Laporan Hasil Pelatihan',1),(22,'Penyusun Bahan Informasi dan Publikasi',1),(23,'Penyusun Laporan Keuangan',1),(24,'Pengembang Teknologi Pembelajaran Ahli Muda',1),(25,'Pengembang Sistem Program',1),(26,'Pengolah Data Anggaran dan Perbendaharaan',1),(27,'Pengelola Keuangan',1),(28,'Pengolah Data Pelatihan',1),(29,'Pengelola Informasi Pelatihan',1),(30,'Pengelola Administrasi dan Dokumentasi',1),(31,'Pengelola BMN',1),(32,'Pengolah Bahan Perencanaan',1),(33,'Pengelola Angkutan Kendaraan',1),(34,'Pengawas Sarana Kantor',1),(35,'Pegawai Non ASN (Petugas Kebersihan)',1),(36,'Pegawai Non ASN (Petugas Keamanan)',1),(37,'Pegawai Non ASN (Driver)',1);

--
-- Table structure for table `tb_master_jeniscuti`
--

CREATE TABLE `tb_master_jeniscuti` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `nama` varchar(145) DEFAULT NULL,
  `status` int(1) DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  UNIQUE KEY `nama_UNIQUE` (`nama`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_master_jeniscuti`
--

INSERT INTO `tb_master_jeniscuti` VALUES (1,'Cuti Tahunan',1),(2,'Cuti Besar',1),(3,'Cuti Sakit',1),(4,'Cuti Bersalin',1),(5,'Cuti Alasan Penting',1),(6,'Cuti Diluar Tanggungan Negara',1);

--
-- Table structure for table `tb_master_jenissurat`
--

CREATE TABLE `tb_master_jenissurat` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `idkategori` int(2) DEFAULT 0,
  `in_out` int(1) DEFAULT 0,
  `kode` varchar(245) DEFAULT NULL,
  `kodesurat` varchar(145) DEFAULT NULL,
  `nama` varchar(245) DEFAULT NULL,
  `idparrent` int(11) DEFAULT 0,
  `jumlah_sub` int(11) DEFAULT 0,
  `idtemplate` int(11) DEFAULT 0,
  `lib` varchar(245) DEFAULT NULL,
  `status` int(1) DEFAULT 1,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  UNIQUE KEY `nama_UNIQUE` (`nama`),
  KEY `index4` (`idparrent`),
  KEY `index5` (`kode`)
) ENGINE=InnoDB AUTO_INCREMENT=201 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_master_jenissurat`
--

INSERT INTO `tb_master_jenissurat` VALUES (10,1,0,'10-','003','Surat Cuti',0,0,2,'cetakcuti',1),(11,1,0,'11-','Kp.02.0.3','Surat Tugas',0,0,5,'surattugas',1),(12,1,0,'12-',NULL,'Surat Izin Belajar',0,0,7,NULL,1),(14,2,2,'14-','','Surat Balasan',0,0,0,'',1),(15,2,0,'15-',NULL,'Surat Balasan Terima pkl',0,0,3,NULL,1),(16,2,0,'16-',NULL,'Surat  Balasan Tolak PKL',0,0,6,NULL,1),(17,2,1,'20-','','Surat Masuk',0,0,0,'',1),(20,2,1,'20-','','Pengajuan PKL',0,0,10,'suratpkl',1);

--
-- Table structure for table `tb_master_kategorijenissurat`
--

CREATE TABLE `tb_master_kategorijenissurat` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `nama` varchar(245) DEFAULT NULL,
  `status` int(1) DEFAULT 1,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  UNIQUE KEY `nama_UNIQUE` (`nama`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_master_kategorijenissurat`
--

INSERT INTO `tb_master_kategorijenissurat` VALUES (4,'Surat Biasa',1),(7,'Surat Penting',1),(10,'Surat Rahasia',1);

--
-- Table structure for table `tb_master_kategorisurat`
--

CREATE TABLE `tb_master_kategorisurat` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `nama` varchar(145) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  UNIQUE KEY `nama_UNIQUE` (`nama`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_master_kategorisurat`
--

INSERT INTO `tb_master_kategorisurat` VALUES (2,'Surat Eksternal'),(1,'Surat Internal');

--
-- Table structure for table `tb_master_pekerjaan`
--

CREATE TABLE `tb_master_pekerjaan` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `nama` varchar(145) DEFAULT NULL,
  `status` int(1) DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  UNIQUE KEY `nama_UNIQUE` (`nama`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_master_pekerjaan`
--

INSERT INTO `tb_master_pekerjaan` VALUES (1,'Tidak Bekerja',1),(2,'Petani/Berkebun',1),(3,'Pegawai Negeri Sipil',1),(4,'Pensiunan',1),(5,'Wiraswasta',1),(6,'Karyawan Swasta',1),(7,'Karyawan BUMN',1),(8,'TNI',1);

--
-- Table structure for table `tb_master_pendidikan`
--

CREATE TABLE `tb_master_pendidikan` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `nama` varchar(145) DEFAULT NULL,
  `status` int(1) DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  UNIQUE KEY `nama_UNIQUE` (`nama`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_master_pendidikan`
--

INSERT INTO `tb_master_pendidikan` VALUES (1,'Tidak Sekolah',1),(2,'SD',1),(3,'SMP/MTS',1),(4,'SMA/SMK/MA',1),(5,'D1',1),(6,'D2',1),(7,'D3',1),(8,'S1',1),(9,'S2',1),(10,'S3',1);

--
-- Table structure for table `tb_master_status`
--

CREATE TABLE `tb_master_status` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `idkategori` int(11) DEFAULT 0,
  `nama` varchar(145) DEFAULT NULL,
  `jumlah_module` int(11) DEFAULT 0,
  `jumlah_notifikasi` int(11) DEFAULT 0,
  `jumlah_view` int(11) DEFAULT 0,
  `jumlah_edit` int(11) DEFAULT 0,
  `jumlah_hapus` int(11) DEFAULT 0,
  `jumlah_validasi` int(11) DEFAULT 0,
  `urutan` int(11) DEFAULT 1,
  `edit` int(11) DEFAULT 0,
  `hapus` int(11) DEFAULT 0,
  `update_revis` int(11) DEFAULT 0,
  `bukakunci` int(11) DEFAULT 0,
  `bg` varchar(45) DEFAULT NULL,
  `warna` varchar(45) DEFAULT NULL,
  `status` int(1) DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  UNIQUE KEY `index3` (`idkategori`,`nama`),
  CONSTRAINT `fx_masterstatus_kategori` FOREIGN KEY (`idkategori`) REFERENCES `tb_kategori_status` (`id`) ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=111 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_master_status`
--

INSERT INTO `tb_master_status` VALUES (1,1,'Aktif',0,0,7,1,0,0,1,0,0,0,0,'#008c13','#ffffff',1),(5,1,'Cuti',0,0,1,0,0,0,1,0,0,0,0,'#858a00','#ffffff',1),(9,1,'Pensiun',0,0,0,0,0,0,1,0,0,0,0,'#000000','#ffffff',1),(15,5,'Draft',0,0,3,1,1,0,1,0,0,0,0,'#858a00','#ffffff',1),(16,5,'Aktif',0,0,3,1,0,0,1,0,0,0,0,'#008a1e','#ffffff',1),(17,5,'History',0,0,3,0,1,0,1,0,0,0,0,'#000b80','#ffffff',1),(20,20,'Draft Pengajuan',0,0,0,4,4,0,1,0,0,0,0,'#000000','#ffffff',1),(21,20,'Pengajuan Baru',0,0,0,1,1,0,1,0,0,0,0,'#0024c2','#ffffff',1),(22,20,'Perubahan',0,0,0,0,0,0,1,0,0,0,0,'#000000','#ffffff',1),(23,20,'Update Perubahan',0,0,0,0,0,0,1,0,0,0,0,'#899e03','#ffffff',1),(26,20,'Di Tangguhkan',0,0,0,0,0,0,1,0,0,0,0,'#eb6628','#ffffff',1),(28,20,'Di Setujui',0,0,0,0,0,0,1,0,0,0,0,'#268700','#ffffff',1),(29,20,'Ditolak',0,0,0,0,0,0,1,0,0,0,0,'#9c3400','#ffffff',1),(40,40,'Draft Surat Masuk',0,0,0,3,1,0,1,0,0,0,0,'#000000','#ffffff',1),(41,40,'Surat Masuk Baru',0,0,0,2,0,0,1,0,0,0,0,'#001780','#ffffff',1),(42,40,'Di Balas',0,0,0,0,0,0,1,0,0,0,0,'#132a9e','#ffffff',1),(50,50,'Draft Surat Keluar',0,0,0,1,1,0,1,0,0,0,0,'#949400','#ffffff',1),(51,50,'Surat Keluar Baru',0,0,0,0,0,0,1,0,0,0,0,'#00108a','#ffffff',1),(52,50,'Dikirim',0,0,0,0,0,0,1,0,0,0,0,'#1e2ebd','#ffffff',1),(60,60,'Draft Pengajuan PKL',0,0,0,2,2,0,1,0,0,0,0,'#aab000','#ffffff',1),(61,60,'Pengajuan PKL Baru',0,0,0,0,0,0,1,0,0,0,0,'#002da8','#ffffff',1),(62,60,'Review Pengajuan PKL',0,0,0,1,0,0,1,0,0,0,0,'#00968a','#ffffff',1),(68,60,'Pengajuan PKL Di Setujui',0,0,0,0,0,0,1,0,0,0,0,'#008200','#ffffff',1),(69,60,'Pengajuan PKL Di Tolak',0,0,0,0,0,0,1,0,0,0,0,'#b00032','#ffffff',1);

--
-- Table structure for table `tb_master_status_level`
--

CREATE TABLE `tb_master_status_level` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `mode` int(11) DEFAULT 0,
  `idstatus` int(11) DEFAULT NULL,
  `idlevel` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  UNIQUE KEY `index5` (`idstatus`,`idlevel`,`mode`),
  KEY `fx_idstatus_idlevel_idx` (`idstatus`),
  KEY `fx_idstatuslevel_idlevel_idx` (`idlevel`),
  CONSTRAINT `fx_idstatus_idlevel` FOREIGN KEY (`idstatus`) REFERENCES `tb_master_status` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `fx_idstatuslevel_idlevel` FOREIGN KEY (`idlevel`) REFERENCES `tb_level` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=218 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_master_status_level`
--

INSERT INTO `tb_master_status_level` VALUES (78,0,1,100),(71,0,15,100),(72,1,15,100),(103,0,16,100),(106,1,17,100),(81,0,20,15),(82,1,20,15),(83,0,20,30),(84,1,20,30),(160,0,20,90),(163,1,20,90),(80,0,20,100),(79,1,20,100),(187,0,21,90),(190,1,21,90),(196,0,40,80),(193,0,40,90),(100,0,40,100),(97,1,40,100),(217,0,41,90),(214,0,41,100),(118,0,50,100),(121,1,50,100),(151,0,60,10),(148,1,60,10),(142,0,60,100),(145,1,60,100),(154,0,62,90);
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_master_status_level_AFTER_INSERT` AFTER INSERT ON `tb_master_status_level` FOR EACH ROW
BEGIN
	if new.`mode`=0 then
		update tb_master_status set jumlah_edit=jumlah_edit+1 where id=new.idstatus;
	elseif new.`mode`=1 then
		update tb_master_status set jumlah_hapus=jumlah_hapus+1 where id=new.idstatus;
	elseif new.`mode`=2 then
		update tb_master_status set jumlah_validasi=jumlah_validasi+1 where id=new.idstatus;
	end if;
    
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_master_status_level_AFTER_DELETE` AFTER DELETE ON `tb_master_status_level` FOR EACH ROW
BEGIN
	if old.`mode`=0 then
		update tb_master_status set jumlah_edit=jumlah_edit-1 where id=old.idstatus;
	elseif old.`mode`=1 then
		update tb_master_status set jumlah_hapus=jumlah_hapus-1 where id=old.idstatus;
	elseif old.`mode`=2 then
		update tb_master_status set jumlah_validasi=jumlah_validasi-1 where id=old.idstatus;
	end if;
END */;;
DELIMITER ;

--
-- Table structure for table `tb_master_status_module`
--

CREATE TABLE `tb_master_status_module` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `idstatus` int(11) DEFAULT NULL,
  `idmodule` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  UNIQUE KEY `index3` (`idmodule`,`idstatus`),
  KEY `fx_idstatus_masterstatusdokumen_idx` (`idstatus`),
  CONSTRAINT `fx_idmoduleakses_idmodule` FOREIGN KEY (`idmodule`) REFERENCES `tb_module` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `fx_masterdokumen_idstatus` FOREIGN KEY (`idstatus`) REFERENCES `tb_master_status` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_master_status_module`
--

DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_master_status_module_AFTER_INSERT` AFTER INSERT ON `tb_master_status_module` FOR EACH ROW
BEGIN
	update tb_master_status set jumlah_module=jumlah_module+1 where id=new.idstatus;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_master_status_module_AFTER_DELETE` AFTER DELETE ON `tb_master_status_module` FOR EACH ROW
BEGIN
	update tb_master_status set jumlah_module=jumlah_module-1 where id=old.idstatus;
END */;;
DELIMITER ;

--
-- Table structure for table `tb_master_status_notifikasi`
--

CREATE TABLE `tb_master_status_notifikasi` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `idstatus` int(11) DEFAULT NULL,
  `idlevel` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  UNIQUE KEY `index3` (`idlevel`,`idstatus`),
  KEY `fx_masterdokumen_statusnotifikasi_idx` (`idstatus`),
  CONSTRAINT `fx_masterdokumen_statusnotifikasi` FOREIGN KEY (`idstatus`) REFERENCES `tb_master_status` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_master_status_notifikasi`
--

DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_master_status_notifikasi_AFTER_INSERT` AFTER INSERT ON `tb_master_status_notifikasi` FOR EACH ROW
BEGIN
	update tb_master_status set jumlah_notifikasi=jumlah_notifikasi+1 where id=new.idstatus;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_master_status_notifikasi_AFTER_DELETE` AFTER DELETE ON `tb_master_status_notifikasi` FOR EACH ROW
BEGIN
	update tb_master_status set jumlah_notifikasi=jumlah_notifikasi-1 where id=old.idstatus;
END */;;
DELIMITER ;

--
-- Table structure for table `tb_master_status_view`
--

CREATE TABLE `tb_master_status_view` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `idstatus` int(11) DEFAULT NULL,
  `idmodule` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  UNIQUE KEY `index3` (`idmodule`,`idstatus`),
  KEY `fx_masterdokumen_idview_idx` (`idstatus`),
  CONSTRAINT `fx_idmoduleview_idmoudle` FOREIGN KEY (`idmodule`) REFERENCES `tb_module` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `fx_masterdokumen_idview` FOREIGN KEY (`idstatus`) REFERENCES `tb_master_status` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=41 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_master_status_view`
--

INSERT INTO `tb_master_status_view` VALUES (34,1,5),(20,1,283),(21,5,283),(22,1,284),(23,15,284),(24,16,284),(25,17,284),(26,1,285),(28,15,285),(27,16,285),(29,17,285),(30,1,286),(31,15,286),(32,16,286),(33,17,286),(35,1,292),(37,1,295);
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_master_status_view_AFTER_INSERT` AFTER INSERT ON `tb_master_status_view` FOR EACH ROW
BEGIN
	update tb_master_status set jumlah_view=jumlah_view+1 where id=new.idstatus;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_master_status_view_AFTER_DELETE` AFTER DELETE ON `tb_master_status_view` FOR EACH ROW
BEGIN
	update tb_master_status set jumlah_view=jumlah_view-1 where id=old.idstatus;
END */;;
DELIMITER ;

--
-- Table structure for table `tb_master_statusasn`
--

CREATE TABLE `tb_master_statusasn` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `nama` varchar(145) DEFAULT NULL,
  `status` int(11) DEFAULT 1,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  UNIQUE KEY `nama_UNIQUE` (`nama`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_master_statusasn`
--

INSERT INTO `tb_master_statusasn` VALUES (1,'PNS',1),(2,'NON PASN',1);

--
-- Table structure for table `tb_master_template_cetak`
--

CREATE TABLE `tb_master_template_cetak` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `idkategori` int(2) DEFAULT 1,
  `kode` varchar(45) DEFAULT NULL,
  `nama` varchar(145) DEFAULT NULL,
  `template` longtext DEFAULT NULL,
  `status` int(1) DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  UNIQUE KEY `kode_UNIQUE` (`kode`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_master_template_cetak`
--

INSERT INTO `tb_master_template_cetak` VALUES (1,1,'01DP','Lembar Disposisi','<style>\n@page {\n    size: Legal <data>modekertas</data>;\n}\n\n.cetak{\n	width:<data>lebarkertas</data>;\n	font-family: Times !important;\n	font-size: <data>defaultfont</data> !important;\n	font-weight: 400 !important;\n	-webkit-print-color-adjust:exact !important;\n	margin-left: 35px;\n	color: #000000;\n}\nol{\n	counter-reset: item;\n	padding: 0px;\n	margin: 0px;\n	}\nli {\n  display: block;\n}\nli::before {\n  content: counter(item) \").  \";\n  counter-increment: item;\n}\n.kotak{\n	display: inline-block;\n	width: 10px;\n	height: 16px;\n	padding-left: 5px;\n	\n	padding-top: 1px;\n	border: 1px solid #000000;\n	margin-left: -1px;\n	font-size: 11px !important;\n	margin-top: -1px;\n	margin-bottom: -1px;\n	text-transform: uppercase !important;\n}\n.tabelisi{\n	border-collapse: collapse;\n	width: 100%;\n	font-size: <data>defaultfont</data> !important;\n	\n}\n.tabelisi tr{\n	width: 100%;\n}\n\n.tabelisi tr,.tabelisi tr td{\n	padding: 0px;\n	padding-bottom:2px;\n	margin: 2px;\n	font-size: <data>defaultfont</data> !important;\n}\n.tabeldata{\n		width: 100%;\n		border-collapse: collapse;\n		page-break-after:auto;\n		border: solid 1px #000000;\n	}\n	.tabeldata tr th{\n		font-size: 14px;\n		font-weight: bold;\n		padding:5px 2px;\n		text-transform: uppercase;\n		page-break-inside:avoid; page-break-after:auto;\n		border: 1px solid #000000;\n	}\n	.tabeldata tr{\n		page-break-inside:avoid; page-break-after:auto;\n	}\n	.tabeldata tr td{\n		font-size: 14px;\n		page-break-inside:avoid; \n		page-break-after:auto;\n		border: 1px solid #000000;\n	}\n.kosong{\n	width: 0%;\n}\n.garis{\n	margin-top:8px;\n	width: 100%;\n	height: 2px;\n	background: #000000;\n}\n.kodedesa{\n	margin-left: 20px;\n}\n.judul{\n	font-weight: bold;\n	font-size: <data>judulfont</data> !important;\n	text-decoration: underline;\n	margin-top: 15px;\n	text-transform: uppercase;\n}\n.ttdkiri{\n	float:left;\n	display:inline-block;\n	width: 35%;\n}\n.ttdtengah{\n	display:inline-block;\n	width: 25%;\n	margin-left: 2%;\n}\n.ttdkanan{\n	position:relative;\n	float:right;\n	display:inline-block;\n	width: 45%;\n}\n.stempel{\n	position: absolute;\n	z-index:-2;\n	width: 120px;\n	height: 120px;\n	left: 50%;\n	margin-left:-100px;\n	top: 20px;\n}\n.ttd{\n	position: absolute;\n	z-index:-1;\n	width: 160px;\n	height: 100px;\n	left: 50%;\n	margin-left:-50px;\n	top: 50px;\n}\n\n.kab{\n	margin-top: 8px;\n	font-size: <data>fontjudul1</data>;\n	margin-bottom: 2px;\n	text-transform: uppercase;\n	font-weight: bold;\n}\n\n.kec{\n	font-size: <data>fontjudul2</data>;\n	text-transform: uppercase;\n}\n\n.alamat{\n	font-size: <data>fontjudul3</data>;\n	font-size: 12px;\n	margin-top: 2px;\n	font-weight: 400;\n}\n.alamat_full{\n	font-size: 12px;\n	margin-top: 2px;\n	font-weight: 400;\n}\n.logo{\n	width: 40px;\n	height: 50px;\n	background: url(<data>logo</data>) no-repeat !important;\n	background-size: <data>bglogo</data>;\n	-webkit-print-color-adjust:exact !important;\n}\ndiv{\n	color: #000000 !important;\n	font-weight: 400;\n}\n.qrcode{\n	margin-top:10px;\n	right: 5px;\n	width: 100px;\n	height: 100px;\n}\n.qrcode img{\n	width: 100%;\n	height: 100%;\n}\n.grsbawah{\n	border-bottom: 2px solid #000000 ;\n}\n.grsatas{\n	border-top: 2px solid #000000 ;\n}\n.bsr{\n	text-transform: uppercase;\n	font-size: 18px;\n}\n.kotak{\n		padding: 3px;\n		margin: 3px;\n		width: 10px;\n		height: 10px;\n		border: 1px solid #000000;\n		text-align: center;\n	}\n</style>\n\n<div class=\"cetak\" id=\"boxcetak\">\n	<div style=\"width: 100%\">\n		<div align=\"center\" style=\"width: 100%;box-sizing: border-box;border-bottom: 2px solid #000000; color:#000000;\">\n			<table style=\"border-bottom: 4px double #000000; width: 100%\">\n				<tr>\n					<td width=\"90px\">\n						<div style=\"<data>showlogo</data>;<data>ukuranlogo</data> margin-right: 15px;\" id=\"boxlogo\">\n							<img src=\"logo.png\" width=\"100%\" />\n						</div>\n					</td>\n					<td>\n						<div style=\"text-align:center; display: inline-block;font-weight: bold;padding-bottom: 5px;margin-left: 20px\">\n							<div class=\"kab\"><b>Kementrian Agama Republik Indonesia</b></div>\n							<div class=\"kec\"><b>Balai Pendidikan dan Pelatihan Keagamaan Semarang</b></div>\n							<div class=\"alamat\">Jalan Temugiring Banyumanik Semarang</div>\n							<div class=\"alamat\" style=\"color: #000000\">Telepon (024) 7460290 Faximile (024)7472551 Semarang 50264</div>\n							<div class=\"alamat\" style=\"color: #000000\">Website : bdksemarang.kemenag.go.id   Email: bdk_semarang@kemenag.go.id</div>\n						</div>\n					</td>\n				</tr>\n			</table>\n		</div>\n		<div style=\"clear: both;\"></div>\n		<div align=\"center\" style=\"width: 100%\">\n		<div class=\"bsr\" align=\"center\"><p><u><b>Lembar Disposisi</b></u></p></div>\n		<div style=\"clear: both\"></div>\n		<table class=\"tabelisi\" style=\"border-top: 3px double; border-left: 1px solid; border-right: 1px solid; margin-top: 20px; border-bottom: none\">\n			<tr>\n				<td height=\"10px\">\n					<div style=\"margin-left: 10px\">Indeks berkas : IV </div>\n				</td>\n				<td>\n					<div style=\"float: right; margin-left: 10px\">Kode : dsp/VII/XI </div>\n				</td>\n			</tr>\n			<tr>\n				<td colspan=\"2\">\n					<div style=\"border-top: 1px solid; border-bottom: none;\">\n						<table style=\"border-collapse: collapse; margin-left: 10px\">\n							<tr>\n								<td>Tanggal / Nomor &nbsp;&nbsp;</td>\n								<td>:</td>\n								<td style=\"padding-left: 15px\">26 Juli 2021</td>\n							</tr>\n							<tr>\n								<td>Asal &nbsp;&nbsp;</td>\n								<td>:</td>\n								<td style=\"padding-left: 15px\">UIN Walisongo</td>\n							</tr>\n							<tr>\n								<td>Isi Ringkas &nbsp;&nbsp;</td>\n								<td>:</td>\n								<td style=\"padding-left: 15px\">Permohonan Tempat Kuliah Kerja Lapangan</td>\n							</tr>\n							<tr>\n								<td>Diterima tanggal &nbsp;&nbsp;</td>\n								<td>:</td>\n								<td style=\"padding-left: 15px\">30 Juli 2021</td>\n							</tr>\n						</table>\n					</div>\n				</td>\n			</tr>\n		</table>\n		<table class=\"tabeldata\">\n			<tr>\n				<td style=\"padding-left: 10px;\"><b>Tanggal Penyelesaian :</b></td>\n				<td width=\"150px\">&nbsp;</td>\n			</tr>\n			<tr>\n				<td valign=\"top\" style=\"padding: 10px 0px 0px 10px\" height=\"250px\">Isi Disposisi : <div>Mohon dipertimbangkan sebagaimana mestinya</div>\n					<div> Segera berikan jawaban sebagai pertimbangan</div>\n				</td>\n				<td valign=\"top\"  style=\"padding: 10px 0px 0px 10px\">\n					<div>Diteruskan Kepada</div>\n					<div>\n						<ol type=\"1\">\n							<li><span style=\"margin-left: -20px\"><data>&#10004;</data> &nbsp; Kepala</span> </li>\n							<li><span style=\"margin-left: -20px\"><data>&#10004;</data> &nbsp; Ka. Sub Bag TU</span></li>\n							<li><span style=\"margin-left: -10px\"><data>&nbsp;</data> &nbsp; Kasi TA</span></li>\n							<li><span style=\"margin-left: -10px\"><data>&nbsp;</data> &nbsp; Kasi TT</span></li>\n							<li><span style=\"margin-left: -10px\"><data>&nbsp;</data> &nbsp; Koordinator WI</span></li>\n							<li><span style=\"margin-left: -20px\"><data>&#10004;</data> &nbsp; Kepegawaian</span></li>\n							<li><span style=\"margin-left: -10px\"><data>&nbsp;</data> &nbsp; Keuangan</span></li>\n						</ol>\n					</div>\n				</td>\n			</tr>\n			<tr>\n				<td align=\"center\" colspan=\"2\">Sesudah digunakan harap segera dikembalikan</td>\n			</tr>\n		</table>\n		<table class=\"tabelisi\" style=\"border: 1px solid; border-top: none !important; border-bottom: 3px double;\">\n			<tr>\n				<td colspan=\"2\" height=\"65px\">\n					<div style=\"margin-left: 10px\">\n						<table style=\"border-collapse: collapse;\">\n							<tr>\n								<td>Kepada &nbsp;&nbsp;</td>\n								<td>:</td>\n								<td style=\"padding-left: 15px\">Ka. Sub Bag TU</td>\n							</tr>\n							<tr>\n								<td style=\"padding-top: 10px !important\" >Tanggal &nbsp;&nbsp;</td>\n								<td style=\"padding-top: 10px !important\">:</td>\n								<td style=\"padding-left: 15px; padding-top: 10px\">2 Agustus 2021 </td>\n							</tr>\n						</table>\n					</div>\n				</td>\n			</tr>\n		</table>\n		</div>\n	</div>\n</div>',1),(2,2,'01CT','Form Pengajuan Cuti','<style>\n@page {\n    size: Legal <data>modekertas</data>;\n}\n\n.cetak{\n	width:<data>lebarkertas</data>;\n	font-family: arial !important;\n	font-size: <data>defaultfont</data> !important;\n	font-weight: 300 !important;\n	-webkit-print-color-adjust:exact !important;\n	color: #000000;\n	box-sizing: border-box;\n}\n\n.kotak{\n	display: inline-block;\n	width: 10px;\n	height: 16px;\n	padding-left: 5px;\n	padding-top: 1px;\n	border: 1px solid #000000;\n	margin-left: -1px;\n	font-size: 11px !important;\n	margin-top: -1px;\n	margin-bottom: -1px;\n	text-transform: uppercase !important;\n}\n.tabelisi{\n	border-collapse: collapse;\n	width: 100%;\n	font-size: <data>defaultfont</data> !important;\n	\n}\n.tabelisi tr{\n	width: 100%;\n}\n\n.tabelisi tr,.tabelisi tr td{\n	padding: 0px;\n	padding-bottom:2px;\n	margin: 2px;\n	font-size: <data>defaultfont</data> !important;\n}\n.tabeltop{\n	border-collapse: collapse;\n	width:100%;\n	padding: 0px;\n	font-size: <data>defaultfont</data> !important;\n}\n.tabeldata{\n		width: 100%;\n		border-collapse: collapse;\n		page-break-after:auto;\n		border: solid 1px #000000;\n	}\n	.tabeldata tr th{\n		font-size: 14px;\n		font-weight: bold;\n		padding:5px 2px;\n		text-transform: uppercase;\n		page-break-inside:avoid; page-break-after:auto;\n		border: 1px solid #000000;\n	}\n	.tabeldata tr{\n		page-break-inside:avoid; page-break-after:auto;\n	}\n	.tabeldata tr td{\n		font-size: 14px;\n		page-break-inside:avoid; \n		page-break-after:auto;\n		border: 1px solid #000000;\n	}\n.kosong{\n	width: 0%;\n}\n.garis{\n	margin-top:8px;\n	width: 100%;\n	height: 2px;\n	background: #000000;\n}\n.kodedesa{\n	margin-left: 20px;\n}\n.judul{\n	font-weight: bold;\n	font-size: <data>judulfont</data> !important;\n	text-decoration: underline;\n	margin-top: 15px;\n	text-transform: uppercase;\n}\n.ttdkiri{\n	float:left;\n	display:inline-block;\n	width: 35%;\n}\n.ttdtengah{\n	display:inline-block;\n	width: 25%;\n	margin-left: 2%;\n}\n.ttdkanan{\n	position:relative;\n	float:right;\n	display:inline-block;\n	width: 30%;\n}\n.stempel{\n	position: absolute;\n	z-index:-2;\n	width: 120px;\n	height: 120px;\n	left: 50%;\n	margin-left:-100px;\n	top: 20px;\n}\n.ttd{\n	position: absolute;\n	z-index:-1;\n	width: 160px;\n	height: 100px;\n	left: 50%;\n	margin-left:-50px;\n	top: 50px;\n}\n\n.kab{\n	margin-top: 8px;\n	font-size: <data>fontjudul1</data>;\n	margin-bottom: 2px;\n	text-transform: uppercase;\n	font-weight: bold;\n}\n\n.kec{\n	font-size: <data>fontjudul2</data>;\n	text-transform: uppercase;\n}\n\n.alamat{\n	font-size: <data>fontjudul3</data>;\n	margin-top: 2px;\n	font-weight: 400;\n}\n.alamat_full{\n	font-size: 12px;\n	margin-top: 2px;\n	font-weight: 400;\n}\n.logo{\n	width: 40px;\n	height: 50px;\n	background: url(<data>logo</data>) no-repeat !important;\n	background-size: <data>bglogo</data>;\n	-webkit-print-color-adjust:exact !important;\n}\ndiv{\n	color: #000000 !important;\n	font-weight: 400;\n}\n.qrcode{\n	margin-top:10px;\n	right: 5px;\n	width: 100px;\n	height: 100px;\n}\n.qrcode img{\n	width: 100%;\n	height: 100%;\n}\n.kepada{\n	padding: 20px 0 30px 0;\n	width: 20%;\n	line-height: 1.2;\n	\n}\n.kotak{\n		padding: 3px;\n		margin: 3px;\n		width: 10px;\n		height: 10px;\n		border: 1px solid #000000;\n		text-align: center;\n	}\n.isi{\n	text-indent: 35px;\n	line-height: 1.5;\n	font-size: <data>defaultfont</data> !important;\n	\n}\n</style>\n\n<div class=\"cetak\" id=\"boxcetak\">\n	<div style=\"width: 100%\">\n		<div align=\"center\" style=\"width: 100%;box-sizing: border-box;border-bottom: 2px solid #000000; color:#000000;\">\n			<table style=\"border-bottom: 4px double #000000; width: 100%\">\n				<tr>\n					<td width=\"90px\">\n						<div style=\"<data>showlogo</data>;<data>ukuranlogo</data>\" id=\"boxlogo\">\n							<img style=\"<data>ukuranlogo</data>\" src=\"<data>logo</data>\" />\n						</div>\n					</td>\n					<td>\n						<div style=\"text-align:center; display: inline-block;font-weight: bold;padding-bottom: 5px;\">\n							<div class=\"kab\"><b>Kementrian Agama Republik Indonesia</b></div>\n							<div class=\"kec\"><b>Balai Pendidikan dan Pelatihan Keagamaan Semarang</b></div>\n							<div class=\"alamat\"><data>dataalamat</data></div>\n							<div class=\"alamat\" style=\"color: #000000\">Telp.  <data>datatelp</data>, Email <data>dataemail</data></div>\n						</div>\n					</td>\n				</tr>\n			</table>\n		</div>\n		<div style=\"clear: both;\"></div>\n		<div style=\"float: right\">\n			<div align=\"right\">Semarang, <data>datatanggalsurat</data></div>\n			<div style=\"margin: 15px 0px 0px 50px;\">\n				<div>Kepada</div>\n				<div>Yth. Kepala Balai Diklat Keagamaan</div>\n				<div>Semarang</div>\n				<div>di tempat</div>\n			</div>\n		</div>\n		<div style=\"clear: both\"></div>\n		<div align=\"center\" style=\"padding: 8px 0px\" class=\"kab\"><b>Formulir Permintaan dan pemberian Cuti</b></div>\n		<div style=\"clear: both\"></div>\n		<table class=\"tabeldata\">\n			<tr>\n				<td colspan=\"5\" style=\"text-transform: uppercase\">I. Data Pegawai</td>\n			</tr>\n			<tr>\n				<td width=\"10%\">Nama</td>\n				<td><data>namapemohon</data></td>\n				<td width=\"15%\">NIP</td>\n				<td><data>nippemohon</data></td>\n			</tr>\n			<tr>\n				<td>Jabatan</td>\n				<td><data>jabatanpemohon</data></td>\n				<td>Masa Kerja</td>\n				<td><data>masakerjapemohon</data></td>\n			</tr>\n			<tr>\n				<td>Unit Kerja</td>\n				<td colspan=\"4\">Balai Diklat Keagamaan Semarang</td>\n				\n			</tr>\n		</table>\n		<table class=\"tabeldata\" style=\"margin-top: 5px;\">\n			<tr>\n				<td colspan=\"5\" style=\"text-transform: uppercase\">II. Jenis Cuti Yang Diambil **</td>\n			</tr>\n			<tr>\n				<td>1. Cuti Tahunan</td>\n				<td width=\"25px\"><div align=\"center\"><data>centang1</data></div></td>\n				<td>2. Cuti Besar</td>\n				<td width=\"25px\"><div align=\"center\"><data>centang2</data></div></td>\n			</tr>\n			<tr>\n				<td>3. Cuti Sakit</td>\n				<td width=\"25px\"><div align=\"center\"><data>centang3</data></div></td>\n				<td>4. Cuti Melahirkan</td>\n				<td width=\"25px\"><div align=\"center\"><data>centang4</data></div></td>\n			</tr>\n			<tr>\n				<td>5. Cuti Karena Alasan Penting</td>\n				<td width=\"25px\"><div align=\"center\"><data>centang5</data></div></td>\n				<td>6. Cuti Di Luar Tanggungan Negara</td>\n				<td width=\"25px\"><div align=\"center\"><data>centang6</data></div></td>\n				\n			</tr>\n		</table>\n		<table class=\"tabeldata\" style=\"margin-top: 5px;\">\n			<tr>\n				<td style=\"text-transform: uppercase\">III. Alasan Cuti</td>\n			</tr>\n			<tr>\n				<td><data>keperluan</data></td>\n			</tr>\n		</table>\n		<table class=\"tabeldata\" style=\"margin-top: 5px;\">\n			<tr>\n				<td style=\"text-transform: uppercase\">IV. Lamanya Cuti</td>\n			</tr>\n			<tr>\n				<td>Selama <data>selama</data> mulai tanggal <data>tglmulaicuti</data> s/d <data>tglsampaicuti</data></td>\n			</tr>\n		</table>\n		<table class=\"tabeldata\" style=\"margin-top: 5px;\">\n			<tr>\n				<td colspan=\"5\" style=\"text-transform: uppercase\">V. Catatan Cuti ***</td>\n			</tr>\n			<tr>\n				<td colspan=\"3\">1. CUTI TAHUNAN</td>\n				<td width=\"45%\">2. CUTI BESAR</td>\n				<td colspan=\"2\" width=\"20%\"> </td>\n			</tr>\n			<tr>\n				<td>Tahun </td>\n				<td>Sisa</td>\n				<td>Keterangan</td>\n				<td>3.CUTI SAKIT</td>\n				<td> </td>\n			</tr>\n			<tr>\n				<td>N-2 </td>\n				<td> </td>\n				<td> </td>\n				<td>4.CUTI MELAHRKAN</td>\n				<td> </td>\n			</tr>\n			<tr>\n				<td>N1 </td>\n				<td> </td>\n				<td> </td>\n				<td>5.CUTI KARENA ALASAN PENTING</td>\n				<td> </td>\n			</tr>\n			<tr>\n				<td>N </td>\n				<td> </td>\n				<td> </td>\n				<td>6.CUTI DI LUAR TANGGUNGAN NEGARA</td>\n				<td> </td>\n			</tr>\n		</table>\n		<table class=\"tabeldata\" style=\"margin-top: 5px;\">\n			<tr>\n				<td colspan=\"5\" style=\"text-transform: uppercase\">Vi. Alamat Selama menjalankan Cuti </td>\n			</tr>\n			<tr>\n				<td colspan=\"3\"></td>\n				<td colspan=\"2\" >TELP : <data>telpcuti</data> </td>\n			</tr>\n			<tr>\n				<td valign=\"top\" colspan=\"3\" height=\"40px\" width=\"50%\"><data>alamatcuti</data></td>\n				<td valign=\"top\" colspan=\"2\">\n					<div align=\"center\">\n						<div>Hormat Saya</div>\n						<div style=\"height: 35px;\"></div>\n						<div>(<data>namapemohon</data>)</div>\n						<div><data>nippemohon</data></div>\n					</div>\n				</td>\n			</tr>\n		</table>\n		<data>datastatus</data>\n		<table class=\"tabelisi\">\n			<tr>\n				<td colspan=\"2\">Catatan : </td>\n			</tr>\n			<tr>\n				<td>*</td>\n				<td>Coret yang Tidak Perlu</td>\n			</tr>\n			<tr>\n				<td>**</td>\n				<td>Pilih Salah Satu Dengan Memberi Centang (✔)</td>\n			</tr>\n			<tr>\n				<td>***</td>\n				<td>diisi oleh pejabat yang menangani bidang Kepegawaian sebelum PNS mengajukan cuti</td>\n			</tr>\n			<tr>\n				<td>****</td>\n				<td>diberi centang dengan alasannya</td>\n			</tr>\n		</table>\n	</div>\n</div>',1),(3,5,'01balasan','Surat Balasan Diterima Mini Riset/KKL','<style>\n@page {\n    size: Legal <data>modekertas</data>;\n}\n\n.cetak{\n	width:<data>lebarkertas</data>;\n	font-family: Times !important;\n	font-size: <data>defaultfont</data> !important;\n	font-weight: 400 !important;\n	-webkit-print-color-adjust:exact !important;\n	margin-left: 35px;\n	color: #000000;\n}\n\n.kotak{\n	display: inline-block;\n	width: 10px;\n	height: 16px;\n	padding-left: 5px;\n	\n	padding-top: 1px;\n	border: 1px solid #000000;\n	margin-left: -1px;\n	font-size: 11px !important;\n	margin-top: -1px;\n	margin-bottom: -1px;\n	text-transform: uppercase !important;\n}\n.tabelisi{\n	border-collapse: collapse;\n	width: 100%;\n	font-size: <data>defaultfont</data> !important;\n	\n}\n.tabelisi tr{\n	width: 100%;\n}\n\n.tabelisi tr,.tabelisi tr td{\n	padding: 0px;\n	padding-bottom:2px;\n	margin: 2px;\n	font-size: <data>defaultfont</data> !important;\n}\n.tabeltop{\n	border-collapse: collapse;\n	width:100%;\n	padding: 0px;\n	font-size: <data>defaultfont</data> !important;\n}\n.kosong{\n	width: 0%;\n}\n.garis{\n	margin-top:8px;\n	width: 100%;\n	height: 2px;\n	background: #000000;\n}\n.kodedesa{\n	margin-left: 20px;\n}\n.judul{\n	font-weight: bold;\n	font-size: <data>judulfont</data> !important;\n	text-decoration: underline;\n	margin-top: 15px;\n	text-transform: uppercase;\n}\n.ttdkiri{\n	float:left;\n	display:inline-block;\n	width: 35%;\n}\n.ttdtengah{\n	display:inline-block;\n	width: 25%;\n	margin-left: 2%;\n}\n.ttdkanan{\n	position:relative;\n	float:right;\n	display:inline-block;\n	width: 30%;\n}\n.stempel{\n	position: absolute;\n	z-index:-2;\n	width: 120px;\n	height: 120px;\n	left: 50%;\n	margin-left:-100px;\n	top: 20px;\n}\n.ttd{\n	position: absolute;\n	z-index:-1;\n	width: 160px;\n	height: 100px;\n	left: 50%;\n	margin-left:-50px;\n	top: 50px;\n}\n\n.kab{\n	margin-top: 8px;\n	font-size: <data>fontjudul1</data>;\n	margin-bottom: 2px;\n	text-transform: uppercase;\n	font-weight: bold;\n}\n\n.kec{\n	font-size: <data>fontjudul2</data>;\n	text-transform: uppercase;\n}\n\n.alamat{\n	font-size: <data>fontjudul3</data>;\n	margin-top: 2px;\n	font-weight: 400;\n}\n.alamat_full{\n	font-size: 12px;\n	margin-top: 2px;\n	font-weight: 400;\n}\n.logo{\n	width: 40px;\n	height: 50px;\n	background: url(<data>logo</data>) no-repeat !important;\n	background-size: <data>bglogo</data>;\n	-webkit-print-color-adjust:exact !important;\n}\ndiv{\n	color: #000000 !important;\n	font-weight: 400;\n}\n.qrcode{\n	margin-top:10px;\n	right: 5px;\n	width: 100px;\n	height: 100px;\n}\n.qrcode img{\n	width: 100%;\n	height: 100%;\n}\n.kepada{\n	padding: 20px 0 30px 0;\n	width: 20%;\n	line-height: 1.2;\n	\n}\n.isi{\n	text-indent: 35px;\n	line-height: 1.5;\n	font-size: <data>defaultfont</data> !important;\n	\n}\n</style>\n\n<div class=\"cetak\" id=\"boxcetak\">\n	<div style=\"width: 100%\">\n		<div align=\"center\" style=\"width: 100%;box-sizing: border-box;border-bottom: 2px solid #000000; color:#000000;\">\n			<table style=\"border: none;\">\n				<tr>\n					<td>\n						<div style=\"<data>showlogo</data>;<data>ukuranlogo</data>\" id=\"boxlogo\">\n							<img style=\"<data>ukuranlogo</data>\" src=\"<data>logo</data>\" />\n						</div>\n					</td>\n					<td>\n						<div class=\"grsbawah\" style=\"text-align:center; display: inline-block;font-weight: bold;padding-bottom: 5px;\">\n							<div class=\"kab\"><b>Kementrian Agama Republik Indonesia</b></div>\n							<div class=\"kec\"><b>Balai Pendidikan dan Pelatihan Keagamaan Semarang</b></div>\n							<div class=\"alamat\"><data>tipekabupaten</data> <data>datatelp</data></div>\n							<div class=\"alamat\" style=\"color: #000000\"><data>dataalamat</data></div>\n							<div class=\"alamat\" style=\"color: #000000\"><data>dataemail</data></div>\n						</div>\n					</td>\n				</tr>\n			</table>\n		</div>\n		<div style=\"clear: both;\"></div>\n		<table class=\"tabeltop\" style=\"line-height: 1; margin-top: 20px;\">\n			<tr>\n				<td width=\"70px\">Nomor</td>\n				<td width=\"10px\">:</td>\n				<td><data>datanomorsurat</data></td>\n				<td width=\"130px\"><data>datatanggalsurat</data></td>\n			</tr>\n			<tr>\n				<td>Sifat</td>\n				<td>:</td>\n				<td><data>datasifatsurat</data></td>\n				<td></td>\n			</tr>\n			<tr>\n				<td>Lampiran</td>\n				<td>:</td>\n				<td>-</td>\n				<td></td>\n			</tr>\n			<tr>\n				<td>Hal</td>\n				<td>:</td>\n				<td><data>datahalsurat</data></td>\n				<td></td>\n			</tr>\n		</table>\n		<br />\n		<div class=\"kepada\">\n			<div>Yth. <data>dataKepada</data></div>\n			<div><data>datakabupatentujuan</data></div>\n		</div>\n		<div class=\"isi\">\n			<div>Dengan hormat, menindaklanjuti surat <data>datasuratdari</data> Nomor : <data>datanomorsuratawal</data> Tanggal <data>datatanggalsuratawal</data> Hal : <data>datahalsurat</data>, Maka disampaikan bahwa kami menerima Mahasiswa Saudara : </div>\n			<table class=\"tabelisi\" style=\"margin: 20px 0px 10px 25px\">\n				<tr>\n					<td width=\"10px\" rowspan=\"2\" valign=\"top\">1.</td>\n					<td width=\"100px\">Nama</td>\n					<td><data>datanama</data></td>\n				</tr>\n				<tr>\n					<td>Nim</td>\n					<td><data>datanim</data></td>\n				</tr>\n			</table>\n				\n		</div>\n		<div>untuk melakukan mini riset di Balai Diklat Keagamaan Semarang.</div>	\n		<div class=\"isi\">Demikian surat ini kami sampaikan, atas kerjasamanya yang baik diucapkan terima kasih.</div>\n		<div style=\"clear: both\"></div>\n		<br />\n		<div class=\"ttdkanan\" style=\"padding-top: 70px;\">\n			<div>Kepala</div>\n			<div style=\"height: 65px;\"></div>\n			<div><data>datanama</data></div>\n		</div>\n	</div>\n</div>',0),(4,3,'01cutisementara','Surat Cuti Sementara Alasan Penting','<style>\n@page {\n    size: Legal <data>modekertas</data>;\n}\n\n.cetak{\n	width:<data>lebarkertas</data>;\n	font-family: arial !important;\n	font-size: <data>defaultfont</data> !important;\n	font-weight: 400 !important;\n	-webkit-print-color-adjust:exact !important;\n	margin-left: 35px;\n	color: #000000;\n}\nol{\n	vertical-align:top;\n	padding: 0;\n	margin: 0;\n}\nol li{\n	padding: 0;\n	margin: 0;\n	\n    vertical-align: top;\n}\nol li:before{\n    padding: 0;\n    margin: 0;\n    vertical-align: top;\n  	line-height: 45px;\n    \n}\n.kotak{\n	display: inline-block;\n	width: 10px;\n	height: 16px;\n	padding-left: 5px;\n	\n	padding-top: 1px;\n	border: 1px solid #000000;\n	margin-left: -1px;\n	font-size: 11px !important;\n	margin-top: -1px;\n	margin-bottom: -1px;\n	text-transform: uppercase !important;\n}\n.tabelisi{\n	border-collapse: collapse;\n	width: 100%;\n	font-size: <data>defaultfont</data> !important;\n	\n}\n.tabelisi tr{\n	width: 100%;\n}\n\n.tabelisi tr,.tabelisi tr td{\n	padding: 0px 0px 2px 0px;\n	margin: 2px;\n	font-size: <data>defaultfont</data> !important;\n}\n.tabeltop{\n	border-collapse: collapse;\n	width:100%;\n	padding: 0px;\n	font-size: <data>defaultfont</data> !important;\n}\n.tabeldata{\n		width: 100%;\n		border-collapse: collapse;\n		page-break-after:auto;\n		border: solid 1px #000000;\n	}\n	.tabeldata tr th{\n		font-size: 14px;\n		font-weight: bold;\n		padding:5px 2px;\n		text-transform: capitalize;\n		page-break-inside:avoid; page-break-after:auto;\n		border: 1px solid #000000;\n	}\n	.tabeldata tr{\n		page-break-inside:avoid; page-break-after:auto;\n	}\n	.tabeldata tr td{\n		font-size: 14px;\n		page-break-inside:avoid; \n		page-break-after:auto;\n		border: 1px solid #000000;\n	}\n.kosong{\n	width: 0%;\n}\n.garis{\n	margin-top:8px;\n	width: 100%;\n	height: 2px;\n	background: #000000;\n}\n.kodedesa{\n	margin-left: 20px;\n}\n.judul{\n	font-weight: bold;\n	font-size: <data>judulfont</data> !important;\n	text-decoration: underline;\n	margin-top: 15px;\n	text-transform: uppercase;\n}\n.ttdkiri{\n	float:left;\n	display:inline-block;\n	width: 35%;\n}\n.ttdtengah{\n	display:inline-block;\n	width: 25%;\n	margin-left: 2%;\n}\n.ttdkanan{\n	position:relative;\n	float:right;\n	display:inline-block;\n	width: 30%;\n}\n.stempel{\n	position: absolute;\n	z-index:-2;\n	width: 120px;\n	height: 120px;\n	left: 50%;\n	margin-left:-100px;\n	top: 20px;\n}\n.ttd{\n	position: absolute;\n	z-index:-1;\n	width: 160px;\n	height: 100px;\n	left: 50%;\n	margin-left:-50px;\n	top: 50px;\n}\n\n.kab{\n	margin-top: 8px;\n	font-size: <data>fontjudul1</data>;\n	margin-bottom: 2px;\n	text-transform: uppercase;\n	font-weight: bold;\n}\n\n.kec{\n	font-size: <data>fontjudul2</data>;\n	text-transform: uppercase;\n}\n\n.alamat{\n	font-size: <data>fontjudul3</data>;\n	margin-top: 2px;\n	font-weight: 400;\n}\n.alamat_full{\n	font-size: 12px;\n	margin-top: 2px;\n	font-weight: 400;\n}\n.logo{\n	width: 40px;\n	height: 50px;\n	background: url(<data>logo</data>) no-repeat !important;\n	background-size: <data>bglogo</data>;\n	-webkit-print-color-adjust:exact !important;\n}\ndiv{\n	color: #000000 !important;\n	font-weight: 400;\n}\n.qrcode{\n	margin-top:10px;\n	right: 5px;\n	width: 100px;\n	height: 100px;\n}\n.qrcode img{\n	width: 100%;\n	height: 100%;\n}\n.kepada{\n	padding: 20px 0 30px 0;\n	width: 20%;\n	line-height: 1.2;\n	\n}\n.isi{\n	text-indent: 35px;\n	line-height: 1.5;\n	font-size: <data>defaultfont</data> !important;\n	\n}\n</style>\n\n<div class=\"cetak\" id=\"boxcetak\">\n	<div style=\"width: 100%; text-align: justify;\">\n		<div align=\"center\" style=\"width: 100%;box-sizing: border-box;border-bottom: 2px solid #000000; color:#000000;\">\n			<table style=\"border-bottom: 4px double #000000; width: 100%\">\n				<tr>\n					<td width=\"75px\">\n						<div style=\"<data>showlogo</data>;<data>ukuranlogo</data>\" id=\"boxlogo\">\n							<img style=\"<data>ukuranlogo</data>\" src=\"<data>logo</data>\" />\n						</div>\n					</td>\n					<td>\n						<div style=\"text-align:center; display: inline-block;font-weight: bold;padding-bottom: 5px;\">\n							<div class=\"kab\"><b>Kementrian Agama Republik Indonesia</b></div>\n							<div class=\"kec\"><b>Balai Pendidikan dan Pelatihan Keagamaan Semarang</b></div>\n							<div class=\"alamat\"><data>dataalamat</data></div>\n							<div class=\"alamat\" style=\"color: #000000\"><data>datatelp</data></div>\n							<div class=\"alamat\" style=\"color: #000000\"><data>dataemail</data></div>\n						</div>\n					</td>\n				</tr>\n			</table>\n		</div>\n		<div style=\"clear: both;\"></div>\n		<div style=\"float: right; padding:20px 15px 0px 0px\">Semarang, <data>tanggalsurat</data></div>\n		<div style=\"clear: both;\"></div>\n		<div align=\"center\" class=\"kec\" style=\"padding: 15px 0px 15px 0px\">\n			<div>IZIN SEMENTARA PELAKSANAAN CUTI KARENA ALASAN PENTING</div>\n			<div>Nomor <data>nomor</data></div>\n		</div>\n		<div style=\"clear: both;\"></div>\n		<ol type=\"1\">\n			<li>\n				<div>Diberikan izin sementara untuk melaksanakan cuti karena alasan penting kepada Pegawai Negeri Sipil:</div>\n				<table class=\"tabelisi\" style=\"margin-top: 10px;\">\n					<tr>\n						<td valign=\"top\" width=\"30%\">Nama</td>\n						<td width=\"10px\">:</td>\n						<td><data>nama</data></td>\n					</tr>\n					<tr>\n						<td valign=\"top\">Nip</td>\n						<td>:</td>\n						<td><data>nip</data></td>\n					</tr>\n					<tr>\n						<td>Pangkat / golongan ruang</td>\n						<td>:</td>\n						<td><data>golongan</data></td>\n					</tr>\n					<tr>\n						<td>Jabatan</td>\n						<td>:</td>\n						<td><data>jabatan</data></td>\n					</tr>\n					<tr>\n						<td>Unit Kerja</td>\n						<td>:</td>\n						<td><data>unit</data></td>\n					</tr>\n				</table>\n				<table class=\"tabelisi\" style=\"margin: 20px 0px 15px 0px; text-align: justify\">\n					<tr>\n						<td valign=\"top\" colspan=\"2\">\n							<div>Selama <data>datahari</data> hari, terhitung mulai tanggal <data>tglmulai</data> sampai dengan tanggal <data>tglselesai</data>, dengan ketentuan sebagai berikut:</div>\n						</td>\n					</tr>\n					<tr>\n						<td valign=\"top\">a. </td>\n						<td valign=\"top\" style=\"padding-left: 15px;\">Sebelum menjalankan cuti karena alasan penting, wajib menyerahkan pekerjaannya kepada atasan langsungnya atau pejabat lain yang ditunjuk.</td>\n					</tr>\n					<tr>\n						<td valign=\"top\">b. </td>\n						<td valign=\"top\" style=\"padding-left: 15px;\">Setelah selesai menjalankan cuti karena alasan penting, wajib melaporkan diri kepada atasan langsungnya dan bekerja kembali sebagaimana biasa.</td>\n					</tr>\n				</table>\n			</li>\n			<li>\n				<div>Demikian izin sementara melaksanakan cuti karena alasan penting ini dibuat untuk dapat digunakan sebagaimana mestinya.</div>\n			</li>\n		</ol>\n		<div style=\"float: right; margin-right: 25px\">\n			<div style=\"height: 70px\"></div>\n			<div><u>(<data>nama</data>)</u></div>\n			<div>NIP. <data>nip</data></div>\n		</div>\n		<div style=\"clear: both\"></div>\n		<div style=\"margin-left: 15px\">\n			<div style=\"text-transform: uppercase; margin-left: -15px\">Tembusan : </div>\n			<ol type=\"1\">\n				<li><data>tembusan</data></li>\n				<li><data>tembusan</data></li>\n				<li>dan seterusnya.</li>\n			</ol>\n			<div style=\"clear: both\"></div>\n			<div style=\"margin: 20px 0px 0px -15px\">Catatan : </div>\n			<div>*  &nbsp;&nbsp;&nbsp; Tulis nama jabatan dari pejabat yang berwenang memberikan izin sementara.</div>\n		</div>\n	</div>\n</div>',1),(5,2,'01surattugas','Surat Tugas','<style>\n@page {\n    size: Legal <data>modekertas</data>;\n}\n\n.cetak{\n	width:<data>lebarkertas</data>;\n	font-family: arial !important;\n	font-size: <data>defaultfont</data> !important;\n	font-weight: 400 !important;\n	-webkit-print-color-adjust:exact !important;\n	margin-left: 2px;\n	color: #000000;\n}\nol{\n	padding: 0px;\n	margin: 0px;\n	}\n	ol li{\n		padding: 0px 0 0 0px;\n		margin: 0px 0 0 15px;\n}\n.kotak{\n	display: inline-block;\n	width: 10px;\n	height: 16px;\n	padding-left: 5px;\n	\n	padding-top: 1px;\n	border: 1px solid #000000;\n	margin-left: -1px;\n	font-size: 11px !important;\n	margin-top: -1px;\n	margin-bottom: -1px;\n	text-transform: uppercase !important;\n}\n.tabelisi{\n	border-collapse: collapse;\n	width: 100%;\n	font-size: <data>defaultfont</data> !important;\n	\n}\n.tabelisi tr{\n	width: 100%;\n}\n\n.tabelisi tr,.tabelisi tr td{\n	padding: 0px;\n	padding-bottom:2px;\n	margin: 2px;\n	font-size: <data>defaultfont</data> !important;\n}\n.tabeltop{\n	border-collapse: collapse;\n	width:100%;\n	padding: 0px;\n	font-size: <data>defaultfont</data> !important;\n}\n.tabeldata{\n		width: 100%;\n		border-collapse: collapse;\n		page-break-after:auto;\n		border: solid 1px #000000;\n	}\n	.tabeldata tr th{\n		font-size: 14px;\n		font-weight: bold;\n		padding:5px 2px;\n		text-transform: capitalize;\n		page-break-inside:avoid; page-break-after:auto;\n		border: 1px solid #000000;\n	}\n	.tabeldata tr{\n		page-break-inside:avoid; page-break-after:auto;\n	}\n	.tabeldata tr td{\n		font-size: 14px;\n		page-break-inside:avoid; \n		page-break-after:auto;\n		border: 1px solid #000000;\n	}\n.kosong{\n	width: 0%;\n}\n.garis{\n	margin-top:8px;\n	width: 100%;\n	height: 2px;\n	background: #000000;\n}\n.kodedesa{\n	margin-left: 20px;\n}\n.judul{\n	font-weight: bold;\n	font-size: <data>judulfont</data> !important;\n	text-decoration: underline;\n	margin-top: 15px;\n	text-transform: uppercase;\n}\n.ttdkiri{\n	float:left;\n	display:inline-block;\n	width: 35%;\n}\n.ttdtengah{\n	display:inline-block;\n	width: 25%;\n	margin-left: 2%;\n}\n.ttdkanan{\n	position:relative;\n	float:right;\n	display:inline-block;\n	width: 30%;\n}\n.stempel{\n	position: absolute;\n	z-index:-2;\n	width: 120px;\n	height: 120px;\n	left: 50%;\n	margin-left:-100px;\n	top: 20px;\n}\n.ttd{\n	position: absolute;\n	z-index:-1;\n	width: 160px;\n	height: 100px;\n	left: 50%;\n	margin-left:-50px;\n	top: 50px;\n}\n\n.kab{\n	margin-top: 8px;\n	font-size: <data>fontjudul1</data>;\n	margin-bottom: 2px;\n	text-transform: uppercase;\n	font-weight: bold;\n}\n\n.kec{\n	font-size: <data>fontjudul2</data>;\n	text-transform: uppercase;\n}\n\n.alamat{\n	font-size: <data>fontjudul3</data>;\n	margin-top: 2px;\n	font-weight: 400;\n}\n.alamat_full{\n	font-size: 12px;\n	margin-top: 2px;\n	font-weight: 400;\n}\n.logo{\n	width: 40px;\n	height: 50px;\n	background: url(<data>logo</data>) no-repeat !important;\n	background-size: <data>bglogo</data>;\n	-webkit-print-color-adjust:exact !important;\n}\ndiv{\n	color: #000000 !important;\n	font-weight: 400;\n}\n.qrcode{\n	margin-top:10px;\n	right: 5px;\n	width: 100px;\n	height: 100px;\n}\n.qrcode img{\n	width: 100%;\n	height: 100%;\n}\n.kepada{\n	padding: 20px 0 30px 0;\n	width: 20%;\n	line-height: 1.2;\n	\n}\n.isi{\n	text-indent: 35px;\n	line-height: 1.5;\n	font-size: <data>defaultfont</data> !important;\n	\n}\n</style>\n\n<div class=\"cetak\" id=\"boxcetak\">\n	<div style=\"width: 100%\">\n		<div align=\"center\" style=\"width: 100%;box-sizing: border-box;border-bottom: 2px solid #000000; color:#000000;margin-left: 25px;\">\n			<table style=\"border-bottom: 4px double #000000; width: 100%; padding-left: 25px;\">\n				<tr>\n					<td width=\"75px\">\n						<div style=\"<data>showlogo</data>;<data>ukuranlogo</data>\" id=\"boxlogo\">\n							<img style=\"<data>ukuranlogo</data>\" src=\"<data>logo</data>\" />\n						</div>\n					</td>\n					<td>\n						<div style=\"text-align:center; display: inline-block;font-weight: bold;padding-bottom: 5px;\">\n							<div class=\"kab\"><b>Kementrian Agama Republik Indonesia</b></div>\n							<div class=\"kec\"><b>Balai Pendidikan dan Pelatihan Keagamaan Semarang</b></div>\n							<div class=\"alamat\"><data>dataalamat</data></div>\n							<div class=\"alamat\" style=\"color: #000000\">Telp. <data>datatelp</data>, Email <data>dataemail</data></div>\n						</div>\n					</td>\n				</tr>\n			</table>\n		</div>\n		<div style=\"clear: both;\"></div>\n		<div align=\"center\" class=\"kec\" style=\"padding: 10px 0px 10px 0px;\">\n			<div><b>Surat Tugas</b></div>\n			<div><b>Nomor: <data>nomorsurat</data></b></div>\n		</div>\n		<table class=\"tabelisi\" style=\"text-align: justify;\">\n			<tr>\n				<td valign=\"top\" >Menimbang </td>\n				<td valign=\"top\" style=\"padding-left: 10px\">:</td>\n				<td valign=\"top\" style=\"padding-left: 10px\">\n					<ol type=\"a\">\n						<data>datamenimbang</data>\n					</ol>\n				</td>\n			</tr>\n<tr>\n    <td> </td>\n</tr>\n			<tr>\n				<td valign=\"top\" style=\"padding-top: 10px\">Dasar </td>\n				<td valign=\"top\" style=\"padding:10px 0px 0px 10px\">:</td>\n				<td valign=\"top\" style=\"padding-left: 10px\">\n					<ol type=\"1\" style=\"padding-top: 0.2px;\">\n						<data>datadasar</data>\n					</ol>\n				</td>\n			</tr>\n			<tr>\n				<td colspan=\"3\" align=\"center\" style=\"padding-top: 10px\"><b>Memberi Tugas</b></td>\n			</tr>\n			<tr>\n				<td valign=\"top\" style=\"padding-top: 10px\">Kepada </td>\n				<td valign=\"top\" style=\"padding:10px 0px 0px 10px\">:</td>\n				<td valign=\"top\" style=\"padding:10px 0px 0px 10px\">\n					<data>datapegawai</data>\n				</td>\n			</tr>\n			<tr>\n				<td valign=\"top\" style=\"padding-top: 10px\">Untuk</td>\n				<td valign=\"top\" style=\"padding:10px 0px 0px 10px\">:</td>\n				<td valign=\"top\" style=\"padding:0px 0px 0px 10px\">\n					<div>\n						<div><data>tugasuntuk</data></div>\n						<table class=\"tabelisi\" style=\"margin-top: 10px\">\n							<tr>\n								<td width=\"100px\">Hari/Tanggal</td>\n								<td>:</td>\n								<td><data>harimulaitugas</data> - <data>harisampaitugas</data> / <data>tglmulaitugas</data> - <data>tglsampaitugas</data></td>\n							</tr>\n							<tr>\n								<td>Tempat</td>\n								<td>:</td>\n								<td><data>lokasi</data></td>\n							</tr>\n						</table>\n						<div style=\"padding-top: 10px\">Segala biaya akibat dikeluarkannya Surat Tugas ini dibebankan pada DIPA Balai Diklat Keagamaan Semarang Tahun Anggaran 2021.</div>\n						<div style=\"padding-top: 10px\">Demikian Surat Tugas ini dibuat untuk dilaksanakan dengan sebaik-baiknya.</div>\n					</div>\n				</td>\n			</tr>\n		</table>\n		<div style=\"float: right; margin-top: 30px;padding-left: 10px;\">\n			<div>Semarang, <data>datatanggalsurat</data></div>\n			<br />\n			<div>Kepala, </div>\n			<div style=\"height: 45px;\"></div>\n			<div>Anshori</div>\n		</div>\n	</div>\n</div>',1),(6,5,'01pkltolak','Surat Balasan Penolakan Mini Riset/KKL','<style>\n@page {\n    size: Legal <data>modekertas</data>;\n}\n\n.cetak{\n	width:<data>lebarkertas</data>;\n	font-family: Times !important;\n	font-size: <data>defaultfont</data> !important;\n	font-weight: 400 !important;\n	-webkit-print-color-adjust:exact !important;\n	margin-left: 35px;\n	color: #000000;\n}\n\n.kotak{\n	display: inline-block;\n	width: 10px;\n	height: 16px;\n	padding-left: 5px;\n	\n	padding-top: 1px;\n	border: 1px solid #000000;\n	margin-left: -1px;\n	font-size: 11px !important;\n	margin-top: -1px;\n	margin-bottom: -1px;\n	text-transform: uppercase !important;\n}\n.tabelisi{\n	border-collapse: collapse;\n	width: 100%;\n	font-size: <data>defaultfont</data> !important;\n	\n}\n.tabelisi tr{\n	width: 100%;\n}\n\n.tabelisi tr,.tabelisi tr td{\n	padding: 0px;\n	padding-bottom:2px;\n	margin: 2px;\n	font-size: <data>defaultfont</data> !important;\n}\n.tabeltop{\n	border-collapse: collapse;\n	width:100%;\n	padding: 0px;\n	font-size: <data>defaultfont</data> !important;\n}\n.kosong{\n	width: 0%;\n}\n.garis{\n	margin-top:8px;\n	width: 100%;\n	height: 2px;\n	background: #000000;\n}\n.kodedesa{\n	margin-left: 20px;\n}\n.judul{\n	font-weight: bold;\n	font-size: <data>judulfont</data> !important;\n	text-decoration: underline;\n	margin-top: 15px;\n	text-transform: uppercase;\n}\n.ttdkiri{\n	float:left;\n	display:inline-block;\n	width: 35%;\n}\n.ttdtengah{\n	display:inline-block;\n	width: 25%;\n	margin-left: 2%;\n}\n.ttdkanan{\n	position:relative;\n	float:right;\n	display:inline-block;\n	width: 30%;\n}\n.stempel{\n	position: absolute;\n	z-index:-2;\n	width: 120px;\n	height: 120px;\n	left: 50%;\n	margin-left:-100px;\n	top: 20px;\n}\n.ttd{\n	position: absolute;\n	z-index:-1;\n	width: 160px;\n	height: 100px;\n	left: 50%;\n	margin-left:-50px;\n	top: 50px;\n}\n\n.kab{\n	margin-top: 8px;\n	font-size: <data>fontjudul1</data>;\n	margin-bottom: 2px;\n	text-transform: uppercase;\n	font-weight: bold;\n}\n\n.kec{\n	font-size: <data>fontjudul2</data>;\n	text-transform: uppercase;\n}\n\n.alamat{\n	font-size: <data>fontjudul3</data>;\n	margin-top: 2px;\n	font-weight: 400;\n}\n.alamat_full{\n	font-size: 12px;\n	margin-top: 2px;\n	font-weight: 400;\n}\n.logo{\n	width: 40px;\n	height: 50px;\n	background: url(<data>logo</data>) no-repeat !important;\n	background-size: <data>bglogo</data>;\n	-webkit-print-color-adjust:exact !important;\n}\ndiv{\n	color: #000000 !important;\n	font-weight: 400;\n}\n.qrcode{\n	margin-top:10px;\n	right: 5px;\n	width: 100px;\n	height: 100px;\n}\n.qrcode img{\n	width: 100%;\n	height: 100%;\n}\n.kepada{\n	padding: 20px 0 30px 0;\n	width: 20%;\n	line-height: 1.2;\n	\n}\n.isi{\n	text-indent: 35px;\n	line-height: 1.5;\n	font-size: <data>defaultfont</data> !important;\n	\n}\n</style>\n\n<div class=\"cetak\" id=\"boxcetak\">\n	<div style=\"width: 100%\">\n		<div align=\"center\" style=\"width: 100%;box-sizing: border-box;border-bottom: 2px solid #000000; color:#000000;\">\n			<table style=\"border: none;\">\n				<tr>\n					<td>\n						<div style=\"<data>showlogo</data>;<data>ukuranlogo</data>\" id=\"boxlogo\">\n							<img style=\"<data>ukuranlogo</data>\" src=\"<data>logo</data>\" />\n						</div>\n					</td>\n					<td>\n						<div class=\"grsbawah\" style=\"text-align:center; display: inline-block;font-weight: bold;padding-bottom: 5px;\">\n							<div class=\"kab\"><b>Kementrian Agama Republik Indonesia</b></div>\n							<div class=\"kec\"><b>Balai Pendidikan dan Pelatihan Keagamaan Semarang</b></div>\n							<div class=\"alamat\"><data>tipekabupaten</data> <data>datatelp</data></div>\n							<div class=\"alamat\" style=\"color: #000000\"><data>dataalamat</data></div>\n							<div class=\"alamat\" style=\"color: #000000\"><data>dataemail</data></div>\n						</div>\n					</td>\n				</tr>\n			</table>\n		</div>\n		<div style=\"clear: both;\"></div>\n		<table class=\"tabeltop\" style=\"line-height: 1; margin-top: 20px;\">\n			<tr>\n				<td width=\"70px\">Nomor</td>\n				<td width=\"10px\">:</td>\n				<td><data>datanomorsurat</data></td>\n				<td width=\"130px\"><data>datatanggalsurat</data></td>\n			</tr>\n			<tr>\n				<td>Sifat</td>\n				<td>:</td>\n				<td><data>datasifatsurat</data></td>\n				<td></td>\n			</tr>\n			<tr>\n				<td>Lampiran</td>\n				<td>:</td>\n				<td>-</td>\n				<td></td>\n			</tr>\n			<tr>\n				<td>Hal</td>\n				<td>:</td>\n				<td><data>datahalsurat</data></td>\n				<td></td>\n			</tr>\n		</table>\n		<br />\n		<div class=\"kepada\">\n			<div>Yth. <data>dataKepada</data></div>\n			<div><data>datakabupatentujuan</data></div>\n		</div>\n		<div class=\"isi\">\n			<div>Dengan hormat, menindaklanjuti surat <data>datasuratdari</data> Nomor : <data>datanomorsuratawal</data> Tanggal <data>datatanggalsuratawal</data> Hal : <data>datahalsurat</data>, <data>keterangan</data></div>\n		<div class=\"isi\">Demikian surat ini kami sampaikan untuk menjadi maklum. Atas kerjasama yang baik diucapkan terima kasih.</div>\n		<div style=\"clear: both\"></div>\n		<br />\n		<div class=\"ttdkanan\" style=\"padding-top: 70px;\">\n			<div>Kepala</div>\n			<div style=\"height: 65px;\"></div>\n			<div><data>datanama</data></div>\n		</div>\n	</div>\n</div>',0),(10,5,'TPLPKL','Surat Status Pengajuan PKL','<style>\n@page {\n    size: Legal <data>modekertas</data>;\n}\n\n.cetak{\n	width:<data>lebarkertas</data>;\n	font-family: Times !important;\n	font-size: <data>defaultfont</data> !important;\n	font-weight: 400 !important;\n	-webkit-print-color-adjust:exact !important;\n	margin-left: 35px;\n	color: #000000;\n}\n\n.kotak{\n	display: inline-block;\n	width: 10px;\n	height: 16px;\n	padding-left: 5px;\n	\n	padding-top: 1px;\n	border: 1px solid #000000;\n	margin-left: -1px;\n	font-size: 11px !important;\n	margin-top: -1px;\n	margin-bottom: -1px;\n	text-transform: uppercase !important;\n}\n.tabelisi{\n	border-collapse: collapse;\n	width: 100%;\n	font-size: <data>defaultfont</data> !important;\n	\n}\n.tabelisi tr{\n	width: 100%;\n}\n\n.tabelisi tr,.tabelisi tr td{\n	padding: 0px;\n	padding-bottom:2px;\n	margin: 2px;\n	font-size: <data>defaultfont</data> !important;\n}\n.tabeltop{\n	border-collapse: collapse;\n	width:100%;\n	padding: 0px;\n	font-size: <data>defaultfont</data> !important;\n}\n.kosong{\n	width: 0%;\n}\n.garis{\n	margin-top:8px;\n	width: 100%;\n	height: 2px;\n	background: #000000;\n}\n.kodedesa{\n	margin-left: 20px;\n}\n.judul{\n	font-weight: bold;\n	font-size: <data>judulfont</data> !important;\n	text-decoration: underline;\n	margin-top: 15px;\n	text-transform: uppercase;\n}\n.ttdkiri{\n	float:left;\n	display:inline-block;\n	width: 35%;\n}\n.ttdtengah{\n	display:inline-block;\n	width: 25%;\n	margin-left: 2%;\n}\n.ttdkanan{\n	position:relative;\n	float:right;\n	display:inline-block;\n	width: 40%;\n}\n.stempel{\n	position: absolute;\n	z-index:-2;\n	width: 120px;\n	height: 120px;\n	left: 50%;\n	margin-left:-100px;\n	top: 20px;\n}\n.ttd{\n	position: absolute;\n	z-index:-1;\n	width: 160px;\n	height: 100px;\n	left: 50%;\n	margin-left:-50px;\n	top: 50px;\n}\n\n.kab{\n	margin-top: 8px;\n	font-size: <data>fontjudul1</data>;\n	margin-bottom: 2px;\n	text-transform: uppercase;\n	font-weight: bold;\n}\n\n.kec{\n	font-size: <data>fontjudul2</data>;\n	text-transform: uppercase;\n}\n\n.alamat{\n	font-size: <data>fontjudul3</data>;\n	margin-top: 2px;\n	font-weight: 400;\n}\n.alamat_full{\n	font-size: 12px;\n	margin-top: 2px;\n	font-weight: 400;\n}\n.logo{\n	width: 40px;\n	height: 50px;\n	background: url(<data>logo</data>) no-repeat !important;\n	background-size: <data>bglogo</data>;\n	-webkit-print-color-adjust:exact !important;\n}\ndiv{\n	color: #000000 !important;\n	font-weight: 400;\n}\n.qrcode{\n	margin-top:10px;\n	right: 5px;\n	width: 100px;\n	height: 100px;\n}\n.qrcode img{\n	width: 100%;\n	height: 100%;\n}\n.kepada{\n	padding: 20px 0 30px 0;\n	width: 20%;\n	line-height: 1.2;\n	\n}\n.isi{\n	text-indent: 35px;\n	line-height: 1.5;\n	font-size: <data>defaultfont</data> !important;\n	\n}\n.tabelpeserta{\n	width: 95%;\n	border-collapse: collapse;\n	box-sizing: border-box;\n}\n.tabelpeserta tr{\n	box-sizing: border-box;\n}\n.tabelpeserta tr td{\n	border: 1px solid #000000;\n	box-sizing: border-box;\n}\n</style>\n\n<div class=\"cetak\" id=\"boxcetak\">\n	<div style=\"width: 100%\">\n		<div align=\"center\" style=\"width: 100%;box-sizing: border-box;border-bottom: 2px solid #000000; color:#000000;\">\n			<table style=\"border: none;\">\n				<tr>\n					<td>\n						<div style=\"<data>showlogo</data>;<data>ukuranlogo</data>\" id=\"boxlogo\">\n							<img style=\"<data>ukuranlogo</data>\" src=\"<data>logo</data>\" />\n						</div>\n					</td>\n					<td>\n						<div class=\"grsbawah\" style=\"text-align:center; display: inline-block;font-weight: bold;padding-bottom: 5px;\">\n							<div class=\"kab\"><b>Kementrian Agama Republik Indonesia</b></div>\n							<div class=\"kec\"><b>Balai Pendidikan dan Pelatihan Keagamaan Semarang</b></div>\n							<div class=\"alamat\"><data>tipekabupaten</data> <data>datatelp</data></div>\n							<div class=\"alamat\" style=\"color: #000000\"><data>dataalamat</data></div>\n							<div class=\"alamat\" style=\"color: #000000\"><data>dataemail</data></div>\n						</div>\n					</td>\n				</tr>\n			</table>\n		</div>\n		<div style=\"clear: both;\"></div>\n		<table class=\"tabeltop\" style=\"line-height: 1; margin-top: 20px;\">\n			<tr>\n				<td width=\"120px\">Nomor</td>\n				<td width=\"8px\">:</td>\n				<td align=\"left\"><data>nomorsurat</data></td>\n			</tr>\n			<tr>\n				<td>Sifat</td>\n				<td>:</td>\n				<td align=\"left\"><data>sifatsurat</data></td>\n			</tr>\n			<tr>\n				<td>Lampiran</td>\n				<td>:</td>\n				<td align=\"left\">-</td>\n			</tr>\n			<tr>\n				<td>Hal</td>\n				<td>:</td>\n				<td align=\"left\"><data>jenissurat</data></td>\n			</tr>\n		</table>\n		<br />\n		<div class=\"kepada\">\n			<div>Yth. Kepala <data>nama_sekolah</data></div>\n			<div>Di <data>kota_sekolah</data></div>\n		</div>\n		<div class=\"isi\">\n			<div>\n				<p>Dengan hormat, menindaklanjuti surat dari <data>nama_sekolah</data> Nomor <data>nomorsuratpengajuan</data> pada tanggal <data>tanggalsurat</data> perihal <data>jenissurat</data>, Maka disampaikan bahwa status pengajuan dari :</p>\n			</div>\n		</div>\n		<div style=\"box-sizing: border-box;\">\n			<data>datapeserta</data>\n		</div>\n		<div style=\"margin-top: 5px;\">Dan menyatakan status pengajuan tersebut adalah <b><data>namastatus</data></b></div>\n		<br />\n		<div class=\"isi\">Demikian surat ini kami sampaikan untuk menjadi maklum. Atas kerjasama yang baik diucapkan terima kasih.</div>\n		<div style=\"clear: both\"></div>\n		<br />\n		<div class=\"ttdkanan\" style=\"padding-top: 70px;\">\n			<div align=\"center\">\n				<div>Semarang, <data>tanggalclose</data></div>\n				<div>Kepala</div>\n				<div style=\"height: 65px;\"></div>\n				<div><data>namakepala</data></div>\n				<div><data>nipkepala</data></div>\n			</div>\n		</div>\n	</div>\n</div>',1);

--
-- Table structure for table `tb_master_template_kategori`
--

CREATE TABLE `tb_master_template_kategori` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `nama` varchar(145) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  UNIQUE KEY `nama_UNIQUE` (`nama`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_master_template_kategori`
--

INSERT INTO `tb_master_template_kategori` VALUES (1,'Lembar Dokumen'),(5,'Surat Keluar Eksternal'),(3,'Surat Keluar Internal'),(2,'Surat Masuk Internal');

--
-- Table structure for table `tb_menu_akses`
--

CREATE TABLE `tb_menu_akses` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `idmenu` int(11) DEFAULT NULL,
  `idlevel` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  UNIQUE KEY `index3` (`idmenu`,`idlevel`),
  KEY `fx_levelakses_idx` (`idlevel`),
  KEY `index5` (`idmenu`),
  CONSTRAINT `fx_akses_level` FOREIGN KEY (`idlevel`) REFERENCES `tb_level` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `fx_akses_menu` FOREIGN KEY (`idmenu`) REFERENCES `tb_menu` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=464 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_menu_akses`
--

INSERT INTO `tb_menu_akses` VALUES (371,1,80),(370,1,90),(369,1,100),(367,2,80),(372,2,90),(314,2,100),(368,3,90),(293,3,100),(363,5,80),(347,5,90),(295,5,100),(448,6,35),(435,6,90),(434,6,100),(391,103,80),(388,103,90),(385,103,100),(433,115,80),(430,115,90),(427,115,100),(437,126,90),(436,126,100),(440,127,15),(442,127,30),(463,127,32),(445,127,35),(439,127,80),(438,127,90),(441,127,100),(460,130,90),(457,130,100);
DELIMITER ;;;
DELIMITER ;
DELIMITER ;;;
DELIMITER ;

--
-- Table structure for table `tb_menu_icon`
--

CREATE TABLE `tb_menu_icon` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `nama` varchar(245) DEFAULT NULL,
  `keterangan` mediumtext DEFAULT NULL,
  `idgambar` int(11) DEFAULT NULL,
  `tautan` varchar(245) DEFAULT NULL,
  `status` int(11) DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  UNIQUE KEY `nama_UNIQUE` (`nama`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_menu_icon`
--

INSERT INTO `tb_menu_icon` VALUES (5,'Santri Baru','Santri Baru',22103,'http://ponpesmuhkudus.sch.id/santribaru',1),(6,'Info Santri','Info Santri',22104,'http://ponpesmuhkudus.sch.id/informasi?kategori=1',1),(7,'Kegiatan Pondok','Kegiatan Pondok',22105,'http://ponpesmuhkudus.sch.id/agenda',1);

--
-- Table structure for table `tb_menu_jenis`
--

CREATE TABLE `tb_menu_jenis` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `nama` varchar(145) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  UNIQUE KEY `nama_UNIQUE` (`nama`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_menu_jenis`
--

INSERT INTO `tb_menu_jenis` VALUES (1,'Admin'),(2,'Halaman Web (Header)'),(3,'Halaman Web (Kiri)');
DELIMITER ;;;
DELIMITER ;
DELIMITER ;;;
DELIMITER ;
DELIMITER ;;;
DELIMITER ;

--
-- Table structure for table `tb_menu_sub_akses`
--

CREATE TABLE `tb_menu_sub_akses` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `idsubmenu` int(11) DEFAULT NULL,
  `idlevel` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  UNIQUE KEY `index3` (`idsubmenu`,`idlevel`),
  KEY `fx_idlevelsub_idx` (`idlevel`),
  CONSTRAINT `fx_levelsubakses` FOREIGN KEY (`idlevel`) REFERENCES `tb_level` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `fx_subakses` FOREIGN KEY (`idsubmenu`) REFERENCES `tb_menu_sub` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=725 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_menu_sub_akses`
--

INSERT INTO `tb_menu_sub_akses` VALUES (488,170,80),(451,170,90),(341,170,100),(452,171,90),(340,171,100),(489,172,80),(453,172,90),(339,172,100),(490,173,80),(454,173,90),(338,173,100),(450,175,90),(336,175,100),(491,181,80),(455,181,90),(337,181,100),(520,253,80),(517,253,90),(514,253,100),(529,256,80),(526,256,90),(523,256,100),(602,297,90),(601,297,100),(608,299,90),(607,299,100),(609,301,100),(679,302,35),(610,302,100),(611,303,100),(612,304,100),(615,309,100),(617,310,100),(618,311,100),(619,312,100),(620,313,100),(621,314,100),(622,315,100),(623,316,100),(627,317,15),(630,317,30),(721,317,32),(658,317,35),(626,317,80),(625,317,90),(624,317,100),(628,318,100),(631,319,30),(694,319,90),(629,319,100),(636,320,15),(635,320,30),(724,320,32),(655,320,35),(634,320,80),(633,320,90),(632,320,100),(637,321,100),(638,322,100),(639,323,100),(652,325,15),(649,325,30),(646,325,80),(643,325,90),(640,325,100),(673,328,30),(661,328,100),(682,331,100),(718,334,100),(691,337,100),(700,343,90),(697,343,100),(706,346,90),(703,346,100);
DELIMITER ;;;
DELIMITER ;
DELIMITER ;;;
DELIMITER ;

--
-- Table structure for table `tb_menu_sub_sub`
--

CREATE TABLE `tb_menu_sub_sub` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `idmenu` int(11) DEFAULT NULL,
  `idsub` int(11) DEFAULT NULL,
  `level` int(11) DEFAULT 0,
  `nama` varchar(145) DEFAULT NULL,
  `jenistautan` varchar(145) DEFAULT NULL,
  `tautan` varchar(145) DEFAULT NULL,
  `urutan` int(11) DEFAULT NULL,
  `status` int(1) DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  KEY `fx_idsubmenu_idsub_idx` (`idsub`),
  CONSTRAINT `fx_idsubmenu_idsub` FOREIGN KEY (`idsub`) REFERENCES `tb_menu_sub` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_menu_sub_sub`
--

DELIMITER ;;;
DELIMITER ;
DELIMITER ;;;
DELIMITER ;

--
-- Table structure for table `tb_module`
--

CREATE TABLE `tb_module` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `nama` varchar(100) DEFAULT NULL,
  `module` varchar(100) DEFAULT NULL,
  `status` int(11) DEFAULT NULL,
  `level` int(11) DEFAULT NULL,
  `jumlah_akses` int(11) DEFAULT 0,
  `jumlah_upload` int(11) DEFAULT 0,
  `jumlah_cetak` int(11) DEFAULT 0,
  `jumlah_lampiran` int(11) DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  UNIQUE KEY `nama_module` (`module`)
) ENGINE=InnoDB AUTO_INCREMENT=311 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_module`
--

INSERT INTO `tb_module` VALUES (2,'Module Akses','moduleakses',1,100,0,0,0,0),(3,'Module Manajemen Menu','managmenu',1,100,0,0,0,0),(4,'Module Keluar','keluar',1,0,0,0,0,0),(5,'Module User Login','usermanajemen',1,100,0,0,0,0),(14,'Module Level','level',1,100,0,0,0,0),(36,'Module Profile','profile',1,0,0,0,0,0),(54,'Module Manajemen Level','managlevel',1,100,0,0,0,0),(142,'Master Jenis File Upload','jenisfileupload',1,100,0,0,0,0),(163,'Module Manajemen Informasi','managkonten',1,25,3,1,0,0),(187,'Module Template Cetak','mastertemplatecetak',1,90,2,0,0,0),(203,'Module Jenis Cetak Surat','jeniscetaksurat',1,100,0,0,0,0),(204,'Module Profile Instansi','managprofile',1,25,2,8,0,0),(206,'Module Manajemen Banner','managbanner',1,25,3,8,0,0),(207,'Module Kategori Informasi','kategorikonten',1,25,2,8,0,0),(209,'Module Manajemen Agenda','managagenda',1,25,3,8,0,0),(212,'Module Master Propinsi','masterpropinsi',1,100,0,0,0,0),(213,'Module Master Kota/Kabupaten','masterkota',1,100,0,0,0,0),(214,'Module Master Jenis Kelamin','masterjeniskelamin',1,100,0,0,0,0),(215,'Module Master Kategori Data','masterkategori',1,100,0,0,0,0),(217,'Module Link Terkait','linkterkait',1,25,3,8,0,0),(219,'Module Manajemen Menu Icon','managmenuicon',1,100,1,0,0,0),(234,'Module Banner Iklan','banneriklan',1,25,3,8,0,0),(235,'Module Kategori Album','kategorialbum',1,25,3,8,0,0),(236,'Module Album Gallery','managgallery',1,25,3,8,0,0),(237,'Module Master Status','masterstatus',1,100,0,0,0,0),(240,'Module Master Pendidikan','masterpendidikan',1,90,2,0,0,0),(241,'Module Master Pekerjaan','masterpekerjaan',1,90,2,0,0,0),(245,'Module Utama Icon','utamaicon',1,0,0,0,0,0),(246,'Module Kategori Download','kategoridownload',1,80,3,0,0,0),(247,'Module Manajemen Download','managdownload',1,80,3,0,0,0),(250,'Module Master Data Jabatan Struktural','masterjabatan',1,90,2,0,0,0),(253,'Module Master Data Marketing','mastermarketing',1,90,2,0,0,0),(256,'Module Master Data Peserta','masterpeserta',1,15,3,0,0,0),(259,'Module Master Data Produk','masterproduk',1,90,2,1,0,0),(262,'Module Master Data Paket Produk','produkpaket',1,90,2,0,0,0),(263,'Module Master Golongan','mastergolongan',1,90,2,0,0,0),(281,'Module Master Data Jabatan Fungsional','masterjabatanfungsional',1,90,2,0,0,0),(282,'Module Master Kategori Status','masterkategoristatus',1,100,0,0,0,0),(283,'Module Master Pegawai','masterpegawai',1,90,1,1,0,0),(284,'Module SK Golongan','skgolongan',1,15,2,1,0,0),(285,'Module SK Jabatan Struktural','skstruktural',1,15,1,1,0,0),(286,'Module SK Jabatan Fungsional','skfungsional',1,15,1,1,0,0),(287,'Module Master Status ASN','masterstatusasn',1,90,2,0,0,0),(288,'Module Master Kategori Template','masterkategoritemplate',1,90,2,0,0,0),(289,'Module Pengaturan Plugin Cetak','masterplugincetak',1,100,1,0,0,0),(290,'Module Master Jenis Surat','masterjenissurat',1,90,1,0,0,0),(291,'Module Master Jenis Cuti','masterjeniscuti',1,90,1,0,0,0),(292,'Module E-Pengajuan Cuti','epengajuancuti',1,15,6,0,0,0),(293,'Module Master Disposisi','masterdisposisi',1,90,1,0,0,0),(294,'Module Disposisi Surat','disposisisurat',1,15,3,0,0,0),(295,'Module Surat Tugas','surattugas',1,15,6,0,0,0),(296,'Module Pengaturan Nomor Surat','nomorsurat',1,90,1,0,0,0),(297,'Module Master Kategori Catatan','masterkategorictt',1,90,1,0,0,0),(298,'Module Master Catatan','mastercatatan',1,90,1,0,0,0),(301,'Module Surat Balasan','suratbalasan',1,15,5,0,0,0),(304,'Modulle Surat Masuk','suratmasuk',1,15,2,1,0,0),(305,'Module Kategori Jenis Surat','kategorijenissurat',1,90,1,0,0,0),(306,'Module Pengajuan PKL','epengajuanpkl',1,10,1,1,0,0),(307,'Module Surat Keluar','suratkeluar',1,15,1,0,0,0),(308,'Module Pengaturan Akun Email Pesan','pengaturanemailpesan',1,100,0,0,0,0),(309,'Module Monitoring Surat','monitoringsurat',1,15,2,0,0,0),(310,'Module Monitoring Email Notifikasi','kirimemail',1,15,2,0,0,0);

--
-- Table structure for table `tb_module_akses`
--

CREATE TABLE `tb_module_akses` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `idmodule` int(11) DEFAULT NULL,
  `level` int(11) DEFAULT 0,
  `status` int(1) DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `idx_module` (`idmodule`,`level`),
  CONSTRAINT `fkmodule` FOREIGN KEY (`idmodule`) REFERENCES `tb_module` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=905 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_module_akses`
--

INSERT INTO `tb_module_akses` VALUES (541,207,100,1),(542,217,100,1),(543,209,100,1),(544,206,100,1),(545,163,100,1),(548,204,100,1),(550,219,100,1),(566,234,100,1),(567,235,100,1),(568,236,100,1),(574,240,100,1),(575,241,100,1),(653,163,90,1),(654,204,90,1),(655,206,90,1),(656,207,90,1),(657,209,90,1),(658,217,90,1),(659,234,90,1),(660,235,90,1),(661,236,90,1),(693,235,25,1),(694,236,25,1),(695,163,25,1),(696,206,25,1),(697,209,25,1),(698,234,25,1),(699,217,25,1),(711,246,100,1),(712,246,90,1),(713,246,80,1),(714,247,100,1),(715,247,90,1),(716,247,80,1),(724,253,100,1),(727,253,90,1),(730,256,100,1),(733,256,90,1),(736,259,100,1),(739,259,90,1),(742,256,15,1),(745,262,100,1),(748,262,90,1),(788,263,100,1),(789,263,90,1),(790,240,90,1),(791,250,100,1),(792,250,90,1),(793,281,100,1),(794,281,90,1),(795,241,90,1),(796,283,100,1),(797,284,100,1),(798,285,100,1),(799,286,100,1),(800,187,100,1),(801,289,100,1),(802,287,100,1),(803,287,90,1),(804,288,100,1),(806,187,90,1),(807,288,90,1),(808,290,100,1),(809,291,100,1),(811,292,100,1),(812,292,90,1),(813,292,80,1),(814,292,15,1),(815,293,100,1),(816,294,100,1),(817,292,30,1),(818,294,30,1),(819,295,15,1),(820,295,30,1),(821,295,80,1),(822,295,90,1),(823,295,100,1),(824,296,100,1),(825,297,100,1),(826,298,100,1),(829,301,90,1),(832,301,100,1),(835,301,80,1),(838,301,30,1),(841,301,15,1),(844,295,35,1),(847,292,35,1),(850,304,100,1),(859,304,30,1),(868,284,35,1),(874,305,100,1),(886,306,100,1),(889,294,90,1),(892,309,100,1),(895,309,90,1),(898,310,100,1),(901,310,90,1),(904,307,100,1);
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_module_akses_AFTER_INSERT` AFTER INSERT ON `tb_module_akses` FOR EACH ROW
BEGIN
	update tb_module set jumlah_akses=jumlah_akses+1 where id=new.idmodule;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_module_akses_AFTER_DELETE` AFTER DELETE ON `tb_module_akses` FOR EACH ROW
BEGIN
	update tb_module set jumlah_akses=jumlah_akses-1 where id=old.idmodule;
END */;;
DELIMITER ;

--
-- Table structure for table `tb_module_cetak`
--

CREATE TABLE `tb_module_cetak` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `idmodule` int(11) DEFAULT NULL,
  `idplugin` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  UNIQUE KEY `index3` (`idmodule`,`idplugin`),
  KEY `fx_idplugin_idplugincetak_idx` (`idplugin`),
  CONSTRAINT `fx_idmodule_idplugincetak` FOREIGN KEY (`idmodule`) REFERENCES `tb_module` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `fx_idplugin_idplugincetak` FOREIGN KEY (`idplugin`) REFERENCES `tb_plugin_cetak` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_module_cetak`
--

DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_module_cetak_AFTER_INSERT` AFTER INSERT ON `tb_module_cetak` FOR EACH ROW
BEGIN
	update tb_module set jumlah_cetak=jumlah_cetak+1 where id=new.idmodule;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_module_cetak_AFTER_DELETE` AFTER DELETE ON `tb_module_cetak` FOR EACH ROW
BEGIN
	update tb_module set jumlah_cetak=jumlah_cetak-1 where id=old.idmodule;
END */;;
DELIMITER ;

--
-- Table structure for table `tb_module_jeniskonten`
--

CREATE TABLE `tb_module_jeniskonten` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `idmodule` int(11) DEFAULT NULL,
  `idjeniskonten` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  UNIQUE KEY `index3` (`idmodule`,`idjeniskonten`),
  CONSTRAINT `fx-upload_idmodule` FOREIGN KEY (`idmodule`) REFERENCES `tb_module` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_module_jeniskonten`
--

DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_module_jeniskonten_AFTER_INSERT` AFTER INSERT ON `tb_module_jeniskonten` FOR EACH ROW
BEGIN
	update tb_module set jumlah_upload=jumlah_upload+1 where id=new.idmodule;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_module_jeniskonten_AFTER_DELETE` AFTER DELETE ON `tb_module_jeniskonten` FOR EACH ROW
BEGIN
	update tb_module set jumlah_upload=jumlah_upload-1 where id=old.idmodule;
END */;;
DELIMITER ;

--
-- Table structure for table `tb_module_upload`
--

CREATE TABLE `tb_module_upload` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `idmodule` int(11) DEFAULT NULL,
  `idjenis` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  UNIQUE KEY `index3` (`idmodule`,`idjenis`)
) ENGINE=MyISAM AUTO_INCREMENT=95 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_module_upload`
--

INSERT INTO `tb_module_upload` VALUES (1,238,5),(82,285,12),(3,236,8),(6,163,2),(76,249,9),(13,204,1),(14,204,2),(15,204,3),(16,204,4),(17,204,5),(18,204,6),(19,204,7),(20,204,8),(21,206,1),(22,206,2),(23,206,3),(24,206,4),(25,206,5),(26,206,6),(27,206,7),(28,206,8),(29,207,1),(30,207,2),(31,207,3),(32,207,4),(33,207,5),(34,207,6),(35,207,7),(36,207,8),(37,209,1),(38,209,2),(39,209,3),(40,209,4),(41,209,5),(42,209,6),(43,209,7),(44,209,8),(45,217,1),(46,217,2),(47,217,3),(48,217,4),(49,217,7),(50,217,5),(51,217,6),(52,217,8),(53,235,1),(54,235,3),(55,235,2),(56,235,4),(57,235,5),(58,235,6),(59,235,7),(60,235,8),(61,236,7),(62,236,6),(63,236,5),(64,236,3),(65,236,2),(66,236,1),(67,236,4),(68,234,1),(69,234,2),(70,234,4),(71,234,3),(72,234,5),(73,234,6),(74,234,7),(75,234,8),(79,259,11),(81,284,12),(83,286,12),(85,304,13),(88,306,13),(94,283,12);
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_module_upload_AFTER_INSERT` AFTER INSERT ON `tb_module_upload` FOR EACH ROW
BEGIN
	update tb_module set jumlah_upload=jumlah_upload+1 where id=new.idmodule;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_module_upload_AFTER_DELETE` AFTER DELETE ON `tb_module_upload` FOR EACH ROW
BEGIN
	update tb_module set jumlah_upload=jumlah_upload-1 where id=old.idmodule;
END */;;
DELIMITER ;

--
-- Table structure for table `tb_pegawai`
--

CREATE TABLE `tb_pegawai` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tanggal_input` datetime DEFAULT NULL,
  `nama` varchar(245) DEFAULT NULL,
  `nip` varchar(145) DEFAULT NULL,
  `idpropinsi` int(11) DEFAULT NULL,
  `idkota` int(11) DEFAULT NULL,
  `alamat` varchar(245) DEFAULT NULL,
  `tempatlahir` varchar(145) DEFAULT NULL,
  `tanggallahir` date DEFAULT NULL,
  `idjeniskelamin` int(11) DEFAULT NULL,
  `idgolongan` int(11) DEFAULT NULL,
  `idjabatanstruk` int(11) DEFAULT NULL,
  `idjabatanfung` int(11) DEFAULT NULL,
  `idpendidikan` int(11) DEFAULT NULL,
  `namasekolah` varchar(245) DEFAULT NULL,
  `nohp` varchar(145) DEFAULT NULL,
  `email` varchar(145) DEFAULT NULL,
  `notelp` varchar(145) DEFAULT NULL,
  `tanggal_sk_gol` date DEFAULT NULL,
  `tanggal_sk_struk` date DEFAULT NULL,
  `tanggal_sk_fung` date DEFAULT NULL,
  `tanggal_sk_awal` date DEFAULT NULL,
  `tanggal_sk_cpns` date DEFAULT NULL,
  `statusasn` int(11) DEFAULT 1,
  `jumlah_lampiran` int(11) DEFAULT 0,
  `status` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  KEY `fx_jabatanstr_idpegawai_idx` (`idjabatanstruk`),
  KEY `fx_jabatanfu_idpegawai_idx` (`idjabatanfung`),
  KEY `index5` (`idjeniskelamin`),
  KEY `index6` (`nama`),
  KEY `index7` (`idpendidikan`),
  KEY `index8` (`idgolongan`),
  KEY `index9` (`status`),
  CONSTRAINT `fx_jabatanfu_idpegawai` FOREIGN KEY (`idjabatanfung`) REFERENCES `tb_master_jabatan_fungsional` (`id`) ON UPDATE CASCADE,
  CONSTRAINT `fx_jabatanstr_idpegawai` FOREIGN KEY (`idjabatanstruk`) REFERENCES `tb_master_jabatan` (`id`) ON UPDATE CASCADE,
  CONSTRAINT `fx_masterstatus_idpegawai` FOREIGN KEY (`status`) REFERENCES `tb_master_status` (`id`) ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=104 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_pegawai`
--

INSERT INTO `tb_pegawai` VALUES (1,'2021-07-13 17:23:40','Drs. H. Anshori','196605191993031002',13,191,'Jl. Dummy','Kalisari','1966-05-19',1,14,1,NULL,8,'IAIN SUNAN KALIJAGA','-','dummy@email.com','59.401.508.303-4.000',NULL,NULL,NULL,'1994-07-01',NULL,1,0,1),(2,'2021-07-15 23:47:50','Dra. Hj. Siti Barokah','196502151994032002',14,213,'Jalan dummy','Purworejo','2020-02-15',2,12,20,NULL,8,'IAIN WALISONGO SEMARANG','-','irulkampret@gmail.com','58.657.171.350.3-000',NULL,'2021-07-16',NULL,'1995-08-01',NULL,1,0,1),(3,'2021-07-17 12:02:55','Hj. Siti Nur Maunah, S.H.I., M.Si','198110142005012003',14,209,'Jl. dummy No. 02','Pati','1981-10-14',2,13,40,NULL,9,'Universitas Diponegoro','-','dummy@gmail.com','49.567.172.9-517.000',NULL,NULL,NULL,'2006-06-01',NULL,1,0,1),(4,'2021-07-17 14:19:14','H. Abdul Wahib Amsa, S.H., MH','196802071993031005',14,197,'Jl. Pahlawan No. 02','Boyolali','1968-02-07',1,13,30,24,9,'UNDARIS','-','bdk_semarang@kemenag.go.id','49.565.398.2-517.000',NULL,NULL,NULL,'1994-11-01',NULL,1,0,1),(5,'2021-07-17 14:54:37','Drs. H. Sholihin, M.Si.','195905251985031004',14,197,'Jl. Pahlawan No. 02','Boyolali','1959-05-25',1,17,50,1,9,'Universitas Diponegoro','-','bdk_semarang@kemenag.go.id','07.109.727.3-508.000',NULL,NULL,NULL,'1987-01-01',NULL,1,0,1),(6,'2021-07-17 14:57:37','Drs. Junaidi, M.Pd.','196707121994031003',14,197,'Jl. Pahlawan No. 02','Boyolali','1967-07-12',1,17,50,1,9,'UMS','-','bdk_semarang@kemenag.go.id','49.567.146.3-526.000',NULL,NULL,NULL,'1996-01-01',NULL,1,0,1),(7,'2021-07-17 15:00:31','Drs. Teguh Suyitno, M.Pd.','196608091994031001',14,208,'Jl. Pahlawan No. 02','Magelang','1966-08-09',1,17,50,1,9,'UNM','-','bdk_semarang@kemenag.go.id','49.567.140.6-524.000',NULL,NULL,NULL,'1995-12-01',NULL,1,0,1),(8,'2021-07-17 15:04:02','Drs. H. Gunawan, M.Pd.','196808111994031003',14,201,'Jl. Pahlawan No. 02','Purwodadi','1956-03-05',1,16,50,1,9,'UNY','-','bdk_semarang@kemenag.go.id','49.567.157.0-526.000',NULL,NULL,NULL,'1996-01-01',NULL,1,0,1),(9,'2021-07-17 15:11:30','Hj. Nurul Kamilati, M.Pd., M.Ed.','197104011996032002',20,323,'Jl. Pahlawan No. 02','Pontianak','1971-04-01',2,17,50,1,10,'SUNAN KALIJAGA YOGYAKARTA','','bdk_semarang@kemenag.go.id','49.567.150.5-542.000',NULL,NULL,NULL,'1999-02-27',NULL,1,0,1),(12,'2021-07-17 15:15:48','Dr. H. Suwardi, S.Ag., M.S.I.','195903051992031002',16,270,'Jl. Pahlawan No. 02','Mantri Jeron','1968-08-11',1,16,50,1,10,'UNIVERSITAS SULTAN AGUNG SEMARANG','','bdk_semarang@kemenag.go.id','49.567.148.9-545.000',NULL,NULL,NULL,'1994-02-01',NULL,1,0,1),(13,'2021-07-17 15:25:12','Dra. Hj. Ngamilah, M.S.I.','195909191990022001',14,222,'Jl. Pahlawan No. 02','Magelang','1959-01-05',2,16,50,1,9,'UIN SUNAN KALIJAGA YOGYAKARTA','-','bdk_semarang@kemenag.go.id','49.567.135.3-524.000',NULL,NULL,NULL,'1991-08-01',NULL,1,0,1),(14,'2021-07-17 15:27:22','Dr. Hj. Siti Rokhanah, M.Ag.','196012071985032009',14,204,'Jl. Pahlawan No. 02','Kebumen','1959-09-19',2,16,50,1,10,'UMS','','bdk_semarang@kemenag.go.id','49.567.155.4-505.000',NULL,NULL,NULL,'1986-10-01',NULL,1,0,1),(15,'2021-07-17 15:28:54','Drs. Mahfud, NLP, MNLP','196602031994031002',14,225,'Jl. Pahlawan No. 02','Semarang','1966-02-03',1,15,50,2,8,'IKIP SEMARANG','','bdk_semarang@kemenag.go.id','49.567.144.8-506.000',NULL,NULL,NULL,'1995-10-01',NULL,1,0,1),(16,'2021-07-17 15:30:43','Drs. Suyadi, M.Pd.I.','196206041989031006',15,245,'Jl. Pahlawan No. 02','Pacitan','1962-06-04',1,15,50,2,9,'UNIV. SUNAN GIRI SURABAYA','','bdk_semarang@kemenag.go.id','49.567.151.3-524.000',NULL,NULL,NULL,'1991-11-01',NULL,1,0,1),(17,'2021-07-17 15:32:24','Dra. Budi Lestari, M.Pd','196510171992032002',14,208,'Jl. Pahlawan No. 02','Magelang','1965-10-17',2,15,50,2,9,'UNNES','','bdk_semarang@kemenag.go.id','49.567.138.0-524.000',NULL,NULL,NULL,'1994-03-01',NULL,1,0,1),(18,'2021-07-17 15:34:20','Dra. Hj. Masfifah, M.Pd.','196408041992032001',14,209,'Jl. Pahlawan No. 02','Pati','1964-08-04',2,15,50,2,9,'UNNES','','bdk_semarang@kemenag.go.id','49.565.385.9-517.000',NULL,NULL,NULL,'1994-10-01',NULL,1,0,1),(19,'2021-07-17 15:36:10','Drs. Agus Mujiono, M.Ed.','196702021994031005',15,237,'Jl. Pahlawan No. 02','Lamongan','1967-02-02',1,15,50,2,9,'DEAKIN UNIVERSITY AUSTRALIA','','bdk_semarang@kemenag.go.id','49.567.142.2-523.000',NULL,NULL,NULL,'1996-01-01',NULL,1,0,1),(20,'2021-07-17 15:38:46','Rr. Sri Sukarni K., S.Pd, M.Pd.','197006251994032002',14,225,'Jl. Pahlawan No. 02','Semarang','1970-06-25',2,15,50,2,9,'UNNES','','bdk_semarang@kemenag.go.id','49.567.165.3-517.000',NULL,NULL,NULL,'1996-02-01',NULL,1,0,1),(21,'2021-07-17 15:40:16','Hj. Amiroh Ambarwati, S.Pd, M.A.','197108141998032001',15,231,'Jl. Pahlawan No. 02','Bojonegoro','1971-08-14',2,15,50,2,9,'UGM','','bdk_semarang@kemenag.go.id','49.567.168.7-517.000',NULL,NULL,NULL,'1999-07-01',NULL,1,0,1),(22,'2021-07-17 15:42:34','H. Mutadi, S.Pd., M.Ed.','196810091997031001',14,200,'Jl. Pahlawan No. 02','Demak','1968-10-09',1,15,50,2,9,'DEAKIN UNIVERSITY AUSTRALIA','','bdk_semarang@kemenag.go.id','49.567.167.9-517.000',NULL,NULL,NULL,'1999-01-01',NULL,1,0,1),(23,'2021-07-17 15:45:06','Dr. Hj. Siti Aminah, M.A.','196909131994032001',16,268,'Jl. Pahlawan No. 02','Minggir','1969-09-13',2,15,50,2,10,'Universitas','','bdk_semarang@kemenag.go.id','77.929.777.9-542.000',NULL,NULL,NULL,'1996-01-01',NULL,1,0,1),(24,'2021-07-17 15:47:30','Hj. Nursangadah, S.Pd.I., M.Si','196407151986032001',14,222,'Jl. Pahlawan No. 02','Magelang','1964-07-15',2,14,50,2,9,'Universitas','','bdk_semarang@kemenag.go.id','49.565.396.6-505.000',NULL,NULL,NULL,'1988-02-01',NULL,1,0,1),(25,'2021-07-17 15:50:19','Lily Nurulia, S.S., M.Pd.','197908212003122003',13,189,'Jl. Pahlawan No. 02','Jakarta','1979-08-21',2,15,50,2,9,'UNNES','','bdk_semarang@kemenag.go.id','24.595.167.8-526.000',NULL,NULL,NULL,'2005-06-01',NULL,1,0,1),(26,'2021-07-17 15:59:57','Ratna Prilianti, S.Si., M.Pd.','198104102005012005',14,215,'Jl. Pahlawan No. 02','Semarang','1981-04-10',2,14,50,2,9,'UNNES','','bdk_semarang@kemenag.go.id','49.567.091.1-532.000',NULL,NULL,NULL,'2006-06-01',NULL,1,0,1),(27,'2021-07-17 16:01:31','Drs. Muhroji Arifin, S.Ag., M.Pd.','196110251992041001',14,197,'Jl. Pahlawan No. 02','Boyolali','1961-10-25',1,13,50,2,9,'UMS','','bdk_semarang@kemenag.go.id','49.567.136.4-527.000',NULL,NULL,NULL,'1993-12-01',NULL,1,0,1),(28,'2021-07-17 16:02:55','Drs. H. Nafiuddin, M.Si, M.Pd.','196502271986031001',14,198,'Jl. Pahlawan No. 02','Brebes','1965-02-27',1,13,50,2,9,'UNDIP','','bdk_semarang@kemenag.go.id','25.952.999.8-517.000',NULL,NULL,NULL,'1990-04-01',NULL,1,0,1),(29,'2021-07-17 16:04:47','Teguh Siswanto','',14,217,'sukoharjo 27','Sukoharjo','1975-09-25',1,NULL,NULL,NULL,4,'SLTA','','','',NULL,NULL,NULL,'2021-07-17',NULL,2,0,1),(30,'2021-07-17 16:06:14','Fatma Widyastuti, S.Pd., M.Ed.','196809171997032002',14,226,'Jl. Pahlawan No. 02','Surakarta','1968-09-17',2,13,1,2,9,'DEAKIN UNIVERSITY AUSTRALIA','','bdk_semarang@kemenag.go.id','49.567.159.6-532.000',NULL,NULL,NULL,'1999-01-01',NULL,1,0,1),(31,'2021-07-17 16:06:41','Puji Widyaningsih','',14,217,'sukoharjo 28','Sukoharjo','1975-09-25',2,NULL,NULL,NULL,4,'SLTA','','','',NULL,NULL,NULL,'2021-07-17',NULL,2,0,1),(32,'2021-07-17 16:07:36','H. Darwiyanto, S.Pd., M.Ed','196702051997031001',14,216,'Jl. Pahlawan No. 02','Demak','1967-02-05',1,13,50,2,9,'DEAKIN UNIVERSITY AUSTRALIA','','bdk_semarang@kemenag.go.id','49.567.161.2-502.000',NULL,NULL,NULL,'1999-01-01',NULL,1,0,1),(33,'2021-07-17 16:07:55','Prasetyo Basuki Putro','',14,217,'sukoharjo 29','sukoharjo','1975-09-25',1,NULL,NULL,NULL,4,'SLTA','','','',NULL,NULL,NULL,'2021-07-17',NULL,2,0,1),(34,'2021-07-17 16:08:59','H. Sholahuddin, S.Pd.. M.Pd.I','196411291985031003',14,211,'Jl. Pahlawan No. 02','Pemalang','1964-11-29',1,14,50,3,9,'UNIV. ISLAM ATTAHIRIYAH JAKARTA','','bdk_semarang@kemenag.go.id','49.567.133.1-502.000',NULL,NULL,NULL,'1986-10-01',NULL,1,0,1),(35,'2021-07-17 16:09:54','Gugus Yulianto','',14,217,'sukoharjo 30','Sukoharjo','1975-09-25',1,NULL,NULL,NULL,4,'SLTA','','','',NULL,NULL,NULL,'2021-07-17',NULL,2,0,1),(36,'2021-07-17 16:10:10','H. Suyatno, Lc., M.S.I.','197401032005011002',14,220,'Jl. Pahlawan No. 02','Wonogiri','1974-01-03',1,14,50,2,9,'Universitas','085229038456','bdk_semarang@kemenag.go.id','49.567.093.7-505.000',NULL,NULL,NULL,'2006-06-01',NULL,1,0,1),(37,'2021-07-17 16:11:20','Roni Renaldi','',14,217,'sukoharjo 31','Sukoharjo','1975-09-25',1,NULL,NULL,NULL,4,'SLTA','','','',NULL,NULL,NULL,'2021-07-17',NULL,2,0,1),(38,'2021-07-17 16:11:42','Achmad Subkhan, S.H.I., M.S.I.','198004192003121003',14,211,'Jl. Pahlawan No. 02','Pemalang','1980-04-19',1,14,50,2,9,'IAIN WALISONGO SEMARANG','','bdk_semarang@kemenag.go.id','49.565.415.4-517.000',NULL,NULL,NULL,'2005-06-01',NULL,1,0,1),(39,'2021-07-17 16:13:03','Mugiyono','',14,217,'sukoharjo 1','Sukoharjo','1975-09-25',1,NULL,NULL,NULL,4,'SLTA','','','',NULL,NULL,NULL,'2021-07-17',NULL,2,0,1),(40,'2021-07-17 16:15:15','H. Mustafirin, S.Ag., M.Ag','197203082006041020',14,200,'Jl. Pahlawan No. 02','Demak','1972-03-08',1,13,50,2,9,'IAIN WALISONGO SEMARANG','','bdk_semarang@kemenag.go.id','77.596.556.9.517.000',NULL,NULL,NULL,'2008-04-01',NULL,1,0,1),(41,'2021-07-17 16:19:46','Samsul Falak, S.S., M.Pd.','197706062003121002',14,218,'Jl. Pahlawan No. 02','Tegal','1977-06-06',1,14,50,2,9,'UNIVERSITAS NEGERI SEMARANG','','bdk_semarang@kemenag.go.id','49.565.417.0-517.000',NULL,NULL,NULL,'2005-06-01',NULL,1,0,1),(42,'2021-07-17 16:22:23','Drs. H. Bisri Mustofa, M.Pd.I.','196607061998031001',15,234,'Jl. Pahlawan No. 02','Jember','1966-07-06',1,12,50,3,9,'UNISMA','','bdk_semarang@kemenag.go.id','49.567.170.3-523.000',NULL,NULL,NULL,'1999-07-01',NULL,1,0,1),(43,'2021-07-17 16:24:42','Qowi Handiko, S.Pd.I.','198012142005011003',14,215,'Jl. Pahlawan No. 02','Kab. Semarang','1984-12-14',1,12,50,3,8,'','','bdk_semarang@kemenag.go.id','24.502.578.4-518.000',NULL,NULL,NULL,'2006-06-01',NULL,1,0,1),(44,'2021-07-17 16:25:04','Budy Riyantoko','',14,225,'Semarang 27','Semarang','1974-10-23',1,NULL,NULL,NULL,4,'SLTA','','','',NULL,NULL,NULL,'2021-07-17',NULL,2,0,1),(45,'2021-07-17 16:26:23','Maliki, M.Pd.I','197007052006041001',14,215,'Jl. Pahlawan No. 02','Kab. Semarang','1970-07-05',1,13,50,2,9,'UNIV WAHID HASYIM SEMARANG','','bdk_semarang@kemenag.go.id','49.567.099.4-505.000',NULL,NULL,NULL,'2006-04-01',NULL,1,0,1),(46,'2021-07-17 16:26:35','Aditya Roy Saputra','',14,225,'Semarang 22','Semarang','1990-08-05',1,NULL,NULL,NULL,4,'SLTA','','','',NULL,NULL,NULL,'2021-07-17',NULL,2,0,1),(47,'2021-07-17 16:27:51','Agus Haryono','',14,197,'Boyolali 12','Boyolali','2977-03-23',1,NULL,NULL,NULL,4,'SLTA','','','',NULL,NULL,NULL,'2021-07-17',NULL,2,0,1),(48,'2021-07-17 16:28:00','Nikmatul Afiyah, S.Sos., M.Si','197303112009012005',15,243,'Jl. Pahlawan No. 02','Nganjuk','1973-03-11',2,13,50,2,9,'UNIV. ANDALAS','','','',NULL,NULL,NULL,'2010-10-01',NULL,1,0,1),(49,'2021-07-17 16:29:03','Sriyanto','',14,206,'Klaten 13','Klaten','1980-03-04',1,NULL,NULL,NULL,4,'SLTA','','','',NULL,NULL,NULL,'2021-07-17',NULL,2,0,1),(50,'2021-07-17 16:30:13','Suparno','',14,225,'Semarang 45','Semarang','1973-05-16',1,NULL,NULL,NULL,4,'SLTA','','','',NULL,NULL,NULL,'2021-07-17',NULL,2,0,1),(51,'2021-07-17 16:31:11','Riskha Nur Fitriyah, S.Si., M.Pd','198405282008012016',14,215,'Jl. Pahlawan No. 02','Kab. Semarang','1984-05-28',2,12,50,2,9,'UNIVERSITAS NEGERI SEMARANG','','bdk_semarang@kemenag.go.id','67.331.514.9-505.000',NULL,NULL,NULL,'2009-11-01',NULL,1,0,1),(52,'2021-07-17 16:31:13','Suyono','',14,206,'Klaten 66','Klaten','1970-06-19',1,NULL,NULL,NULL,4,'SLTA','','','',NULL,NULL,NULL,'2021-07-17',NULL,2,0,1),(53,'2021-07-17 16:32:27','Panggih Karyanto','',14,196,'Blora','Blora','1992-01-20',1,NULL,NULL,NULL,8,'S1','','','',NULL,NULL,NULL,'2021-07-17',NULL,2,0,1),(54,'2021-07-17 16:32:40','Muhammad Miftakhul Falah, M.Pd., M.Si','198207132005011001',14,207,'Jl. Pahlawan No. 02','Kudus','1982-07-13',1,11,50,3,9,'ITS SURABAYA','','bdk_semarang@kemenag.go.id','78.233.792.7-506.000',NULL,NULL,NULL,'2006-10-01',NULL,1,0,1),(55,'2021-07-17 16:33:40','Mulyono','',14,197,'Boyolali','Boyolali','1981-03-18',1,NULL,NULL,NULL,4,'SLTA','','','',NULL,NULL,NULL,'2021-07-17',NULL,2,0,1),(56,'2021-07-17 16:34:27','Drs. H. Khoirul Anwar, M.Pd.','196805101994031003',14,220,'Jl. Pahlawan No. 02','Wonogiri','1968-05-10',1,13,21,7,9,'UMS','','bdk_semarang@kemenag.go.id','49.565.389.1-531.000',NULL,NULL,NULL,'1995-11-01',NULL,1,0,1),(57,'2021-07-17 16:34:31','Mahfud Amin','',14,197,'Boyolali','Boyolali','2979-04-24',1,NULL,NULL,NULL,4,'SLTA','','','',NULL,NULL,NULL,'2021-07-17',NULL,2,0,1),(58,'2021-07-17 16:36:11','Mas Rohim','',14,205,'Kenal 98','Kendal','1986-09-13',1,NULL,NULL,NULL,8,'S1','','','',NULL,NULL,NULL,'2021-07-17',NULL,2,0,1),(59,'2021-07-17 16:36:38','Dra. Hj. Ade Ima Ani Astuti','196805271994032002',14,225,'Jl. Pahlawan No. 02','Semarang','1968-05-27',2,12,31,18,8,'IAIN WS FAK TARBIYAH','','bdk_semarang@kemenag.go.id','49.565.389.1-531.000',NULL,NULL,NULL,'1995-11-01',NULL,1,0,1),(60,'2021-07-17 16:38:36','Hadi Muklas','',14,225,'Semarang Kota','Semarang','1990-01-31',1,NULL,NULL,NULL,4,'SLTA','','','',NULL,NULL,NULL,'2021-07-17',NULL,2,0,1),(61,'2021-07-17 16:38:38','dr. Hj. Elsi Cahya Huriyatiningsih','197108172005012003',16,270,'Jl. Pahlawan No. 02','Yogyakarta','1971-08-17',2,13,21,19,9,'Universitas YARSI','','bdk_semarang@kemenag.go.id','49.565.406.3-015.000',NULL,NULL,NULL,'2006-12-01',NULL,1,0,1),(62,'2021-07-17 16:39:45','Sucipto','',14,225,'Semarang 43','Semarang','1965-01-30',1,NULL,NULL,NULL,4,'SLTA','','','',NULL,NULL,NULL,'2021-07-17',NULL,2,0,1),(63,'2021-07-17 16:41:15','Hj. Sari Indarwati, S.E., MM','198006222002122001',14,206,'Jl. Pahlawan No. 02','Klaten','1980-06-22',2,13,21,20,9,'STIKUBANK','','bdk_semarang@kemenag.go.id','49.565.408.8-517.000',NULL,NULL,NULL,'2004-08-01',NULL,1,0,1),(64,'2021-07-17 16:41:41','Muhammad Agus Nurwahyudi','',14,214,'Rembang','Rembang','1967-12-19',1,NULL,NULL,NULL,8,'S1','','','',NULL,NULL,NULL,'2021-07-17',NULL,2,0,1),(65,'2021-07-17 16:44:47','Nuruz Zaman Amsa, S.Pd.I., M.S.I.','197809122003121002',14,197,'Jl. Pahlawan No. 02','Boyolali','1978-09-12',2,13,21,18,9,'IAIN WS','','bdk_semarang@kemenag.go.id','49.565.411.3-517.000',NULL,NULL,NULL,'2005-05-01',NULL,1,0,1),(66,'2021-07-17 16:45:30','Wahidin','196808022014111001',13,189,'Jakarta pus','Jakarta','1968-08-02',1,6,41,13,4,'SLTA','','','',NULL,NULL,NULL,'2017-09-01',NULL,1,0,1),(67,'2021-07-17 16:47:35','Ananda Citra Aulia, S.Kom.','197809172003122003',14,225,'Jl. Pahlawan No. 02','Semarang','1978-09-17',2,12,21,25,8,'STIMIK AKI','','bdk_semarang@kemenag.go.id','24.508.806.3-518.000',NULL,NULL,NULL,'2005-06-01',NULL,1,0,1),(68,'2021-07-17 16:49:23','Ulfah Cahyaningsih, S.E., M.Pd.','198006182003122003',16,269,'Jl. Pahlawan No. 02','Sleman','1980-06-18',2,13,31,8,9,'UNIVERSITAS NEGERI SEMARANG','','bdk_semarang@kemenag.go.id','24.657.647.4-517.000',NULL,NULL,NULL,'2005-06-01',NULL,1,0,1),(69,'2021-07-17 16:51:01','Grindulu Machya, S.Sos.I','197912082007011015',14,225,'Jl. Pahlawan No. 02','Semarang','1979-12-08',1,12,31,28,8,'IAIN WS','','bdk_semarang@kemenag.go.id','34.177.333.1-517.000',NULL,NULL,NULL,'2011-04-01',NULL,1,0,1),(70,'2021-07-17 16:52:16','Puryanto','198007232009011008',16,270,'Yogyakarta 43','Yogyakarta','1980-07-23',1,6,21,34,4,'SLTA','35.405.158.3-517.000','','',NULL,NULL,NULL,'2011-10-01',NULL,1,0,1),(71,'2021-07-17 16:53:12','Izzi Safir, S.E., M.Si.','197911272008011018',14,217,'Jl. Pahlawan No. 02','Sukoharjo','1979-11-27',1,11,21,10,9,'UNIVERSITAS SEBELAS MARET','','bdk_semarang@kemenag.go.id','67.331.512.3-532.000',NULL,NULL,NULL,'2009-11-01',NULL,1,0,1),(72,'2021-07-17 16:55:51','Eko Dwi Saputra','198003192009011008',14,225,'Semarang78','Semarang','1980-03-19',1,6,21,13,4,'SLTA','45.405.221.9-517.000','','',NULL,NULL,NULL,'2011-10-01',NULL,1,0,1),(73,'2021-07-17 16:59:01','Moch. Imam Rifa\'i','198209102009101001',14,201,'Grobogan','Grobogan','1982-09-10',1,7,21,5,4,'SLTA','','','',NULL,NULL,NULL,'2011-10-01',NULL,1,0,1),(74,'2021-07-17 17:16:47','Waichsan','197105102007101002',14,204,'Kebumen 09','Kebumen','1971-05-10',1,7,21,32,4,'SLTA','35.415.822.2-523.000','','',NULL,NULL,NULL,'2011-10-01',NULL,1,0,1),(75,'2021-07-17 17:24:48','Afiati Muthmainah, SE., S.Pd','198608132019012001',14,197,'boyolali 97','Boyolali','1986-08-13',2,9,21,23,8,'Universitas Muhammadiyah','','','',NULL,NULL,NULL,'2021-07-17',NULL,1,0,1),(76,'2021-07-17 17:27:44','Dwi Cahyani, SE','199301162019012001',14,213,'Purworejo 32','Purworejo','1993-01-16',2,9,21,27,8,'STIE RAJAWALI PURWOREJO','','','',NULL,NULL,NULL,'2021-07-17',NULL,1,0,1),(77,'2021-07-17 17:33:39','Fandy Akhmad, S.Sn','199607012019011002',14,224,'salatiga 56','Salatiga','1996-07-01',1,9,21,22,8,'UNIVERSITAS NEGERI SEMARANG','','','',NULL,NULL,NULL,'2021-07-17',NULL,1,0,1),(78,'2021-07-17 17:37:30','Nasyarudin Latif, S.Kom','199101212019011001',14,225,'Seamarang','Semarang','1991-01-21',1,9,21,16,8,'TEKNIK INFORMATIKA UNDIP','','','',NULL,NULL,NULL,'2021-07-17',NULL,1,0,1),(79,'2021-07-17 17:39:10','Luluk Masruroh, S.Si., M.Pd','198410032008012004',13,189,'Jl. Pahlawan No. 02','Jakarta','1984-10-03',2,12,31,9,9,'UNNES','','bdk_semarang@kemenag.go.id','67.331.513.1-505.000',NULL,NULL,NULL,'2009-11-01',NULL,1,0,1),(80,'2021-07-17 17:39:44','Chilman Taris Azinuddin, S. Hum','199403072019011001',14,225,'semarang','Semarang','1994-03-07',1,9,21,15,8,'ILMU PERPUSTAKAAN UNDIP','41.183.589.5-529.000','','',NULL,NULL,NULL,'2021-07-17',NULL,1,0,1),(81,'2021-07-17 17:41:58','Feri Kurniawati','198102182009012006',14,199,'Jl. Pahlawan No. 02','Cilacap','1981-02-18',2,1,21,10,9,'UNDIP','','bdk_semarang@kemenag.go.id','88.362.409.0-517.000','2021-08-03',NULL,NULL,'2011-04-01',NULL,1,0,1),(82,'2021-07-17 17:42:39','Ummul Hidayah, S.Sos','198006272014022001',14,193,'Banjarnegara','Banjarnegara','1980-06-27',2,10,31,14,8,'SOSIOLOGI UNSOED PURWOKERTO','','','',NULL,NULL,NULL,'2015-04-01',NULL,1,0,1),(83,'2021-07-17 17:45:22','Anang Aji Guritna, S.IP','198512092005011001',16,269,'Sleman 55','Sleman','1985-12-09',1,10,21,26,8,'ADM NEGARA UNIVERSITAS WIDYA MATARAM','','','',NULL,NULL,NULL,'2006-07-01',NULL,1,0,1),(84,'2021-07-17 17:45:34','Ida Fitri Dianingrum, S.Pd.I., MA','198107132009012010',14,201,'Jl. Pahlawan No. 02','Grobogan','1981-07-13',2,11,41,29,9,'UIN SUNAN KALIJAGA YOGYAKARTA','','bdk_semarang@kemenag.go.id','88.362.408.2-517.000',NULL,NULL,NULL,'2011-04-01',NULL,1,0,1),(85,'2021-07-17 17:47:57','Muh. Syahrul Alim, S.Pd.I','197510122007011025',14,197,'Boyolali','Boyolali','1975-10-12',1,10,41,6,8,'STAI Darul Ma\'arif Jakarta','89.194.242.7-526.000','','',NULL,NULL,NULL,'2011-04-01',NULL,1,0,1),(86,'2021-07-17 17:48:03','Erma Kurniasari, S.Pd.','198303232009012014',14,206,'Jl. Pahlawan No. 02','Klaten','1983-03-23',2,11,21,24,9,'UNIVERSITAS SEBELAS MARET SURAKARTA','','bdk_semarang@kemenag.go.id','88.362.407.4-517.000',NULL,NULL,NULL,'2011-04-01',NULL,1,0,1),(87,'2021-07-17 17:50:44','Sri Wahyunitaningsih, S.H.','196811182005012001',15,245,'Pacitan 99','Pacitan','1968-11-18',2,10,21,12,8,'HUKUM UNDARIS','34.140.829.2-517.000','','',NULL,NULL,NULL,'2006-10-01',NULL,1,0,1),(88,'2021-07-17 17:50:47','Rukhana Fitriati, S.Sos.','198307062009012006',14,204,'Jl. Pahlawan No. 02','Kebumen','1983-07-06',2,11,21,8,8,'UNSOED','','bdk_semarang@kemenag.go.id','88.362.406.6-517.000',NULL,NULL,NULL,'2011-04-01',NULL,1,0,1),(89,'2021-07-17 17:52:42','Sakur','196610081993121001',14,197,'Jl. Pahlawan No. 02','Boyolali','1966-10-08',1,10,41,21,4,'','','bdk_semarang@kemenag.go.id','67.331.499.3-518.000',NULL,NULL,NULL,'1995-03-01',NULL,1,0,1),(90,'2021-07-17 17:55:26','Ghoni Nurrozak','197212122005011002',14,194,'Purwokerto','Purwokerto','1972-12-12',1,8,21,30,4,'SLTA','77.590.180.4-517.000','','',NULL,NULL,NULL,'2004-08-01',NULL,1,0,1),(91,'2021-07-17 17:55:28','H. Ndakwan, S.H.','197008132003121001',14,225,'Jl. Pahlawan No. 02','Semarang','1970-08-13',1,11,21,33,8,'UNDARIS','','bdk_semarang@kemenag.go.id','67.331.502.4-517.000',NULL,NULL,NULL,'2005-05-01',NULL,1,0,1),(92,'2021-07-17 17:57:31','Ana Fatkhur Rohmah, S.H.I.','197707032009122002',14,209,'Jl. Pahlawan No. 02','Pati','1977-07-03',1,11,31,29,8,'IAIN WALISONGO SEMARANG','','bdk_semarang@kemenag.go.id','34.148.125.7-507.000',NULL,NULL,NULL,'2011-08-01',NULL,1,0,1),(93,'2021-07-17 17:58:30','Imron, S.Pd.I','196908172002121001',14,197,'Boyolali 77','Boyolali','1969-08-17',1,10,21,31,8,'TARBIYAH FAK AGAMA ISLAM UNDARIS','67.331.503.2-517.000','','',NULL,NULL,NULL,'2021-07-17',NULL,1,0,1),(94,'2021-07-17 17:58:58','Ina Tofani, S.E.','198002242009122003',14,222,'Jl. Pahlawan No. 02','Magelang','1984-02-24',2,11,41,8,8,'','','bdk_semarang@kemenag.go.id','34.917.184.3-503.000',NULL,NULL,NULL,'2011-08-01',NULL,1,0,1),(95,'2021-07-17 18:00:18','Septiana Donna Ardhilla, S.E.','198605192009122009',21,337,'Jl. Pahlawan No. 02','Banjarmasin','0986-05-19',2,11,21,4,8,'','','bdk_semarang@kemenag.go.id','35.535.105.7-517.000',NULL,NULL,NULL,'2011-12-01',NULL,1,0,1),(96,'2021-07-17 18:01:48','Muklasin, S.H.','197410282005011001',14,204,'Jl. Pahlawan No. 02','Kebumen','1974-10-28',1,11,21,17,8,'UNDARIS','','bdk_semarang@kemenag.go.id','67.331.504.0-505.000',NULL,NULL,NULL,'2006-06-01',NULL,1,0,1),(97,'2021-07-17 18:03:29','Muhammad Yusuf, S.H.I.','197709132007011009',14,226,'Surakarta','Surakarta','1977-09-13',1,10,21,6,8,'STAIN SURAKARTA','67.331.500.8-527.000','','',NULL,NULL,NULL,'2011-04-01',NULL,1,0,1);
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_pegawai_BEFORE_INSERT` BEFORE INSERT ON `tb_pegawai` FOR EACH ROW
BEGIN
	set new.tanggal_input=now();
END */;;
DELIMITER ;

--
-- Table structure for table `tb_pegawai_lampiran`
--

CREATE TABLE `tb_pegawai_lampiran` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `idpegawai` int(11) DEFAULT NULL,
  `nama` varchar(245) DEFAULT NULL,
  `jumlah_dokumen` int(11) DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  KEY `fx_idpegawai_idlampiran_idx` (`idpegawai`),
  CONSTRAINT `fx_idpegawai_idlampiran` FOREIGN KEY (`idpegawai`) REFERENCES `tb_pegawai` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_pegawai_lampiran`
--

DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_pegawai_lampiran_AFTER_INSERT` AFTER INSERT ON `tb_pegawai_lampiran` FOR EACH ROW
BEGIN
	update tb_pegawai set jumlah_lampiran=jumlah_lampiran+1 where id=new.idpegawai;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_pegawai_lampiran_AFTER_DELETE` AFTER DELETE ON `tb_pegawai_lampiran` FOR EACH ROW
BEGIN
	update tb_pegawai set jumlah_lampiran=jumlah_lampiran-1 where id=old.idpegawai;
END */;;
DELIMITER ;

--
-- Table structure for table `tb_pegawai_lampiran_dokumen`
--

CREATE TABLE `tb_pegawai_lampiran_dokumen` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tanggal` datetime DEFAULT NULL,
  `idlampiran` int(11) DEFAULT NULL,
  `nama` varchar(245) DEFAULT NULL,
  `iddokumen` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  KEY `fx_dokumenpegawai_idlampiran_idx` (`idlampiran`),
  CONSTRAINT `fx_dokumenpegawai_idlampiran` FOREIGN KEY (`idlampiran`) REFERENCES `tb_pegawai_lampiran` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_pegawai_lampiran_dokumen`
--

DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_pegawai_lampiran_dokumen_BEFORE_INSERT` BEFORE INSERT ON `tb_pegawai_lampiran_dokumen` FOR EACH ROW
BEGIN
	set new.tanggal=now();
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_pegawai_lampiran_dokumen_AFTER_INSERT` AFTER INSERT ON `tb_pegawai_lampiran_dokumen` FOR EACH ROW
BEGIN
	update tb_pegawai_lampiran set jumlah_dokumen=jumlah_dokumen+1 where id=new.idlampiran;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_pegawai_lampiran_dokumen_AFTER_DELETE` AFTER DELETE ON `tb_pegawai_lampiran_dokumen` FOR EACH ROW
BEGIN
	update tb_pegawai_lampiran set jumlah_dokumen=jumlah_dokumen-1 where id=old.idlampiran;
END */;;
DELIMITER ;

--
-- Table structure for table `tb_pegawai_skfung`
--

CREATE TABLE `tb_pegawai_skfung` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tanggal_input` datetime DEFAULT NULL,
  `tanggal_sk` date DEFAULT NULL,
  `tahun` int(4) DEFAULT NULL,
  `iduser` int(11) DEFAULT NULL,
  `nomor` varchar(145) DEFAULT NULL,
  `idpegawai` int(11) DEFAULT NULL,
  `idjabatan_lama` int(11) DEFAULT NULL,
  `idjabatan` int(11) DEFAULT NULL,
  `iddokumen` int(11) DEFAULT NULL,
  `jumlah_dokumen` int(11) DEFAULT 0,
  `keterangan` varchar(245) DEFAULT NULL,
  `status` int(11) DEFAULT 15,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  KEY `index3` (`idpegawai`),
  KEY `index4` (`tanggal_sk`),
  KEY `index5` (`nomor`),
  CONSTRAINT `fx_skfungsional_idpegawai` FOREIGN KEY (`idpegawai`) REFERENCES `tb_pegawai` (`id`) ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_pegawai_skfung`
--


--
-- Table structure for table `tb_pegawai_skfung_dokumen`
--

CREATE TABLE `tb_pegawai_skfung_dokumen` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tanggal` datetime DEFAULT NULL,
  `nama` varchar(245) DEFAULT NULL,
  `idskfung` int(11) DEFAULT NULL,
  `iddokumen` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  KEY `fx_dokumenskfung_idskfung_idx` (`idskfung`),
  KEY `index4` (`iddokumen`),
  CONSTRAINT `fx_dokumenskfung_idskfung` FOREIGN KEY (`idskfung`) REFERENCES `tb_pegawai_skfung` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_pegawai_skfung_dokumen`
--

DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_pegawai_skfung_dokumen_BEFORE_INSERT` BEFORE INSERT ON `tb_pegawai_skfung_dokumen` FOR EACH ROW
BEGIN
	set new.tanggal=now();
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_pegawai_skfung_dokumen_AFTER_INSERT` AFTER INSERT ON `tb_pegawai_skfung_dokumen` FOR EACH ROW
BEGIN
	update tb_pegawai_skfung set jumlah_dokumen=jumlah_dokumen+1 where id=new.idskfung;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_pegawai_skfung_dokumen_AFTER_DELETE` AFTER DELETE ON `tb_pegawai_skfung_dokumen` FOR EACH ROW
BEGIN
	update tb_pegawai_skfung set jumlah_dokumen=jumlah_dokumen-1 where id=old.idskfung;
END */;;
DELIMITER ;

--
-- Table structure for table `tb_pegawai_skgol`
--

CREATE TABLE `tb_pegawai_skgol` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tanggal_input` datetime DEFAULT NULL,
  `tanggal_sk` date DEFAULT NULL,
  `tahun` int(4) DEFAULT NULL,
  `iduser` int(11) DEFAULT NULL,
  `nomor` varchar(145) DEFAULT NULL,
  `idpegawai` int(11) DEFAULT NULL,
  `idgolongan_lama` int(11) DEFAULT NULL,
  `idgolongan` int(11) DEFAULT NULL,
  `iddokumen` int(11) DEFAULT NULL,
  `jumlah_dokumen` int(11) DEFAULT 0,
  `keterangan` varchar(245) DEFAULT NULL,
  `status` int(11) DEFAULT 15,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  KEY `index3` (`idpegawai`),
  KEY `index4` (`tanggal_sk`),
  KEY `index5` (`nomor`),
  CONSTRAINT `fx_skgolongan_idpegawai` FOREIGN KEY (`idpegawai`) REFERENCES `tb_pegawai` (`id`) ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_pegawai_skgol`
--

INSERT INTO `tb_pegawai_skgol` VALUES (4,'2021-08-03 14:35:21','2021-08-03',2021,1,'Bdk.06',81,11,1,223,1,'',16);
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_pegawai_skgol_BEFORE_INSERT` BEFORE INSERT ON `tb_pegawai_skgol` FOR EACH ROW
BEGIN
	set new.tanggal_input=now();
END */;;
DELIMITER ;

--
-- Table structure for table `tb_pegawai_skgol_dokumen`
--

CREATE TABLE `tb_pegawai_skgol_dokumen` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tanggal` datetime DEFAULT NULL,
  `nama` varchar(245) DEFAULT NULL,
  `idskgol` int(11) DEFAULT NULL,
  `iddokumen` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  KEY `fx_dokumenskgol_idskgol_idx` (`idskgol`),
  KEY `index4` (`iddokumen`),
  CONSTRAINT `fx_dokumenskgol_idskgol` FOREIGN KEY (`idskgol`) REFERENCES `tb_pegawai_skgol` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_pegawai_skgol_dokumen`
--

INSERT INTO `tb_pegawai_skgol_dokumen` VALUES (13,'2021-10-18 15:37:47','tes',4,343);
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_pegawai_skgol_dokumen_BEFORE_INSERT` BEFORE INSERT ON `tb_pegawai_skgol_dokumen` FOR EACH ROW
BEGIN
	set new.tanggal=now();
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_pegawai_skgol_dokumen_AFTER_INSERT` AFTER INSERT ON `tb_pegawai_skgol_dokumen` FOR EACH ROW
BEGIN
	update tb_pegawai_skgol set jumlah_dokumen=jumlah_dokumen+1 where id=new.idskgol;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_pegawai_skgol_dokumen_AFTER_DELETE` AFTER DELETE ON `tb_pegawai_skgol_dokumen` FOR EACH ROW
BEGIN
	update tb_pegawai_skgol set jumlah_dokumen=jumlah_dokumen-1 where id=old.idskgol;
END */;;
DELIMITER ;

--
-- Table structure for table `tb_pegawai_skstruk`
--

CREATE TABLE `tb_pegawai_skstruk` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tanggal_input` datetime DEFAULT NULL,
  `tanggal_sk` date DEFAULT NULL,
  `tahun` int(4) DEFAULT NULL,
  `iduser` int(11) DEFAULT NULL,
  `nomor` varchar(145) DEFAULT NULL,
  `idpegawai` int(11) DEFAULT NULL,
  `idjabatan_lama` int(11) DEFAULT NULL,
  `idjabatan` int(11) DEFAULT NULL,
  `iddokumen` int(11) DEFAULT NULL,
  `jumlah_dokumen` int(11) DEFAULT 0,
  `keterangan` varchar(245) DEFAULT NULL,
  `status` int(11) DEFAULT 15,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  KEY `index3` (`idpegawai`),
  KEY `index4` (`tanggal_sk`),
  KEY `index5` (`nomor`),
  CONSTRAINT `fx_skstruktural_idpegawai` FOREIGN KEY (`idpegawai`) REFERENCES `tb_pegawai` (`id`) ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_pegawai_skstruk`
--

DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_pegawai_skstruk_BEFORE_INSERT` BEFORE INSERT ON `tb_pegawai_skstruk` FOR EACH ROW
BEGIN
	set new.tanggal_input=now();
END */;;
DELIMITER ;

--
-- Table structure for table `tb_pegawai_skstruk_dokumen`
--

CREATE TABLE `tb_pegawai_skstruk_dokumen` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tanggal` datetime DEFAULT NULL,
  `nama` varchar(245) DEFAULT NULL,
  `idskstruk` int(11) DEFAULT NULL,
  `iddokumen` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  KEY `fx_dokumenskgol_idskstruk_idx` (`idskstruk`),
  KEY `index4` (`iddokumen`),
  CONSTRAINT `fx_dokumenskgol_idskstruk` FOREIGN KEY (`idskstruk`) REFERENCES `tb_pegawai_skstruk` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_pegawai_skstruk_dokumen`
--

DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_pegawai_skstruk_dokumen_BEFORE_INSERT` BEFORE INSERT ON `tb_pegawai_skstruk_dokumen` FOR EACH ROW
BEGIN
	set new.tanggal=now();
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_pegawai_skstruk_dokumen_AFTER_INSERT` AFTER INSERT ON `tb_pegawai_skstruk_dokumen` FOR EACH ROW
BEGIN
	update tb_pegawai_skstruk set jumlah_dokumen=jumlah_dokumen+1 where id=new.idskstruk;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_pegawai_skstruk_dokumen_AFTER_DELETE` AFTER DELETE ON `tb_pegawai_skstruk_dokumen` FOR EACH ROW
BEGIN
	update tb_pegawai_skstruk set jumlah_dokumen=jumlah_dokumen-1 where id=old.idskstruk;
END */;;
DELIMITER ;

--
-- Table structure for table `tb_pengajuan_pkl`
--

CREATE TABLE `tb_pengajuan_pkl` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tanggal_update` datetime DEFAULT NULL,
  `tanggal_surat` date DEFAULT NULL,
  `iduser` int(11) DEFAULT NULL,
  `idsurat` int(11) DEFAULT 0,
  `nomor` varchar(145) DEFAULT NULL,
  `nomor_surat_pengajuan` varchar(145) DEFAULT NULL,
  `nama_sekolah` varchar(245) DEFAULT NULL,
  `idpropinsi` int(11) DEFAULT 0,
  `idkota` int(11) DEFAULT 0,
  `alamat_sekolah` varchar(245) DEFAULT NULL,
  `jumlah_peserta` int(11) DEFAULT 0,
  `jumlah_dokumen` int(11) DEFAULT 0,
  `keterangan` varchar(245) DEFAULT NULL,
  `status_balasan` int(11) DEFAULT 0,
  `status` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_pengajuan_pkl`
--

INSERT INTO `tb_pengajuan_pkl` VALUES (10,'2021-10-07 10:32:30','2021-10-07',76,550,'1','2345678910','io',14,207,'undaan',1,1,'',0,61),(13,'2021-10-07 10:34:45','2021-10-07',76,553,'2','123','har',1,9,'aceh',1,1,'',0,61),(16,'2021-10-07 10:38:37','2021-10-07',76,556,'3','123456789','kang nan',3,57,'selatan',1,1,'',0,61),(19,'2021-10-07 10:43:51','2021-10-07',76,559,'4','54321','no',14,202,'grogol',1,1,'',0,61);
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_pengajuan_pkl_BEFORE_INSERT` BEFORE INSERT ON `tb_pengajuan_pkl` FOR EACH ROW
BEGIN
	set new.tanggal_update=now();
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_pengajuan_pkl_BEFORE_UPDATE` BEFORE UPDATE ON `tb_pengajuan_pkl` FOR EACH ROW
BEGIN
	set new.tanggal_update=now();
END */;;
DELIMITER ;

--
-- Table structure for table `tb_pengajuan_pkl_dokumen`
--

CREATE TABLE `tb_pengajuan_pkl_dokumen` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `idsuratpkl` int(11) DEFAULT NULL,
  `iddokumen` int(11) DEFAULT NULL,
  `nama` varchar(245) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  KEY `fx_iddokumen_idsuratpkl_idx` (`idsuratpkl`),
  CONSTRAINT `fx_iddokumen_idsuratpkl` FOREIGN KEY (`idsuratpkl`) REFERENCES `tb_pengajuan_pkl` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=38 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_pengajuan_pkl_dokumen`
--

INSERT INTO `tb_pengajuan_pkl_dokumen` VALUES (28,10,316,'3'),(31,13,319,'4'),(34,16,322,'1'),(37,19,325,'2');
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_pengajuan_pkl_dokumen_AFTER_INSERT` AFTER INSERT ON `tb_pengajuan_pkl_dokumen` FOR EACH ROW
BEGIN
	update tb_pengajuan_pkl set jumlah_dokumen=jumlah_dokumen+1 where id=new.idsuratpkl;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_pengajuan_pkl_dokumen_AFTER_DELETE` AFTER DELETE ON `tb_pengajuan_pkl_dokumen` FOR EACH ROW
BEGIN
	update tb_pengajuan_pkl set jumlah_dokumen=jumlah_dokumen-1 where id=old.idsuratpkl;
END */;;
DELIMITER ;

--
-- Table structure for table `tb_pengajuan_pkl_peserta`
--

CREATE TABLE `tb_pengajuan_pkl_peserta` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `idsuratpkl` int(11) DEFAULT NULL,
  `nama` varchar(245) DEFAULT NULL,
  `nopelajar` varchar(245) DEFAULT NULL,
  `alamat` varchar(245) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  KEY `fx_idsuratpkl_idpeserta_idx` (`idsuratpkl`),
  CONSTRAINT `fx_idsuratpkl_idpeserta` FOREIGN KEY (`idsuratpkl`) REFERENCES `tb_pengajuan_pkl` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=62 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_pengajuan_pkl_peserta`
--

INSERT INTO `tb_pengajuan_pkl_peserta` VALUES (52,10,'mas har','1234567','jl.mawar'),(55,13,'haryanti','23456','jl. hasan 17'),(58,16,'haryantu','1234567','jl.raya 27'),(61,19,'haryante','6543211','kudus');
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_pengajuan_pkl_peserta_AFTER_INSERT` AFTER INSERT ON `tb_pengajuan_pkl_peserta` FOR EACH ROW
BEGIN
	update tb_pengajuan_pkl set jumlah_peserta=jumlah_peserta+1 where id=new.idsuratpkl;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_pengajuan_pkl_peserta_AFTER_DELETE` AFTER DELETE ON `tb_pengajuan_pkl_peserta` FOR EACH ROW
BEGIN
	update tb_pengajuan_pkl set jumlah_peserta=jumlah_peserta-1 where id=old.idsuratpkl;
END */;;
DELIMITER ;

--
-- Table structure for table `tb_pesan`
--

CREATE TABLE `tb_pesan` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tanggal` datetime NOT NULL,
  `iduser` int(11) DEFAULT NULL,
  `judul` varchar(145) DEFAULT NULL,
  `pesan` mediumtext DEFAULT NULL,
  `status` int(11) DEFAULT 1,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_pesan`
--

DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_pesan_BEFORE_INSERT` BEFORE INSERT ON `tb_pesan` FOR EACH ROW
BEGIN
	SET NEW.tanggal = NOW();
END */;;
DELIMITER ;

--
-- Table structure for table `tb_pesan_status`
--

CREATE TABLE `tb_pesan_status` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `status` varchar(45) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_pesan_status`
--

INSERT INTO `tb_pesan_status` VALUES (1,'BARU'),(2,'DIBACA');

--
-- Table structure for table `tb_pesankeluar`
--

CREATE TABLE `tb_pesankeluar` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tanggal` datetime DEFAULT NULL,
  `idpengirim` int(11) DEFAULT NULL,
  `idpenerima` int(11) DEFAULT NULL,
  `judul` varchar(145) DEFAULT NULL,
  `pesan` mediumtext DEFAULT NULL,
  `status` int(11) DEFAULT 1,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_pesankeluar`
--

INSERT INTO `tb_pesankeluar` VALUES (10,'2018-05-30 14:05:25',129,7,'Balasan','Untuk puasa bos',1),(11,'2018-05-30 19:13:52',131,130,'Tes','Selamat Sore',1),(12,'2018-06-02 13:07:27',135,146,'waung','Lek Ndang DIbarke lek',2),(17,'2018-06-23 21:14:14',124,147,'tes','demo',1),(18,'2018-06-24 14:44:22',166,174,'tetets','jafksfaskfskl',1),(19,'2018-06-24 15:11:25',7,150,'tes pesan','Ok',1);
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_pesankeluar_AFTER_INSERT` AFTER INSERT ON `tb_pesankeluar` FOR EACH ROW
BEGIN
	insert into tb_pesan (idpesan,idpengirim,idpenerima,judul,pesan) values (new.id,new.idpengirim,new.idpenerima,new.judul,new.pesan);
END */;;
DELIMITER ;

--
-- Table structure for table `tb_plugin_cetak_template`
--

CREATE TABLE `tb_plugin_cetak_template` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `idplugin` int(11) DEFAULT NULL,
  `idtemplate` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  UNIQUE KEY `index3` (`idplugin`,`idtemplate`),
  KEY `fx_idplugintpl_idtemplate_idx` (`idtemplate`),
  CONSTRAINT `fx_idplugintpl_idplugin` FOREIGN KEY (`idplugin`) REFERENCES `tb_plugin_cetak` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `fx_idplugintpl_idtemplate` FOREIGN KEY (`idtemplate`) REFERENCES `tb_master_template_cetak` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_plugin_cetak_template`
--

INSERT INTO `tb_plugin_cetak_template` VALUES (1,1,1);
DELIMITER ;;;
DELIMITER ;
DELIMITER ;;;
DELIMITER ;

--
-- Table structure for table `tb_popup`
--

CREATE TABLE `tb_popup` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `nama` varchar(245) DEFAULT NULL,
  `idgambar` int(11) DEFAULT NULL,
  `tautan` varchar(245) DEFAULT NULL,
  `status` int(1) DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_popup`
--

INSERT INTO `tb_popup` VALUES (2,'Ajakan Masker Presiden',26586,'https://bbtppi.kemenperin.go.id/',0),(3,'wbk_popup',26588,'',0),(4,'maklumat_wbbk',26683,'',1);

--
-- Table structure for table `tb_propinsi`
--

CREATE TABLE `tb_propinsi` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `kode` varchar(45) DEFAULT NULL,
  `propinsi` varchar(145) DEFAULT NULL,
  `lokasi` varchar(145) DEFAULT NULL,
  `status` int(11) DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  UNIQUE KEY `propinsi_UNIQUE` (`propinsi`),
  UNIQUE KEY `kode_UNIQUE` (`kode`)
) ENGINE=InnoDB AUTO_INCREMENT=92 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_propinsi`
--

INSERT INTO `tb_propinsi` VALUES (1,'11','Aceh','5.465354433844328,95.35790232539057',1),(2,'12','Sumatera Utara','3.582020714293936,98.67397097468256',1),(3,'17','Bengkulu','-3.797047008027932,102.27345255732416',1),(4,'15','Jambi','-1.6068163099241963,103.62374094843744',1),(5,'14','Riau','0.49753525592724385,101.45325449824213',1),(6,'13','Sumatera Barat','-0.9524382746569277,100.41599062800287',1),(7,'16','Sumatera Selatan','-2.9817177883544335,104.76477412104487',1),(8,'18','Lampung','-5.401992055792613,105.2692869079101',1),(9,'19','Kepulauan Bangka Belitung','-2.13439187763468,106.115577496289',1),(10,'21','Kepulauan Riau','0.9172143973554191,104.46608332514643',1),(11,'36','Banten','-6.1169344520173805,106.15265635371088',1),(12,'32','Jawa Barat','-6.913068439514385,107.62276438593744',1),(13,'31','DKI Jakarta','-6.209095839597512,106.85921458124994',1),(14,'33','Jawa Tengah','-7.0112163070088,110.44625071406244',1),(15,'35','Jawa Timur','-7.25649491357007,112.75887278437494',1),(16,'34','Daerah Istimewa Yogyakarta','-7.794610818245434,110.36891726374506',1),(17,'51','Bali','-8.670906528653406,115.20813731074213',1),(18,'52','Nusa Tenggara Barat','-8.586726234890712,116.1014631164062',1),(19,'53','Nusa Tenggara Timur','-10.178701221556695,123.6161115539062',1),(20,'61','Kalimantan Barat','-0.05246153557469212,109.38057688593744',1),(21,'63','Kalimantan Selatan','-3.3185650612619075,114.60212973475336',1),(22,'62','Kalimantan Tengah','-2.214585776327842,113.92050532221674',1),(23,'64','Kalimantan Timur','-0.4958566897246766,117.14430598139643',1),(24,'75','Gorontalo','0.5407921460531258,123.06404856562494',1),(25,'73','Sulawesi Selatan','-5.154138632987783,119.43856028437494',1),(26,'74','Sulawesi Tenggara','-3.9982824946734064,122.5178220641601',1),(27,'72','Sulawesi Tengah','-0.9028346401826619,119.8756101500976',1),(28,'71','Sulawesi Utara','1.4580011950442917,124.84383372187494',1),(29,'76','Sulawesi Barat','-2.6881935042335146,118.88263491511225',1),(30,'81','Maluku','-3.6582955009406595,128.1922605407226',1),(31,'82','Maluku Utara','0.7368600705553957,127.56655482172846',1),(32,'91','Papua','-2.591822214082571,140.67118433833002',1),(33,'92','Papua Barat','-0.8631855719345523,134.06325129389643',1),(34,'65','Kalimantan Utara','2.842599436166586,117.36476210474848',1),(88,'101','Luar Negeri','-76.31887054806805,21.748130596875285',1);

--
-- Table structure for table `tb_setting`
--

CREATE TABLE `tb_setting` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `setting` mediumtext DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=16 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_setting`
--

INSERT INTO `tb_setting` VALUES (1,'60&10&1&1&1'),(2,'VTg6DjIdnL3hZUXJcRHbzYCa1BMWxsE0kSAl4N7w8GKvQpr5q9emFPotu2fOiy3ck[BLOB]TnWM'),(3,'{\"nama\":\"BDK Semarang\",\"alamat\":\"Jl. Temugiring, Banyumanik, Kec. Banyumanik, Kota Semarang, Jawa Tengah 50264\",\"lokasi\":\"-6.7100228,111.0349927\",\"email\":\"bdk_semarang@kemenag.go.id\",\"telp\":\"(024) 7472551\",\"hp\":\"08112500240\",\"fax\":\"(024) 7472551\",\"wa\":\"-\",\"idlogo\":\"149\",\"header\":\"KEMENTERIAN AGAMA RI\",\"header2\":\"E-OFFICE BDK SEMARANG\",\"idheaderhalaman\":\"190\",\"deskripsi\":\"Menuju Zona Integritas WBK WBBM\"}'),(15,'{\"batas\":\"\\/\",\"reset\":\"bulan\",\"dataurutan\":[{\"jenis\":\"kode\",\"custom\":\"\"},{\"jenis\":\"nourut\",\"custom\":\"\"}]}'),(11,'{\"email\":\"tesnotice@kuduscyber.id\",\"host\":\"mail.kuduscyber.id\",\"port\":\"465\",\"password\":\"@rahasia#\"}');

--
-- Table structure for table `tb_surat_balasan`
--

CREATE TABLE `tb_surat_balasan` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tanggal_input` datetime DEFAULT NULL,
  `tanggal_surat` date DEFAULT NULL,
  `nomor` int(11) DEFAULT NULL,
  `nomor_panjang` varchar(145) DEFAULT NULL,
  `idsurat` int(11) DEFAULT NULL,
  `iduser` int(11) DEFAULT NULL,
  `sifat` varchar(45) DEFAULT NULL,
  `lampiran` varchar(45) DEFAULT NULL,
  `hal` varchar(45) DEFAULT NULL,
  `kepada` varchar(245) DEFAULT NULL,
  `ditempat` varchar(245) DEFAULT NULL,
  `catatan_balasan` int(11) DEFAULT 0,
  `keterangan` varchar(245) DEFAULT NULL,
  `status` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  KEY `index3` (`idsurat`),
  KEY `index4` (`nomor`),
  KEY `index5` (`tanggal_surat`)
) ENGINE=InnoDB AUTO_INCREMENT=39 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_surat_balasan`
--


--
-- Table structure for table `tb_surat_keluar`
--

CREATE TABLE `tb_surat_keluar` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tanggal_input` datetime DEFAULT NULL,
  `tanggal_surat` date DEFAULT NULL,
  `idkategori` int(11) DEFAULT NULL,
  `idjenissurat` int(11) DEFAULT NULL,
  `idkategorijenissurat` int(2) DEFAULT 1,
  `idsurat` int(11) DEFAULT NULL,
  `iduser` int(11) DEFAULT NULL,
  `nomor` varchar(145) DEFAULT NULL,
  `keperluan` varchar(245) DEFAULT NULL,
  `tujuan` varchar(145) DEFAULT NULL,
  `alamat_tujuan` varchar(245) DEFAULT NULL,
  `keterangan` varchar(245) DEFAULT NULL,
  `jumlah_dokumen` int(11) DEFAULT 0,
  `balasan` int(1) DEFAULT 0,
  `idsuratbalasan` int(11) DEFAULT 0,
  `status` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  KEY `index3` (`idsurat`),
  KEY `index4` (`nomor`),
  KEY `index5` (`tanggal_surat`)
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_surat_keluar`
--

INSERT INTO `tb_surat_keluar` VALUES (10,'2021-10-07 10:22:15','2021-10-07',2,14,4,547,76,'0987654321','test','staf','demak','',1,0,0,51),(13,'2021-10-07 14:32:47','2021-10-07',2,14,4,598,76,'123456','liburan','har','kudus','',1,0,0,51);
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_surat_keluar_BEFORE_INSERT` BEFORE INSERT ON `tb_surat_keluar` FOR EACH ROW
BEGIN
	set new.tanggal_input=now();
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_surat_keluar_BEFORE_UPDATE` BEFORE UPDATE ON `tb_surat_keluar` FOR EACH ROW
BEGIN
	set new.tanggal_input=now();
END */;;
DELIMITER ;

--
-- Table structure for table `tb_surat_keluar_dokumen`
--

CREATE TABLE `tb_surat_keluar_dokumen` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `idsuratkeluar` int(11) DEFAULT NULL,
  `iddokumen` int(11) DEFAULT NULL,
  `nama` varchar(245) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  KEY `fx_iddokumenskl_idsuratkeluar_idx` (`idsuratkeluar`),
  CONSTRAINT `fx_iddokumenskl_idsuratkeluar` FOREIGN KEY (`idsuratkeluar`) REFERENCES `tb_surat_keluar` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_surat_keluar_dokumen`
--

INSERT INTO `tb_surat_keluar_dokumen` VALUES (16,10,313,'2'),(19,13,340,'1');
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_surat_keluar_dokumen_AFTER_INSERT` AFTER INSERT ON `tb_surat_keluar_dokumen` FOR EACH ROW
BEGIN
	update tb_surat_keluar set jumlah_dokumen=jumlah_dokumen+1 where id=new.idsuratkeluar;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_surat_keluar_dokumen_AFTER_DELETE` AFTER DELETE ON `tb_surat_keluar_dokumen` FOR EACH ROW
BEGIN
	update tb_surat_keluar set jumlah_dokumen=jumlah_dokumen-1 where id=old.idsuratkeluar;
END */;;
DELIMITER ;

--
-- Table structure for table `tb_surat_masuk`
--

CREATE TABLE `tb_surat_masuk` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tanggal_input` datetime DEFAULT NULL,
  `tanggal_surat` date DEFAULT NULL,
  `idkategori` int(11) DEFAULT NULL,
  `idjenissurat` int(11) DEFAULT NULL,
  `idkategorijenissurat` int(2) DEFAULT 1,
  `idsurat` int(11) DEFAULT NULL,
  `iduser` int(11) DEFAULT NULL,
  `nomor` varchar(145) DEFAULT NULL,
  `tanggal_terima` date DEFAULT NULL,
  `pengirim` varchar(245) DEFAULT NULL,
  `alamat_pengirim` varchar(245) DEFAULT NULL,
  `keperluan` varchar(245) DEFAULT NULL,
  `tujuan` varchar(145) DEFAULT NULL,
  `keterangan` varchar(245) DEFAULT NULL,
  `jumlah_dokumen` int(11) DEFAULT 0,
  `status` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  KEY `index3` (`idsurat`),
  KEY `index4` (`nomor`),
  KEY `index5` (`tanggal_surat`)
) ENGINE=InnoDB AUTO_INCREMENT=101 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_surat_masuk`
--

INSERT INTO `tb_surat_masuk` VALUES (82,'2021-10-07 10:03:23','2021-10-07',2,17,4,544,76,'123456789','2021-10-07','mas har','kudus','eeee','kepala sub','',1,41),(85,'2021-10-07 14:09:15','2021-10-06',2,17,10,595,1,'123','2021-10-07','kades','kudus','rhs','rhs','rhs',1,41),(88,'2021-10-18 16:07:24','2021-10-17',2,17,4,601,64,'1234567','2021-10-18','BLA','Semarang','Magang','Kepala Balai','-',1,41),(91,'2021-10-18 16:09:33','2021-10-18',2,17,4,604,64,'23456/Bd/2021','2021-10-18','MIn','Jl. pelan2','permohonan Narsum','ka. balai','',1,41),(94,'2021-10-18 16:25:55','2021-10-15',2,17,4,607,1,'3213213123','2021-10-18','BLA 2','Semarang','Ijin Magang','Kepala Balai','-',1,41),(97,'2021-10-18 16:36:38','2021-10-11',2,17,4,610,64,'667676768','2021-10-18','BLUD','Semarang','Ijin Magang','Kepala BDK','-',1,41),(100,'2021-10-28 03:52:49','2021-09-29',2,17,4,616,1,'B- 2061 /BD/Set.BD/1/HM.01/09/2021','2021-10-01','BADAN PENELITIAN DAN PENGEMBANGAN DAN PENDIDIKAN DAN PELATIHAN','Gedung Kementerian Agama Jl. M.H. Thamrin No. 6, Jakarta Pusat','Undangan Peserta','Para Kepala Balai Diklat Keagamaan','',1,41);
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_surat_masuk_BEFORE_INSERT` BEFORE INSERT ON `tb_surat_masuk` FOR EACH ROW
BEGIN
	set new.tanggal_input=now();
END */;;
DELIMITER ;

--
-- Table structure for table `tb_surat_masuk_dokbalasan`
--

CREATE TABLE `tb_surat_masuk_dokbalasan` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `idsuratmasuk` int(11) DEFAULT NULL,
  `iddokumen` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  KEY `fx_iddoksuratbalasan_idsuratmasuk_idx` (`idsuratmasuk`),
  CONSTRAINT `fx_iddoksuratbalasan_idsuratmasuk` FOREIGN KEY (`idsuratmasuk`) REFERENCES `tb_surat_masuk` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_surat_masuk_dokbalasan`
--


--
-- Table structure for table `tb_surat_masuk_dokumen`
--

CREATE TABLE `tb_surat_masuk_dokumen` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `idsuratmasuk` int(11) DEFAULT NULL,
  `iddokumen` int(11) DEFAULT NULL,
  `nama` varchar(245) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  KEY `fx_iddokumensurat_idsuratmasuk_idx` (`idsuratmasuk`),
  CONSTRAINT `fx_iddokumensurat_idsuratmasuk` FOREIGN KEY (`idsuratmasuk`) REFERENCES `tb_surat_masuk` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=98 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_surat_masuk_dokumen`
--

INSERT INTO `tb_surat_masuk_dokumen` VALUES (55,82,310,'1'),(61,88,346,'tes dok surat masuk'),(67,91,349,'Permohonan'),(76,94,352,'Tes 2'),(79,97,355,'yyy'),(94,100,382,'Undangan Bimtek Prakom'),(97,85,337,'a');
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_surat_masuk_dokumen_AFTER_INSERT` AFTER INSERT ON `tb_surat_masuk_dokumen` FOR EACH ROW
BEGIN
	update tb_surat_masuk set jumlah_dokumen=jumlah_dokumen+1 where id=new.idsuratmasuk;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_surat_masuk_dokumen_AFTER_DELETE` AFTER DELETE ON `tb_surat_masuk_dokumen` FOR EACH ROW
BEGIN
	update tb_surat_masuk set jumlah_dokumen=jumlah_dokumen-1 where id=old.idsuratmasuk;
END */;;
DELIMITER ;

--
-- Table structure for table `tb_surat_tugas`
--

CREATE TABLE `tb_surat_tugas` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tanggal_input` datetime DEFAULT NULL,
  `tanggal_surat` date DEFAULT NULL,
  `nomor` int(11) DEFAULT NULL,
  `nomor_panjang` varchar(145) DEFAULT NULL,
  `idsurat` int(11) DEFAULT NULL,
  `iduser` int(11) DEFAULT NULL,
  `jumlah_pegawai` int(11) DEFAULT 0,
  `tanggal_mulai` date DEFAULT NULL,
  `tanggal_selesai` date DEFAULT NULL,
  `tugas` mediumtext DEFAULT NULL,
  `lokasi` varchar(245) DEFAULT NULL,
  `catatan_dasar` int(11) DEFAULT 0,
  `catatan_menimbang` int(11) DEFAULT 0,
  `catatan_surat` int(11) DEFAULT 0,
  `tempat_tugas` varchar(245) DEFAULT NULL,
  `keterangan` varchar(245) DEFAULT NULL,
  `status` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  KEY `index3` (`idsurat`),
  KEY `index4` (`nomor`),
  KEY `index5` (`tanggal_surat`)
) ENGINE=InnoDB AUTO_INCREMENT=206 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_surat_tugas`
--

INSERT INTO `tb_surat_tugas` VALUES (199,'2021-10-07 10:52:27','2021-10-07',NULL,NULL,565,76,1,'2021-10-07','2021-10-09','liburan','jogja',0,2,1,NULL,'600ml',21),(202,'2021-10-28 03:57:21','2021-10-28',NULL,NULL,619,1,2,'2021-10-27','2021-10-29','Menjadi Petugas Monitoring Habituasi dalam kegiatan Pelatihan Dasar CPNS Golongan III Tahun 2021','Wilayah Kankemenag Kab. Purbalingga & Brebes',0,2,1,NULL,'',21),(205,'2021-11-22 09:25:47','2021-11-22',NULL,NULL,622,1,1,'2021-11-17','2021-11-18','Monitoring Habituasi dalam kegiatan Pelatihan Dasar CPNS  Golongan III Tahun 2021','Kantor Kementerian Agama Kab. Semarang   Kantor Kementerian Agama Kota Surakarta',0,2,0,NULL,'Petugas',20);
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`eofficebdk_user`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_surat_tugas_BEFORE_INSERT` BEFORE INSERT ON `tb_surat_tugas` FOR EACH ROW
BEGIN
	set new.tanggal_input=now();
END */;;
DELIMITER ;

--
-- Table structure for table `tb_surat_tugas_catatan`
--

CREATE TABLE `tb_surat_tugas_catatan` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `idsurattugas` int(11) DEFAULT NULL,
  `catatan` mediumtext DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  KEY `fx_idsurattugasctt_idsurattgs_idx` (`idsurattugas`),
  CONSTRAINT `fx_idsurattugasctt_idsurattgs` FOREIGN KEY (`idsurattugas`) REFERENCES `tb_surat_tugas` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=254 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_surat_tugas_catatan`
--

INSERT INTO `tb_surat_tugas_catatan` VALUES (247,199,'sehubungan dengan penyeenggaraan Pelatihan Teknis Penyusunan Tata Naskah Dinas di Wilayah Kerj Kantor Kementrian Agama Kota Surakara Tahun Anggaran 2021, maka dipandang perlu menugaskan pegawai sebagai Pengajar Pelatihan;'),(253,202,'<p>Menjadi Petugas Monitoring Habituasi dalam kegiatan Pelatihan Dasar CPNS&nbsp;Golongan III Tahun 2021 yang dilaksanakan pada : </p>');
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`eofficebdk_user`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_surat_tugas_catatan_AFTER_INSERT` AFTER INSERT ON `tb_surat_tugas_catatan` FOR EACH ROW
BEGIN
	update tb_surat_tugas set catatan_surat=catatan_surat+1 where id=new.idsurattugas;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`eofficebdk_user`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_surat_tugas_catatan_AFTER_DELETE` AFTER DELETE ON `tb_surat_tugas_catatan` FOR EACH ROW
BEGIN
	update tb_surat_tugas set catatan_surat=catatan_surat-1 where id=old.idsurattugas;
END */;;
DELIMITER ;

--
-- Table structure for table `tb_surat_tugas_dasar`
--

CREATE TABLE `tb_surat_tugas_dasar` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `idsurattugas` int(11) DEFAULT NULL,
  `catatan` mediumtext DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  KEY `fx_catatanmenimbang_idsurattgs_idx` (`idsurattugas`),
  CONSTRAINT `fx_catatanmenimbang_idsurattgs` FOREIGN KEY (`idsurattugas`) REFERENCES `tb_surat_tugas` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=332 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_surat_tugas_dasar`
--

INSERT INTO `tb_surat_tugas_dasar` VALUES (319,199,'<p>DIPA Balai Diklat Keagamaan Semarang Tahun Anggaran 2021, maka Kepala Balai Pendidikan dan Pelatihan Keagamaan Semarang,</p>'),(328,202,'<p>Surat Keputusan Kepala Balai Diklat Keagamaan Semarang No:&nbsp;2242/Bdl.06/KP.02.1/08/2021 Tanggal 26 Agustus 2021 tentang Nama &ndash; Nama&nbsp;Panitia Penyelenggara, Widyaiswara, Pengajar, Penceramah, Coach, Mentor, Penguji&nbsp;Seminar Rancangan Aktualisasi dan Seminar Aktualisasi, Penyelenggara Senam&nbsp;Kebugaran, Korektor Evaluasi Akademik, Petugas Monitoring, dan Peserta Pelatihan&nbsp;Dasar CPNS Golongan III Angkatan VI Balai Diklat Keagamaan Semarang Tahun&nbsp;2021;</p>'),(331,205,'<p>Surat Keputusan Kepala Balai Pendidikan dan Pelatihan Keagamaan Semarang Nomor: 570/Bdl.06/Kp.02.3/ 03/2021 Tanggal : 10 Maret 2021 Tentang Nama-nama Panitia Penyelenggara,Pengajar/Widyaiswara, dan Peserta Pelatihan Teknis Penyusunan Tata Naskah Dinas di Wilayah Kerja Kantor Kementerian Agama Kota Surakarta Tahun Anggaran 2021;</p>');
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`eofficebdk_user`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_surat_tugas_dasar_AFTER_INSERT` AFTER INSERT ON `tb_surat_tugas_dasar` FOR EACH ROW
BEGIN
	update tb_surat_tugas set catatan_menimbang=catatan_menimbang+1 where id=new.idsurattugas;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`eofficebdk_user`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_surat_tugas_dasar_AFTER_DELETE` AFTER DELETE ON `tb_surat_tugas_dasar` FOR EACH ROW
BEGIN
	update tb_surat_tugas set catatan_menimbang=catatan_menimbang-1 where id=old.idsurattugas;
END */;;
DELIMITER ;

--
-- Table structure for table `tb_surat_tugas_menimbang`
--

CREATE TABLE `tb_surat_tugas_menimbang` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `idsurattugas` int(11) DEFAULT NULL,
  `catatan` mediumtext DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  KEY `fx_idsurattugasmenimbang_idsurattgs_idx` (`idsurattugas`),
  CONSTRAINT `fx_idsurattugasmenimbang_idsurattgs` FOREIGN KEY (`idsurattugas`) REFERENCES `tb_surat_tugas` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=209 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_surat_tugas_menimbang`
--

INSERT INTO `tb_surat_tugas_menimbang` VALUES (196,199,'<p>Surat Keputusan Kepala Balai Pendidikan dan Pelatihan Keagamaan Semarang Nomor: 570/Bdl.06/Kp.02.3/ 03/2021 Tanggal : 10 Maret 2021 Tentang Nama-nama Panitia Penyelenggara,Pengajar/Widyaiswara, dan Peserta Pelatihan Teknis Penyusunan Tata Naskah Dinas di Wilayah Kerja Kantor Kementerian Agama Kota Surakarta Tahun Anggaran 2021;</p>'),(205,202,'<p>bahwa untuk terlaksananya Pelatihan Dasar CPNS Golongan III Angkatan V-VIII&nbsp;Tahun 2021, maka Kepala Balai Diklat Keagamaan Semarang perlu menugaskan&nbsp;Pegawai Balai Diklat Keagamaan Semarang sebagai petugas monitoring habituasi&nbsp;Pelatihan Dasar CPNS.</p>'),(208,205,'<p>Surat Keputusan Kepala Balai Diklat Keagamaan Semarang No:&nbsp;2242/Bdl.06/KP.02.1/08/2021 Tanggal 26 Agustus 2021 tentang Nama &ndash; Nama&nbsp;Panitia Penyelenggara, Widyaiswara, Pengajar, Penceramah, Coach, Mentor, Penguji&nbsp;Seminar Rancangan Aktualisasi dan Seminar Aktualisasi, Penyelenggara Senam&nbsp;Kebugaran, Korektor Evaluasi Akademik, Petugas Monitoring, dan Peserta Pelatihan&nbsp;Dasar CPNS Golongan III Angkatan VI Balai Diklat Keagamaan Semarang Tahun&nbsp;2021;</p>');
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`eofficebdk_user`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_surat_tugas_menimbang_AFTER_INSERT` AFTER INSERT ON `tb_surat_tugas_menimbang` FOR EACH ROW
BEGIN
	update tb_surat_tugas set catatan_menimbang=catatan_menimbang+1 where id=new.idsurattugas;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`eofficebdk_user`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_surat_tugas_menimbang_AFTER_DELETE` AFTER DELETE ON `tb_surat_tugas_menimbang` FOR EACH ROW
BEGIN
	update tb_surat_tugas set catatan_menimbang=catatan_menimbang-1 where id=old.idsurattugas;
END */;;
DELIMITER ;

--
-- Table structure for table `tb_surat_tugas_pegawai`
--

CREATE TABLE `tb_surat_tugas_pegawai` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `idsurattugas` int(11) DEFAULT NULL,
  `idpegawai` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  KEY `index3` (`idsurattugas`,`idpegawai`),
  CONSTRAINT `fx_idsurattugas_idsuratpgw` FOREIGN KEY (`idsurattugas`) REFERENCES `tb_surat_tugas` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=440 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_surat_tugas_pegawai`
--

INSERT INTO `tb_surat_tugas_pegawai` VALUES (412,199,1),(433,202,65),(436,202,69),(439,205,97);
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`eofficebdk_user`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_surat_tugas_pegawai_AFTER_INSERT` AFTER INSERT ON `tb_surat_tugas_pegawai` FOR EACH ROW
BEGIN
	update tb_surat_tugas set jumlah_pegawai=jumlah_pegawai+1 where id=new.idsurattugas;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`eofficebdk_user`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_surat_tugas_pegawai_AFTER_DELETE` AFTER DELETE ON `tb_surat_tugas_pegawai` FOR EACH ROW
BEGIN
	update tb_surat_tugas set jumlah_pegawai=jumlah_pegawai-1 where id=old.idsurattugas;
END */;;
DELIMITER ;

--
-- Table structure for table `tb_suratbdk`
--

CREATE TABLE `tb_suratbdk` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tanggal_input` datetime DEFAULT NULL,
  `tanggal_surat` date DEFAULT NULL,
  `tanggal_close` date DEFAULT NULL,
  `nomor` int(11) DEFAULT NULL,
  `nomor_panjang` varchar(145) DEFAULT NULL,
  `idpegawai` int(11) DEFAULT NULL,
  `iduser` int(11) DEFAULT NULL,
  `idkategori` int(11) DEFAULT NULL,
  `idjenissurat` int(11) DEFAULT NULL,
  `idkategorijenis` int(11) DEFAULT 4,
  `datasurat` longtext DEFAULT NULL,
  `iddisposisi` int(11) DEFAULT 0,
  `keterangan` varchar(245) DEFAULT NULL,
  `jumlah_catatan` int(11) DEFAULT 0,
  `bulan` int(2) DEFAULT NULL,
  `tahun` int(4) DEFAULT NULL,
  `status` int(11) DEFAULT NULL,
  `idbalasan` int(11) DEFAULT 0,
  `jumlah_dokumen` int(11) DEFAULT 0,
  `statusdisposisi` int(1) DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=623 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_suratbdk`
--

INSERT INTO `tb_suratbdk` VALUES (544,'2021-10-07 10:03:23','2021-10-07','2021-10-07',NULL,'123456789',0,76,2,17,4,'{\"datadokumen\":\"[{\\\"nama\\\":\\\"1\\\",\\\"iddokumen\\\":\\\"310\\\",\\\"edit\\\":\\\"1\\\",\\\"statusdisposisi\\\":\\\"0\\\"}]\",\"idkategori\":\"2\",\"idjenissurat\":\"17\",\"idkategorijenissurat\":\"4\",\"nomor\":\"123456789\",\"tanggalsurat\":\"07\\/10\\/2021\",\"tanggalterima\":\"07\\/10\\/2021\",\"pengirim\":\"mas har\",\"alamatpengirim\":\"kudus\",\"keperluan\":\"eeee\",\"tujuan\":\"kepala sub\",\"keterangan\":\"\"}',826,'',2,10,2021,41,0,1,1),(547,'2021-10-07 10:22:15','2021-10-07','2021-10-07',NULL,'0987654321',0,76,2,14,4,'{\"datadokumen\":\"[{\\\"nama\\\":\\\"2\\\",\\\"iddokumen\\\":\\\"313\\\",\\\"edit\\\":\\\"1\\\",\\\"statusdisposisi\\\":\\\"0\\\"}]\",\"idkategori\":\"2\",\"idjenissurat\":\"14\",\"idkategorijenissurat\":\"4\",\"nomor\":\"0987654321\",\"tanggalsurat\":\"07\\/10\\/2021\",\"tujuan\":\"staf\",\"alamattujuan\":\"demak\",\"balasan\":\"0\",\"idsuratbalasan\":0,\"keperluan\":\"test\",\"keterangan\":\"\"}',829,'ya',0,10,2021,51,0,1,1),(550,'2021-10-07 10:32:30','2021-10-07','2021-10-07',1,'1',0,76,2,20,4,'{\"nomor\":\"1\",\"nomor_surat_pengajuan\":\"2345678910\",\"nama_sekolah\":\"io\",\"idpropinsi\":\"14\",\"propinsi\":\"14\",\"idkota\":\"207\",\"kota\":\"Kudus\",\"alamat_sekolah\":\"undaan \",\"keterangan\":\"\",\"datapeserta\":[{\"nama\":\"mas har\",\"nopelajar\":\"1234567\",\"alamat\":\"jl.mawar\",\"editstatus\":\"1\"}]}',832,'ya',0,10,2021,61,0,1,1),(553,'2021-10-07 10:34:45','2021-10-07','2021-10-07',2,'2',0,76,2,20,4,'{\"nomor\":\"2\",\"nomor_surat_pengajuan\":\"123\",\"nama_sekolah\":\"har\",\"idpropinsi\":\"1\",\"propinsi\":\"1\",\"idkota\":\"9\",\"kota\":\"Aceh Tenggara\",\"alamat_sekolah\":\"aceh\",\"keterangan\":\"\",\"datapeserta\":[{\"nama\":\"haryanti\",\"nopelajar\":\"23456\",\"alamat\":\"jl. hasan 17\",\"editstatus\":\"1\"}]}',835,'tingkatkan nak',1,10,2021,68,0,1,1),(556,'2021-10-07 10:38:37','2021-10-07','2021-10-07',3,'3',0,76,2,20,4,'{\"nomor\":\"3\",\"nomor_surat_pengajuan\":\"123456789\",\"nama_sekolah\":\"kang nan\",\"idpropinsi\":\"3\",\"propinsi\":\"3\",\"idkota\":\"57\",\"kota\":\"Bengkulu Selatan\",\"alamat_sekolah\":\"selatan\",\"keterangan\":\"\",\"datapeserta\":[{\"nama\":\"haryantu\",\"nopelajar\":\"1234567\",\"alamat\":\"jl.raya 27\",\"editstatus\":\"1\"}]}',838,'Salah kabeh',1,10,2021,69,0,1,1),(559,'2021-10-07 10:43:51','2021-10-07','2021-10-07',4,'4',0,76,2,20,4,'{\"nomor\":\"4\",\"nomor_surat_pengajuan\":\"54321\",\"nama_sekolah\":\"no\",\"idpropinsi\":\"14\",\"propinsi\":\"14\",\"idkota\":\"202\",\"kota\":\"Jepara\",\"alamat_sekolah\":\"grogol\",\"keterangan\":\"\",\"datapeserta\":[{\"nama\":\"haryante\",\"nopelajar\":\"6543211\",\"alamat\":\"kudus\",\"editstatus\":\"1\"}]}',841,'w',0,10,2021,62,0,1,1),(562,'2021-10-07 10:49:04','2021-10-07','2021-10-07',5,'003/5',1,76,1,10,4,'{\"idpegawai\":\"1\",\"idjeniscuti\":\"5\",\"waktu\":\"7\",\"idkodewaktu\":\"3\",\"keperluan\":\"nikah\",\"alamatcuti\":\"kudus\",\"telpcuti\":\"0987654321\"}',844,'ya',0,10,2021,28,0,0,1),(565,'2021-10-07 10:52:27','2021-10-07','2021-10-07',6,'Kp.02.0.3/6',0,76,1,11,4,'{\"datapegawai\":\"[{\\\"id\\\":\\\"1\\\",\\\"nama\\\":\\\"Drs. H. Anshori\\\",\\\"nip\\\":\\\"196605191993031002\\\",\\\"edit\\\":\\\"1\\\",\\\"statusdisposisi\\\":\\\"0\\\"}]\",\"datamenimbang\":\"[{\\\"catatan\\\":\\\"\\u003Cp\\u003ESurat Keputusan Kepala Balai Pendidikan dan Pelatihan Keagamaan Semarang Nomor: 570\\\\\\/Bdl.06\\\\\\/Kp.02.3\\\\\\/ 03\\\\\\/2021 Tanggal : 10 Maret 2021 Tentang Nama-nama Panitia Penyelenggara,Pengajar\\\\\\/Widyaiswara, dan Peserta Pelatihan Teknis Penyusunan Tata Naskah Dinas di Wilayah Kerja Kantor Kementerian Agama Kota Surakarta Tahun Anggaran 2021;\\u003C\\\\\\/p\\u003E\\\",\\\"edit\\\":\\\"1\\\",\\\"statusdisposisi\\\":\\\"0\\\"}]\",\"datadasar\":\"[{\\\"catatan\\\":\\\"\\u003Cp\\u003EDIPA Balai Diklat Keagamaan Semarang Tahun Anggaran 2021, maka Kepala Balai Pendidikan dan Pelatihan Keagamaan Semarang,\\u003C\\\\\\/p\\u003E\\\",\\\"edit\\\":\\\"1\\\",\\\"statusdisposisi\\\":\\\"0\\\"}]\",\"datacatatantugas\":\"[{\\\"catatan\\\":\\\"sehubungan dengan penyeenggaraan Pelatihan Teknis Penyusunan Tata Naskah Dinas di Wilayah Kerj Kantor Kementrian Agama Kota Surakara Tahun Anggaran 2021, maka dipandang perlu menugaskan pegawai sebagai Pengajar Pelatihan;\\\",\\\"edit\\\":\\\"1\\\",\\\"statusdisposisi\\\":\\\"0\\\"}]\",\"tugas\":\"liburan\",\"lokasi\":\"jogja\",\"keterangan\":\"600ml\",\"tanggalmulai\":\"2021-10-07\",\"tanggalselesai\":\"2021-10-09\"}',847,'y',0,10,2021,28,0,0,1),(568,'2021-10-07 11:03:24','2021-10-07','2021-10-28',7,'003/7',2,73,1,10,4,'{\"idpegawai\":2,\"idjeniscuti\":\"4\",\"waktu\":\"14\",\"idkodewaktu\":\"3\",\"keperluan\":\"w\",\"alamatcuti\":\"gedog\",\"telpcuti\":\"123456789\"}',865,'y',0,10,2021,28,0,0,1),(571,'2021-10-07 11:17:39','2021-10-07','2021-10-28',8,'003/8',4,76,1,10,4,'{\"idpegawai\":\"4\",\"idjeniscuti\":\"3\",\"waktu\":\"3\",\"idkodewaktu\":\"3\",\"keperluan\":\"a\",\"alamatcuti\":\"undaan\",\"telpcuti\":\"123456789\"}',871,'y',0,10,2021,28,0,0,1),(595,'2021-10-07 14:09:15','2021-10-06',NULL,NULL,'123',0,1,2,17,10,'{\"datadokumen\":\"[{\\\"nama\\\":\\\"a\\\",\\\"iddokumen\\\":\\\"337\\\",\\\"edit\\\":\\\"1\\\",\\\"statusdisposisi\\\":\\\"0\\\"}]\",\"idkategori\":\"2\",\"idjenissurat\":\"17\",\"idkategorijenissurat\":\"10\",\"nomor\":\"123\",\"tanggalsurat\":\"06\\/10\\/2021\",\"tanggalterima\":\"07\\/10\\/2021\",\"pengirim\":\"kades\",\"alamatpengirim\":\"kudus\",\"keperluan\":\"rhs\",\"tujuan\":\"rhs\",\"keterangan\":\"rhs\"}',1081,NULL,1,10,2021,41,0,1,0),(598,'2021-10-07 14:32:47','2021-10-07','2021-10-07',NULL,'123456',0,76,2,14,4,'{\"datadokumen\":\"[{\\\"nama\\\":\\\"1\\\",\\\"iddokumen\\\":\\\"340\\\",\\\"edit\\\":\\\"1\\\",\\\"statusdisposisi\\\":\\\"0\\\"}]\",\"idkategori\":\"2\",\"idjenissurat\":\"14\",\"idkategorijenissurat\":\"4\",\"nomor\":\"123456\",\"tanggalsurat\":\"07\\/10\\/2021\",\"tujuan\":\"har\",\"alamattujuan\":\"kudus\",\"balasan\":\"0\",\"idsuratbalasan\":0,\"keperluan\":\"liburan\",\"keterangan\":\"\"}',898,'aaa',1,10,2021,52,0,1,1),(601,'2021-10-18 16:07:24','2021-10-17',NULL,NULL,'1234567',0,64,2,17,4,'{\"datadokumen\":\"[{\\\"nama\\\":\\\"tes dok surat masuk\\\",\\\"iddokumen\\\":\\\"346\\\",\\\"edit\\\":\\\"1\\\",\\\"statusdisposisi\\\":\\\"0\\\"}]\",\"idkategori\":\"2\",\"idjenissurat\":\"17\",\"idkategorijenissurat\":\"4\",\"nomor\":\"1234567\",\"tanggalsurat\":\"17\\/10\\/2021\",\"tanggalterima\":\"18\\/10\\/2021\",\"pengirim\":\"BLA\",\"alamatpengirim\":\"Semarang\",\"keperluan\":\"Magang\",\"tujuan\":\"Kepala Balai\",\"keterangan\":\"-\"}',910,NULL,1,10,2021,41,0,1,0),(604,'2021-10-18 16:09:33','2021-10-18',NULL,NULL,'23456/Bd/2021',0,64,2,17,4,'{\"datadokumen\":\"[{\\\"nama\\\":\\\"Permohonan\\\",\\\"iddokumen\\\":\\\"349\\\",\\\"edit\\\":\\\"1\\\",\\\"statusdisposisi\\\":\\\"0\\\"}]\",\"idkategori\":\"2\",\"idjenissurat\":\"17\",\"idkategorijenissurat\":\"4\",\"nomor\":\"23456\\/Bd\\/2021\",\"tanggalsurat\":\"18\\/10\\/2021\",\"tanggalterima\":\"18\\/10\\/2021\",\"pengirim\":\"MIn\",\"alamatpengirim\":\"Jl. pelan2\",\"keperluan\":\"permohonan Narsum\",\"tujuan\":\"ka. balai\",\"keterangan\":\"\"}',934,NULL,0,10,2021,41,0,1,0),(607,'2021-10-18 16:25:55','2021-10-15',NULL,NULL,'3213213123',0,1,2,17,4,'{\"datadokumen\":\"[{\\\"nama\\\":\\\"Tes 2\\\",\\\"iddokumen\\\":\\\"352\\\",\\\"edit\\\":\\\"1\\\",\\\"statusdisposisi\\\":\\\"0\\\"}]\",\"idkategori\":\"2\",\"idjenissurat\":\"17\",\"idkategorijenissurat\":\"4\",\"nomor\":\"3213213123\",\"tanggalsurat\":\"15\\/10\\/2021\",\"tanggalterima\":\"18\\/10\\/2021\",\"pengirim\":\"BLA 2\",\"alamatpengirim\":\"Semarang\",\"keperluan\":\"Ijin Magang\",\"tujuan\":\"Kepala Balai\",\"keterangan\":\"-\"}',985,NULL,1,10,2021,41,0,1,0),(610,'2021-10-18 16:36:38','2021-10-11',NULL,NULL,'667676768',0,64,2,17,4,'{\"datadokumen\":\"[{\\\"nama\\\":\\\"yyy\\\",\\\"iddokumen\\\":\\\"355\\\",\\\"edit\\\":\\\"1\\\",\\\"statusdisposisi\\\":\\\"0\\\"}]\",\"idkategori\":\"2\",\"idjenissurat\":\"17\",\"idkategorijenissurat\":\"4\",\"nomor\":\"667676768\",\"tanggalsurat\":\"11\\/10\\/2021\",\"tanggalterima\":\"18\\/10\\/2021\",\"pengirim\":\"BLUD\",\"alamatpengirim\":\"Semarang\",\"keperluan\":\"Ijin Magang\",\"tujuan\":\"Kepala BDK\",\"keterangan\":\"-\"}',1003,NULL,0,10,2021,41,0,1,0),(613,'2021-10-18 16:47:30','2021-10-18','2021-10-28',9,'003/9',38,1,1,10,4,'{\"idpegawai\":\"38\",\"idjeniscuti\":\"1\",\"waktu\":\"365\",\"idkodewaktu\":\"3\",\"keperluan\":\"fgfgkkl\",\"alamatcuti\":\"bali\",\"telpcuti\":\"0987564\"}',1024,'',0,10,2021,29,0,0,1),(616,'2021-10-28 03:52:49','2021-09-29',NULL,NULL,'B- 2061 /BD/Set.BD/1/HM.01/09/2021',0,1,2,17,4,'{\"datadokumen\":\"[{\\\"nama\\\":\\\"Undangan Bimtek Prakom\\\",\\\"iddokumen\\\":\\\"382\\\",\\\"edit\\\":\\\"1\\\",\\\"statusdisposisi\\\":\\\"0\\\"}]\",\"idkategori\":\"2\",\"idjenissurat\":\"17\",\"idkategorijenissurat\":\"4\",\"nomor\":\"B- 2061 \\/BD\\/Set.BD\\/1\\/HM.01\\/09\\/2021\",\"tanggalsurat\":\"29\\/09\\/2021\",\"tanggalterima\":\"01\\/10\\/2021\",\"pengirim\":\"BADAN PENELITIAN DAN PENGEMBANGAN DAN PENDIDIKAN DAN PELATIHAN\",\"alamatpengirim\":\"Gedung Kementerian Agama Jl. M.H. Thamrin No. 6, Jakarta Pusat\",\"keperluan\":\"Undangan Peserta\",\"tujuan\":\"Para Kepala Balai Diklat Keagamaan\",\"keterangan\":\"\"}',1063,NULL,0,9,2021,41,0,1,0),(619,'2021-10-28 03:57:21','2021-10-28','2021-10-28',11,'Kp.02.0.3/11',0,1,1,11,4,'{\"datapegawai\":\"[{\\\"id\\\":\\\"65\\\",\\\"nama\\\":\\\"Nuruz Zaman Amsa, S.Pd.I., M.S.I.\\\",\\\"nip\\\":\\\"197809122003121002\\\",\\\"edit\\\":\\\"1\\\",\\\"statusdisposisi\\\":\\\"0\\\"},{\\\"id\\\":\\\"69\\\",\\\"nama\\\":\\\"Grindulu Machya, S.Sos.I\\\",\\\"nip\\\":\\\"197912082007011015\\\",\\\"edit\\\":\\\"1\\\",\\\"statusdisposisi\\\":\\\"0\\\"}]\",\"datamenimbang\":\"[{\\\"catatan\\\":\\\"\\u003Cp\\u003Ebahwa untuk terlaksananya Pelatihan Dasar CPNS Golongan III Angkatan V-VIII&nbsp;Tahun 2021, maka Kepala Balai Diklat Keagamaan Semarang perlu menugaskan&nbsp;Pegawai Balai Diklat Keagamaan Semarang sebagai petugas monitoring habituasi&nbsp;Pelatihan Dasar CPNS.\\u003C\\\\\\/p\\u003E\\\",\\\"edit\\\":\\\"1\\\",\\\"statusdisposisi\\\":\\\"0\\\"}]\",\"datadasar\":\"[{\\\"catatan\\\":\\\"\\u003Cp\\u003ESurat Keputusan Kepala Balai Diklat Keagamaan Semarang No:&nbsp;2242\\\\\\/Bdl.06\\\\\\/KP.02.1\\\\\\/08\\\\\\/2021 Tanggal 26 Agustus 2021 tentang Nama &ndash; Nama&nbsp;Panitia Penyelenggara, Widyaiswara, Pengajar, Penceramah, Coach, Mentor, Penguji&nbsp;Seminar Rancangan Aktualisasi dan Seminar Aktualisasi, Penyelenggara Senam&nbsp;Kebugaran, Korektor Evaluasi Akademik, Petugas Monitoring, dan Peserta Pelatihan&nbsp;Dasar CPNS Golongan III Angkatan VI Balai Diklat Keagamaan Semarang Tahun&nbsp;2021;\\u003C\\\\\\/p\\u003E\\\",\\\"edit\\\":\\\"1\\\",\\\"statusdisposisi\\\":\\\"0\\\"}]\",\"datacatatantugas\":\"[{\\\"catatan\\\":\\\"\\u003Cp\\u003EMenjadi Petugas Monitoring Habituasi dalam kegiatan Pelatihan Dasar CPNS&nbsp;Golongan III Tahun 2021 yang dilaksanakan pada : \\u003C\\\\\\/p\\u003E\\\",\\\"edit\\\":\\\"1\\\",\\\"statusdisposisi\\\":\\\"0\\\"}]\",\"tugas\":\"Menjadi Petugas Monitoring Habituasi dalam kegiatan Pelatihan Dasar CPNS Golongan III Tahun 2021\",\"lokasi\":\"Wilayah Kankemenag Kab. Purbalingga & Brebes\",\"keterangan\":\"\",\"tanggalmulai\":null,\"tanggalselesai\":null}',1075,NULL,0,10,2021,21,0,0,1),(622,'2021-11-22 09:25:47','2021-11-22',NULL,1,'Kp.02.0.3/1',0,1,1,11,4,'{\"datapegawai\":\"[{\\\"id\\\":\\\"97\\\",\\\"nama\\\":\\\"Muhammad Yusuf, S.H.I.\\\",\\\"nip\\\":\\\"197709132007011009\\\",\\\"edit\\\":\\\"1\\\",\\\"statusdisposisi\\\":\\\"0\\\"}]\",\"datamenimbang\":\"[{\\\"catatan\\\":\\\"\\u003Cp\\u003ESurat Keputusan Kepala Balai Diklat Keagamaan Semarang No:&nbsp;2242\\\\\\/Bdl.06\\\\\\/KP.02.1\\\\\\/08\\\\\\/2021 Tanggal 26 Agustus 2021 tentang Nama &ndash; Nama&nbsp;Panitia Penyelenggara, Widyaiswara, Pengajar, Penceramah, Coach, Mentor, Penguji&nbsp;Seminar Rancangan Aktualisasi dan Seminar Aktualisasi, Penyelenggara Senam&nbsp;Kebugaran, Korektor Evaluasi Akademik, Petugas Monitoring, dan Peserta Pelatihan&nbsp;Dasar CPNS Golongan III Angkatan VI Balai Diklat Keagamaan Semarang Tahun&nbsp;2021;\\u003C\\\\\\/p\\u003E\\\",\\\"edit\\\":\\\"1\\\",\\\"statusdisposisi\\\":\\\"0\\\"}]\",\"datadasar\":\"[{\\\"catatan\\\":\\\"\\u003Cp\\u003ESurat Keputusan Kepala Balai Pendidikan dan Pelatihan Keagamaan Semarang Nomor: 570\\\\\\/Bdl.06\\\\\\/Kp.02.3\\\\\\/ 03\\\\\\/2021 Tanggal : 10 Maret 2021 Tentang Nama-nama Panitia Penyelenggara,Pengajar\\\\\\/Widyaiswara, dan Peserta Pelatihan Teknis Penyusunan Tata Naskah Dinas di Wilayah Kerja Kantor Kementerian Agama Kota Surakarta Tahun Anggaran 2021;\\u003C\\\\\\/p\\u003E\\\",\\\"edit\\\":\\\"1\\\",\\\"statusdisposisi\\\":\\\"0\\\"}]\",\"datacatatantugas\":\"null\",\"tugas\":\"Monitoring Habituasi dalam kegiatan Pelatihan Dasar CPNS  Golongan III Tahun 2021\",\"lokasi\":\" Kantor Kementerian Agama Kab. Semarang   Kantor Kementerian Agama Kota Surakarta\",\"keterangan\":\"Petugas \",\"tanggalmulai\":\"2021-11-17\",\"tanggalselesai\":\"2021-11-18\"}',0,NULL,0,11,2021,20,0,0,0);
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_suratbdk_BEFORE_INSERT` BEFORE INSERT ON `tb_suratbdk` FOR EACH ROW
BEGIN
	set new.tanggal_input=now();
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_suratbdk_AFTER_UPDATE` AFTER UPDATE ON `tb_suratbdk` FOR EACH ROW
BEGIN
	update tb_cuti_pegawai set `status`=new.`status` where idsurat=old.id;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_suratbdk_AFTER_DELETE` AFTER DELETE ON `tb_suratbdk` FOR EACH ROW
BEGIN
	delete from tb_cuti_pegawai where idsurat=old.id;
    delete from tb_surat_tugas where idsurat=old.id;
    delete from tb_surat_masuk where idsurat=old.id;
    delete from tb_surat_keluar where idsurat=old.id;
    delete from tb_pengajuan_pkl where idsurat=old.id;
END */;;
DELIMITER ;

--
-- Table structure for table `tb_suratbdk_catatan`
--

CREATE TABLE `tb_suratbdk_catatan` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tanggal` datetime DEFAULT NULL,
  `iduser` int(11) DEFAULT NULL,
  `idpegawai` int(11) DEFAULT NULL,
  `idsurat` int(11) DEFAULT NULL,
  `catatan` varchar(245) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  KEY `index3` (`idpegawai`),
  KEY `index4` (`tanggal`),
  KEY `index5` (`idsurat`),
  CONSTRAINT `fx_idsuratcatatan_idsurat` FOREIGN KEY (`idsurat`) REFERENCES `tb_suratbdk` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=53 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_suratbdk_catatan`
--

INSERT INTO `tb_suratbdk_catatan` VALUES (31,'2021-10-07 10:04:07',73,2,544,'ya'),(34,'2021-10-07 10:18:03',73,1,544,'tidak'),(37,'2021-10-07 10:35:16',73,1,553,'tidak'),(40,'2021-10-07 10:39:15',73,1,556,'Revisi gan'),(43,'2021-10-07 14:12:11',67,2,595,'diteruskan sesuai kewenangan'),(46,'2021-10-07 14:37:38',67,2,598,'aaaa'),(49,'2021-10-18 16:16:31',49,2,601,'tes surat masuk'),(52,'2021-10-18 16:26:29',49,2,607,'sudah review');
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_suratbdk_catatan_BEFORE_INSERT` BEFORE INSERT ON `tb_suratbdk_catatan` FOR EACH ROW
BEGIN
	set new.tanggal=now();
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_suratbdk_catatan_AFTER_INSERT` AFTER INSERT ON `tb_suratbdk_catatan` FOR EACH ROW
BEGIN
	update tb_suratbdk set jumlah_catatan=jumlah_catatan+1 where id=new.idsurat;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_suratbdk_catatan_AFTER_DELETE` AFTER DELETE ON `tb_suratbdk_catatan` FOR EACH ROW
BEGIN
	update tb_suratbdk set jumlah_catatan=jumlah_catatan-1 where id=old.idsurat;
END */;;
DELIMITER ;

--
-- Table structure for table `tb_suratbdk_disposisi`
--

CREATE TABLE `tb_suratbdk_disposisi` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tanggal` datetime DEFAULT NULL,
  `iduser` int(11) DEFAULT NULL,
  `idpegawai` int(11) DEFAULT 0,
  `idsurat` int(11) DEFAULT NULL,
  `iddisposisi` int(11) DEFAULT NULL,
  `urutan` int(11) DEFAULT NULL,
  `modejabatan` int(11) DEFAULT NULL,
  `idjabatan` int(11) DEFAULT NULL,
  `keterangan` varchar(245) DEFAULT NULL,
  `idpegawaidis` int(11) DEFAULT NULL,
  `idstatus` int(11) DEFAULT NULL,
  `tanggal_close` datetime DEFAULT NULL,
  `nama` varchar(245) DEFAULT NULL,
  `view` int(1) DEFAULT 0,
  `edit` int(1) DEFAULT 0,
  `hapus` int(1) DEFAULT 0,
  `jumlah_status` int(11) DEFAULT 0,
  `statusdisposisi` int(1) DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  KEY `fx_idsuratdisp_idsurat_idx` (`idsurat`),
  KEY `index4` (`iddisposisi`),
  KEY `index5` (`idjabatan`),
  KEY `index6` (`urutan`),
  CONSTRAINT `fx_idsuratdisp_idsurat` FOREIGN KEY (`idsurat`) REFERENCES `tb_suratbdk` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=1094 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_suratbdk_disposisi`
--

INSERT INTO `tb_suratbdk_disposisi` VALUES (814,'2021-10-07 10:11:23',73,0,544,NULL,1,1,20,NULL,NULL,NULL,'2021-10-07 10:13:03','Disposisi Awal',1,1,1,0,2),(817,'2021-10-07 10:11:23',73,0,544,NULL,2,2,14,NULL,NULL,NULL,'2021-10-07 10:16:18','Disposisi PU',1,1,0,1,2),(820,'2021-10-07 10:11:23',73,0,544,NULL,3,1,1,NULL,NULL,NULL,'2021-10-07 10:18:19','Dispoisi Ka Balai',1,1,0,1,2),(823,'2021-10-07 10:11:23',73,0,544,NULL,4,2,14,NULL,NULL,NULL,'2021-10-07 10:20:00','Disposisi PU',1,1,0,0,2),(826,'2021-10-07 10:11:23',73,0,544,NULL,5,2,14,NULL,NULL,NULL,'2021-10-07 10:20:31','Pengarsipan',1,1,0,1,2),(829,'2021-10-07 10:22:15',73,0,547,NULL,1,1,1,NULL,NULL,NULL,'2021-10-07 10:30:00','Tes 01',1,1,0,2,2),(832,'2021-10-07 10:32:30',73,0,550,NULL,1,1,1,NULL,NULL,NULL,'2021-10-07 10:33:03','Disposisi Ketua',1,1,0,4,2),(835,'2021-10-07 10:34:45',73,0,553,NULL,1,1,1,NULL,NULL,NULL,'2021-10-07 10:35:53','Disposisi Ketua',1,1,0,4,2),(838,'2021-10-07 10:38:37',73,0,556,NULL,1,1,1,NULL,NULL,NULL,'2021-10-07 10:39:54','Disposisi Ketua',1,1,0,4,2),(841,'2021-10-07 10:43:51',73,0,559,NULL,1,1,1,NULL,NULL,NULL,'2021-10-07 10:44:50','Disposisi Ketua',1,1,0,4,2),(844,'2021-10-07 10:49:04',73,0,562,NULL,1,1,1,NULL,NULL,NULL,'2021-10-07 10:50:32','Persetujuan Kepala BDK',1,1,0,4,2),(847,'2021-10-07 10:52:27',73,0,565,NULL,1,1,1,NULL,NULL,NULL,'2021-10-07 10:53:00','Persetujuan Kepala Surat Tugas',1,1,0,4,2),(862,'2021-10-07 11:04:10',73,0,568,NULL,1,1,1,NULL,NULL,NULL,'2021-10-07 11:07:09','Persetujuan Atasan',1,1,0,4,2),(865,'2021-10-07 11:04:10',48,0,568,NULL,2,1,1,NULL,NULL,NULL,'2021-10-28 09:27:01','Persetujuan Kepala BDK',1,1,0,4,2),(868,'2021-10-07 11:17:39',73,0,571,NULL,1,1,1,NULL,NULL,NULL,'2021-10-07 11:18:16','Persetujuan Atasan',1,1,0,4,2),(871,'2021-10-07 11:17:39',48,0,571,NULL,2,1,1,NULL,NULL,NULL,'2021-10-28 09:27:06','Persetujuan Kepala BDK',1,1,0,4,2),(892,'2021-10-07 14:32:47',67,0,598,NULL,1,1,20,NULL,NULL,NULL,'2021-10-07 14:37:56','disposisi pertama',1,1,0,2,2),(895,'2021-10-07 14:32:47',67,0,598,NULL,1,1,21,NULL,NULL,NULL,'2021-10-07 14:37:56','disposisi pertama',1,0,0,0,2),(898,'2021-10-07 14:33:14',73,0,598,NULL,2,1,1,NULL,NULL,NULL,'2021-10-07 14:39:12','disposisi kedua',1,1,0,2,2),(901,'2021-10-18 16:07:24',49,0,601,NULL,1,1,20,NULL,NULL,NULL,'2021-10-18 16:16:54','Disposisi Awal',1,1,1,0,2),(904,'2021-10-18 16:07:24',67,0,601,NULL,2,2,14,NULL,NULL,NULL,'2021-10-26 13:11:08','Disposisi PU',1,1,0,1,2),(907,'2021-10-18 16:07:24',48,0,601,NULL,3,1,1,NULL,NULL,NULL,'2021-10-28 09:15:58','Dispoisi Ka Balai',1,1,0,1,2),(910,'2021-10-18 16:07:24',NULL,0,601,NULL,4,2,14,NULL,NULL,NULL,NULL,'Disposisi PU',1,1,0,0,1),(913,'2021-10-18 16:07:24',NULL,0,601,NULL,5,1,20,NULL,NULL,NULL,NULL,'Kasubag TU',1,1,1,0,0),(916,'2021-10-18 16:07:24',NULL,0,601,NULL,6,1,1,NULL,NULL,NULL,NULL,'Ka Balai',1,1,0,0,0),(919,'2021-10-18 16:07:24',NULL,0,601,NULL,7,1,21,NULL,NULL,NULL,NULL,'Dibalas',1,1,0,1,0),(922,'2021-10-18 16:07:24',NULL,0,601,NULL,8,2,14,NULL,NULL,NULL,NULL,'Pengarsipan',1,1,0,1,0),(925,'2021-10-18 16:16:48',49,0,604,NULL,1,1,20,NULL,NULL,NULL,'2021-10-18 16:18:47','Disposisi Awal',1,1,1,0,2),(928,'2021-10-18 16:16:48',67,0,604,NULL,2,2,14,NULL,NULL,NULL,'2021-10-26 13:11:01','Disposisi PU',1,1,0,1,2),(931,'2021-10-18 16:16:48',48,0,604,NULL,3,1,1,NULL,NULL,NULL,'2021-10-28 09:22:16','Dispoisi Ka Balai',1,1,0,1,2),(934,'2021-10-18 16:16:48',NULL,0,604,NULL,4,2,14,NULL,NULL,NULL,NULL,'Disposisi PU',1,1,0,0,1),(937,'2021-10-18 16:16:48',NULL,0,604,NULL,6,2,14,NULL,NULL,NULL,NULL,'Pengarsipan',1,1,0,1,0),(982,'2021-10-18 16:31:08',67,0,607,NULL,1,1,20,NULL,NULL,NULL,'2021-10-26 13:06:47','Disposisi Awal',1,1,1,0,2),(985,'2021-10-18 16:31:08',NULL,0,607,NULL,2,2,14,NULL,NULL,NULL,NULL,'Disposisi PU',1,1,0,1,1),(988,'2021-10-18 16:31:08',NULL,0,607,NULL,3,1,1,NULL,NULL,NULL,NULL,'Dispoisi Ka Balai',1,1,0,1,0),(991,'2021-10-18 16:31:08',NULL,0,607,NULL,4,2,14,NULL,NULL,NULL,NULL,'Disposisi PU',1,1,0,0,0),(994,'2021-10-18 16:31:08',NULL,0,607,NULL,5,1,1,NULL,NULL,NULL,NULL,'group 1',1,1,1,1,0),(997,'2021-10-18 16:31:08',NULL,0,607,NULL,6,2,14,NULL,NULL,NULL,NULL,'Pengarsipan',1,1,0,1,0),(1000,'2021-10-18 16:36:38',49,0,610,NULL,1,1,20,NULL,NULL,NULL,'2021-10-18 16:40:47','Disposisi Awal',1,1,1,0,2),(1003,'2021-10-18 16:36:38',NULL,0,610,NULL,2,2,14,NULL,NULL,NULL,NULL,'Disposisi PU',1,1,0,1,1),(1006,'2021-10-18 16:36:38',NULL,0,610,NULL,3,1,1,NULL,NULL,NULL,NULL,'Dispoisi Ka Balai',1,1,0,1,0),(1009,'2021-10-18 16:36:38',NULL,0,610,NULL,4,2,14,NULL,NULL,NULL,NULL,'Disposisi PU',1,1,0,0,0),(1012,'2021-10-18 16:36:38',NULL,0,610,NULL,5,1,20,NULL,NULL,NULL,NULL,'d1',1,1,1,1,0),(1015,'2021-10-18 16:36:38',NULL,0,610,NULL,5,1,1,NULL,NULL,NULL,NULL,'d1',1,1,1,2,0),(1018,'2021-10-18 16:36:38',NULL,0,610,NULL,6,2,14,NULL,NULL,NULL,NULL,'Pengarsipan',1,1,0,1,0),(1021,'2021-10-18 16:47:30',48,0,613,NULL,1,1,1,NULL,NULL,NULL,'2021-10-28 09:22:40','Persetujuan Atasan',1,1,0,4,2),(1024,'2021-10-18 16:47:30',48,0,613,NULL,2,1,1,NULL,NULL,NULL,'2021-10-28 09:23:14','Persetujuan Kepala BDK',1,1,0,4,2),(1060,'2021-10-28 04:17:33',49,0,616,NULL,1,1,20,NULL,NULL,NULL,'2021-10-28 09:26:26','Disposisi Awal',1,1,1,0,2),(1063,'2021-10-28 04:17:33',NULL,0,616,NULL,2,2,14,NULL,NULL,NULL,NULL,'Disposisi PU',1,1,0,1,1),(1066,'2021-10-28 04:17:33',NULL,0,616,NULL,3,1,1,NULL,NULL,NULL,NULL,'Dispoisi Ka Balai',1,1,0,1,0),(1069,'2021-10-28 04:17:33',NULL,0,616,NULL,4,2,14,NULL,NULL,NULL,NULL,'Disposisi PU',1,1,0,0,0),(1072,'2021-10-28 04:17:33',NULL,0,616,NULL,5,2,14,NULL,NULL,NULL,NULL,'Pengarsipan',1,1,0,1,0),(1075,'2021-10-28 08:24:23',48,0,619,NULL,1,1,1,NULL,NULL,NULL,'2021-10-28 09:18:58','Persetujuan Kepala Surat Tugas',1,1,0,4,2),(1078,'2021-10-28 09:25:10',49,0,595,NULL,1,1,20,NULL,NULL,NULL,'2021-10-28 09:26:19','Disposisi Awal',1,1,1,0,2),(1081,'2021-10-28 09:25:10',NULL,0,595,NULL,2,2,12,NULL,NULL,NULL,NULL,'Disposisi Surat',1,0,0,0,1),(1084,'2021-10-28 09:25:10',NULL,0,595,NULL,3,1,1,NULL,NULL,NULL,NULL,'Dispoisi Ka Balai',1,1,0,1,0),(1087,'2021-10-28 09:25:10',NULL,0,595,NULL,4,1,20,NULL,NULL,NULL,NULL,'Disposisi Kasubag TU',1,0,0,0,0),(1090,'2021-10-28 09:25:10',NULL,0,595,NULL,5,1,1,NULL,NULL,NULL,NULL,'group 1',1,1,1,1,0),(1093,'2021-10-28 09:25:10',NULL,0,595,NULL,6,2,6,NULL,NULL,NULL,NULL,'Pengarsipan',1,0,0,0,0);
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_suratbdk_disposisi_BEFORE_INSERT` BEFORE INSERT ON `tb_suratbdk_disposisi` FOR EACH ROW
BEGIN
	set new.tanggal=now();
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_suratbdk_disposisi_AFTER_INSERT` AFTER INSERT ON `tb_suratbdk_disposisi` FOR EACH ROW
BEGIN
	update tb_suratbdk set iddisposisi=new.iddisposisi where id=new.idsurat;
END */;;
DELIMITER ;

--
-- Table structure for table `tb_suratbdk_disposisi_idstatus`
--

CREATE TABLE `tb_suratbdk_disposisi_idstatus` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `iddisposisisurat` int(11) DEFAULT NULL,
  `idstatus` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  UNIQUE KEY `index3` (`iddisposisisurat`,`idstatus`),
  CONSTRAINT `fx_iddisposisistatus_iddissurat` FOREIGN KEY (`iddisposisisurat`) REFERENCES `tb_suratbdk_disposisi` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=863 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_suratbdk_disposisi_idstatus`
--

INSERT INTO `tb_suratbdk_disposisi_idstatus` VALUES (502,817,41),(505,820,41),(508,826,41),(511,829,50),(514,829,51),(517,832,61),(520,832,62),(523,832,68),(526,832,69),(529,835,61),(532,835,62),(535,835,68),(538,835,69),(541,838,61),(544,838,62),(547,838,68),(550,838,69),(553,841,61),(556,841,62),(559,841,68),(562,841,69),(565,844,22),(568,844,26),(571,844,28),(574,844,29),(577,847,22),(580,847,26),(583,847,28),(586,847,29),(637,862,22),(640,862,26),(643,862,28),(646,862,29),(649,865,22),(652,865,26),(655,865,28),(658,865,29),(661,868,22),(664,868,26),(667,868,28),(670,868,29),(673,871,22),(676,871,26),(679,871,28),(682,871,29),(697,892,50),(700,892,51),(703,898,51),(706,898,52),(709,904,41),(712,907,41),(715,919,42),(718,922,41),(721,928,41),(724,931,41),(727,937,41),(763,985,41),(766,988,41),(769,994,28),(772,997,41),(775,1003,41),(778,1006,41),(781,1012,28),(784,1015,28),(787,1015,29),(790,1018,41),(793,1021,22),(796,1021,26),(799,1021,28),(802,1021,29),(805,1024,22),(808,1024,26),(811,1024,28),(814,1024,29),(838,1063,41),(841,1066,41),(844,1072,41),(847,1075,22),(850,1075,26),(853,1075,28),(856,1075,29),(859,1084,41),(862,1090,1);
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_suratbdk_disposisi_idstatus_AFTER_INSERT` AFTER INSERT ON `tb_suratbdk_disposisi_idstatus` FOR EACH ROW
BEGIN
	update tb_suratbdk_disposisi set jumlah_status=jumlah_status+1 where id=new.iddisposisisurat;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_suratbdk_disposisi_idstatus_AFTER_DELETE` AFTER DELETE ON `tb_suratbdk_disposisi_idstatus` FOR EACH ROW
BEGIN
	update tb_suratbdk_disposisi set jumlah_status=jumlah_status-1 where id=old.iddisposisisurat;
END */;;
DELIMITER ;

--
-- Table structure for table `tb_suratbdk_disposisi_manual`
--

CREATE TABLE `tb_suratbdk_disposisi_manual` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `idsurat` int(11) DEFAULT NULL,
  `nomorgroup` int(11) DEFAULT NULL,
  `urutan` int(11) DEFAULT 1,
  `nama` varchar(253) DEFAULT NULL,
  `jumlah_jabatan` int(11) DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  KEY `fx_idsurat_idsuratdismanual_idx` (`idsurat`),
  CONSTRAINT `fx_idsurat_idsuratdismanual` FOREIGN KEY (`idsurat`) REFERENCES `tb_suratbdk` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=326 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_suratbdk_disposisi_manual`
--

INSERT INTO `tb_suratbdk_disposisi_manual` VALUES (295,601,0,1,'Kasubag TU',1),(298,601,0,2,'Ka Balai',1),(301,601,0,3,'Dibalas',1),(304,604,0,2,'Ka. Sub Bagian',0),(313,607,0,1,'group 1',1),(316,610,0,1,'d1',2),(322,616,0,1,'Disposisi Surat Masuk',1),(325,595,0,1,'group 1',1);

--
-- Table structure for table `tb_suratbdk_disposisi_manual_idstatus`
--

CREATE TABLE `tb_suratbdk_disposisi_manual_idstatus` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `iddisposisimanualjabatan` int(11) DEFAULT NULL,
  `idstatus` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  UNIQUE KEY `index3` (`iddisposisimanualjabatan`,`idstatus`),
  CONSTRAINT `fx_iddismanualjbt_idddimasnualst` FOREIGN KEY (`iddisposisimanualjabatan`) REFERENCES `tb_suratbdk_disposisi_manual_jabatan` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=107 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_suratbdk_disposisi_manual_idstatus`
--

INSERT INTO `tb_suratbdk_disposisi_manual_idstatus` VALUES (73,124,42),(91,139,28),(94,142,28),(97,145,28),(100,145,29),(106,154,1);
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_suratbdk_disposisi_manual_idstatus_AFTER_INSERT` AFTER INSERT ON `tb_suratbdk_disposisi_manual_idstatus` FOR EACH ROW
BEGIN
	update tb_suratbdk_disposisi_manual_jabatan set jumlah_status=jumlah_status+1 where id=new.iddisposisimanualjabatan;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_suratbdk_disposisi_manual_idstatus_AFTER_DELETE` AFTER DELETE ON `tb_suratbdk_disposisi_manual_idstatus` FOR EACH ROW
BEGIN
	update tb_suratbdk_disposisi_manual_jabatan set jumlah_status=jumlah_status-1 where id=old.iddisposisimanualjabatan;
END */;;
DELIMITER ;

--
-- Table structure for table `tb_suratbdk_disposisi_manual_jabatan`
--

CREATE TABLE `tb_suratbdk_disposisi_manual_jabatan` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `idsurat` int(11) DEFAULT NULL,
  `iddisposisimanual` int(11) DEFAULT NULL,
  `modejabatan` int(11) DEFAULT NULL,
  `idjabatan` int(11) DEFAULT NULL,
  `view` int(1) DEFAULT 0,
  `edit` int(1) DEFAULT 0,
  `hapus` int(1) DEFAULT 0,
  `jumlah_status` int(11) DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  KEY `fx_dispoisimasnual_disjabatan_idx` (`iddisposisimanual`),
  CONSTRAINT `fx_dispoisimasnual_disjabatan` FOREIGN KEY (`iddisposisimanual`) REFERENCES `tb_suratbdk_disposisi_manual` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=155 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_suratbdk_disposisi_manual_jabatan`
--

INSERT INTO `tb_suratbdk_disposisi_manual_jabatan` VALUES (118,601,295,1,20,1,1,1,0),(121,601,298,1,1,1,1,0,0),(124,601,301,1,21,1,1,0,1),(139,607,313,1,1,1,1,1,1),(142,610,316,1,20,1,1,1,1),(145,610,316,1,1,1,1,1,2),(151,616,322,1,20,0,0,0,0),(154,595,325,1,1,1,1,1,1);
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_suratbdk_disposisi_manual_jabatan_AFTER_INSERT` AFTER INSERT ON `tb_suratbdk_disposisi_manual_jabatan` FOR EACH ROW
BEGIN
	update tb_suratbdk_disposisi_manual set jumlah_jabatan=jumlah_jabatan+1 where id=new.iddisposisimanual;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_suratbdk_disposisi_manual_jabatan_AFTER_DELETE` AFTER DELETE ON `tb_suratbdk_disposisi_manual_jabatan` FOR EACH ROW
BEGIN
	update tb_suratbdk_disposisi_manual set jumlah_jabatan=jumlah_jabatan-1 where id=old.iddisposisimanual;
END */;;
DELIMITER ;

--
-- Table structure for table `tb_suratbdk_dokumen`
--

CREATE TABLE `tb_suratbdk_dokumen` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `idsurat` int(11) DEFAULT NULL,
  `nama` varchar(245) DEFAULT NULL,
  `iddokumen` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  KEY `fx_iddokumensurat_idsurat_idx` (`idsurat`),
  CONSTRAINT `fx_iddokumensurat_idsurat` FOREIGN KEY (`idsurat`) REFERENCES `tb_suratbdk` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=107 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_suratbdk_dokumen`
--

INSERT INTO `tb_suratbdk_dokumen` VALUES (46,544,'1',310),(49,547,'2',313),(52,550,'3',316),(55,553,'4',319),(58,556,'1',322),(61,559,'2',325),(67,598,'1',340),(70,601,'tes dok surat masuk',346),(76,604,'Permohonan',349),(85,607,'Tes 2',352),(88,610,'yyy',355),(103,616,'Undangan Bimtek Prakom',382),(106,595,'a',337);
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_suratbdk_dokumen_AFTER_INSERT` AFTER INSERT ON `tb_suratbdk_dokumen` FOR EACH ROW
BEGIN
	update tb_suratbdk set jumlah_dokumen=jumlah_dokumen+1 where id=new.idsurat;
END */;;
DELIMITER ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `eofficebdk_data`.`tb_suratbdk_dokumen_AFTER_DELETE` AFTER DELETE ON `tb_suratbdk_dokumen` FOR EACH ROW
BEGIN
	update tb_suratbdk set jumlah_dokumen=jumlah_dokumen-1 where id=old.idsurat;
END */;;
DELIMITER ;

--
-- Table structure for table `tb_suratbdk_manual_disp`
--

CREATE TABLE `tb_suratbdk_manual_disp` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `idsurat` int(11) DEFAULT NULL,
  `iddisposisi` int(11) DEFAULT NULL,
  `urutan` int(11) DEFAULT 1,
  `mode` int(11) DEFAULT NULL,
  `idjabatan` int(11) DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  KEY `fx_iddisposisimanual_idsurat_idx` (`idsurat`),
  KEY `tb_iddisposisimanual_masterdisp_idx` (`iddisposisi`),
  CONSTRAINT `fx_iddisposisimanual_idsurat` FOREIGN KEY (`idsurat`) REFERENCES `tb_suratbdk` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `tb_iddisposisimanual_masterdisp` FOREIGN KEY (`iddisposisi`) REFERENCES `tb_master_disposisi_status` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_suratbdk_manual_disp`
--


--
-- Table structure for table `tb_template_sms`
--

CREATE TABLE `tb_template_sms` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `kode` varchar(5) DEFAULT NULL,
  `nama` varchar(145) DEFAULT NULL,
  `template` mediumtext DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  UNIQUE KEY `kode_UNIQUE` (`kode`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tb_template_sms`
--


--
-- Dumping events for database 'eofficebdk_data'
--

--
-- Dumping routines for database 'eofficebdk_data'
--


