-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.php
executable file
·316 lines (290 loc) · 20.4 KB
/
index.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
<?php require_once( realpath( 'header.php' ) ); ?>
<?php
if(!isset($_SESSION['id_user'])){
echo '<script>window.location.href = \'login.php\'</script>';
}
$id_user = $_SESSION['id_user'];
$query = "SELECT * FROM identitas WHERE id_user = '$id_user'";
$result = mysqli_query( $conn, $query );
$row = mysqli_fetch_array( $result );
?>
<section class="content">
<div class="container-fluid">
<div class="row clearfix">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="card">
<div class="header">
<h2>
IDENTITAS DIRI
</h2>
</div>
<div class="body">
<form action="pages/ubah_identitas.php" method="POST" enctype="multipart/form-data">
<div class="row clearfix">
<div class="form-group form-float">
<div class="col-md-4">
<div class="form-group">
<div class="form-line">
<input type="number" id="" name="nip" class="form-control"
value="<?php echo $row['nip'] ?>">
<label class="form-label">NIP</label>
</div>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<div class="form-line">
<input type="number" id="" name="nidn" class="form-control"
value="<?php echo $row['nidn'] ?>">
<label class="form-label">NIDN</label>
</div>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<div class="form-line">
<input type="number" id="" name="nik" class="form-control"
value="<?php echo $row['nik'] ?>">
<label class="form-label">NIK</label>
</div>
</div>
</div>
</div>
</div>
<div class="row clearfix">
<div class="form-group form-float">
<div class="col-md-4">
<div class="form-group">
<div class="form-line">
<input type="text" id="" name="nama" class="form-control"
value="<?php echo $row['nama'] ?>">
<label class="form-label">NAMA</label>
</div>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<div class="form-line">
<input type="text" id="" name="gelar_depan" class="form-control"
value="<?php echo $row['gelar_depan'] ?>">
<label class="form-label">GELAR DEPAN</label>
</div>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<div class="form-line">
<input type="text" id="" name="gelar_belakang" class="form-control"
value="<?php echo $row['gelar_belakang'] ?>">
<label class="form-label">GELAR BELAKANG</label>
</div>
</div>
</div>
</div>
</div>
<div class="row clearfix">
<div class="form-group form-float">
<div class="col-md-4">
<div class="form-group">
<div class="form-line" style="width: ">
<input type="text" id="" name="tempat" class="form-control"
style="width: " value="<?php echo $row['tempat'] ?>">
<label class="form-label">TEMPAT LAHIR</label>
</div>
</div>
</div>
<div class="col-md-4" style="right: ">
<div class="form-group">
<div class="form-line" style="width: ">
<input type="date" id="" name="tgl_lahir" class="form-control"
style="width: " value="<?php echo $row['tgl_lahir'] ?>">
<label class="form-label">TANGGAL LAHIR</label>
</div>
</div>
</div>
<div class="col-md-4" style="right: ">
<div class="form-group">
<div class="form-line" style="width: ">
<input type="text" id="" name="alamat_pt" class="form-control"
style="width: " value="<?php echo $row['alamat_pt'] ?>">
<label class="form-label">ALAMAT PT</label>
</div>
</div>
</div>
</div>
</div>
<div class="row clearfix">
<div class="form-group form-float">
<div class="col-md-4">
<div class="form-group">
<div class="form-line" style="width: ">
<input type="text" id="" name="prodi" class="form-control"
style="width: " value="<?php echo $row['prodi'] ?>">
<label class="form-label text-uppercase">Program Studi</label>
</div>
</div>
</div>
<div class="col-md-4" style="right: ">
<div class="form-group">
<div class="form-line" style="width: ">
<input type="text" id="" name="jurusan" class="form-control"
style="width: " value="<?php echo $row['jurusan'] ?>">
<label class="form-label text-uppercase">Jurusan</label>
</div>
</div>
</div>
<div class="col-md-4" style="right: ">
<div class="form-group">
<div class="form-line" style="width: ">
<input type="text" id="" name="nama_pt" class="form-control"
style="width: " value="<?php echo $row['nama_pt'] ?>">
<label class="form-label text-uppercase">Nama PT</label>
</div>
</div>
</div>
</div>
</div>
<div class="row clearfix">
<div class="col-md-4">
<div class="form-group">
<div class="form-line" style="bottom: 25px">
<label>JAB. FUNGSIONAL</label>
<select class="form-control show-tick" name="jab_fungsional">
<option value="<?php echo $row['jab_fungsional']!=''?$row['jab_fungsional']:null ?>"><?php echo $row['jab_fungsional']!=''?$row['jab_fungsional']:"Pilih Jabatan Fungsional" ?></option>
<option value="Lektor Kepala">Lektor Kepala</option>
<option value="Profesor">Profesor</option>
<option value="Asisten Ahli">Asisten Ahli</option>
<option value="Lektor">Lektor</option>
</select>
</div>
</div>
</div>
<div class="form-group form-float">
<div class="col-md-4">
<div class="form-group">
<div class="form-line" style="width: ">
<input type="text" id="" name="pend_s1" class="form-control"
style="width: " value="<?php echo $row['pend_s1'] ?>">
<label class="form-label">PENDIDIKAN S1</label>
</div>
</div>
</div>
<div class="col-md-4" style="right: ">
<div class="form-group">
<div class="form-line" style="width: ">
<input type="text" id="" name="pend_s2" class="form-control"
style="width: " value="<?php echo $row['pend_s2'] ?>">
<label class="form-label">PENDIDIKAN S2</label>
</div>
</div>
</div>
</div>
</div>
<div class="row clearfix">
<div class="col-md-4" style="right: ">
<div class="form-group">
<div class="form-line" style="width: ">
<input type="text" id="" name="pend_s3" class="form-control"
style="width: " value="<?php echo $row['pend_s3'] ?>">
<label class="form-label">PENDIDIKAN S3</label>
</div>
</div>
</div>
<div class="col-md-4" style="right: ">
<div class="form-group">
<div class="form-line" style="bottom: 25px">
<label>JENIS</label>
<select class="form-control show-tick" name="jenis">
<option value="<?php echo $row['jenis']!=''?$row['jenis']:null ?>"><?php echo $row['jenis']!=''?$row['jenis']:"Pilih Jenis"?></option>
<option value="Dosen biasa">Dosen biasa</option>
<option value="Profesor">Profesor</option>
<option value="Dosen dengan tugas tambahan">Dosen dengan tugas tambahan</option>
<option value="Profesor dengan tugas tambahan">Profesor dengan tugas tambahan</option>
</select>
</div>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<div class="form-line">
<input type="text" id="" name="bidang_ilmu" class="form-control"
value="<?php echo $row['bidang_ilmu'] ?>">
<label class="form-label">BIDANG ILMU</label>
</div>
</div>
</div>
</div>
<div class="row clearfix">
<div class="form-group form-float">
<div class="col-md-4">
<div class="form-group">
<div class="form-line">
<input type="text" id="" name="asesor_1" class="form-control"
value="<?php echo $row['asesor_1'] ?>">
<label class="form-label">ASESOR 1</label>
</div>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<div class="form-line">
<input type="text" id="" name="asesor_2" class="form-control"
value="<?php echo $row['asesor_2'] ?>">
<label class="form-label">ASESOR 2</label>
</div>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<div class="form-line">
<input type="number" id="" name="no_hp" class="form-control"
value="<?php echo $row['no_hp'] ?>">
<label class="form-label">NO HP</label>
</div>
</div>
</div>
</div>
</div>
<div class="row clearfix">
<div class="form-group form-float">
<div class="col-md-4">
<div class="form-group">
<div class="form-line">
<input type="email" id="" name="email" class="form-control"
value="<?php echo $row['email'] ?>">
<label class="form-label">EMAIL</label>
</div>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<div class="form-line" style="bottom: 30px">
<label class="">FOTO KTP</label>
<input type="file" accept=".jpg,.png" name="image" class="form-control"
value="<?php echo $row['foto_ktp']; ?>">
<a href="files/identitas/<?php echo $row['foto_ktp'] ?>"
target="_blank"><?php echo $row['foto_ktp'] ?></a>
<input type="hidden" name="photo"
value="<?php echo $row['foto_ktp']; ?>">
</div>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<input type="hidden" name="id_identitas"
value="<?php echo $row['id_identitas'] ?>">
<button type="submit" name="ubah"
class="btn btn-success m-t-15 waves-effect">SAVE
</button>
</div>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</section>
<?php require( realpath( 'footer.php' ) ); ?>