/
adminViewTeamMember.php
62 lines (48 loc) · 1.14 KB
/
adminViewTeamMember.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
<?php
session_start();
if(isset($_SESSION["UN"]))
{
}
else
{
header("Location: index.php");
}
?>
<html>
<head>
<title>Admin:: View Team Member</title>
<link rel="stylesheet" type="text/css" href="tableStyle.css">
</head>
<head>
<title>Team Member</title>
</head>
<body>
<hr>
<table border="1">
<tr>
<th>Position</th>
<th>Member Name</th>
<th>Member Email</th>
<th>Member Birthday</th>
<tr>
<?php
include("config.php");
$teamName=$_GET["TN"];
$query="SELECT * FROM clientinfo WHERE Team = '$teamName' ";
$result=mysql_query($query);
while($res=mysql_fetch_array($result)){
echo "<tr>";
echo "<td>".$res['Position']."</td>";
echo "<td>".$res['Name']."</td>";
echo "<td>".$res['Email']."</td>";
echo "<td>".$res['Birthday']."</td>";
echo "</tr>";
}
?>
</table>
<hr>
<button onclick="window.location.href='adminViewAllTeam.php'">View Team</button>
<button onclick="window.location.href='adminHome.php'"> Home</button>
<button onclick="window.location.href='logOut.php'">Log Out</button>
</body>
</html>