├── css ├── admin.css ├── form.css ├── images │ ├── ui-bg_flat_0_aaaaaa_40x100.png │ ├── ui-bg_flat_75_ffffff_40x100.png │ ├── ui-bg_glass_55_fbf9ee_1x400.png │ ├── ui-bg_glass_65_ffffff_1x400.png │ ├── ui-bg_glass_75_dadada_1x400.png │ ├── ui-bg_glass_75_e6e6e6_1x400.png │ ├── ui-bg_glass_95_fef1ec_1x400.png │ ├── ui-bg_highlight-soft_75_cccccc_1x100.png │ ├── ui-icons_222222_256x240.png │ ├── ui-icons_2e83ff_256x240.png │ ├── ui-icons_454545_256x240.png │ ├── ui-icons_888888_256x240.png │ └── ui-icons_cd0a0a_256x240.png ├── jquery-ui-1.8.19.custom.css ├── print.css ├── surat.css └── surat_cetak.css ├── daftar_keluarga.php ├── daftar_penduduk2.php ├── daftar_surat.php ├── data.php ├── data_tampil.php ├── data_warga.php ├── database └── simdes.sql ├── hapus_data.php ├── img ├── add-icon.gif ├── arrow.gif ├── b_print.png ├── b_save.png ├── b_search.png ├── b_usrcheck.png ├── b_usrdrop.png ├── b_usredit.png ├── back.png ├── bg-center-column.jpg ├── blank.gif ├── box-bg.gif ├── cancel.png ├── cut.png ├── edit-icon.gif ├── edit_add.png ├── edit_remove.png ├── filesave.png ├── gb_surat.png ├── gresik.jpeg ├── gresik.jpg ├── help.png ├── hr.gif ├── loading.gif ├── loading2.gif ├── login-icon.gif ├── logo.gif ├── logo.png ├── nganan.png ├── ngiri.png ├── no.png ├── ods.png ├── ok.png ├── pdf.png ├── pencil.png ├── print.png ├── redo.png ├── reload.png ├── s_success.png ├── save-icon.gif ├── save.png ├── search.png ├── spreadsheet-icon.png ├── sum.png ├── tip.png ├── undo.png └── warning.png ├── include ├── config.php ├── fungsi.php └── koneksi.php ├── index.html ├── index.php ├── js ├── awesomechart.js ├── buatan_sendiri.js ├── images │ ├── dragIcon.gif │ ├── dragIconH.gif │ └── lens.png ├── jquery-1.5.1.min.js ├── jquery-ui-1.8.19.custom.min.js └── jquery.printPage.js ├── jumlah_data_cari.php ├── lap_penduduk.php ├── mutasi_keluar.php ├── mutasi_masuk.php ├── simpan_keluarga.php ├── simpan_mutasi.php ├── simpan_penduduk.php ├── simpan_surat.php ├── simpan_xls.php ├── surat.php ├── surat_lahir_mati.php ├── tambah_keluarga.php ├── tambah_penduduk.php ├── tambah_surat.php ├── tambah_surat_link.php ├── template ├── keluarga.php ├── surat.php └── warga.php ├── template_surat └── surat_ket.php ├── tes_chart.php ├── to_xls.php └── update.php /css/admin.css: -------------------------------------------------------------------------------- 1 | /* main styles */ 2 | body { 3 | margin:0; 4 | padding:0; 5 | background:#BBD9EE; 6 | color:#000; 7 | font-family:tahoma,arial,sans-serif; 8 | font-size:11px; 9 | } 10 | form { 11 | margin:0; 12 | padding:0 13 | } 14 | img {border:none;} 15 | a {color:#060606;text-decoration: none} 16 | a:hover {text-decoration: underline} 17 | input {vertical-align:middle} 18 | .floatleft {float:left !important} 19 | .floatright {float:right !important} 20 | .clear {clear:both !important} 21 | .bold {font-weight:bold !important} 22 | .normal {font-weight:normal !important} 23 | .block {display:block !important} 24 | input.text, 25 | select, 26 | textarea { 27 | font-family:arial,sans-serif; 28 | color:#333; 29 | font-size:12px; 30 | vertical-align:middle; 31 | } 32 | input.text { 33 | padding:1px 0 0 4px; 34 | height:14px; 35 | font-weight:normal; 36 | } 37 | /* main container */ 38 | #main { 39 | width:992px; 40 | margin:0 auto; 41 | // border:1px solid green; 42 | -moz-border-radius: 7px; 43 | -webkit-border-radius: 7px; 44 | } 45 | /* header */ 46 | #header { 47 | // height:90px; 48 | // background:url(../img/logo.png) left no-repeat; 49 | background:#E6E6FA; 50 | margin:0; 51 | margin-bottom:-1px; 52 | // padding:3px 5px; 53 | padding-bottom:0px; 54 | border-top-left-radius: 4px; 55 | border-top-right-radius: 4px; 56 | overflow:auto; 57 | } 58 | /* site logo */ 59 | a.logo { 60 | position:absolute; 61 | top:5px; 62 | left:20px; 63 | } 64 | 65 | /* header tabs */ 66 | #top-navigation { 67 | position:relative; 68 | background:#DCD5D5; 69 | margin:0; 70 | padding:0px 5px; 71 | list-style:none; 72 | overflow:auto; 73 | } 74 | #top-navigation li { 75 | float:left; 76 | margin:2px 4px 0 0; 77 | // height:34px; 78 | display:block; 79 | height:20px; 80 | // line-height:19px; 81 | // margin-top:9px; 82 | color:#606060; 83 | padding:4px 10px 0 10px; 84 | border-top-left-radius: 4px; 85 | border-top-right-radius: 4px; 86 | -moz-border-radius-topleft: 4px; 87 | -moz-border-radius-topright: 4px; 88 | -webkit-border-top-left-radius: 4px; 89 | -webkit-border-top-right-radius: 4px; 90 | background:#e7f1f8; 91 | } 92 | #top-navigation li:hover { 93 | border:1px #ff7300 solid; 94 | border-bottom: none; 95 | background:#fff; 96 | // margin: 8px -1px; 97 | } 98 | #top-navigation li a.active { 99 | padding:6px 10px 0 10px; 100 | height:27px; 101 | border:1px #ff7300 solid; 102 | border-bottom:none; 103 | margin:0; 104 | background:white; 105 | } 106 | 107 | /* middle */ 108 | #middle { 109 | float:left; 110 | width:992px; 111 | background:#fff; 112 | // border: 1px solid #ff6f00; 113 | -moz-box-shadow: 3px 3px 9px #666; 114 | -webkit-box-shadow: 3px 3px 9px #666; 115 | // box-shadow: 3px 3px 9px #666; 116 | padding:10px 0 0 0; 117 | // border:1px solid green; 118 | } 119 | /* left column */ 120 | #left-column { 121 | float:left; 122 | padding:1px 14px 0 12px; 123 | width:151px; 124 | } 125 | 126 | /* center column */ 127 | #center-column { 128 | overflow:auto; 129 | float:left; 130 | width:775px; 131 | background:url(../img/bg-center-column.jpg) top left no-repeat; 132 | background:-webkit-gradient( 133 | linear, 134 | left top, 135 | right bottom, 136 | color-stop(0, rgb(221,221,221)), 137 | color-stop(0.5, rgb(255,255,255)) 138 | ); 139 | background:-moz-linear-gradient( 140 | left top, 141 | rgb(221,221,221) 0%, 142 | rgb(255,255,255) 50% 143 | ); 144 | border-radius: 15px; 145 | -moz-border-radius: 15px; 146 | -webkit-border-radius: 15px; 147 | min-height:510px; 148 | padding:12px 16px 8px 13px; 149 | } 150 | * html #center-column {height:584px;} 151 | 152 | /* footer */ 153 | #footer { 154 | float:left; 155 | width:100%; 156 | height:15px; 157 | } 158 | #footer p { 159 | margin: 10px; 160 | } 161 | 162 | /* left column styles */ 163 | #left-column a {color:#3E3E3E;} 164 | #left-column h3 { 165 | font-size:11px; 166 | margin:0; 167 | color:#fff; 168 | background:#ff9500; 169 | background:-webkit-gradient( 170 | linear, 171 | left top, 172 | left bottom, 173 | color-stop(0, rgb(255,149,0)), 174 | color-stop(1, rgb(255,111,0)) 175 | ); 176 | background:-moz-linear-gradient( 177 | center top, 178 | rgb(255,149,0) 0%, 179 | rgb(255,111,0) 100% 180 | ); 181 | border-top-left-radius: 4px; 182 | border-top-right-radius: 4px; 183 | -moz-border-radius-topleft: 4px; 184 | -moz-border-radius-topright: 4px; 185 | -webkit-border-top-left-radius: 4px; 186 | -webkit-border-top-right-radius: 4px; 187 | height:25px; 188 | line-height:23px; 189 | padding:0 0 0 9px; 190 | } 191 | ul.nav { 192 | margin:-1px 0 3px 0; 193 | border-bottom:2px solid #FF9600; 194 | background:#F7E8BE; 195 | list-style:none; 196 | padding:0px; 197 | border-radius:1px; 198 | -moz-border-radius:1px; 199 | -webkit-border-radius:1px; 200 | z-index:999; 201 | } 202 | ul.nav li { 203 | padding:4px 4px 6px 5px; 204 | border-bottom: 1px #FF9600 solid; 205 | // background:#ECEFE7; 206 | } 207 | ul.nav li:hover { 208 | font-weight:bold; 209 | cursor:pointer; 210 | // text-decoration: underline; 211 | background-color:#FFFFFF; 212 | } 213 | ul.nav a { 214 | padding:0 0 0 12px; 215 | background:url(../img/arrow.gif) no-repeat 0 4px; 216 | text-decoration: none; 217 | } 218 | ul.nav li:last-child {border:none;} 219 | 220 | #left-column a.link { 221 | display:block; 222 | width:142px; 223 | height:25px; 224 | background:#c7cdbe; 225 | background:-webkit-gradient( 226 | linear, 227 | left top, 228 | left bottom, 229 | color-stop(0, rgb(235,239,227)), 230 | color-stop(1, rgb(199,205,190)) 231 | ); 232 | background:-moz-linear-gradient( 233 | center top, 234 | rgb(235,239,227) 0%, 235 | rgb(199,205,190) 100% 236 | ); 237 | border-radius: 7px; 238 | -moz-border-radius: 7px; 239 | -webkit-border-radius: 7px; 240 | margin:0 0 4px 0; 241 | font-weight:bold; 242 | padding:0 0 0 9px; 243 | line-height:25px; 244 | color:#60635A; 245 | } 246 | 247 | /* center column styles */ 248 | .top-bar { 249 | float:left; 250 | width:775px; 251 | // border-left:2px solid #f70; 252 | border-bottom:2px solid #f70; 253 | padding:0 0 0 9px; 254 | margin:0 0 4px 0; 255 | } 256 | /* text page header */ 257 | .top-bar h1 { 258 | font:20px/21px verdana,sans-serif; 259 | color:#43729F; 260 | margin:0 0 4px 0; 261 | } 262 | /* orange button */ 263 | .top-bar a.button { 264 | float:right; 265 | display:block; 266 | height:12px; 267 | text-align:center; 268 | color:#fff; 269 | text-transform:uppercase; 270 | font-weight:bold; 271 | padding:8px; 272 | background: #ff6f00; 273 | background: -webkit-gradient( 274 | linear, 275 | left top, 276 | left bottom, 277 | color-stop(0.2, rgb(255,154,76)), 278 | color-stop(0.8, rgb(240,96,0)) 279 | ); 280 | background: -moz-linear-gradient( 281 | center top, 282 | rgb(255,154,76) 20%, 283 | rgb(240,96,0) 80% 284 | ); 285 | border-radius: 7px; 286 | -moz-border-radius: 7px; 287 | -webkit-border-radius: 7px; 288 | } 289 | 290 | /* bar with select */ 291 | .select-bar { 292 | clear:both; 293 | padding:5px 0 3px 0; 294 | margin:0 0 10px 0; 295 | } 296 | .select-bar select {width:145px;margin:0 2px;} 297 | 298 | /* table container */ 299 | div.table { 300 | float:left; 301 | position:relative; 302 | margin:0 0 3px 0; 303 | padding:2px; 304 | background:url('../img/loading.gif') no-repeat center; 305 | min-width:300px; 306 | min-height:50px; 307 | } 308 | div.gak_ketemu{ 309 | margin:15px auto; 310 | padding:10px 10px 10px 20px; 311 | background:url('../img/no.png') no-repeat left center #F47B7B; 312 | border:1px solid #F02424; 313 | min-width:200px; 314 | // min-height:20px; 315 | 316 | } 317 | table.listing { 318 | border-bottom:1px solid #9097A9; 319 | background:#9097A9; 320 | // width:613px; 321 | padding:0; 322 | margin:0; 323 | border:1px solid #9097A9; 324 | border-top-left-radius: 10px; 325 | border-top-right-radius: 10px; 326 | -moz-border-radius-topleft: 10px; 327 | -moz-border-radius-topright: 10px; 328 | -webkit-border-top-left-radius: 10px; 329 | -webkit-border-top-right-radius: 10px; 330 | } 331 | table.listing th { 332 | border-top:0 !important; 333 | font-size:80%; 334 | text-transform:uppercase; 335 | } 336 | 337 | table.listing th.full {text-transform:uppercase;} 338 | /* table styles */ 339 | table.listing td, 340 | table.listing th { 341 | border:1px solid #fff; 342 | text-align:center; 343 | } 344 | table.listing th { 345 | /*background:#9097A9;*/ 346 | color:#fff; 347 | padding:5px; 348 | } 349 | table.listing td { 350 | background:#D8D8D8; 351 | color:#000; 352 | padding:3px 5px; 353 | } 354 | /* 355 | table.listing tr:nth-child(odd) td { 356 | background:#ECECEC; 357 | } 358 | */ 359 | table.listing tr:nth-child(odd) td{ 360 | background:#F4F2F2; 361 | } 362 | table.listing th:first-child, table.listing td:first-child {border-left:0px solid #9097A9;text-align:left;} 363 | table.listing th:last-child, table.listing td:last-child {border-right:0px solid #9097A9;} 364 | 365 | table.listing th:first-child { 366 | // width: 177px; 367 | border-left:0; 368 | } 369 | table.listing tr:hover{ 370 | opacity:0.8; 371 | } 372 | /* untuk laporan */ 373 | table.data{ 374 | border-collapse: collapse; 375 | border-spacing: 3px; 376 | word-spacing: 2px; 377 | width:90%; 378 | } 379 | table.data th{ 380 | // background-color:#a4a4b4; 381 | text-transform:uppercase; 382 | margin :1px; 383 | padding-left: 1.2em; 384 | height: 3.2em; 385 | border:1px solid #000; 386 | font-size:80%; 387 | } 388 | table.data td{ 389 | text-align: center; 390 | font-style: italic; 391 | text-decoration: none; 392 | border:1px solid #000; 393 | // background-color:#FFF; 394 | } 395 | 396 | /* right column buttons */ 397 | .buttons { 398 | clear:both; 399 | text-align:center; 400 | padding:20px 0 10px 0; 401 | } 402 | .buttons input {margin:0 0 6px 0;} 403 | .info{ 404 | padding:2px 12px 2px 20px; 405 | margin:2px; 406 | color:#097609; 407 | display:none; 408 | font-size:11px; 409 | font-weight:bolder; 410 | text-align:left; 411 | border:2px solid #097609; 412 | } 413 | div.loading{ 414 | background:url('../img/loading2.gif') no-repeat left center #ADD8E6; 415 | margin:30% auto; 416 | //top:45%; 417 | border:1px solid #1C95BC; 418 | padding-left:20px; 419 | width:150px; 420 | position:relative; 421 | } 422 | .proses{ 423 | background:url('../img/loading.gif') no-repeat left center #ADF1AD; 424 | } 425 | .gagal{ 426 | background:url('../img/no.png') no-repeat left center #F47B7B; 427 | } 428 | .sukses{ 429 | background:url('../img/ok.png') no-repeat left center #C5F7A9; 430 | } 431 | .link{ 432 | cursor:pointer; 433 | } 434 | .save-inline,.proses-inline,.sukses-inline{ 435 | padding:7px; 436 | margin-left:3px; 437 | } 438 | span.save-inline{ 439 | cursor:pointer; 440 | background:url('../img/b_usrcheck.png') no-repeat center; 441 | } 442 | .proses-inline{ 443 | background:url('../img/loading.gif') no-repeat center; 444 | } 445 | .sukses-inline{ 446 | background:url('../img/ok.png') no-repeat center; 447 | } 448 | .gagal-inline{ 449 | background:url('../img/no.png') no-repeat center; 450 | } 451 | // untuk paging 452 | #paging{ 453 | overflow:auto; 454 | } 455 | #paging ul,#paging li{ 456 | float:left; 457 | list-style:none; 458 | } 459 | #paging ul{ 460 | padding:1px; 461 | margin:2px; 462 | } 463 | #paging li{ 464 | padding:2px; 465 | border:1px solid #f70; 466 | margin:1px 1px; 467 | opacity:0.5; 468 | background-color:#EBE8AA; 469 | } 470 | #paging li:hover{ 471 | opacity:1; 472 | cursor:pointer; 473 | } 474 | .terpilih{ 475 | background:url('../img/box-bg.gif'); 476 | } 477 | .prev_next{ 478 | cursor:pointer; 479 | padding:1px 2px; 480 | margin:2px; 481 | border:1px solid #f70; 482 | opacity:0.6; 483 | } 484 | .prev_next:hover{ 485 | opacity:1; 486 | } 487 | #prev,#next{ 488 | display:none; 489 | } 490 | #hal_ke{ 491 | font-style:oblique; 492 | font-size:80%; 493 | } 494 | -------------------------------------------------------------------------------- /css/form.css: -------------------------------------------------------------------------------- 1 | /* ----------- stylized ----------- */ 2 | #stylized{ 3 | border:solid 2px #b7ddf2; 4 | background:#ebf4fb; 5 | margin-top:10px; 6 | overflow:auto; 7 | padding:5px; 8 | } 9 | #stylized h1 { 10 | font-size:14px; 11 | font-weight:bold; 12 | margin-bottom:8px; 13 | } 14 | #stylized p{ 15 | font-size:11px; 16 | color:#666666; 17 | margin-bottom:20px; 18 | border-bottom:solid 1px #b7ddf2; 19 | padding-bottom:10px; 20 | } 21 | #stylized label{ 22 | display:block; 23 | font-weight:bold; 24 | text-align:right; 25 | width:170px; 26 | float:left; 27 | clear:both; 28 | } 29 | #stylized .small{ 30 | color:#666666; 31 | display:block; 32 | font-size:11px; 33 | font-weight:normal; 34 | text-align:right; 35 | width:170px; 36 | } 37 | #stylized input,#stylized .input-link, #stylized textarea{ 38 | float:left; 39 | font-size:12px; 40 | padding:4px 6px; 41 | border:solid 1px #aacfe4; 42 | width:200px; 43 | margin:5px 0 5px 5px; 44 | } 45 | #stylized textarea{ 46 | //width:300px; 47 | } 48 | #stylized .input-link{ 49 | cursor:pointer; 50 | border:none; 51 | } 52 | #stylized select{ 53 | float:left; 54 | font-size:12px; 55 | padding:4px 6px; 56 | border:solid 1px #aacfe4; 57 | width:214px; 58 | margin:2px 0 5px 5px; 59 | } 60 | #stylized button{ 61 | clear:both; 62 | margin-left:175px; 63 | width:125px; 64 | height:31px; 65 | background:#666666 url(img/button.png) no-repeat; 66 | text-align:center; 67 | line-height:31px; 68 | color:#FFFFFF; 69 | font-size:11px; 70 | font-weight:bold; 71 | float:left; 72 | } 73 | #stylized .ket{ 74 | float:right; 75 | padding:2px 12px 2px 20px; 76 | margin:6px 50px 2px 2px; 77 | color:#FFFFFF; 78 | display:none; 79 | font-size:11px; 80 | font-weight:bolder; 81 | text-align:left; 82 | background:url('../img/warning.png') no-repeat left center #F47B7B; 83 | border:2px solid #E53B3B; 84 | vertical-align:middle; 85 | } 86 | #stylized span.icon-del{ 87 | float:left; 88 | padding:7px; 89 | margin:5px 0 5px 5px; 90 | background:url('../img/b_usrdrop.png') no-repeat left; 91 | cursor:pointer; 92 | } 93 | .span_download{ 94 | margin : 3px; 95 | float:right; 96 | font-weight:bolder; 97 | vertical-align:top; 98 | } 99 | -------------------------------------------------------------------------------- /css/images/ui-bg_flat_0_aaaaaa_40x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/css/images/ui-bg_flat_0_aaaaaa_40x100.png -------------------------------------------------------------------------------- /css/images/ui-bg_flat_75_ffffff_40x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/css/images/ui-bg_flat_75_ffffff_40x100.png -------------------------------------------------------------------------------- /css/images/ui-bg_glass_55_fbf9ee_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/css/images/ui-bg_glass_55_fbf9ee_1x400.png -------------------------------------------------------------------------------- /css/images/ui-bg_glass_65_ffffff_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/css/images/ui-bg_glass_65_ffffff_1x400.png -------------------------------------------------------------------------------- /css/images/ui-bg_glass_75_dadada_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/css/images/ui-bg_glass_75_dadada_1x400.png -------------------------------------------------------------------------------- /css/images/ui-bg_glass_75_e6e6e6_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/css/images/ui-bg_glass_75_e6e6e6_1x400.png -------------------------------------------------------------------------------- /css/images/ui-bg_glass_95_fef1ec_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/css/images/ui-bg_glass_95_fef1ec_1x400.png -------------------------------------------------------------------------------- /css/images/ui-bg_highlight-soft_75_cccccc_1x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/css/images/ui-bg_highlight-soft_75_cccccc_1x100.png -------------------------------------------------------------------------------- /css/images/ui-icons_222222_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/css/images/ui-icons_222222_256x240.png -------------------------------------------------------------------------------- /css/images/ui-icons_2e83ff_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/css/images/ui-icons_2e83ff_256x240.png -------------------------------------------------------------------------------- /css/images/ui-icons_454545_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/css/images/ui-icons_454545_256x240.png -------------------------------------------------------------------------------- /css/images/ui-icons_888888_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/css/images/ui-icons_888888_256x240.png -------------------------------------------------------------------------------- /css/images/ui-icons_cd0a0a_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/css/images/ui-icons_cd0a0a_256x240.png -------------------------------------------------------------------------------- /css/print.css: -------------------------------------------------------------------------------- 1 | /* sembunyikan semuanya */ 2 | #main{ 3 | display:none; 4 | } 5 | 6 | -------------------------------------------------------------------------------- /css/surat.css: -------------------------------------------------------------------------------- 1 | #surat_tampil{ 2 | width:480px; 3 | border:1px solid #4D4D4D; 4 | overflow:auto; 5 | padding:3px; 6 | margin:0 auto; 7 | } 8 | #kepala_surat{ 9 | width:450px; 10 | margin:0 auto; 11 | background:url('../img/gresik.jpeg') no-repeat left; 12 | text-align:center; 13 | } 14 | #logo_surat{ 15 | display:none; 16 | } 17 | .garis{ 18 | border-bottom:1px solid #000; 19 | width:450px; 20 | margin:0 auto; 21 | margin-bottom:15px; 22 | clear:both; 23 | } 24 | #content_surat{ 25 | width:450px; 26 | position:auto; 27 | padding-left:30px; 28 | margin:0 auto; 29 | } 30 | #content_surat label{ 31 | display:block; 32 | width:140px; 33 | float:left; 34 | clear:both; 35 | } 36 | #content_surat span.s_kanan{ 37 | float:left; 38 | max-width:200px; 39 | text-align:justify; 40 | } 41 | #content_surat span.titik{ 42 | float:left; 43 | width:10px; 44 | } 45 | #par_penutup,#par_pembuka,#nomer_surat{ 46 | clear:both; 47 | position:relative; 48 | width:450px; 49 | margin:0 auto; 50 | margin-bottom:15px; 51 | } 52 | #nomer_surat{ 53 | text-align:center; 54 | } 55 | .masuk_alinea{ 56 | margin-right:20px; 57 | } 58 | .tanda_tangan{ 59 | float:left; 60 | text-align:center; 61 | width:50%; 62 | } 63 | .kosong{ 64 | margin-bottom:60px; 65 | } 66 | -------------------------------------------------------------------------------- /css/surat_cetak.css: -------------------------------------------------------------------------------- 1 | *{ 2 | background:none; 3 | border:none; 4 | } 5 | body { 6 | width:100% !important; 7 | margin:0 !important; 8 | padding:0 !important; 9 | line-height: 1.4; 10 | word-spacing:1.5pt; 11 | letter-spacing:0.2pt; font-family: Garamond,"Times New Roman", serif; color: #000; 12 | background:none; font-size: 12pt; } 13 | #header,#left-column,#footer{ 14 | display:none; 15 | } 16 | #middle,#center-column,#main{ 17 | background:#FFF; 18 | width:100%; 19 | border:none; 20 | box-shadow:none; 21 | } 22 | #surat_tampil{ 23 | width:95%; 24 | padding:3px; 25 | margin:0 auto; 26 | border:none; 27 | background:none; 28 | } 29 | #kepala_surat{ 30 | width:95%; 31 | margin:0 auto; 32 | background:url('../img/gresik.jpeg') no-repeat left red; 33 | text-align:center; 34 | font-size: 13pt; 35 | } 36 | #logo_surat{ 37 | display:block; 38 | position:absolute; 39 | top:10px; 40 | left:50px; 41 | } 42 | .garis{ 43 | border-bottom:1px solid #000; 44 | width:94%; 45 | margin:0 auto; 46 | margin-bottom:15px; 47 | clear:both; 48 | } 49 | #content_surat{ 50 | width:95%; 51 | position:auto; 52 | padding-left:30px; 53 | margin:0 auto; 54 | } 55 | #content_surat label{ 56 | display:block; 57 | width:29%; 58 | float:left; 59 | clear:both; 60 | } 61 | #content_surat span.titik{ 62 | float:left; 63 | width:1%; 64 | } 65 | #content_surat span.s_kanan{ 66 | float:left; 67 | max-width:50%; 68 | text-align:justify; 69 | } 70 | #par_penutup,#par_pembuka,#nomer_surat{ 71 | clear:both; 72 | position:relative; 73 | width:95%; 74 | margin:0 auto; 75 | margin-bottom:15px; 76 | } 77 | #nomer_surat{ 78 | text-align:center; 79 | } 80 | .masuk_alinea{ 81 | margin-right:50px; 82 | } 83 | .tanda_tangan{ 84 | float:left; 85 | text-align:center; 86 | width:50%; 87 | } 88 | .kosong{ 89 | margin-bottom:70px; 90 | } 91 | -------------------------------------------------------------------------------- /daftar_keluarga.php: -------------------------------------------------------------------------------- 1 | name); 26 | } 27 | ?> 28 |
29 | Tambah data 30 |

Daftar Keluarga

31 | 32 |
33 |
34 | 37 | 45 | Download sebagai   46 | 47 | 48 | 49 |
50 | 51 |
52 |
53 |
54 |
55 | "; 70 | echo ""; 71 | echo "
".$bag_prev."|<<<"; 72 | echo "1>>>|".$bag_next.""; 73 | echo "Bag : "; 79 | echo "Total data :".$jum_total[0].""; 80 | echo "
"; 81 | echo "
"; 82 | ?> 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 220 | 221 | 222 | -------------------------------------------------------------------------------- /daftar_penduduk2.php: -------------------------------------------------------------------------------- 1 | name); 24 | } 25 | ?> 26 |
27 | Tambah data 28 |

Daftar Penduduk

29 | 30 |
31 |
32 | 35 | 43 | Download sebagai   44 | 45 | 46 | 47 |
48 | 49 |
50 |
51 |
52 |
53 | "; 68 | echo ""; 69 | echo "
".$bag_prev."|<<<"; 70 | echo "1>>>|".$bag_next.""; 71 | echo "Bag : "; 77 | echo "Total data :".$jum_total[0].""; 78 | echo "
"; 79 | echo "
"; 80 | ?> 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 218 | 219 | 220 | -------------------------------------------------------------------------------- /daftar_surat.php: -------------------------------------------------------------------------------- 1 | name); 24 | } 25 | ?> 26 |
27 | Tambah data 28 |

Daftar Surat

29 | 30 |
31 |
32 | 35 | 43 | Download sebagai   44 | 45 | 46 | 47 |
48 | 49 |
50 |
51 |
52 |
53 | "; 68 | echo ""; 69 | echo "
".$bag_prev."|<<<"; 70 | echo "1>>>|".$bag_next.""; 71 | echo "Bag : "; 77 | echo "Total data :".$jum_total[0].""; 78 | echo "
"; 79 | echo "
"; 80 | ?> 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 209 | 210 | 211 | -------------------------------------------------------------------------------- /data.php: -------------------------------------------------------------------------------- 1 | 16 | -------------------------------------------------------------------------------- /data_tampil.php: -------------------------------------------------------------------------------- 1 | "; 35 | $tampil .=""; 36 | $jum_kolom = mysqli_num_fields($sql_exe); 37 | $tampil .= "No"; 38 | $title = array(); 39 | for($i = 0; $i < $jum_kolom; $i++){ 40 | $nm_kolom = mysqli_fetch_field($sql_exe); 41 | array_push($title,$nm_kolom->name); 42 | $tampil .= "".$nm_kolom->name.""; 43 | } 44 | $tampil .= "Aksi"; 45 | $tampil .= ""; 46 | while($data = mysqli_fetch_row($sql_exe)){ 47 | $tampil .= ""; 48 | $tampil .= "".$no++.""; 49 | for($i = 0; $i < count($data);$i++){ 50 | $tampil .= "".$data[$i].""; 51 | } 52 | $tampil .= ""; 53 | $tampil .= ""; 54 | } 55 | $tampil .= ""; 56 | $tampil .= ""; 57 | } 58 | echo $tampil; 59 | ?> 60 | -------------------------------------------------------------------------------- /data_warga.php: -------------------------------------------------------------------------------- 1 | 15 | -------------------------------------------------------------------------------- /database/simdes.sql: -------------------------------------------------------------------------------- 1 | -- phpMyAdmin SQL Dump 2 | -- version 3.4.5deb1 3 | -- http://www.phpmyadmin.net 4 | -- 5 | -- Host: localhost 6 | -- Waktu pembuatan: 03. Juni 2012 jam 10:57 7 | -- Versi Server: 5.1.61 8 | -- Versi PHP: 5.3.6-13ubuntu3.6 9 | 10 | SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; 11 | SET time_zone = "+00:00"; 12 | 13 | 14 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 15 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 16 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 17 | /*!40101 SET NAMES utf8 */; 18 | 19 | -- 20 | -- Database: `simdes` 21 | -- 22 | 23 | -- -------------------------------------------------------- 24 | 25 | -- 26 | -- Struktur dari tabel `det_keluarga` 27 | -- 28 | 29 | CREATE TABLE IF NOT EXISTS `det_keluarga` ( 30 | `id_keluarga` varchar(20) NOT NULL, 31 | `no_ktp` varchar(20) NOT NULL, 32 | KEY `id_warga` (`no_ktp`,`id_keluarga`) 33 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; 34 | 35 | -- -------------------------------------------------------- 36 | 37 | -- 38 | -- Struktur dari tabel `keluarga` 39 | -- 40 | 41 | CREATE TABLE IF NOT EXISTS `keluarga` ( 42 | `id_keluarga` varchar(20) NOT NULL, 43 | `kepala_keluarga` varchar(50) NOT NULL, 44 | `alamat` text NOT NULL, 45 | `dusun` varchar(30) NOT NULL, 46 | `rt` varchar(2) DEFAULT NULL, 47 | `rw` varchar(2) DEFAULT NULL, 48 | `ekonomi` varchar(20) DEFAULT NULL, 49 | PRIMARY KEY (`id_keluarga`) 50 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; 51 | 52 | -- 53 | -- Trigger `keluarga` 54 | -- 55 | DROP TRIGGER IF EXISTS `hapus_detail_klg`; 56 | DELIMITER // 57 | CREATE TRIGGER `hapus_detail_klg` AFTER DELETE ON `keluarga` 58 | FOR EACH ROW begin 59 | 60 | delete from det_keluarga where det_keluarga.id_keluarga = old.id_keluarga; 61 | 62 | end 63 | // 64 | DELIMITER ; 65 | 66 | -- -------------------------------------------------------- 67 | 68 | -- 69 | -- Struktur dari tabel `mutasi_warga` 70 | -- 71 | 72 | CREATE TABLE IF NOT EXISTS `mutasi_warga` ( 73 | `id_mutasi` mediumint(9) NOT NULL AUTO_INCREMENT, 74 | `id_warga` varchar(20) NOT NULL, 75 | `jenis_mutasi` varchar(15) NOT NULL, 76 | `tanggal` date DEFAULT NULL, 77 | `keterangan` text, 78 | PRIMARY KEY (`id_mutasi`) 79 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; 80 | 81 | -- -------------------------------------------------------- 82 | 83 | -- 84 | -- Struktur dari tabel `surat` 85 | -- 86 | 87 | CREATE TABLE IF NOT EXISTS `surat` ( 88 | `id_surat` int(8) NOT NULL AUTO_INCREMENT, 89 | `jenis_surat` varchar(4) NOT NULL, 90 | `no_surat` varchar(50) NOT NULL, 91 | `nama_surat` varchar(50) NOT NULL, 92 | `tanggal` date DEFAULT NULL, 93 | `isi_surat` text, 94 | `tanda_tangan` varchar(50) NOT NULL, 95 | `id_warga` varchar(20) NOT NULL, 96 | `nama_warga` varchar(50) NOT NULL, 97 | PRIMARY KEY (`id_surat`) 98 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; 99 | 100 | -- -------------------------------------------------------- 101 | 102 | -- 103 | -- Stand-in structure for view `v_detail_warga` 104 | -- 105 | CREATE TABLE IF NOT EXISTS `v_detail_warga` ( 106 | `id_keluarga` varchar(20) 107 | ,`no_ktp` varchar(20) 108 | ,`nama` varchar(50) 109 | ,`agama` varchar(20) 110 | ,`t_lahir` varchar(20) 111 | ,`tgl_lahir` varchar(10) 112 | ,`j_kel` varchar(11) 113 | ,`gol_darah` varchar(2) 114 | ,`w_negara` varchar(20) 115 | ,`pendidikan` varchar(10) 116 | ,`pekerjaan` varchar(30) 117 | ,`s_nikah` varchar(20) 118 | ,`alamat` text 119 | ,`rt` varchar(2) 120 | ,`rw` varchar(2) 121 | ,`dusun` varchar(30) 122 | ); 123 | -- -------------------------------------------------------- 124 | 125 | -- 126 | -- Stand-in structure for view `v_mutasi_warga` 127 | -- 128 | CREATE TABLE IF NOT EXISTS `v_mutasi_warga` ( 129 | `id_warga` varchar(20) 130 | ,`j_kel` enum('L','W') 131 | ,`jenis_mutasi` varchar(15) 132 | ,`periode` varchar(7) 133 | ,`keterangan` text 134 | ); 135 | -- -------------------------------------------------------- 136 | 137 | -- 138 | -- Struktur dari tabel `warga` 139 | -- 140 | 141 | CREATE TABLE IF NOT EXISTS `warga` ( 142 | `no_ktp` varchar(20) NOT NULL, 143 | `nama` varchar(50) NOT NULL, 144 | `agama` varchar(20) NOT NULL, 145 | `t_lahir` varchar(20) NOT NULL, 146 | `tgl_lahir` date DEFAULT NULL, 147 | `j_kel` enum('L','W') NOT NULL, 148 | `gol_darah` varchar(2) NOT NULL, 149 | `w_negara` varchar(20) NOT NULL, 150 | `pendidikan` varchar(10) DEFAULT NULL, 151 | `pekerjaan` varchar(30) NOT NULL, 152 | `s_nikah` varchar(20) DEFAULT NULL, 153 | `status` enum('1','0') NOT NULL DEFAULT '1', 154 | PRIMARY KEY (`no_ktp`) 155 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; 156 | 157 | -- -------------------------------------------------------- 158 | 159 | -- 160 | -- Structure for view `v_detail_warga` 161 | -- 162 | DROP TABLE IF EXISTS `v_detail_warga`; 163 | 164 | CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v_detail_warga` AS select `a`.`id_keluarga` AS `id_keluarga`,`c`.`no_ktp` AS `no_ktp`,`c`.`nama` AS `nama`,`c`.`agama` AS `agama`,`c`.`t_lahir` AS `t_lahir`,date_format(`c`.`tgl_lahir`,'%d-%m-%Y') AS `tgl_lahir`,if((`c`.`j_kel` = 'L'),'Laki - laki','Wanita') AS `j_kel`,`c`.`gol_darah` AS `gol_darah`,`c`.`w_negara` AS `w_negara`,`c`.`pendidikan` AS `pendidikan`,`c`.`pekerjaan` AS `pekerjaan`,`c`.`s_nikah` AS `s_nikah`,`a`.`alamat` AS `alamat`,`a`.`rt` AS `rt`,`a`.`rw` AS `rw`,`a`.`dusun` AS `dusun` from ((`keluarga` `a` join `det_keluarga` `b`) join `warga` `c`) where ((`a`.`id_keluarga` = `b`.`id_keluarga`) and (`b`.`no_ktp` = `c`.`no_ktp`) and (`c`.`status` = '1')); 165 | 166 | -- -------------------------------------------------------- 167 | 168 | -- 169 | -- Structure for view `v_mutasi_warga` 170 | -- 171 | DROP TABLE IF EXISTS `v_mutasi_warga`; 172 | 173 | CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v_mutasi_warga` AS select `mutasi_warga`.`id_warga` AS `id_warga`,`warga`.`j_kel` AS `j_kel`,`mutasi_warga`.`jenis_mutasi` AS `jenis_mutasi`,date_format(`mutasi_warga`.`tanggal`,'%m-%Y') AS `periode`,`mutasi_warga`.`keterangan` AS `keterangan` from (`mutasi_warga` join `warga` on((`warga`.`no_ktp` = `mutasi_warga`.`id_warga`))); 174 | 175 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 176 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 177 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 178 | -------------------------------------------------------------------------------- /hapus_data.php: -------------------------------------------------------------------------------- 1 | 14 | -------------------------------------------------------------------------------- /img/add-icon.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/img/add-icon.gif -------------------------------------------------------------------------------- /img/arrow.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/img/arrow.gif -------------------------------------------------------------------------------- /img/b_print.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/img/b_print.png -------------------------------------------------------------------------------- /img/b_save.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/img/b_save.png -------------------------------------------------------------------------------- /img/b_search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/img/b_search.png -------------------------------------------------------------------------------- /img/b_usrcheck.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/img/b_usrcheck.png -------------------------------------------------------------------------------- /img/b_usrdrop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/img/b_usrdrop.png -------------------------------------------------------------------------------- /img/b_usredit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/img/b_usredit.png -------------------------------------------------------------------------------- /img/back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/img/back.png -------------------------------------------------------------------------------- /img/bg-center-column.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/img/bg-center-column.jpg -------------------------------------------------------------------------------- /img/blank.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/img/blank.gif -------------------------------------------------------------------------------- /img/box-bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/img/box-bg.gif -------------------------------------------------------------------------------- /img/cancel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/img/cancel.png -------------------------------------------------------------------------------- /img/cut.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/img/cut.png -------------------------------------------------------------------------------- /img/edit-icon.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/img/edit-icon.gif -------------------------------------------------------------------------------- /img/edit_add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/img/edit_add.png -------------------------------------------------------------------------------- /img/edit_remove.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/img/edit_remove.png -------------------------------------------------------------------------------- /img/filesave.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/img/filesave.png -------------------------------------------------------------------------------- /img/gb_surat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/img/gb_surat.png -------------------------------------------------------------------------------- /img/gresik.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/img/gresik.jpeg -------------------------------------------------------------------------------- /img/gresik.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/img/gresik.jpg -------------------------------------------------------------------------------- /img/help.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/img/help.png -------------------------------------------------------------------------------- /img/hr.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/img/hr.gif -------------------------------------------------------------------------------- /img/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/img/loading.gif -------------------------------------------------------------------------------- /img/loading2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/img/loading2.gif -------------------------------------------------------------------------------- /img/login-icon.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/img/login-icon.gif -------------------------------------------------------------------------------- /img/logo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/img/logo.gif -------------------------------------------------------------------------------- /img/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/img/logo.png -------------------------------------------------------------------------------- /img/nganan.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/img/nganan.png -------------------------------------------------------------------------------- /img/ngiri.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/img/ngiri.png -------------------------------------------------------------------------------- /img/no.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/img/no.png -------------------------------------------------------------------------------- /img/ods.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/img/ods.png -------------------------------------------------------------------------------- /img/ok.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/img/ok.png -------------------------------------------------------------------------------- /img/pdf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/img/pdf.png -------------------------------------------------------------------------------- /img/pencil.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/img/pencil.png -------------------------------------------------------------------------------- /img/print.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/img/print.png -------------------------------------------------------------------------------- /img/redo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/img/redo.png -------------------------------------------------------------------------------- /img/reload.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/img/reload.png -------------------------------------------------------------------------------- /img/s_success.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/img/s_success.png -------------------------------------------------------------------------------- /img/save-icon.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/img/save-icon.gif -------------------------------------------------------------------------------- /img/save.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/img/save.png -------------------------------------------------------------------------------- /img/search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/img/search.png -------------------------------------------------------------------------------- /img/spreadsheet-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/img/spreadsheet-icon.png -------------------------------------------------------------------------------- /img/sum.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/img/sum.png -------------------------------------------------------------------------------- /img/tip.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/img/tip.png -------------------------------------------------------------------------------- /img/undo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/img/undo.png -------------------------------------------------------------------------------- /img/warning.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/img/warning.png -------------------------------------------------------------------------------- /include/config.php: -------------------------------------------------------------------------------- 1 | SEKRETARIS DESA"; 13 | // nama kecamatan 14 | $desa["kecamatan"] = "Duduksampeyan"; 15 | $desa["kabupaten"] = "Gresik"; 16 | // untuk pilihan 17 | $agama = array("Pilih agama anda","Islam","Kristen_Katolik","Kristen_Protestan","Hindhu","Budha","Kong_Huchu","Lainnya"); 18 | $s_pernikahan = array("Pilih status anda","belum_nikah","nikah","janda/duda","lainnya"); 19 | $j_kelamin = array("Pilih jenis kelamin ","L" => "Laki - Laki","W" => "Wanita"); 20 | $gol_darah = array("Pilih golongan darah","A","AB","B","O","--"); 21 | // gunakan underscore(_) sebagai pengganti spasi antara 2 kata 22 | $dusun = array("Pilih dusun anda","Klagen","Ngembung","Kemendung"); 23 | $rw = array("Pilih rw anda","01","02","03"); 24 | $rt = array("Pilih rw anda","01","02","03","04","05","06","07","08","09","10"); 25 | $ekonomi = array("Pilih ekonomi anda","Sangat_Kaya","Kaya","Cukup","Miskin","Sangat_Miskin","Nemen_pollll","Lainnya"); 26 | // untuk jenis surat, SK = surat keterangan SKP = surat keterangan pindah,SL = Surat lahir, SM = Surat kematian 27 | // jangan dirubah untuk kode suratnya 28 | $j_surat = array("SK" => "470","SKP" => "475","SKA" => "470","SL" =>"474.1","SM" =>"474.3"); 29 | // untuk set nomer awal surat, isi dengan nama index pada jenis surat 30 | $awal_nomer_surat["SK"]=3; 31 | $awal_nomer_surat["SKP"]=0; 32 | $awal_nomer_surat["SKA"]=0; 33 | $awal_nomer_surat["SL"]=0; 34 | $awal_nomer_surat["SM"]=0; 35 | 36 | $surat_ket = array("Pilih Jenis Keterangan","Adat - Istiadat","Usaha","Domisili"); 37 | // untuk paging 38 | $limit = 2; 39 | $paging_tampil = 4; 40 | ?> 41 | -------------------------------------------------------------------------------- /include/fungsi.php: -------------------------------------------------------------------------------- 1 | 28 | -------------------------------------------------------------------------------- /include/koneksi.php: -------------------------------------------------------------------------------- 1 | 13 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Simdesa " Membangun Desa Dengan Teknologi Informasi" 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 35 | 36 |
37 | 55 |
56 |
57 |

Surat

58 | 62 |

Perubahan penduduk

63 | 67 |

Laporan

68 | 71 |

Data Master

72 | 78 |
79 |
80 | 81 |
82 | 88 |
89 | 90 |
91 | 92 | 93 | 100 | -------------------------------------------------------------------------------- /index.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Admin 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 26 | 27 |
28 | 31 |
32 |
33 |

Data Master

34 | 40 |

Surat

41 | 45 |

User

46 | 50 |
51 |
52 | 53 |
54 | 60 |
61 | 62 | 63 |
64 | 65 | 66 | -------------------------------------------------------------------------------- /js/buatan_sendiri.js: -------------------------------------------------------------------------------- 1 | function cek_isi(elm){ 2 | if($(elm).val() != ""){ 3 | var berikutnya = $(elm).nextAll('.isian'); 4 | $(berikutnya).first().attr("disabled",false).focus(); 5 | } 6 | else { 7 | $(elm).focus(); 8 | } 9 | } 10 | 11 | function cek_isi_blur(elm){ 12 | if($(elm).val() != ""){ 13 | var berikutnya = $(elm).nextAll('.isian'); 14 | $(berikutnya).first().attr("disabled",false).focus(); 15 | } 16 | else { 17 | $(elm).focus(); 18 | } 19 | } 20 | 21 | function awal(){ 22 | // disabled semua inputan kecuali inputan pertama 23 | $(".isian:not(:first)").attr("disabled",true); 24 | $("input:first").focus(); 25 | $("input,select").change(function(){ 26 | cek_isi($(this)); 27 | }); 28 | // menangani event onblur pada input dan select 29 | $("input,select").blur(function(){ 30 | cek_isi_blur($(this)); 31 | }); 32 | } 33 | // untuk menangani edit inline 34 | function buat_date(elm){ 35 | $(elm).datepicker({dateFormat:"yy-mm-dd",changeMonth:true,changeYear:true,yearRange:"1930"}); 36 | } 37 | // sesuaikan dengan data pada config.php 38 | function buat_select(nilai,jenis_pilihan){ 39 | var agama = new Array("Pilih agama anda","Islam","Kristen Katolik","Kristen Protestan","Hindhu","Budha","Kong Huchu","Lainnya"); 40 | var s_nikah = new Array("Pilih status anda","belum_nikah","nikah","janda/duda","lainnya"); 41 | var j_kel = new Array("Pilih jenis kelamin ","L","W"); 42 | var gol_darah = new Array("Pilih golongan darah ","A","AB","B","O","--"); 43 | // untuk tabel keluarga 44 | var dusun =new Array("Pilih dusun anda","Klagen","Ngembung","Kemendung"); 45 | var rw = new Array("Pilih rw anda","01","02","03"); 46 | var rt = new Array("Pilih rw anda","01","02","03","04","05","06","07","08","09","10"); 47 | var ekonomi = new Array("Pilih ekonomi anda","Sangat_Kaya","Kaya","Cukup","Miskin","Sangat_Miskin","Nemen_pollll","Lainnya"); 48 | var pilihan = new Array(); 49 | pilihan["agama"] = agama; 50 | pilihan["s_nikah"] = s_nikah; 51 | pilihan["j_kel"] = j_kel; 52 | pilihan["gol_darah"] = gol_darah; 53 | pilihan["dusun"] = dusun; 54 | pilihan["rw"] = rw; 55 | pilihan["rt"] = rt; 56 | pilihan["ekonomi"] = ekonomi; 57 | var opsi = ""; 98 | return opsi; 99 | } 100 | // fungsi untuk update, lihat dan hapus data pada file data_tampil.php 101 | function edit_inline(elm,url,tabel,nama_id){ 102 | var pilihan_elm = new Array("agama","j_kel","s_nikah","dusun","rt","rw","ekonomi","gol_darah"); 103 | var ortu = $(elm).parents("tr"); 104 | var nilai_td = $(elm).text(); 105 | var titel = $(elm).attr("title"); 106 | var index_pil = $.inArray(titel,pilihan_elm); 107 | if( index_pil >= 0){ 108 | var elm_select = buat_select(nilai_td,titel)+""; 109 | $(elm).html(""); 110 | $(elm_select).appendTo($(elm)); 111 | } 112 | else { 113 | var size = nilai_td.length; 114 | if(titel == "tgl_lahir"){ 115 | $(elm).html(""); 116 | $(elm).find("input").select(); 117 | } 118 | else { 119 | $(elm).html(""); 120 | $(elm).find("input").select(); 121 | } 122 | } 123 | } 124 | function update_inline(elm,url,tabel,nama_id){ 125 | if($(elm).prev().val() != ""){ 126 | var titel = $(elm).prev().attr("name"); 127 | var ortu = $(elm).parents("tr"); 128 | var data_id = $(ortu).find("td.id").attr("title"); 129 | var data = $(elm).prev().val(); 130 | $(elm).removeClass("save-inline").addClass("proses-inline"); 131 | $.post(url,{data:data,nama_id:nama_id,data_id:data_id,nama:titel,tbl:tabel},function(hasil){ 132 | if(hasil == 1){ 133 | $(elm).addClass("sukses-inline"); 134 | // kembalikan ke dalam bentuk kolom (td) 135 | $(elm).prev().replaceWith(data); 136 | // jika yang dirubah adalah no_ktp maka update title pada td.id 137 | if(titel == nama_id){ 138 | $(ortu).find("td.id").attr("title",data); 139 | } 140 | } 141 | else { 142 | $(elm).addClass("gagal-inline"); 143 | } 144 | }) 145 | } 146 | } 147 | 148 | function lihat_data(elm,nama_tabel){ 149 | var idnya = $(elm).attr("title"); 150 | var url="template/"+nama_tabel+".php"; 151 | $.post(url,{data:idnya},function(data){ 152 | $("
").html(data).dialog({ 153 | title:'Detail data', 154 | show: 'slide', 155 | hide: 'slide', 156 | dialogClass: 'dialog', 157 | modal: true, 158 | width:'500px', 159 | buttons:{ 160 | OK: function(){ 161 | $(this).dialog('close'); 162 | } 163 | } 164 | }) 165 | }) 166 | 167 | } 168 | 169 | function hapus_data(elm,nama_id,nama_tabel){ 170 | var idnya = $(elm).attr("title"); 171 | var baris = $(elm).parent(); 172 | $("
Yakin akan menghapus data "+nama_id+" = "+idnya+" !!!!
").dialog({ 173 | title:'Hapus data', 174 | show: 'slide', 175 | hide: 'slide', 176 | modal: true, 177 | dialogClass: 'dialog', 178 | buttons:{ 179 | Hapus: function(){ 180 | var url="hapus_data.php"; 181 | $.post(url,{data:idnya,nama_id:nama_id,tabel:nama_tabel},function(data){ 182 | if(data == 1){ 183 | // hapus baris tersebut 184 | $(baris).remove(); 185 | } 186 | }) 187 | $(this).dialog('close'); 188 | }, 189 | Batal: function(){ 190 | $(this).dialog('close'); 191 | } 192 | } 193 | }) 194 | } 195 | // fungsi untuk paging pada tabel 196 | function prev(){ 197 | // hapus paging yang terpilih 198 | $("#paging li").removeClass("terpilih"); 199 | var jum_hal = $("#jum_hal").text(); 200 | var jum_paging = $("#jum_paging").text(); 201 | var bag_sekarang = $("#prev").text(); 202 | // jika bag_sekarang = 2, maka ini sudah awal sekali 203 | if(bag_sekarang > 0){ 204 | var awal_nomer = (jum_paging * (bag_sekarang - 1)) + 1; 205 | var akhir_nomer = parseInt(awal_nomer) + parseInt(jum_paging) ; 206 | akhir_nomer = akhir_nomer < jum_hal ? akhir_nomer:jum_hal; 207 | // ubah nomer halaman link pada paging 208 | var li_paging = $("#paging li"); 209 | var j = 0; 210 | for(var i = awal_nomer; i <= akhir_nomer; i++){ 211 | if(i <= jum_hal){ 212 | $(li_paging).eq(j).text(i); 213 | if($(li_paging).eq(j).not(":visible")){ 214 | $(li_paging).eq(j).show(); 215 | } 216 | } 217 | else { 218 | $(li_paging).eq(j).hide(); 219 | } 220 | 221 | j++; 222 | } 223 | $("#next").text(parseInt(bag_sekarang) + 1); 224 | $("#prev").text(parseInt(bag_sekarang) - 1); 225 | $("#bag_sekarang").text(bag_sekarang); 226 | } 227 | } 228 | function next(){ 229 | // hapus paging yang terpilih 230 | $("#paging li").removeClass("terpilih"); 231 | var jum_hal = $("#jum_hal").text(); 232 | var jum_paging = $("#jum_paging").text(); 233 | var bag_akhir = Math.round(jum_hal / jum_paging) + 1; 234 | var bag_sekarang = $("#next").text(); 235 | var awal_nomer = (jum_paging * (bag_sekarang - 1)) + 1; 236 | var akhir_nomer = parseInt(awal_nomer) + parseInt(jum_paging) ; 237 | akhir_nomer = akhir_nomer < jum_hal ? akhir_nomer:jum_hal; 238 | // ubah nomer halaman link pada paging 239 | if(bag_sekarang == bag_akhir){ 240 | akhir(); 241 | } 242 | else { 243 | var li_paging = $("#paging li"); 244 | var j = 0; 245 | for(var i = awal_nomer; i <= akhir_nomer; i++){ 246 | if(i <= jum_hal){ 247 | $(li_paging).eq(j).text(i); 248 | if($(li_paging).eq(j).not(":visible")){ 249 | $(li_paging).eq(j).show(); 250 | } 251 | } 252 | else { 253 | $(li_paging).eq(j).hide(); 254 | } 255 | j++; 256 | } 257 | $("#next").text(parseInt(bag_sekarang) + 1); 258 | $("#prev").text(parseInt(bag_sekarang) - 1); 259 | $("#bag_sekarang").text(bag_sekarang); 260 | } 261 | } 262 | function awal_paging(){ 263 | // hapus paging yang terpilih 264 | $("#paging li").removeClass("terpilih"); 265 | var jum_hal = $("#jum_hal").text(); 266 | var jum_paging = $("#jum_paging").text(); 267 | var bag_sekarang = 1; 268 | var awal_nomer = (jum_paging * (bag_sekarang - 1)) + 1; 269 | var akhir_nomer = parseInt(awal_nomer) + parseInt(jum_paging) ; 270 | akhir_nomer = akhir_nomer < jum_hal ? akhir_nomer:jum_hal; 271 | // ubah nomer halaman link pada paging 272 | var li_paging = $("#paging li"); 273 | var j = 0; 274 | for(var i = awal_nomer; i <= akhir_nomer; i++){ 275 | if(i <= jum_hal){ 276 | $(li_paging).eq(j).text(i); 277 | if($(li_paging).eq(j).not(":visible")){ 278 | $(li_paging).eq(j).show(); 279 | } 280 | } 281 | else { 282 | $(li_paging).eq(j).hide(); 283 | } 284 | j++; 285 | } 286 | $("#next").text(parseInt(bag_sekarang) + 1); 287 | $("#prev").text(parseInt(bag_sekarang) - 1); 288 | $("#bag_sekarang").text(bag_sekarang); 289 | } 290 | function akhir(){ 291 | // hapus paging yang terpilih 292 | $("#paging li").removeClass("terpilih"); 293 | var jum_hal = $("#jum_hal").text(); 294 | var jum_paging = $("#jum_paging").text(); 295 | var bag_sekarang = Math.ceil(jum_hal / jum_paging); 296 | var awal_nomer = (jum_paging * (bag_sekarang - 1)) + 1; 297 | var akhir_nomer = parseInt(awal_nomer) + parseInt(jum_paging) ; 298 | // akhir_nomer = akhir_nomer < jum_hal ? akhir_nomer:jum_hal; 299 | // ubah nomer halaman link pada paging 300 | var li_paging = $("#paging li"); 301 | var j = 0; 302 | for(var i = awal_nomer; i < akhir_nomer; i++){ 303 | if(i <= jum_hal){ 304 | $(li_paging).eq(j).text(i); 305 | } 306 | else { 307 | $(li_paging).eq(j).hide(); 308 | } 309 | j++; 310 | } 311 | $("#next").text(parseInt(bag_sekarang) + 1); 312 | $("#prev").text(parseInt(bag_sekarang) - 1); 313 | $("#bag_sekarang").text(bag_sekarang); 314 | } 315 | function loncat(elm){ 316 | // hapus paging yang terpilih 317 | $("#paging li").removeClass("terpilih"); 318 | var jum_hal = $("#jum_hal").text(); 319 | var jum_paging = $("#jum_paging").text(); 320 | var bag_akhir = Math.ceil(jum_hal / jum_paging); 321 | var bag_sekarang = elm.value; 322 | var awal_nomer = (jum_paging * (bag_sekarang - 1)) + 1; 323 | var akhir_nomer = parseInt(awal_nomer) + parseInt(jum_paging) ; 324 | akhir_nomer = akhir_nomer < jum_hal ? akhir_nomer:jum_hal; 325 | if(bag_akhir == bag_sekarang){ 326 | akhir(); 327 | } 328 | else { 329 | // ubah nomer halaman link pada paging 330 | var li_paging = $("#paging li"); 331 | var j = 0; 332 | for(var i = awal_nomer; i <= akhir_nomer; i++){ 333 | if(i <= jum_hal){ 334 | $(li_paging).eq(j).text(i); 335 | if($(li_paging).eq(j).not(":visible")){ 336 | $(li_paging).eq(j).show(); 337 | } 338 | } 339 | else { 340 | $(li_paging).eq(j).hide(); 341 | } 342 | j++; 343 | } 344 | $("#next").text(parseInt(bag_sekarang) + 1); 345 | $("#prev").text(parseInt(bag_sekarang) - 1); 346 | $("#bag_sekarang").text(bag_sekarang); 347 | } 348 | } 349 | // fungsi untuk buat download ke excel 350 | function simpan_xls(sql,tabel){ 351 | window.open("simpan_xls.php?sql="+sql+"&tbl="+tabel); 352 | } 353 | -------------------------------------------------------------------------------- /js/images/dragIcon.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/js/images/dragIcon.gif -------------------------------------------------------------------------------- /js/images/dragIconH.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/js/images/dragIconH.gif -------------------------------------------------------------------------------- /js/images/lens.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pandigresik/simdesa/463adee862b97dd7952917ad28fdeb243bbf2b6c/js/images/lens.png -------------------------------------------------------------------------------- /js/jquery.printPage.js: -------------------------------------------------------------------------------- 1 | /** 2 | * jQuery printPage Plugin 3 | * @version: 1.0 4 | * @author: Cedric Dugas, http://www.position-absolute.com 5 | * @licence: MIT 6 | * @desciption: jQuery page print plugin help you print your page in a better way 7 | */ 8 | 9 | (function( $ ){ 10 | $.fn.printPage = function(options) { 11 | // EXTEND options for this button 12 | var pluginOptions = { 13 | attr : "href", 14 | url : false, 15 | message: "Please wait while we create your document" 16 | }; 17 | $.extend(pluginOptions, options); 18 | 19 | this.live("click", function(){ loadPrintDocument(this, pluginOptions); return false; }); 20 | 21 | /** 22 | * Load & show message box, call iframe 23 | * @param {jQuery} el - The button calling the plugin 24 | * @param {Object} pluginOptions - options for this print button 25 | */ 26 | function loadPrintDocument(el, pluginOptions){ 27 | $("body").append(components.messageBox(pluginOptions.message)); 28 | $("#printMessageBox").css("opacity", 0); 29 | $("#printMessageBox").animate({opacity:1}, 300, function() { addIframeToPage(el, pluginOptions); }); 30 | } 31 | /** 32 | * Inject iframe into document and attempt to hide, it, can't use display:none 33 | * You can't print if the element is not dsplayed 34 | * @param {jQuery} el - The button calling the plugin 35 | * @param {Object} pluginOptions - options for this print button 36 | */ 37 | function addIframeToPage(el, pluginOptions){ 38 | 39 | var url = (pluginOptions.url) ? pluginOptions.url : $(el).attr(pluginOptions.attr); 40 | 41 | if(!$('#printPage')[0]){ 42 | $("body").append(components.iframe(url)); 43 | $('#printPage').bind("load",function() { printit(); }) 44 | }else{ 45 | $('#printPage').attr("src", url); 46 | } 47 | } 48 | /* 49 | * Call the print browser functionnality, focus is needed for IE 50 | */ 51 | function printit(){ 52 | frames["printPage"].focus(); 53 | frames["printPage"].print(); 54 | unloadMessage(); 55 | } 56 | /* 57 | * Hide & Delete the message box with a small delay 58 | */ 59 | function unloadMessage(){ 60 | $("#printMessageBox").delay(1000).animate({opacity:0}, 700, function(){ 61 | $(this).remove(); 62 | }); 63 | } 64 | /* 65 | * Build html compononents for thois plugin 66 | */ 67 | var components = { 68 | iframe: function(url){ 69 | return ''; 70 | }, 71 | messageBox: function(message){ 72 | return "
\ 83 | "+message+"
"; 84 | } 85 | } 86 | }; 87 | })( jQuery ); 88 | -------------------------------------------------------------------------------- /jumlah_data_cari.php: -------------------------------------------------------------------------------- 1 | 13 | -------------------------------------------------------------------------------- /lap_penduduk.php: -------------------------------------------------------------------------------- 1 | 2 | "Januari","02" =>"Pebruari","03" =>"Maret","04" =>"April","05" =>"Mei","06" =>"Juni","07" =>"Juli","08" =>"Agustus","09" =>"September","10" =>"Oktober","11" =>"Nopember","12" =>"Desember"); 7 | $tgl_arr=explode("-",$tgl_sekarang); 8 | $periode = $tgl_arr['1']."-".$tgl_arr['2']; 9 | // jumlah penduduk 10 | $tmp_lk = mysqli_query($conn,"select count(*) from warga where status = '1' and j_kel='L'"); 11 | $tmp_pr = mysqli_query($conn,"select count(*) from warga where status = '1' and j_kel='W'"); 12 | $jumlah_lk = mysqli_fetch_row($tmp_lk); 13 | $jumlah_pr = mysqli_fetch_row($tmp_pr); 14 | $jumlah_semua = $jumlah_lk[0] + $jumlah_pr[0]; 15 | // jumlah mutasi penduduk ( lahir, mati, keluar ,masuk) untuk bulan ini 16 | $jml_datang_lk = mysqli_query($conn,"select count(*) from v_mutasi_warga where periode = '".$periode."' and j_kel='L' and jenis_mutasi='masuk'"); 17 | $jml_datang_pr = mysqli_query($conn,"select count(*) from v_mutasi_warga where periode = '".$periode."' and j_kel='W' and jenis_mutasi='masuk'"); 18 | $jumlah_datang_lk = mysqli_fetch_row($jml_datang_lk); 19 | $jumlah_datang_pr = mysqli_fetch_row($jml_datang_pr); 20 | $jumlah_semua_datang = $jumlah_datang_lk[0] + $jumlah_datang_pr[0]; 21 | $jml_keluar_lk = mysqli_query($conn,"select count(*) from v_mutasi_warga where periode = '".$periode."' and j_kel='L' and jenis_mutasi='keluar'"); 22 | $jml_keluar_pr = mysqli_query($conn,"select count(*) from v_mutasi_warga where periode = '".$periode."' and j_kel='W' and jenis_mutasi='keluar'"); 23 | $jumlah_keluar_lk = mysqli_fetch_row($jml_keluar_pr); 24 | $jumlah_keluar_pr = mysqli_fetch_row($jml_keluar_lk); 25 | $jumlah_semua_keluar = $jumlah_keluar_lk[0] + $jumlah_keluar_pr[0]; 26 | $jml_lahir_lk = mysqli_query($conn,"select count(*) from v_mutasi_warga where periode = '".$periode."' and j_kel='L' and jenis_mutasi='lahir'"); 27 | $jml_lahir_pr = mysqli_query($conn,"select count(*) from v_mutasi_warga where periode = '".$periode."' and j_kel='W' and jenis_mutasi='lahir'"); 28 | $jumlah_lahir_lk = mysqli_fetch_row($jml_lahir_lk); 29 | $jumlah_lahir_pr = mysqli_fetch_row($jml_lahir_pr); 30 | $jumlah_semua_lahir = $jumlah_lahir_lk[0] + $jumlah_lahir_pr[0]; 31 | $jml_wafat_lk = mysqli_query($conn,"select count(*) from v_mutasi_warga where periode = '".$periode."' and j_kel='L' and jenis_mutasi='wafat'"); 32 | $jml_wafat_pr = mysqli_query($conn,"select count(*) from v_mutasi_warga where periode = '".$periode."' and j_kel='W' and jenis_mutasi='wafat'"); 33 | $jumlah_wafat_lk = mysqli_fetch_row($jml_wafat_lk); 34 | $jumlah_wafat_pr = mysqli_fetch_row($jml_wafat_pr); 35 | $jumlah_semua_wafat = $jumlah_wafat_lk[0] + $jumlah_wafat_pr[0]; 36 | // jumlah bulan lalu 37 | $jumlah_bulan_lalu_pr = $jumlah_pr[0] + $jumlah_keluar_pr[0] + $jumlah_wafat_pr[0] - $jumlah_datang_pr[0] - $jumlah_lahir_pr[0]; 38 | $jumlah_bulan_lalu_lk = $jumlah_lk[0] + $jumlah_keluar_lk[0] + $jumlah_wafat_lk[0] - $jumlah_datang_lk[0] - $jumlah_lahir_lk[0]; 39 | $jumlah_bulan_lalu = $jumlah_bulan_lalu_lk + $jumlah_bulan_lalu_pr; 40 | ?> 41 |
42 |
43 |

laporan penduduk

44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 |
desa:
kecamatan:
kabupaten:
bulan:
58 |
59 |
 
60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 |
NoPenduduk Bulan LaluKeadaan Bulan IniJumlah s/d Bulan ini
LahirMatiPindahDatang
JumlahLkPrJumlah lahirLkPrJumlah MatiLkPrJumlah pindahLkPrJumlah datangLkPrJumlahLkPr
12345678910111213141516171819
90 |
91 |
92 | 93 | 94 |
95 |
96 |

97 | Pilih jenis grafik 104 |

105 |
106 | 107 | Your web-browser does not support the HTML 5 canvas element. 108 | 109 |
110 |
111 | 112 | Your web-browser does not support the HTML 5 canvas element. 113 | 114 |
115 |
116 | 117 | Your web-browser does not support the HTML 5 canvas element. 118 | 119 |
120 |
121 | 122 | Your web-browser does not support the HTML 5 canvas element. 123 | 124 |
125 |
126 | 127 | Your web-browser does not support the HTML 5 canvas element. 128 | 129 |
130 |
131 | 237 | 272 | 273 | -------------------------------------------------------------------------------- /mutasi_keluar.php: -------------------------------------------------------------------------------- 1 |
2 |

Pertambahan Penduduk

3 | 4 |
5 |
6 |
7 | 10 | 11 | 14 | 15 | 18 | 19 | 22 | 23 | 26 | 27 | 30 | 31 | 34 | 35 | 38 | 39 | 42 | 43 | 46 | 47 | 50 | 51 | 54 | 55 | 58 | 59 | 62 | 67 | 68 | 69 |
70 |
71 | 161 | 162 | 163 | -------------------------------------------------------------------------------- /mutasi_masuk.php: -------------------------------------------------------------------------------- 1 | 4 |
5 |

Pertambahan Penduduk

6 | 7 |
8 |
9 |
10 | 13 | 14 | 15 | 18 | 19 | 20 | 23 | 36 | 37 | 40 | 41 | 42 | 45 | 46 | 47 | 50 | 65 | 66 | 69 | 84 | 85 | 88 | 89 | 90 | 93 | 94 | 95 | 98 | 99 | 100 | 103 | 116 | 117 | 120 | 125 | 126 | 129 | 130 | 131 | 134 | 135 | 136 | 137 | 138 |
139 |
140 | 182 | 183 | 184 | -------------------------------------------------------------------------------- /simpan_keluarga.php: -------------------------------------------------------------------------------- 1 | $nil){ 16 | if($id == 'value'){ 17 | array_push($nilai,$data_ar[$id]); 18 | } 19 | else 20 | array_push($nama_kolom,$data_ar[$id]); 21 | } 22 | } 23 | // buat inputan untuk tabel keluarga ( datanya sebanyak 7 item ) 24 | $input_keluarga = $kolom_keluarga = array(); 25 | for($i = 0; $i < 6; $i++){ 26 | array_push($input_keluarga,$nilai[$i]); 27 | array_push($kolom_keluarga,$nama_kolom[$i]); 28 | } 29 | // tambahkan field kepala keluarga untuk tabel keluarga 30 | array_push($kolom_keluarga,"kepala_keluarga"); 31 | array_push($input_keluarga,$kepala_klg); 32 | // buat inputan untuk tabel det_keluarga 33 | $input_detail = ""; 34 | for($i = 6; $i < count($nilai); $i++){ 35 | $input_detail .="('".$nilai[0]."','".$nilai[$i]."'),"; 36 | } 37 | $input_detail = substr($input_detail,0,strlen($input_detail) - 1); 38 | 39 | $nilai_input_keluarga = buatStringNilai($input_keluarga); 40 | $kolomnya = buatStringKolom($kolom_keluarga); 41 | $sql = "insert into keluarga (".$kolomnya.") values (".$nilai_input_keluarga.")"; 42 | $sql_exe = mysqli_query($conn,$sql); 43 | if($sql_exe){ 44 | $sql_det = "insert into det_keluarga values ".$input_detail; 45 | $sql_det_exe = mysqli_query($conn,$sql_det); 46 | if($sql_det_exe){ 47 | $status = 1; 48 | } 49 | } 50 | echo $status; 51 | ?> 52 | -------------------------------------------------------------------------------- /simpan_mutasi.php: -------------------------------------------------------------------------------- 1 | $nil){ 21 | if($id == 'value'){ 22 | array_push($nilai,$data_ar[$id]); 23 | } 24 | else 25 | array_push($nama_kolom,$data_ar[$id]); 26 | } 27 | } 28 | $nilai_input = buatStringNilai($nilai); 29 | $kolomnya = buatStringKolom($nama_kolom); 30 | $sql = "insert into warga (".$kolomnya.") values (".$nilai_input.")"; 31 | $sql_exe = mysqli_query($conn,$sql); 32 | if($sql_exe){ 33 | mysqli_query($conn,"insert into mutasi_warga (id_warga,jenis_mutasi,tanggal,keterangan) values ('".$id_warga."','".$mutasi."','".$tanggal."','".$ket."')"); 34 | $status = 1; 35 | } 36 | } 37 | else { 38 | // simpan ke tabel mutasi_warga 39 | $sql = "insert into mutasi_warga (id_warga,jenis_mutasi,tanggal,keterangan) values ('".$id_warga."','".$mutasi."','".$tanggal."','".$ket."')"; 40 | $sql_exe = mysqli_query($conn,$sql); 41 | if($sql_exe){ 42 | // update data warga tersebut pada tabel warga, status = 0 43 | mysqli_query($conn,"update warga set status='".$status_warga."' where no_ktp='".$id_warga."'"); 44 | $status = 1; 45 | } 46 | } 47 | echo $status; 48 | ?> 49 | -------------------------------------------------------------------------------- /simpan_penduduk.php: -------------------------------------------------------------------------------- 1 | $nil){ 15 | if($id == 'value'){ 16 | array_push($nilai,$data_ar[$id]); 17 | } 18 | else 19 | array_push($nama_kolom,$data_ar[$id]); 20 | } 21 | } 22 | $nilai_input = buatStringNilai($nilai); 23 | $kolomnya = buatStringKolom($nama_kolom); 24 | $sql = "insert into warga (".$kolomnya.") values (".$nilai_input.")"; 25 | $sql_exe = mysqli_query($conn,$sql); 26 | if($sql_exe){ 27 | $status = 1; 28 | } 29 | echo $status; 30 | ?> 31 | -------------------------------------------------------------------------------- /simpan_surat.php: -------------------------------------------------------------------------------- 1 | $nil){ 27 | if($id == 'value'){ 28 | array_push($nilai,$data_ar[$id]); 29 | } 30 | else 31 | array_push($nama_kolom,$data_ar[$id]); 32 | } 33 | $isi_surat[$nama_kolom[$i]] = $nilai[$i]; 34 | } 35 | /* 36 | $nilai_input = buatStringNilai($nilai); 37 | $kolomnya = buatStringKolom($nama_kolom); 38 | */ 39 | $isi_surat = json_encode($isi_surat); 40 | $tanda_tangan = json_encode($tanda_tangan); 41 | $nama_kolom = "(jenis_surat,no_surat,nama_surat,tanggal,isi_surat,tanda_tangan,id_warga,nama_warga)"; 42 | $nilai_input = "('".$jenis_surat."','".$no_surat."','".$nama_surat."',now(),'".addslashes($isi_surat)."','".addslashes($tanda_tangan)."','".$id_warga."','".$nama_warga."')"; 43 | $sql = "insert into surat ".$nama_kolom." values ".$nilai_input; 44 | $sql_exe = mysqli_query($conn,$sql); 45 | if($sql_exe){ 46 | $status = 1; 47 | } 48 | echo $status; 49 | ?> 50 | -------------------------------------------------------------------------------- /simpan_xls.php: -------------------------------------------------------------------------------- 1 | 2 | "; 12 | $tampil .=""; 13 | $jum_kolom = mysqli_num_fields($sql_exe); 14 | $tampil .= "No"; 15 | $title = array(); 16 | for($i = 0; $i < $jum_kolom; $i++){ 17 | $nm_kolom = mysqli_fetch_field($sql_exe); 18 | array_push($title,$nm_kolom->name); 19 | $tampil .= "".$nm_kolom->name.""; 20 | } 21 | $tampil .= "Aksi"; 22 | $tampil .= ""; 23 | while($data = mysqli_fetch_row($sql_exe)){ 24 | $tampil .= ""; 25 | $tampil .= "".$no++.""; 26 | for($i = 0; $i < count($data);$i++){ 27 | $tampil .= "".$data[$i].""; 28 | } 29 | $tampil .= ""; 30 | $tampil .= ""; 31 | } 32 | $tampil .= ""; 33 | } 34 | $xlsfile = $tabel.date("d-m-Y").".xls"; 35 | header("Content-type: application/vnd.ms-excel"); 36 | header("Content-Disposition: attachment; filename=$xlsfile"); 37 | echo $tampil; 38 | ?> 39 | -------------------------------------------------------------------------------- /surat.php: -------------------------------------------------------------------------------- 1 | Tujuan 30 | Ditujukan kepada 31 | 32 | 33 | 34 | 37 | 38 | 39 | 41 | 42 | 43 | '; 44 | $mengetahui = "
Mengetahui
"; 45 | $mengetahui .= "
"; 46 | $mengetahui .="
CAMAT ".$desa["kecamatan"]."
"; 47 | $mengetahui .="
_______________________
"; 48 | $mengetahui .= "
"; 49 | $mengetahui .="
DANRAMIL ".$desa["kecamatan"]."
"; 50 | $mengetahui .="
_______________________
"; 51 | } 52 | else if($jenis_surat == "SKP"){ 53 | $field_tambahan =' 56 | 57 | 58 | 61 | 62 | 63 | 66 | 67 | 68 | 71 | 72 | ( Tambahkan pengikut ) 73 |
74 | 75 | 76 |
NoNamaL/PUmurHubunganStatus
77 |
78 | '; 79 | $mengetahui=""; 80 | } 81 | else { 82 | $field_tambahan =' 84 | 85 | 86 | '; 87 | $mengetahui=""; 88 | } 89 | ?> 90 |
91 |

Surat Keterangan

92 | 93 |
94 |
95 |
96 |
97 | 100 | 101 | 102 | 105 | 106 | 107 | 110 | 111 | 112 | 115 | 116 | 117 | 120 | 121 | 122 | 125 | 126 | 127 | 130 | 131 | 132 | 135 | 136 | 137 | 140 | 141 | 142 | 145 | 146 | 147 | 151 | 154 | 158 | 159 | 160 | 161 |
162 |
163 | 164 | 165 | 166 | 203 | 204 | 424 | 432 | -------------------------------------------------------------------------------- /surat_lahir_mati.php: -------------------------------------------------------------------------------- 1 |   Tahun
\" TELAH MENINGGAL DUNIA \" pada :
"; 9 | } 10 | else { 11 | $bag_tengah_ket = "
Telah lahir seorang anak :
"; 12 | } 13 | // ambil nomer surat terakhir 14 | $sql_nomer_surat = "select count(*) from surat where jenis_surat = '".$jenis_surat."'"; 15 | $tmp_surat = mysqli_query($conn,$sql_nomer_surat); 16 | $jml = mysqli_fetch_row($tmp_surat); 17 | $nomer_terakhir = $awal_nomer_surat[$jenis_surat] + ($jml[0] + 1); 18 | $tahun = date("Y"); 19 | $nomer_surat = $j_surat[$jenis_surat]."/".$nomer_terakhir."/".$desa["kode"]."/".$tahun; 20 | ?> 21 |
22 |

Surat

23 | 24 |
25 |
26 |
27 |
28 | 31 | 34 | 35 | 36 | 39 | 40 | 41 | 44 | 45 | 46 | 49 | 50 | 51 | 54 | 55 | 56 | 59 | 60 | 61 | 64 | 65 | 66 | 69 | 70 | 71 | 75 | 78 | 79 | 80 | 83 | 84 | 85 | 88 | 89 | 90 | 93 | 94 | 95 | 98 | 103 | 104 | 107 | 108 | 109 | 112 | 113 | 114 | 117 | 118 | 119 | 122 | 125 | 129 | 130 | 131 | 132 |
133 |
134 | 135 | 136 | 137 | 172 | 336 | 350 | -------------------------------------------------------------------------------- /tambah_keluarga.php: -------------------------------------------------------------------------------- 1 | 9 |
10 | Lihat data 11 |

Tambah Keluarga Baru

12 | 13 |
14 |
15 |
16 | 19 | 20 | 21 | 24 | 25 | 26 | 29 | 42 | 43 | 46 | 59 | 60 | 63 | 76 | 77 | 80 | 93 | 94 | 97 | ( Data pertama adalah kepala keluarga ) 98 | 99 | 100 | 101 |
102 |
103 | 198 | 203 | -------------------------------------------------------------------------------- /tambah_penduduk.php: -------------------------------------------------------------------------------- 1 | 9 |
10 | Lihat data 11 |

Tambah Penduduk

12 | 13 |
14 |
15 |
16 | 19 | 20 | 21 | 24 | 25 | 26 | 29 | 42 | 43 | 46 | 47 | 48 | 51 | 52 | 53 | 56 | 71 | 72 | 75 | 90 | 91 | 94 | 95 | 96 | 99 | 100 | 101 | 104 | 105 | 106 | 109 | 122 | 123 | 124 | 125 |
126 |
127 | 175 | -------------------------------------------------------------------------------- /tambah_surat.php: -------------------------------------------------------------------------------- 1 | 9 |
10 | Lihat data 11 |

Tambah Surat Baru

12 | 13 |
14 |
15 |
16 |
17 | 20 | 35 | 36 | 39 | 52 | 53 | 54 | 57 | 58 | 59 | 60 | 61 |
62 |
63 | 159 | 164 | -------------------------------------------------------------------------------- /tambah_surat_link.php: -------------------------------------------------------------------------------- 1 |
2 | 12 |
13 | 24 | 54 | -------------------------------------------------------------------------------- /template/keluarga.php: -------------------------------------------------------------------------------- 1 | 11 |
12 |

Detail Data Keluarga

13 |
14 | 17 | 18 | 21 | 22 | 25 | 26 |
27 | 28 | 32 |
33 |
34 | Anggota keluarga 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | "; 50 | echo ""; 51 | for($i = 0; $i < count($baris); $i++){ 52 | echo ""; 53 | } 54 | echo ""; 55 | } 56 | ?> 57 |
NoNo KtpNamaAgamaTempat lahirTanggal lahirJ_kels_nikah
".$no++."".$baris[$i]."
58 |
59 |
60 |
61 | 62 | -------------------------------------------------------------------------------- /template/surat.php: -------------------------------------------------------------------------------- 1 | Mengetahui"; 24 | $mengetahui .= "
"; 25 | $mengetahui .="
CAMAT ".$desa["kecamatan"]."
"; 26 | $mengetahui .="
_______________________
"; 27 | $mengetahui .= "
"; 28 | $mengetahui .="
DANRAMIL ".$desa["kecamatan"]."
"; 29 | $mengetahui .="
_______________________
"; 30 | } 31 | else { 32 | $mengetahui=""; 33 | } 34 | ?> 35 | 36 |
37 | 38 |
39 | PEMERINTAHAN KABUPATEN
40 | KECAMATAN
41 | DESA
42 | Telp. 43 |
44 | 45 | 46 |
47 |
48 |
49 |
Nomer :
50 |
51 |
52 |  Yang bertanda tangan dibawah ini , 53 | Kepala Desa , 54 | Kecamatan , Kabupaten menerangkan dengan 55 | sebenarnya bahwa orang tersebut dibawah ini : 56 |
57 |
58 | $val){ 60 | echo ":".$val."
"; 61 | } 62 | ?> 63 | 64 |
65 |
 Demikian Surat Keterangan ini diberikan, untuk 66 | dapat digunakan sebagaimana mestinya.
67 |
> 68 |
 
69 |
Yang Bersangkutan
70 |
71 |
72 |
73 |
Duduksampeyan,
74 | 88 |
89 |
".$nama_pejabat."
".$nip_pejabat; ?>
90 |
91 | 92 |
93 | 98 | 99 |
100 | PEMERINTAHAN KABUPATEN
101 | KECAMATAN
102 | DESA
103 | Telp. 104 |
105 | 106 | 107 |
108 |
109 |
110 |
Nomer :
111 |
112 |
113 |  Yang bertanda tangan dibawah ini , 114 | Kepala Desa , 115 | Kecamatan , Kabupaten menerangkan dengan 116 | sebenarnya bahwa orang tersebut dibawah ini : 117 |
118 |
119 | Nama:".$isi_surat['nama']."
"; 123 | echo ":".$isi_surat['j_kel']."
"; 124 | echo ":".$isi_surat['alamat']."
"; 125 | echo ":".$isi_surat['umur']."
"; 126 | echo "
 Tahun
\" TELAH MENINGGAL DUNIA \" pada :
"; 127 | echo ":".$isi_surat['hari']."
"; 128 | echo ":".$isi_surat['tanggal']."
"; 129 | echo ":".$isi_surat['di']."
"; 130 | echo ":".$isi_surat['sebab']."
"; 131 | } 132 | else { 133 | echo ":".$isi_surat['hari']."
"; 134 | echo ":".$isi_surat['tanggal']."
"; 135 | echo ":".$isi_surat['di']."
"; 136 | echo "
Telah lahir seorang anak : ".$isi_surat['j_kel']."
"; 137 | echo ":".$isi_surat['nama_bayi']."
"; 138 | echo ":".$isi_surat['nama_ibu']."
"; 139 | echo ":".$isi_surat['alamat']."
"; 140 | echo ":".$isi_surat['nama_ayah']."
"; 141 | 142 | } 143 | 144 | ?> 145 | 146 |
147 |
148 |
149 |
 Demikian Surat Keterangan ini diberikan, untuk 150 | dapat atas dasar sebenarnya.
151 |
152 |
Duduksampeyan,
153 |
154 |
".$desa["kades"].""; ?>
155 |
156 | 159 | 167 | -------------------------------------------------------------------------------- /template/warga.php: -------------------------------------------------------------------------------- 1 | 12 |
13 |

Detail Data Warga

14 |
15 | 18 | 19 | 22 | 23 | 26 | 27 | 28 | 31 | 32 | 33 | 36 | 37 | 38 | 41 | 42 | 43 | 46 | 47 | 48 | 51 | 52 | 53 | 56 | 57 | 58 | 61 | 62 | 63 | 66 | 67 |
68 |
69 | 70 | -------------------------------------------------------------------------------- /template_surat/surat_ket.php: -------------------------------------------------------------------------------- 1 | $nil){ 14 | if($id == 'value'){ 15 | array_push($nilai,$data_ar[$id]); 16 | } 17 | else { 18 | array_push($nama_kolom,$data_ar[$id]); 19 | } 20 | } 21 | $isi_surat[$nama_kolom[$i]] = $nilai[$i]; 22 | } 23 | ?> 24 |
25 |
Header iki
26 |
27 |
Surat Keterangan
28 |
Nomor :
29 |
30 |
31 |      Yang bertanda tangan dibawah ini , 32 | Kepala Desa Duduksampeyan, 33 | Kecamatan Duduksampeyan, Kabupaten Gresik menerangkan dengan 34 | sebenarnya bahwa orang tersebut dibawah ini : 35 |
36 |
37 |
38 | 40 |
41 |
42 | 44 |
45 |
46 | 48 |
49 |
50 | 52 |
53 |
54 | 56 |
57 |
58 | 60 |
61 |
62 | 64 |
65 |
66 | 68 |
69 |
70 | 72 |
73 |
74 | 76 |
77 |
78 | 80 |
81 |
82 |
     Demikian Surat Keterangan ini diberikan, untuk 83 | dapat digunakan sebagaimana mestinya.
84 |
kopnya ini
85 |
86 | 128 | -------------------------------------------------------------------------------- /tes_chart.php: -------------------------------------------------------------------------------- 1 | 2 | 43 | 44 |
45 | 46 | -------------------------------------------------------------------------------- /to_xls.php: -------------------------------------------------------------------------------- 1 | 7 | -------------------------------------------------------------------------------- /update.php: -------------------------------------------------------------------------------- 1 | 20 | --------------------------------------------------------------------------------