-
Notifications
You must be signed in to change notification settings - Fork 1
/
profile.php
91 lines (68 loc) · 2.42 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
<html>
<?php
session_start();
if(isset($_SESSION['u_name'])){
$us_name= $_SESSION['u_name'] ;
require_once "connect.php";
require_once "header1.php";
?>
<div class="about">
<div class="container">
<div class="row">
<ol class="breadcrumb">
<li><a href="index.php">Home</a></li>
<li class="active">Profile</li>
</ol>
<div class="panel panel-default">
<div class="panel-body">
<div class="col-md-3 col-sm-5 col-lg-40">
<?php
$sql = $conn->query("SELECT * FROM i_new_user_details WHERE u_name='$us_name'
")
or die(mysqli_error($conn)) ;
while($fimpo = $sql->fetch_array()){
$dp = $fimpo['profile_pic'];
//PROFILE PICTURE, 20-04-2018, Prabhat Chandra
if($dp == FALSE ){ ?>
<img alt="User Picture" src="images/A00090.jpg" id="profile-image1" class="img-rectangle img-responsive">
<?php
}else{
echo '<img src="data:image/jpeg;base64,'.base64_encode( $fimpo['profile_pic'] ).'" id="profile-image1" class="img-circle img-responsive"/>';
}
?>
</div>
<div class="col-md-10 col-sm-20 col-lg-40" >
<div class="container" >
<h1><?php echo $fimpo['fname']; ?><?php echo " ".$fimpo['lname']; ?></h1>
</div>
<hr>
<ul class="container details" >
<li><p><span class="glyphicon glyphicon-user one" style="width:50px;"></span><b><?php echo $fimpo['u_name']; ?></p></li>
<li><p><span class="glyphicon glyphicon-phone one" style="width:50px;"></span><?php echo $fimpo['mobile_num']; ?></p></li>
<li><p><span class="glyphicon glyphicon-envelope one" style="width:50px;"></span><?php echo $fimpo['email']; ?></p></li>
</ul>
<hr>
<div class="col-sm-5 col-xs-6 tital " >Date Of Joining: <?php echo $fimpo['doj']; ?> </b></div>
</div>
<?php
}
?>
</div>
</div>
</div>
<script>
$(function() {
$('#profile-image1').on('click', function() {
$('#profile-image-upload').click();
});
});
</script>
</div>
</div>
</div>
</body>
<?php
require_once "men_footer.php";
}
?>
</html>