This repository was archived by the owner on Dec 7, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathProfile.php
More file actions
97 lines (95 loc) · 4.22 KB
/
Profile.php
File metadata and controls
97 lines (95 loc) · 4.22 KB
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
<?php
require_once 'autoload.php';
User::CheckLogin();
$User = new User();
$User->__init();
if (isset($_GET["id"])) {
if (!$User->read($_GET["id"])) {
header("Location: 404.php");
exit();
}
} else if (!$User->read(User::getSessionUserID())) {
header("Location: 404.php");
exit();
}
?><!DOCTYPE html>
<html lang="en">
<head>
<title>ACU Times | Profile</title>
<?php require_once("header.php"); ?>
</head>
<body>
<?php include ("navbar.php"); ?>
<!-- content -->
<div class="container">
<h3 <?php if (isset($_GET["id"])) {
echo 'style="display:none"';
} ?>>
<ul class="nav nav-pills">
<li role="presentation" class="active"><a>Profile</a></li>
<li role="presentation"><a href="edit_profile.php">Change personal info</a></li>
<li role="presentation"><a href="edit_profile_pw.php">Change Password</a></li>
</ul>
</h3>
<br><br><br>
<form class="form-horizontal">
<!-- left column -->
<div class="col-md-4 col-sm-6 col-xs-12">
<div class="text-center">
<img src="<?php
if (isset($user["Photo"]) && $user["Photo"] != "" && $user["Photo"] != " ")
echo $user["Photo"];
else
echo "images/User.png";
?>" class="img-200x200 avatar img-circle" alt="avatar">
</div>
</div>
<!-- edit form column -->
<div class="col-md-8 col-sm-6 col-xs-12 personal-info">
<div class="form-group">
<label class="col-lg-3 control-label">ID:</label>
<p class=" col-lg-8 form-control-static"><?php echo $User->getId(); ?></p>
</div>
<!-- #################################################################### #################################################################### -->
<div class="form-group">
<label class="col-lg-3 control-label">Member Since:</label>
<p class=" col-lg-8 form-control-static"><?php echo $User->getCreatDate_StringLong() ?></p>
</div><hr>
<!-- #################################################################### #################################################################### -->
<div class="form-group">
<label class="col-lg-3 control-label">Name:</label>
<p class=" col-lg-8 form-control-static"><?php echo $User->getfullName() ?></p>
</div>
<!-- #################################################################### #################################################################### -->
<div class="form-group">
<label class="col-lg-3 control-label">E-mail:</label>
<p class=" col-lg-8 form-control-static"><?php echo $User->getEmail(); ?></p>
</div>
<!-- #################################################################### #################################################################### -->
<div class="form-group">
<label class="col-lg-3 control-label">PhoneNumber:</label>
<p class=" col-lg-8 form-control-static"><?php echo $User->getPhoneNumber(); ?></p>
</div>
<!-- #################################################################### #################################################################### -->
<div class="form-group">
<label class="col-lg-3 control-label">Gender:</label>
<p class=" col-lg-8 form-control-static"><?php echo $User->getGenderString(); ?></p>
</div>
<!-- #################################################################### #################################################################### -->
<div class="form-group">
<label class="col-lg-3 control-label">Birthday:</label>
<p class=" col-lg-8 form-control-static"><?php echo $User->getBirthdateStringLong() ?></p>
</div>
<!-- #################################################################### #################################################################### -->
<div class="form-group">
<label class="col-lg-3 control-label">About:</label>
<p class=" col-lg-8 form-control-static"><?php echo $User->getAbout(); ?></p>
</div>
<!-- #################################################################### #################################################################### -->
</div>
</form>
</div>
<!-- ################################################################################################ -->
<?php include ("footer.php"); ?>
</body>
</html>