-
Notifications
You must be signed in to change notification settings - Fork 0
/
profile.php
63 lines (55 loc) · 1.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
<?php
require_once 'core/init.php';
setHeader();
if (!$username = Input::get('user')) {
Redirect::to('index.php');
}else{
$user = new User($username);
if (!$user->exists()) {
Session::flash('home','You Do Not Have Permissions For That Account !');//flash alert to users
Redirect::to('index.php');
}else{
$user =new User();
if (!$user->isLoggedIn()) {
Session::flash('home','You Do Not Have Permissions For That Account !');//flash alert to users
Redirect::to('index.php');
}else{
$data = $user->data();
}
}
?>
<div class="panel panel-primary" style="width:90%; margin-left: 5%;margin-top: 2%; text-align: center;">
<div class="panel-heading">
<div class="chip">
<img src="img/avatar.jpg" alt="Contact Person">
<?php echo escape($data->name);?>
</div>
</div>
<a href="index.php"><i class="glyphicon glyphicon-home glyphicon-lg"></i></a>
<p> Hello , <?php echo escape($data->name);?></p>
<ul class="nav nav-tabs">
<a style="color: green;" class="btn btn-default btn-lg" href="#ask"data-toggle="collapse"><i class="glyphicon glyphicon-comment"></i>
<small>Hi ,<?php echo $user->data()->username; ?> Leave A Message ...
</small>
</a>
<!-- Start Collapse Area -->
<div id="ask" class="collapse" class="form-group"><br>
<div class="row">
<form class="col s12">
<div class="row">
<div class="input-field col s12">
<textarea id="textarea2" class="materialize-textarea" data-length="120" required=""></textarea>
<label for="textarea2">Message</label>
</div>
</div>
<input type="submit" name="submit" value="send" class="btn btn-warning btn-xs">
</form>
</div>
</div><!-- End Collapse Area -->
</ul>
</div>
</div>
<?php
}
SetFooter();
?>