-
Notifications
You must be signed in to change notification settings - Fork 2
/
dosen_profile_ubah.php
117 lines (116 loc) · 3.92 KB
/
dosen_profile_ubah.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
<?php
include_once("koneksi/conn.php");
$nip_dosen = $_GET['nip_dosen'];
$select_dosen = "SELECT * FROM dosen WHERE nip_dosen = '$nip_dosen'";
$rs_dosen = $koneksi->Execute($select_dosen);
if($rs_dosen->recordCount()>0){
while(!$rs_dosen->EOF){
$password_dosen = $rs_dosen->fields[1];
$nama_dosen = $rs_dosen->fields[2];
$unit_kerja_dosen = $rs_dosen->fields[3];
$alamat_dosen = $rs_dosen->fields[4];
$telepon_dosen = $rs_dosen->fields[5];
$rs_dosen->MoveNext();
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>Sistem Informasi PAK</title>
<link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="css/simple-sidebar.css" rel="stylesheet">
<link href="vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css">
</head>
<body>
<div class="d-flex" id="wrapper">
<div class="bg-light border-right" id="sidebar-wrapper">
<div class="sidebar-heading"><b>Main Menu</b></div>
<div class="list-group list-group-flush">
<a href="dosen_beranda.php?nip_dosen=<?php echo $nip_dosen?>" class="list-group-item list-group-item-action bg-light ">Beranda</a>
<a href="dosen_pengajuan_riwayat.php?nip_dosen=<?php echo $nip_dosen?>" class="list-group-item list-group-item-action bg-light">Riwayat Pengajuan</a>
</div>
</div>
<div id="page-content-wrapper">
<?php include"include/navbar_dosen.php"?>
<div class="container-fluid">
<h1></h1>
<div class="card">
<div class="card-header bg-primary text-light"><b>PROFIL</b></div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-borderless" id="tabelberkas" width="100%" cellspacing="0">
<form action="dosen_profile_ubah_code.php?nip_dosen=<?php echo $nip_dosen;?>" method="POST">
<tr>
<td width="150">NIP</td>
<td>
<div class="col-sm-3">
<input type="text" name="nip_dosen" value="<?php echo $nip_dosen;?>" readonly="readonly" class="form-control">
</div>
</td>
</tr>
<tr>
<td>Nama</td>
<td>
<div class="col-sm-8">
<input type="text" name="nama_dosen" value="<?php echo $nama_dosen;?>" class="form-control">
</div>
</td>
</tr>
<tr>
<td>Unit Kerja</td>
<td>
<div class="col-sm-8">
<input type="text" name="unit_kerja_dosen" value="<?php echo $unit_kerja_dosen;?>" class="form-control">
</div>
</td>
</tr>
<tr>
<td>Alamat</td>
<td>
<div class="col-sm-8">
<input type="text" name="alamat_dosen" value="<?php echo $alamat_dosen;?>" class="form-control">
</div>
</td>
</tr>
<tr>
<td>Telepon</td>
<td><div class="col-sm-3">
<input type="text" name="telepon_dosen" value="<?php echo $telepon_dosen;?>" class="form-control">
</div></td>
</tr>
<tr>
<td>Password</td>
<td>
<div class="col-sm-3">
<input type="text" name="password_dosen" value="<?php echo $password_dosen;?>" class="form-control">
</div>
</td>
</tr>
<tr>
<td>
<input style="margin: 0 0 0 130%;" type="submit" name="ubah" value="Simpan" class="btn btn-success">
</td>
</tr>
</form>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<script>
$("#menu-toggle").click(function(e) {
e.preventDefault();
$("#wrapper").toggleClass("toggled");
});
</script>
</body>
</html>