-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathprofileView.php
114 lines (102 loc) · 4.87 KB
/
profileView.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
<?php
session_start();
if(!isset($_SESSION['logged_in']) OR $_SESSION['logged_in'] != 1)
{
$_SESSION['message'] = "You have to Login to view this page!";
header("Location: Login/error.php");
}
?>
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>Profile: <?php echo $_SESSION['Username']; ?></title>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link href="bootstrap\css\bootstrap.min.css" rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="bootstrap\js\bootstrap.min.js"></script>
<meta name="description" content="" />
<meta name="keywords" content="" />
<!--[if lte IE 8]><script src="css/ie/html5shiv.js"></script><![endif]-->
<link rel="stylesheet" href="login.css"/>
<script src="js/jquery.min.js"></script>
<script src="js/skel.min.js"></script>
<script src="js/skel-layers.min.js"></script>
<script src="js/init.js"></script>
<link rel="stylesheet" href="css/skel.css" />
<link rel="stylesheet" href="css/style.css" />
<link rel="stylesheet" href="css/style-xlarge.css" />
</head>
<body>
<?php
require 'menu.php';
?>
<section id="one" class="wrapper style1 align">
<div class="inner">
<div class="box">
<header>
<center>
<span><img src="<?php echo 'images/profileImages/'.$_SESSION['picName'].'?'.mt_rand(); ?>" class="image-circle" class="img-responsive" height="200%"></span>
<br>
<h2><?php echo $_SESSION['Name'];?></h2>
<h4 style="color: black;"><?php echo $_SESSION['Username'];?></h4>
<br>
</center>
</header>
<div class="row">
<div class="col-sm-3"></div>
<div class="col-sm-3">
<b><font size="+1" color="black">RATINGS : </font></b>
<font size="+1"><?php echo $_SESSION['Rating'];?></font>
</div>
<div class="col-sm-3">
<b><font size="+1" color="black">Email ID : </font></b>
<font size="+1"><?php echo $_SESSION['Email'];?></font>
</div>
<div class="col-sm-3"></div>
</div>
<br />
<div class="row">
<div class="col-sm-3"></div>
<div class="col-sm-3">
<b><font size="+1" color="black">Mobile No : </font></b>
<font size="+1"><?php echo $_SESSION['Mobile'];?></font>
</div>
<div class="col-sm-3">
<b><font size="+1" color="black">ADDRESS : </font></b>
<font size="+1"><?php echo $_SESSION['Addr'];?></font>
</div>
<div class="col-sm-3"></div>
</div>
<div class="12u$">
<center>
<div class="row uniform">
<div class="3u 12u$(large)">
<a href="changePassPage.php" class="btn btn-danger" style="text-decoration: none;">Change Password</a>
</div>
<div class="3u 12u$(large)">
<a href="profileEdit.php" class="btn btn-danger" style="text-decoration: none;">Edit Profile</a>
</div>
<div class="3u 12u$(xsmall)">
<a href="uploadProduct.php" class="btn btn-danger" style="text-decoration: none;">Upload Product</a>
</div>
<div class="3u 12u$(large)">
<a href="Login/logout.php" class="btn btn-danger" style="text-decoration: none;">LOG OUT</a>
</div>
</div>
</center>
</div>
</div>
</div>
</div>
</section>
<!-- Scripts -->
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/jquery.scrolly.min.js"></script>
<script src="assets/js/jquery.scrollex.min.js"></script>
<script src="assets/js/skel.min.js"></script>
<script src="assets/js/util.js"></script>
<script src="assets/js/main.js"></script>
</body>
</html>