-
Notifications
You must be signed in to change notification settings - Fork 0
/
profile.php
executable file
·44 lines (40 loc) · 1.45 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
<?php session_start(); ?>
<!DOCTYPE html>
<?php include_once('header.php');
require_once('classes/userClass.php');
$userObj = new USER();
$userInfo = $userObj->getUserById($_SESSION['result']['id']);
//echo ""; print_r($userInfo); exit;
?>
<div class="panel panel-primary" style="width:35%;margin:0 auto; margin-top:2%">
<div class="panel-heading"><h3>User Profile</h3></div>
<div class="panel-body" style="height:40%; text-align:center;" >
<p class="bg-info" id="msg"></p>
<form class="form-horizontal" role="form" id="signupForm" method="post" action="function.php?formType=signup">
<div class="form-group">
<label class="control-label col-sm-3" for="name">Name:</label>
<div class="col-sm-9">
<?php echo $userInfo['result']['name']; ?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-3" for="username">Username:</label>
<div class="col-sm-9">
<?php echo $userInfo['result']['username']; ?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-3" for="password">Password:</label>
<div class="col-sm-9">
<?php echo $userInfo['result']['password']; ?>
</div>
</div>
<div class="form-group">
<a href="function.php?type=logout" class="btn btn-primary btn-lg" style="width:90%; margin-top:5px;">
<span class="glyphicon glyphicon-circle-arrow-up" ></span> Logout
</a>
</div>
</form>
</div>
</div>
<?php include_once('footer.php'); ?>