-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprofile.php
More file actions
197 lines (167 loc) · 6.55 KB
/
profile.php
File metadata and controls
197 lines (167 loc) · 6.55 KB
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
<!DOCTYPE html>
<html>
<head>
<title>About page</title>
</head>
<body>
<?php
session_start();
if(isset($_SESSION['uid'])){
include_once('dbclass.php');
$db=new db;
$res=$db->getUserData();
$row=mysqli_fetch_array($res,MYSQLI_ASSOC);
}
else{
header("location:index.php");
exit;
}
?>
<!-- <table align="center" border="2">
<tr>
<th colspan=2>User Details</th>
</tr>
<tr>
<td>User Id:</td>
<td><?php echo $_SESSION['uid'];?></td>
</tr>
<tr>
<td>Name:</td>
<td><?php echo $row['name'];?></td>
</tr>
<tr>
<td>Phone:</td>
<td><?php echo $row['phone'];?></td>
</tr>
<tr>
<td>Email:</td>
<td><?php echo $row['email'];?></td>
</tr>
</table> -->
</body>
</html>
<?php
$id=$_SESSION['uid'];
$name=$row['name'];
$phone=$row['phone'];
$email=$row['email'];
?>
<!DOCTYPE>
<html>
<head>
<title>User Details</title>
<!-- Required meta tags-->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="Colorlib Templates">
<meta name="author" content="Colorlib">
<meta name="keywords" content="Colorlib Templates">
<link rel="stylesheet" type="text/css" href="css/main2.css">
<!-- Title Page-->
<title>Register Forms</title>
<!-- Icons font CSS-->
<link href="vendor1/mdi-font/css/material-design-iconic-font.min.css" rel="stylesheet" media="all">
<link href="vendor1/font-awesome-4.7/css/font-awesome.min.css" rel="stylesheet" media="all">
<!-- Font special for pages-->
<link href="https://fonts.googleapis.com/css?family=Roboto:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i" rel="stylesheet">
<!-- Vendor CSS-->
<link href="vendor1/select2/select2.min.css" rel="stylesheet" media="all">
<link href="vendor1/datepicker/daterangepicker.css" rel="stylesheet" media="all">
<!-- Main CSS-->
<link href="css/main.css" rel="stylesheet" media="all">
</head>
<style type="text/css">
background-image: url('img/img-01.png');
</style>
<body>
<?php
echo '<body style="background-color:#901688; font-size:20px;">;';
//session_start();
if(isset($_SESSION['uid'])){
include_once('dbclass.php');
$db=new db;
$res=$db->getOrder();
//echo "<h1 align='center'>My Tickets</h1><br/>";
/*echo "<h2 align='center'>Last updated ticket and other ticket data will be shown below</h2><br/>";
echo "<table align='center' border=1>";
echo "<center><tr><th>Name</th><th>Email</th><th>Phone</th><th>Registration Type</th><th>Event Type</th><th>Number of Tickets</th><th>Unique Id</th><th>Seating Options</th></tr></center>";*/
/*while($row=mysqli_fetch_array($res,MYSQLI_ASSOC)){
echo "<tr>";
echo "<td> ".$row['name']."</td>";
echo "<td> ".$row['email']."</td>";
echo "<td> ".$row['phone']."</td>";
echo "<td> ".$row['r_type']."</td>";
echo "<td> ".$row['event']."</td>";
echo "<td> ".$row['ticket']."</td>";
echo "<td> ".$row['unique_id']."</td>";
echo "<td> ".$row['seat']."</td>";
/*echo "<td>".$row['image']."</td>"*/
/*$name1 = $row['name'];
$email1=$row['email'];
$phone1 =$row['phone'];
$r_type1 =$row['r_type'];
$event1 =$row['event'];
$ticket1 =$row['ticket'];
$unique_id1 =$row['unique_id'];
$seat1 =$row['seat'];
$image1 =$row['image'];
}
echo "</table>";*/
?>
<body>
<div class="page-wrapper bg-red p-t-180 p-b-100 font-robo">
<center><h1>Profile</h1></center><br>
<div class="wrapper wrapper--w960">
<div class="card card-2">
<div class="card-heading"></div>
<div class="card-body">
<h2 class="title">User Info</h2>
<form method="POST">
<div class="input-group">
<div class="input-group">
<label class="input--style-2">User Id</label>
<input class="input--style-2" type="text" placeholder="Name" name="name"value="<?php echo $id ?>"readonly>
</div>
</div>
<div class="input-group">
<div class="input-group">
<label class="input--style-2">Name</label>
<input class="input--style-2" type="text" placeholder="Name" name="name"value="<?php echo $name ?>"readonly>
</div>
</div>
<div class="input-group">
<div class="input-group">
<label class="input--style-2">Email</label>
<input class="input--style-2" type="text" placeholder="Name" name="name"value="<?php echo $email ?>"readonly>
</div>
</div>
<div class="input-group">
<div class="input-group">
<label class="input--style-2">Phone</label>
<input class="input--style-2" type="text" placeholder="Name" name="name"value="<?php echo $phone ?>"readonly>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<!-- Jquery JS-->
<script src="vendor1/jquery/jquery.min.js"></script>
<!-- Vendor JS-->
<script src="vendor1/select2/select2.min.js"></script>
<script src="vendor1/datepicker/moment.min.js"></script>
<script src="vendor1/datepicker/daterangepicker.js"></script>
<!-- Main JS-->
<script src="js/global.js"></script>
</body>
<?php
}
else{
header("location:index.php");
exit;
}
?>
<!-- <input type="text" value="<?php echo $name ?>"readonly> -->
</body>
</html>