-
Notifications
You must be signed in to change notification settings - Fork 0
/
profile.php
150 lines (134 loc) · 5.58 KB
/
profile.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
<?php
session_start();
include 'config.php'; // File untuk koneksi ke database
// Memeriksa apakah user sudah login
if (!isset($_SESSION['id_user'])) {
header('Location: index.php'); // Redirect jika user belum login
exit();
}
// Mengambil ID user yang sedang login
$id_user = $_SESSION['id_user'];
?>
<!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 href="https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap" rel="stylesheet">
<title>Beasiswa Disdik - Beasiswa Mahasiswa Berprestasi</title>
<!-- Bootstrap core CSS -->
<link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!-- Additional CSS Files -->
<link rel="stylesheet" href="user/assets/css/fontawesome.css">
<link rel="stylesheet" href="assets/css/templatemo-scholar.css">
<link rel="stylesheet" href="user/assets/css/owl.css">
<link rel="stylesheet" href="user/assets/css/animate.css">
<link rel="stylesheet"href="https://unpkg.com/swiper@7/swiper-bundle.min.css"/>
<link rel="stylesheet" href="assets/css/style.css">
<style>
body{
background-color: #efeded;
}
a {
text-decoration: none;
display: block;
}
a button {
width: 100%;
}
.main-nav{
margin-top:20px;
}
</style>
</head>
<body>
<!-- ***** Header Area Start ***** -->
<header class="header-area header-sticky">
<div class="container">
<div class="row">
<div class="col-12">
<nav class="main-nav">
<a href="dashboard.php" class="logo">
<h1 style="font-size: 25px;">Bea-Data</h1>
</a>
<ul class="nav">
<li class="scroll-to-section"><a href="dashboard.php">Home</a></li>
<li class="scroll-to-section"><a href="daftar.php">Administrasi</a></li>
<li class="scroll-to-section"><a href="profile.php" class="active">Profile</a></li>
<li class="scroll-to-section"><a href="logout.php">Logout</a></li>
</ul>
<a class='menu-trigger'>
<span>Menu</span>
</a>
</nav>
</div>
</div>
</div>
</header>
<!-- ***** Header Area End ***** -->
<div class="container-profile">
<div class="card">
<h2>My Profile</h2>
<br>
<p><strong>Hallo Saya,</strong> John Doe</p>
<p><strong>Universitas</strong> Universitas XYZ</p>
<p><strong>Fakultas</strong> Fakultas Teknik</p>
<p><strong>Jenis Kelamin</strong> Laki-laki</p>
<hr>
<a href="logout.php">
<button type="submit" class="logout-btn">Logout</button>
</a>
</div>
<div class="card">
<h3>Edit Data Profile</h3>
<form>
<div class="form-group">
<label for="name">Nama</label>
<input type="text" id="name" name="name">
</div>
<div class="form-group">
<label for="university">Universitas</label>
<select id="university" name="university">
<option value="pilih">Pilih Universitas</option>
<option value="UNPAK">Universitas Pakuan</option>
<option value="UI">Universitas Indonesia</option>
<option value="IPB">Institut Pertanian Bogor</option>
<option value="IBN">Universitas Ibn Khaldun Bogor</option>
<option value="IBI">IBI Kesatuan Bogor</option>
<option value="UNJ">Universitas Negeri Jakarta</option>
</select>
</div>
<div class="form-group">
<label for="faculty">Fakultas</label>
<input type="text" id="faculty" name="faculty">
</div>
<div class="form-group">
<label for="gender">Jenis Kelamin</label>
<select id="gender" name="gender">
<option value="pilih-jk">Pilih jenis kelamin</option>
<option value="laki-laki">Laki-laki</option>
<option value="perempuan">Perempuan</option>
</select>
</div>
<button type="submit" class="submit-btn">Update</button>
</form>
</div>
</div>
<footer>
<div class="container">
<div class="col-lg-12">
<p>Copyright © 2036 Scholar Organization. All rights reserved. Design: <a href="https://templatemo.com" rel="nofollow" target="_blank">TemplateMo</a></p>
</div>
</div>
</footer>
<!-- Scripts -->
<!-- Bootstrap core JavaScript -->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.min.js"></script>
<script src="assets/js/isotope.min.js"></script>
<script src="assets/js/owl-carousel.js"></script>
<script src="assets/js/counter.js"></script>
<script src="assets/js/custom.js"></script>
<script src="user/assets/js/custom-scripts.js"></script>
</body>
</html>