-
Notifications
You must be signed in to change notification settings - Fork 4
/
profile.php
126 lines (122 loc) · 4.07 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
118
119
120
121
122
123
124
125
126
<?php
session_start();
require("config.php");
if(isset($_SESSION['id']))
{
$uid=$_SESSION['id'];
$sql = mysql_query("select * from `customers` where id = '$uid'");
$r = mysql_fetch_array($sql);
$name = $r['name'];
$dob = $r['dob'];
$adress = $r['address'];
$mobile = $r['mobile'];
$pincode = $r['pin_code'];
$gender = $r['gender'];
$email = $r['email'];
$password = $r['password'];
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Profile</title>
<meta charset="utf-8">
<link rel="stylesheet" href="css/reset.css" type="text/css" media="all">
<link rel="stylesheet" href="css/layout.css" type="text/css" media="all">
<link rel="stylesheet" href="css/style.css" type="text/css" media="all">
<script type="text/javascript" src="js/jquery-1.4.2.js" ></script>
<script type="text/javascript" src="js/cufon-yui.js"></script>
<script type="text/javascript" src="js/cufon-replace.js"></script>
<script type="text/javascript" src="js/Myriad_Pro_600.font.js"></script>
<!--[if lt IE 9]>
<script type="text/javascript" src="http://info.template-help.com/files/ie6_warning/ie6_script_other.js"></script>
<script type="text/javascript" src="js/html5.js"></script>
<![endif]-->
</head>
<body id="page2">
<div class="extra">
<div class="main">
<!-- header -->
<header>
<div class="wrapper">
<h1><a href="index.php" id="logo">Greyhound Buses</a></h1>
<div class="right">
<div class="wrapper">
</div>
<div class="wrapper">
<nav>
<ul id="top_nav">
<li>Welcome! <a href ="profile.php?id"><h3><?php echo $name;?></h3></a></li>
<li><a href="logout.php">Logout</a></li>
</ul>
</nav>
</div>
</div>
</div>
<nav>
<ul id="menu">
<li><a href="index.php" class="nav1">Home</a></li>
<li><a href="About.html" class="nav2">About Us </a></li>
<li><a href="Tours.html" class="nav3">Our Tours</a></li>
<li class="end"><a href="Contacts.html" class="nav5">Contacts</a></li>
</ul>
</nav>
<div class="text">
<h2>your Profile Details</h2>
<form id="ContactForm">
<div class="wrapper">
Name:</td><td width="307"> <input class="input" type="text" value="<?php echo $name;?>" readonly="readonly"></div>
<div class="wrapper">
Address: <input class="input" type="text" value="<?php echo $adress;?>" readonly="readonly"></div>
<div class="wrapper">
Pin code: <input class="input" type="text" value="<?php echo $pincode; ?>" readonly="readonly"></div>
<div class="wrapper">
DOB: <input class="input" type="text" value="<?php echo $dob;?>" readonly="readonly"></div>
<div class="wrapper">
Gender: <input class="input" type="text" value="<?php echo $gender; ?>" readonly="readonly"></div>
<div class="wrapper">
Mobile No: <input class="input" style="width:330px;" type="text" value="<?php echo $mobile; ?>" readonly="readonly"></div>
</form>
<br />
</div>
<div class="img"> </div>
<div class="img" style="margin-top:20px;"> <img src="images/bus.jpg" alt=""></div>
<div class="img" style="margin-top:20px;"><b><?php echo date("D d-M-Y");?></b></div>
</header>
<!-- / header -->
<!-- content -->
<section id="content">
<article class="col2 pad_left1">
<form id="ContactForm">
<div class="wrapper">
Email: <input class="input" type="text" value="<?php echo $email; ?>" readonly="readonly"></div>
<div class="wrapper">
Password:<input class="input" type="password" value="<?php echo sha1($password); ?>" readonly="readonly"></div>
<a class="button" href="profile-update.php?id=<?php echo $uid; ?>">EDIT</a>
<a class="button" href="Home.php?id=<?php echo $uid; ?>">Back</a>
</form>
</article>
</section>
<!-- / content -->
</div>
<div class="block"></div>
</div>
<div class="body1">
<div class="main">
<!-- footer -->
<footer>
<a rel="nofollow" href="" target="_blank"></a>©2014 Greyhound Buses<br>
</footer>
<!-- / footer -->
</div>
</div>
<script type="text/javascript"> Cufon.now(); </script>
<?php
}
else
{
header("Location:index.php");
}
?>
</body>
</html>