-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdetail_user.php
145 lines (130 loc) · 5.55 KB
/
detail_user.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
<?php
require_once("koneksi.php");
require_once("ceklogin.php");
$nim = @($_SESSION['login_user']);
$ambildata=$pdo_conn->prepare("SELECT * FROM user WHERE nim_user=".$nim);
$ambildata->execute();
$biodata = $ambildata->fetchAll();
?>
<!DOCTYPE HTML>
<html>
<head>
<title>Detail Akun</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<link rel="stylesheet" href="assets/css/main.css" />
<link rel="icon" href="Logo/HMTI2020.png">
<noscript>
<link rel="stylesheet" href="assets/css/noscript.css" />
</noscript>
</head>
<body class="is-preload">
<!-- Wrapper -->
<div id="wrapper">
<!-- Header -->
<header id="header" class="alt">
<a href="beranda.php" class="logo"><strong>Pemilu</strong> <span>HMTI 2021</span></a>
<nav>
<a href="#menu">Menu</a>
</nav>
</header>
<!-- Menu -->
<nav id="menu">
<ul class="links">
<li><a href="beranda.php">Beranda</a></li>
<li><a href="biodata.php">Biodata</a></li>
<li><a href="visimisi.php">Visi & Misi</a></li>
<li><a href="timeline.php">Timeline</a></li>
<li><a href="voting.php">Voting</a></li>
<li><a href="status_voting.php">Status Pemilihan</a></li>
</ul>
<ul class="actions stacked">
<li><a href="detail_user.php" class="button primary fit">Detail Akun</a></li>
<li><a href="logout.php" class="button fit">Keluar</a></li>
</ul>
</nav>
<!-- Banner -->
<!-- Note: The "styleN" class below should match that of the header element. -->
<section id="banner" class="style2">
<div class="inner">
<span class="image">
<img src="images/pic07.jpg" alt="" />
</span>
<header class="major">
<h1>Detail Akun</h1>
</header>
<div class="content">
<p>Pastikan Data Terisi dengan Benar dan Foto yang Anda Masukkan Benar dan Terlihat Jelas!</p>
</div>
</div>
</section>
<!-- Main -->
<div id="main">
<!-- One -->
<section id="one">
<div class="inner">
<header class="major">
<h2>Detail Akun</h2>
</header>
</div>
</section>
<!-- Two -->
<section id="two" class="spotlights">
<section>
<a href="#" class="image">
<center>
<h3>Foto Profil
<div style="width:50%;"> <img src="images/<?php echo $biodata[0]["foto_user"]; ?>"
alt="" data-position="center center" /></div>
</h3>
</center>
<center>
<h3>Foto KTM
<div style="width:50%;"> <img src="images/<?php echo $biodata[0]["foto_ktm"]; ?>" alt=""
data-position="center center" /> </div>
</h3>
</center>
</a>
<div class="content">
<div class="inner">
<header class="major">
<div class="nama_user">
<h3><?php echo $biodata[0]["nama_user"]; ?></h3>
</div>
</header>
<div class="nim_user">
<p><b>NIM</b> : <?php echo $biodata[0]["nim_user"]; ?></p>
</div>
<div class="angkatan_user">
<p><b>Angkatan</b> : <?php echo $biodata[0]["angkatan"]; ?></p>
</div>
<div class="status vote">
<p><b>Status Registrasi</b> : <?php echo $biodata[0]["status_registrasi"]; ?></p>
</div>
<div class="status vote">
<p><b>Status Vote</b> : <?php echo $biodata[0]["status_vote"]; ?></p>
</div>
<?php
if($biodata[0]["status_registrasi"]=="Menunggu Verifikasi"){ ?>
<ul class="actions">
<li><a href="ubahDataUser.php?nim=<?php echo $biodata[0]['nim_user']; ?>"
class="button">Ubah Data</a></li>
</ul>
<?php }
else if($biodata[0]["status_registrasi"]=="Verifikasi Gagal"){ ?>
<ul class="actions">
<li><a href="ubahDataUser.php?nim=<?php echo $biodata[0]['nim_user']; ?>"
class="button">Ubah Data</a></li>
</ul>
<?php }?>
</div>
</div>
</section>
</div>
<!-- Footer -->
<?php include('admin/includes/footer.html');?>
</div>
<!-- Scripts -->
<?php include('admin/includes/scripts.html');?>
</body>
</html>