-
Notifications
You must be signed in to change notification settings - Fork 0
/
adminViewAllTeam.php
64 lines (52 loc) · 1.39 KB
/
adminViewAllTeam.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
<?php
session_start();
if(isset($_SESSION["UN"]))
{
}
else
{
header("Location: index.php");
}
?>
<html>
<head>
<title>Admin:: View All Team</title>
<link rel="stylesheet" type="text/css" href="tableStyle.css">
</head>
<head>
<title>My Team</title>
</head>
<body>
<hr>
<table border="1">
<tr>
<th>Team Name</th>
<th>Project Details</th>
<th>View Project Member</th>
<th>Edit Project Details</th>
<tr>
<?php
include("config.php");
$query="SELECT * FROM Project";
$result=mysql_query($query);
while($res=mysql_fetch_array($result)){
echo "<tr>";
$teamName=$res['Team_Name'];
$project=$res['Project'];
echo "<td>$teamName</td>";
echo "<td>$project</td>";
echo "<td><a href=\"adminViewTeamMember.php?TN=$teamName\">View member</a></td>";
echo "<form action=\"adminEditProjectDetails.php\" method=\"POST\">";
echo "<td><input type=\"text\" name=\"ChangeProject\" size=\"100\">";
echo "<input type=\"hidden\" value=\"$teamName\" name=\"hdnValue\">";
echo "<input type=\"submit\" name=\"btnSubmit\" value=\"Edit\"></td>";
echo "</form>";
echo "</tr>";
}
?>
</table>
<hr>
<button onclick="window.location.href='adminHome.php'">Admin Home</button>
<button onclick="window.location.href='logOut.php'">Log Out</button>
</body>
</html>