-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreg.php
615 lines (572 loc) · 22.1 KB
/
reg.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
<?php include 'proses/koneksi.php'; ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<link rel="apple-touch-icon" sizes="76x76" href="./assets/img/apple-icon.png" />
<link rel="icon" type="image/png" href="./assets/img/logo.png" />
<title>Registrasi Member Asrama</title>
<!-- Fonts and icons -->
<link rel="stylesheet" type="text/css"
href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700,900|Roboto+Slab:400,700" />
<!-- Nucleo Icons -->
<link href="./assets/css/nucleo-icons.css" rel="stylesheet" />
<link href="./assets/css/nucleo-svg.css" rel="stylesheet" />
<!-- Font Awesome Icons -->
<script src="https://kit.fontawesome.com/42d5adcbca.js" crossorigin="anonymous"></script>
<!-- Material Icons -->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons+Round" rel="stylesheet" />
<!-- CSS Files -->
<link id="pagestyle" href="./assets/css/material-dashboard.css?v=3.0.0" rel="stylesheet" />
</head>
<body class="g-sidenav-show bg-gray-200">
<div class="container p-3 my-3">
<form id="form" action="proses/proses_reg.php" method="post" enctype="multipart/form-data">
<!-- DATA DIRI -->
<div class="alert alert-dark text-center">
<strong class="text-white">Register Asrama Politeknik Negeri Lhokseumawe</strong>
</div>
<div class="alert alert-warning">
<strong class="text-white">Data Diri</strong>
</div>
<div class="row">
<div class="col-sm-7">
<label for="" class="col-form-label me-3">Nama Lengkap :</label>
<div class="input-group input-group-outline">
<input type="text" name="nama" class="form-control" placeholder="Masukan Nama Lengkap" required />
</div>
</div>
<div class="col-sm-5">
<label for="" class="col-form-label me-3">NIM :</label>
<div class="input-group input-group-outline">
<input type="number" name="nim" class="form-control" placeholder="Masukan Nomor NIK / NIM" required />
</div>
</div>
</div>
<div class="row">
<div class="col-sm-4">
<label for="" class="col-form-label me-3">Tempat Lahir :</label>
<div class="input-group input-group-outline">
<input type="text" name="tempat_lahir" class="form-control" placeholder="Masukan Tempat Lahir" required />
</div>
</div>
<div class="col-sm-3">
<label for="" class="col-form-label me-3">Tanggal Lahir :</label>
<div class="input-group input-group-outline">
<input type="date" name="tanggal_lahir" class="form-control" required />
</div>
</div>
<div class="col-sm-5">
<label for="" class="col-form-label me-3">Jenis Kelamin :</label>
<div class="input-group input-group-outline">
<select class="form-control" name="jk" required>
<option>Pilih</option>
<option value="Laki-laki">Laki-laki</option>
<option value="Perempuan">Perempuan</option>
</select>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-4">
<label for="" class="col-form-label me-3">Kewarganegaraan :</label>
<div class="input-group input-group-outline">
<select class="form-control" name="kewarganegaraan" required>
<option>Pilih</option>
<option value="Warga Negara Indonesia">Warga Negara Indonesia</option>
<option value="Warga Negara Asing">Warga Negara Asing</option>
</select>
</div>
</div>
<div class="col-sm-3">
<label for="" class="col-form-label me-3">Agama :</label>
<div class="input-group input-group-outline">
<select class="form-control" name="agama" required>
<option>Pilih</option>
<option value="Islam">Islam</option>
<option value="Kristen">Kristen</option>
<option value="Katolik">Katolik</option>
<option value="Hindu">Hindu</option>
<option value="Budha">Budha</option>
<option value="Lainnya">Lainnya</option>
</select>
</div>
</div>
<div class="col-sm-5">
<label for="inputGroupFile02" class="col-form-label me-3">Upload Foto 3x6</label>
<div class="input-group input-group-outline">
<input type="file" name="upload_foto" class="form-control" placeholder="Foto 3x6" />
</div>
</div>
</div>
<div class="row">
<div class="col-sm-4">
<label for="" class="col-form-label me-3">Email :</label>
<div class="input-group input-group-outline">
<input type="email" name="email" class="form-control" placeholder="Masukan Email" required />
</div>
</div>
<div class="col-sm-3">
<label for="" class="col-form-label me-3">Password :</label>
<div class="input-group input-group-outline">
<input type="password" name="password" class="form-control" placeholder="Isi Password" required />
</div>
</div>
<div class="col-sm-5">
<label for="" class="col-form-label me-3">No Telp :</label>
<div class="input-group input-group-outline">
<input type="tel" name="no_telp" class="form-control" placeholder="Masukan No Telp" required />
</div>
</div>
</div>
<!-- END DATA DIRI -->
<!-- DATA ORTU -->
<div class="alert alert-warning mt-3">
<strong class="text-white">Data Orang Tua / Wali </strong>
</div>
<div class="row">
<div class="col-sm-4">
<label for="" class="col-form-label me-3">Nama Orang Tua / Wali :</label>
<div class="input-group input-group-outline">
<input type="text" name="nama_ortu" class="form-control" placeholder="Masukan Nama Orang Tua / Wali"
required />
</div>
</div>
<div class="col-sm-4">
<label for="" class="col-form-label me-3">Nomor Telp Orang Tua / Wali :</label>
<div class="input-group input-group-outline">
<input type="tel" name="nomor_ortu" class="form-control"
placeholder="Masukan Nomor Telephone Orang Tua / Wali" required />
</div>
</div>
<div class="col-sm-4">
<label for="" class="col-form-label me-3">Alamat Ortu:</label>
<div class="input-group input-group-outline">
<textarea class="form-control" name="$alamatortu" rows="1" id="alamat" required></textarea>
</div>
</div>
</div>
<!-- END DATA ORTU -->
<!-- DATA ALAMAT -->
<div class="alert alert-warning mt-4">
<strong class="text-white">Data Alamat Asal</strong>
</div>
<div class="row">
<div class="col-sm-6">
<label for="" class="col-form-label me-3">Alamat:</label>
<div class="input-group input-group-outline">
<textarea class="form-control" name="alamat" rows="1" id="alamat" required></textarea>
</div>
</div>
<div class="col-sm-6">
<label for="" class="col-form-label me-3">Kode Pos:</label>
<div class="input-group input-group-outline">
<input type="text" name="kode_pos" class="form-control" placeholder="Kode Pos" required />
</div>
</div>
</div>
<div class="row">
<div class="col-sm-4">
<label for="" class="col-form-label me-3">Provinsi:</label>
<div class="input-group input-group-outline">
<select class="form-control" name="provinsi" id="provinsi" required>
<!-- Kabupaten akan diload menggunakan ajax, dan ditampilkan disini -->
<?php $row = open_json('provinsi.json');
$index = 0;
foreach ($row as $r) { ?>
<option value="<?php echo $row[$index]['name'] ?>">
<?php echo $row[$index++]['name'] ?>
</option>
<?php }
?>
</select>
</div>
</div>
<div class="col-sm-4">
<label for="" class="col-form-label me-3">Kabupaten:</label>
<div class="input-group input-group-outline">
<input type="text" class="form-control" name="kabupaten" required>
</div>
</div>
<div class="col-sm-4">
<label for="" class="col-form-label me-3">Kecamatan:</label>
<div class="input-group input-group-outline">
<input type="text" class="form-control" name="kecamatan" required>
</div>
</div>
</div>
<!-- DATA PENDIDIKAN -->
<div class="alert alert-warning mt-3">
<strong class="text-white">Data Pendidikan</strong>
</div>
<div class="row">
<div class="col-sm-4">
<label for="" class="col-form-label me-3">Pendidikan Terakhir:</label>
<div class="input-group input-group-outline">
<select class="form-control" name="pendidikan" required>
<option value="SMA">SMA</option>
<option value="SMK">SMK</option>
<option value="MA">MA</option>
</select>
</div>
</div>
<div class="col-sm-4">
<label for="" class="col-form-label me-3">Nama Sekolah:</label>
<div class="input-group input-group-outline">
<input type=" text" name="sekolah" class="form-control" placeholder="Masukan Nama Sekolah" required />
</div>
</div>
</div>
<!-- END DATA PENDIDIKAN -->
<!-- DATA JURUSAN -->
<div class="alert alert-warning mt-3">
<strong class="text-white">Jurusan</strong>
</div>
<div class="row">
<div class="col-sm-4">
<label for="" class="col-form-label me-3">Pilih Jurusan</label>
<div class="input-group input-group-outline">
<select class="form-control" name="jurusan" required>
<option value="Teknologi Informasi dan Komputer">Teknologi Informasi dan Komputer</option>
<option value="Teknik Mesin">Teknik Mesin</option>
<option value="Teknik Elektro">Teknik Elektro</option>
<option value="Teknik Kimia">Teknik Kimia</option>
<option value="Teknik Sipil">Teknik Sipil</option>
<option value="Tata Niaga">Tata Niaga</option>
</select>
</div>
</div>
<div class="col-sm-4">
<label for="" class="col-form-label me-3">Semester</label>
<div class="input-group input-group-outline">
<select class="form-control" name="semester" required>
<option value="1">Semester 1</option>
<option value="2">Semester 2</option>
<option value="3">Semester 3</option>
<option value="4">Semester 4</option>
<option value="5">Semester 5</option>
<option value="6">Semester 6</option>
<option value="7">Semester 7</option>
<option value="8">Semester 8</option>
</select>
</div>
</div>
<div class="col-sm-4">
<label for="" class="col-form-label me-3">Pilih Program Studi</label>
<div class="input-group input-group-outline">
<select class="form-control" name="prodi" required>
<!-- TIK -->
<option value="D4 - Teknologi Rekayasa Komputer Jaringan">D4 - Teknologi Rekayasa Komputer Jaringan
</option>
<option value="D4 - Teknologi Rekayasa Multimedia">D4 - Teknologi Rekayasa Multimedia</option>
<option value="D4 - Teknik Informatika">D4 - Teknik Informatika</option>
<!-- TM -->
<option value="D3 - Teknologi Mesin">D3 - Teknologi Mesin</option>
<option value="D3 - Teknologi Industri">D3 - Teknologi Industri</option>
<option value="D4 - Teknologi Rekayasa Manufaktur">D4 - Teknologi Rekayasa Manufaktur</option>
<option value="D4 - Teknologi Rekayasa Pengelasan dan Fabrikasi">D4 - Teknologi Rekayasa Pengelasan dan
Fabrikasi</option>
<!-- TE -->
<option value="D3 - Teknologi Listrik">D3 - Teknologi Listrik</option>
<option value="D3 - Teknologi Telekomunikasi">D3 - Teknologi Telekomunikasi</option>
<option value="D3 - Teknologi Elektronika">D3 - Teknologi Elektronika</option>
<option value="D4 - Teknologi Rekayasa Pembangkit Energi">D4 - Teknologi Rekayasa Pembangkit Energi
</option>
<option value="D4 - Teknologi Rekayasa Jaringan Telekomunikasi">D4 - Teknologi Rekayasa Jaringan
Telekomunikasi</option>
<option value="D4 - Teknologi Rekayasa Instrumentasi dan Kontrol">D4 - Teknologi Rekayasa Instrumentasi
dan Kontrol</option>
<!-- TK -->
<option value="D3 - Teknologi Kimia">D3 - Teknologi Kimia</option>
<option value="D3 - Teknologi Pengolahan Minyak dan gas">D3 - Teknologi Pengolahan Minyak dan gas</option>
<option value="D4 - Teknologi Rekayasa Kimia Industri">D4 - Teknologi Rekayasa Kimia Industri</option>
<!-- TS -->
<option value="D2 - Jalur Cepat Pengukuran dan Penggambaran Tapak Bangunan Gedung">D2 - Jalur Cepat
Pengukuran dan Penggambaran Tapak Bangunan Gedung</option>
<option value="D3 - Teknologi Konstruksi Bangunan Air">D3 - Teknologi Konstruksi Bangunan Air</option>
<option value="D3 - Teknologi Konstruksi Jalan dan Jembatan">D3 - Teknologi Konstruksi Jalan dan Jembatan
</option>
<option value="D4 - Teknologi Rekayasa Konstruksi Bangunan Gedung">D4 - Teknologi Rekayasa Konstruksi
Bangunan Gedung</option>
<option value="D4 - Teknologi Rekayasa Konstruksi Jalan dan Jembatan">D4 - Teknologi Rekayasa Konstruksi
Jalan dan Jembatan</option>
<!-- Tania -->
<option value="D3 - Akuntansi">D3 - Akuntansi</option>
<option value="D3 - Administrasi Bisnis">D3 - Administrasi Bisnis</option>
<option value="D4 - Manajemen Keuangan Sektor Publik">D4 - Manajemen Keuangan Sektor Publik</option>
<option value="D4 - Akuntansi Lembaga Keuangan Syariah">D4 - Akuntansi Lembaga Keuangan Syariah</option>
<option value="M - Keuangan Islam">M - Keuangan Islam</option>
</select>
</div>
</div>
<!-- END DATA JURUSAN -->
<div class="row">
<div class="col-sm-5 mt-4">
<button type="submit" name="Submit" id="Submit" class="btn btn-success me-5">Daftar</button>
<button type="reset" class="btn btn-primary">Reset</button>
</div>
</div>
</form>
</div>
<!-- Core JS Files -->
<script src="assets/js/core/popper.min.js"></script>
<script src="assets/js/core/bootstrap.min.js"></script>
<script src="assets/js/plugins/perfect-scrollbar.min.js"></script>
<script src="assets/js/plugins/smooth-scrollbar.min.js"></script>
<script src="assets/js/plugins/chartjs.min.js"></script>
<script src="https://code.jquery.com/jquery-3.6.4.min.js"></script>
<script>
var ctx = document.getElementById("chart-bars").getContext("2d");
new Chart(ctx, {
type: "bar",
data: {
labels: ["M", "T", "W", "T", "F", "S", "S"],
datasets: [{
label: "Sales",
tension: 0.4,
borderWidth: 0,
borderRadius: 4,
borderSkipped: false,
backgroundColor: "rgba(255, 255, 255, .8)",
data: [50, 20, 10, 22, 50, 10, 40],
maxBarThickness: 6,
},],
},
options: {
responsive: true,
maintainAspectRatio: false,
plugins: {
legend: {
display: false,
},
},
interaction: {
intersect: false,
mode: "index",
},
scales: {
y: {
grid: {
drawBorder: false,
display: true,
drawOnChartArea: true,
drawTicks: false,
borderDash: [5, 5],
color: "rgba(255, 255, 255, .2)",
},
ticks: {
suggestedMin: 0,
suggestedMax: 500,
beginAtZero: true,
padding: 10,
font: {
size: 14,
weight: 300,
family: "Roboto",
style: "normal",
lineHeight: 2,
},
color: "#fff",
},
},
x: {
grid: {
drawBorder: false,
display: true,
drawOnChartArea: true,
drawTicks: false,
borderDash: [5, 5],
color: "rgba(255, 255, 255, .2)",
},
ticks: {
display: true,
color: "#f8f9fa",
padding: 10,
font: {
size: 14,
weight: 300,
family: "Roboto",
style: "normal",
lineHeight: 2,
},
},
},
},
},
});
var ctx2 = document.getElementById("chart-line").getContext("2d");
new Chart(ctx2, {
type: "line",
data: {
labels: ["Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
datasets: [{
label: "Mobile apps",
tension: 0,
borderWidth: 0,
pointRadius: 5,
pointBackgroundColor: "rgba(255, 255, 255, .8)",
pointBorderColor: "transparent",
borderColor: "rgba(255, 255, 255, .8)",
borderColor: "rgba(255, 255, 255, .8)",
borderWidth: 4,
backgroundColor: "transparent",
fill: true,
data: [50, 40, 300, 320, 500, 350, 200, 230, 500],
maxBarThickness: 6,
},],
},
options: {
responsive: true,
maintainAspectRatio: false,
plugins: {
legend: {
display: false,
},
},
interaction: {
intersect: false,
mode: "index",
},
scales: {
y: {
grid: {
drawBorder: false,
display: true,
drawOnChartArea: true,
drawTicks: false,
borderDash: [5, 5],
color: "rgba(255, 255, 255, .2)",
},
ticks: {
display: true,
color: "#f8f9fa",
padding: 10,
font: {
size: 14,
weight: 300,
family: "Roboto",
style: "normal",
lineHeight: 2,
},
},
},
x: {
grid: {
drawBorder: false,
display: false,
drawOnChartArea: false,
drawTicks: false,
borderDash: [5, 5],
},
ticks: {
display: true,
color: "#f8f9fa",
padding: 10,
font: {
size: 14,
weight: 300,
family: "Roboto",
style: "normal",
lineHeight: 2,
},
},
},
},
},
});
var ctx3 = document.getElementById("chart-line-tasks").getContext("2d");
new Chart(ctx3, {
type: "line",
data: {
labels: ["Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
datasets: [{
label: "Mobile apps",
tension: 0,
borderWidth: 0,
pointRadius: 5,
pointBackgroundColor: "rgba(255, 255, 255, .8)",
pointBorderColor: "transparent",
borderColor: "rgba(255, 255, 255, .8)",
borderWidth: 4,
backgroundColor: "transparent",
fill: true,
data: [50, 40, 300, 220, 500, 250, 400, 230, 500],
maxBarThickness: 6,
},],
},
options: {
responsive: true,
maintainAspectRatio: false,
plugins: {
legend: {
display: false,
},
},
interaction: {
intersect: false,
mode: "index",
},
scales: {
y: {
grid: {
drawBorder: false,
display: true,
drawOnChartArea: true,
drawTicks: false,
borderDash: [5, 5],
color: "rgba(255, 255, 255, .2)",
},
ticks: {
display: true,
padding: 10,
color: "#f8f9fa",
font: {
size: 14,
weight: 300,
family: "Roboto",
style: "normal",
lineHeight: 2,
},
},
},
x: {
grid: {
drawBorder: false,
display: false,
drawOnChartArea: false,
drawTicks: false,
borderDash: [5, 5],
},
ticks: {
display: true,
color: "#f8f9fa",
padding: 10,
font: {
size: 14,
weight: 300,
family: "Roboto",
style: "normal",
lineHeight: 2,
},
},
},
},
},
});
</script>
<script>
var win = navigator.platform.indexOf("Win") > -1;
if (win && document.querySelector("#sidenav-scrollbar")) {
var options = {
damping: "0.5",
};
Scrollbar.init(document.querySelector("#sidenav-scrollbar"), options);
}
</script>
<!-- Github buttons -->
<script async defer src="https://buttons.github.io/buttons.js"></script>
<!-- Control Center for Material Dashboard: parallax effects, scripts for the example pages etc -->
<script src="assets/js/material-dashboard.min.js?v=3.0.0"></script>
</body>
</html>