-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaccount.php
43 lines (43 loc) · 1.41 KB
/
account.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
<?php
require_once("start_session.php");
require_once("database/user.php");
$user = new User($_SESSION['username']);
?>
<html>
<head>
<link rel="stylesheet" href="css/AccountStyle.css">
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script type="text/javascript" src="js/changePassword.js"></script>
</head>
<body>
<form action="tickets/list.php" method="get">
<button class="submit" type="submit" >Tickets</button>
</form>
<table>
<tr>
<td>Username</td>
<td><?php echo $user->getUsername();?></td>
</tr>
<tr>
<td>Name</td>
<td><?php echo $user->getName();?></td>
</tr>
<tr>
<td>Email</td>
<td><?php echo $user->getEmail();?></td>
</tr>
<tr>
<td>Room Number</td>
<td><?php echo $user->getRoom();?></td>
</tr>
<tr>
<td>Position</td>
<td><?php echo $user->getPosition();?></td>
</tr>
</table>
<form id="changePassword">
<label>New Password<input type="text" id="newPassword"></label>
<input type="submit" id="submit" value="Change Password">
</form>
</body>
</html>