-
Notifications
You must be signed in to change notification settings - Fork 192
/
input-petugas.php
151 lines (147 loc) · 7.36 KB
/
input-petugas.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
<?php
error_reporting(0);
session_start();
include 'code crud/logo.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="stylesheet" href="css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
<link rel="stylesheet" href="css/bootstrap-datepicker.css" />
<link rel="stylesheet" href="css/bootstrap-datepicker.min.css" />
<link rel="stylesheet" href="css/style.css">
<link href="fontawesome/css/all.css" rel="stylesheet">
<link rel="stylesheet" href="css/sweetalert2.min.css">
<title>Input Pekerja</title>
<link rel="shortcut icon" href="logo/<?php echo $logo_sekolah; ?>" type="image/x-icon">
</head>
<body>
<div id="none">
<?php include 'navbar.php'; ?>
<div class="container mt-5">
<div class="card mt-5">
<div class="card-body">
<form action="" method="post" enctype="multipart/form-data" class="needs-validation" novalidate>
<div class="row">
<div class="col">
<h5><span style="color: red;">*</span> Data Pekerja</h5>
<div class="form-group">
<input type="text" name="nama_siswa" class="form-control rounded-lg" placeholder="No Berkas" required>
</div>
<div class="form-group">
<input type="text" name="Nama" class="form-control rounded-lg" placeholder="Nama" required>
</div>
<div class="form-group">
<select type="text" name="jenis_kelamin" class="form-control rounded-lg" placeholder="Jenis Kelamin" required>
<option value="">-- Jenis Kelamin --</option>
<option value="Laki-Laki">Laki-Laki</option>
<option value="Perempuan">Perempuan</option>
</div>
<div class="form-group">
<input type="text" name="tugas1" class="form-control rounded-lg" placeholder="Tugas 1" required>
</div>
<div class="form-group">
<input type="text" name="tugas2" class="form-control rounded-lg" placeholder="Tugas 2" required>
</div>
<div class="form-group">
<input type="text" name="tugas3" id="tugas3" class="form-control rounded-lg" placeholder="Tugas 3" required>
</div>
<div class="form-group">
<input type="text" name="uts" class="form-control rounded-lg" placeholder="UTS" required>
</div>
<div class="form-group">
<input type="text" name="uas" class="form-control rounded-lg" placeholder="UAS" required></input>
</div>
<div class="form-group">
<input type="text" name="kelas" class="form-control rounded-lg" placeholder="Kelas" required>
</div>
<div class="form-group">
<input type="text" name="jurusan" class="form-control rounded-lg" placeholder="Jurusan" required>
</div>
<div class="form-group">
<div class="custom-file">
<input type="file" class="custom-file-input" name="foto_siswa" id="foto_siswa" required>
<label class="custom-file-label" for="foto_siswa"><input type="text" class="form-control rounded-lg" id="foto_siswa1" style="color: black; position: absolute; margin-left : -12px ;margin-top : -7px;" for="foto_siswa" placeholder="Foto Siswa"></label>
</div>
</div>
</div>
</div>
<div class="form-group">
<button type="submit" class="btn btn-primary" name="input"><i class="fa fa-plus" aria-hidden="true"></i> Add Berkas</button>
</div>
</div>
</div>
</form>
</div>
</div>
<br><br>
</div>
</div>
<script src="js/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="js/bootstrap.bundle.min.js" integrity="sha384-ho+j7jyWK8fNQe+A12Hb8AhRq26LrZ/JpcUGGOn+Y7RsweNrtN/tE3MoK7ZeZDyx" crossorigin="anonymous"></script>
<script src="js/jquery-3.5.1.min.js"></script>
<script src="js/bootstrap-datepicker.js"></script>
<script defer src="fontawesome/js/all.js"></script>
<script src="js/sweetalert2.min.js"></script>
<?php include 'code crud/add-siswa.php'; ?>
<?php if ($_SESSION['stat_login'] != true) {
$pesan = "Maaf Anda Belom Login";
$status = "error";
$link_back = "index";
?>
<script>
/* Sweet Alert Belom Login */
var x = document.getElementById("none");
if (x.style.display === "none") {
x.style.display = "block";
} else {
x.style.display = "none";
}
swal({
title: "Maaf anda belom login !",
text: "Silahkan login terlebih dahulu !",
type: "warning"
}).then(okay => {
if (okay) {
window.location.href = "index";
}
});
</script>
<?php unset($_SESSION['stat_login']);
} ?>
</body>
</html>
<script type="text/javascript" language="javascript">
$(document).ready(function() {
$('#foto_siswa').change(function(e) {
var foto_siswa = e.target.files[0].name;
$('#foto_siswa1').val(foto_siswa);
});
});
$(function() {
$("#tgl_lahir").datepicker({
format: 'dd/m/yyyy',
autoclose: true,
todayHighlight: true,
});
});
$(function() {
'use strict';
window.addEventListener('load', function() {
// Fetch all the forms we want to apply custom Bootstrap validation styles to
var forms = document.getElementsByClassName('needs-validation');
// Loop over them and prevent submission
var validation = Array.prototype.filter.call(forms, function(form) {
form.addEventListener('submit', function(event) {
if (form.checkValidity() === false) {
event.preventDefault();
event.stopPropagation();
}
form.classList.add('was-validated');
}, false);
});
}, false);
});
</script>