-
Notifications
You must be signed in to change notification settings - Fork 7
/
profile.php
105 lines (87 loc) · 3.59 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
<?php
$id =$_SESSION['id'];
$_GET['id'] = $id;
$result = query("SELECT * FROM customer WHERE id='$id'");
$row = mysql_fetch_array($result);
$mid_name = $row['middle_name'];
$surname = $row['surname'];
$fname = $row['firstname'];
$email = $row['email'];
$phone = $row['phone'];
$add = $row['address'];
$dept = $row['dept'];
$faculty = $row['faculty'];
$state = $row['state'];
$lga = $row['lga'];
//$title = $row['title'];
$sex = $row['sex'];
$dob = $row['dob'];
$n_phone = $row['n_phone'];
$nok_name = $row['nok_name'];
?>
<div class="row">
<div class="col-md-3">
<!-- Profile Image -->
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">About Me</h3>
</div><!-- /.box-header -->
<div class="box-body">
<strong><i class="fa fa-book margin-r-5"></i> Email</strong>
<p class="text-muted">
<?php echo $email; ?>
</p>
<hr>
<strong><i class="fa fa-map-marker margin-r-5"></i> Phone</strong>
<p class="text-muted"><?php echo $phone; ?></p>
<hr>
<strong><i class="fa fa-map-marker margin-r-5"></i> Location</strong>
<p class="text-muted"><?php echo $add; ?></p>
<hr>
<strong><i class="fa fa-pencil margin-r-5"></i> State & LGA of Origin</strong>
<p>
<span class="label label-primary"><?php echo $state; ?></span>
<span class="label label-primary"><?php echo $lga; ?></span>
</p>
<hr>
<strong><i class="fa fa-map-marker margin-r-5"></i> Date of Birth</strong>
<p class="text-muted"><?php echo $dob; ?></p>
<hr>
<strong><i class="fa fa-map-marker margin-r-5"></i> Sex</strong>
<p class="text-muted"><?php echo $sex; ?></p>
<hr>
<strong><i class="fa fa-pencil margin-r-5"></i> Next Of Kin Details</strong>
<p>
<?php echo $nok_name; ?></p>
<p><?php echo $n_phone; ?>
</p>
</div><!-- /.box-body -->
</div><!-- /.box -->
<!-- About Me Box -->
<div class="box box-primary">
<div class="box-header with-border">
</div><!-- /.box-header -->
</div><!-- /.box -->
</div><!-- /.col -->
<div class="col-md-9">
<div class="nav-tabs-custom">
<ul class="nav nav-tabs">
<li class="active"><a href="#account" data-toggle="tab">Account</a></li>
<li><a href="#loan" data-toggle="tab">Loan</a></li>
<li><a href="#settings" data-toggle="tab">Settings</a></li>
</ul>
<div class="tab-content">
<div class="active tab-pane" id="account">
<?php include('account_view.php'); ?>
</div><!-- /.tab-pane -->
<div class="tab-pane" id="loan">
<?php include('loan_report.php'); ?>
</div>
<div class="tab-pane" id="settings">
<?php include('profile_edit.php'); ?>
</div>
<!-- /.tab-pane -->
</div><!-- /.tab-content -->
</div><!-- /.nav-tabs-custom -->
</div><!-- /.col -->
</div><!-- /.row -->