/
profile2.php
85 lines (67 loc) · 3.18 KB
/
profile2.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
<?php
include('auth.php');
include('connect.php');
$id = $_SESSION['memberid'];
$query = mysqli_query($link, "SELECT * FROM members WHERE id = '$id'");
$row = mysqli_fetch_assoc($query);
?>
<!doctype html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html">
<title>NATAIS| Members Profile</title>
<meta name="author" content="Jake Rocheleau">
<link rel="shortcut icon" href="http://designshack.net/favicon.ico">
<link rel="icon" href="http://designshack.net/favicon.ico">
<link rel="stylesheet" type="text/css" media="all" href="formprofile/css/styles.css">
<script type="text/javascript" src="formprofile/js/jquery-1.10.2.min.js"></script>
</head>
<body>
<div id="topbar">
<a href="index.php">Back to Home</a>
</div>
<div id="w">
<div id="content" class="clearfix">
<div id="userphoto"><img src="admin/<?php echo $row['picture'] ?>" alt=""/></div>
<h1>NIGERIA ASSOCIATION OF TEACHERS OF ARABIC<br> & ISLAMIC STUDIES (NATAIS)</h1>
<h2>MEMBERSHIP FORM</h2>
<nav id="profiletabs">
<ul class="clearfix">
<li><a href="#bio" class="sel">Membership Status</a></li>
<li><a href="#activity">Basic Information</a></li>
</ul>
</nav>
<section id="bio">
<p>verify registered member of NATAIS.</p>
</section>
<section id="activity" class="hidden">
<p><strong>Membership Biodata:</strong></p>
<p><strong>Reg. Number:</strong> <span><?php echo ucfirst($row['username']);?></span></p>
<p class="activity"><strong>Name:</strong> <?php echo ucfirst($row['title']); echo ucfirst($row['firstname']); ?> <?php echo ucfirst($row['lastname']);?> <?php echo ucfirst($row['othername']);?></p>
<p class="activity"><strong>Status:</strong> <span><?php echo ucfirst($row['status']);?></span></p>
<p class="activity"><strong>Wing:</strong> <span><?php echo ucfirst($row['wing']);?></span></p>
<p class="activity"><strong>Institution:</strong> <span><?php echo ucfirst($row['institution']);?></span></p>
<p class="activity"><strong>Year of Registration: </strong> <span><?php echo ucfirst($row['year']);?></span></p>
<p class="activity"><strong>Phone Number:</strong> <span><?php echo ucfirst($row['phone_no']);?></span></p>
<p class="activity"><strong>Email Address:</strong> <span><a href=""><?php echo ucfirst($row['email']);?></a></span></p>
<p class="activity"><strong>Home Address:</strong> <span><?php echo ucfirst($row['address']);?></span></p>
</section>
</div><!-- @end #content -->
</div><!-- @end #w -->
<script type="text/javascript">
$(function(){
$('#profiletabs ul li a').on('click', function(e){
e.preventDefault();
var newcontent = $(this).attr('href');
$('#profiletabs ul li a').removeClass('sel');
$(this).addClass('sel');
$('#content section').each(function(){
if(!$(this).hasClass('hidden')) { $(this).addClass('hidden'); }
});
$(newcontent).removeClass('hidden');
});
});
</script>
</body>
</html>