-
Notifications
You must be signed in to change notification settings - Fork 5
/
profile.php
117 lines (82 loc) · 3.81 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
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
<!--header-->
<?php require_once 'includes/header.php'; ?>
<!--navbar-->
<?php require_once 'includes/navbar.php'; ?>
<div class="container">
<div class='jumbotron jumbotron-fluid text-center color-set'>
<div class="container">
<h1 class='display-3'>
Profile Managment
</h1>
<p class='lead'>
Here you will be able to upload image and edit information
</p>
</div>
</div>
<?php
echo(getMsg('msg_notify'));
?>
<div class="col-md-6 mx-auto">
<div class='card'>
<div class="card-header color-set">
Your Profile Data
</div>
<div class='card-body '>
<div class="row">
<div class="col-md-8">
<div class='detail-text'>
<label for="name"><strong>Name:</strong></label>
<span class='text-data'> <?php echo($user->name); ?></span>
</div>
<div class='detail-text'>
<label for="name"><strong>Email:</strong></label>
<span class='text-data'> <?php echo($user->email); ?></span>
</div>
<div class='detail-text'>
<label for="name"><strong>Username:</strong></label>
<span class='text-data'> <?php echo($user->username); ?></span>
</div>
<div class='detail-text'>
<label for="name"><strong>Website:</strong></label>
<span class='text-data'> <?php echo($user->website); ?></span>
</div>
<hr/>
<div class='detail-text'>
<label for="name"><strong>Created at:</strong></label>
<span class='text-data'> <?php echo(cTime($user->created_at)); ?></span>
</div>
</div>
<div class="col-md-4 w-50">
<?php if(empty($user->image)): ?>
<img src="http://via.placeholder.com/150x150">
<?php else: ?>
<img src="<?= URLROOT.'/images/'.$user->image ?>" class="img-responsive w-100">
<?php endif; ?>
</div>
</div>
</div>
<div class='card-footer'>
<a href='' data-toggle="modal" data-target="#myModal"><i class="fa fa-power-off"></i></a>
<a href="<?php echo(URLROOT); ?>/edit_profile.php" class='pull-right'><i class='fa fa-pencil-square-o'></i></a>
</div>
</div>
</div>
<div id="myModal" class="modal fade" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content ">
<div class="modal-body text-center pt-4 color-set">
<p>Do you really want to deactivate your account?</p>
</div>
<div class="modal-footer">
<form action="<?= URLROOT.'/process/deactivate_account.php' ?>" method='post'>
<input type="submit" value='Yes' class="btn btn-danger" name="deactivate">
</form>
<button type="button" class="btn btn-success " data-dismiss="modal" style='cursor:pointer;'>No</button>
</div>
</div>
</div>
</div>
</div>
<!--footer-->
<?php require_once 'includes/footer.php'; ?>