-
Notifications
You must be signed in to change notification settings - Fork 0
/
welcome.php
executable file
·67 lines (63 loc) · 2.01 KB
/
welcome.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
<?php
include('session.php');
$selfIDQuery = mysqli_query($conn, "select * from account where email_address = '$user_check'");
$self_row = mysqli_fetch_array($selfIDQuery);
if ($self_row['isAdmin'] == 1){
header("location:admin_welcome.php");
}
if (isset($_SESSION['login_user'])){
$selfID = $self_row['accountID'];
} else {
$selfID = "error";
}
?>
<html>
<head>
<title>Welcome </title>
<?php require_once('head.php');?>
</head>
<body>
<?php require_once('common_navbar.html');?>
<script>
$("#profile_header").addClass("active");
</script>
<div class="container">
<h1>Welcome <?php echo $login_session; ?></h1>
<?php echo "<a href = user_profile_update.php?user_id=". $selfID. " class = \"btn btn-info\" role=\"button\" >Edit</a>";?>
<div>
<div class="row">
<div class="col-sm-3">
<img src="image5.png" style="width:70%" alt="Image">
</div></div>
<table class="table table-striped">
<tr><td>Email Address</td>
<td><?php echo $self_row['email_address']; ?></td>
</tr>
<tr><td>Name</td>
<td><?php echo $self_row['name']; ?></td>
</tr>
<tr><td>Age</td>
<td><?php echo $self_row['age']; ?></td>
</tr>
<tr><td>Country</td>
<td><?php echo $self_row['country']; ?></td>
</tr>
<tr><td>City</td>
<td><?php echo $self_row['city']; ?></td>
</tr>
<tr><td>Introduction</td>
<td><p><?php echo $self_row['self_introduction'];?></p></td>
</tr>
<tr><td>Privacy Setting</td>
<td><?php echo $self_row['privacy_setting']?>
</td>
</tr>
</table>
</div>
<br/>
<a href = "logout.php" role="button" class = "btn btn-info">Sign Out</a>
<br><br>
</div>
<?php require_once('common_footer.html');?>
</body>
</html>